
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('https://w.wallhaven.cc/full/43/wallhaven-43xy2y.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Converter Container */
.converter {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Soft shadow */
    text-align: center;
    width: 650px; /* Increased width for long currency names */
    max-width: 98vw;
}

h1 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}


.input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

input, select {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    min-width: 180px; /* Added for wider dropdowns */
    max-width: 100%;
    box-sizing: border-box;
}

input[type="number"] {
    flex: 0 0 90px; /* Fixed width for amount input */
    min-width: 70px;
    max-width: 120px;
}

select {
    flex: 1 1 220px;
    min-width: 220px; /* Wider for long names */
    max-width: 300px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}


#result {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

@media (max-width: 700px) {
    .converter {
        width: 98vw;
        padding: 18px 4vw;
    }
    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    input[type="number"], select {
        max-width: 100%;
        min-width: 0;
    }
}
