body {
    background-color: #FFD700; /* Modern Yellow */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    text-align: center;
}

.rate-info {
    margin-bottom: 1rem;
    font-weight: bold;
    height: 20px;
}

#rate-date.refresh {
    animation: fade-in 0.5s ease-in-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 300px;
}

.input-container {
    display: flex;
    flex-direction: column;
}

.input-wrapper {
    display: flex;
}

label {
    color: black;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

input, select {
    background-color: black;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    box-sizing: border-box; 
}

input {
    text-align: right;
    flex-grow: 1;
    width: 100%;
    border-radius: 0;
}

select {
    width: 100%;
    border-radius: 5px;
    margin-top: 0.5rem;
}

input:focus, select:focus {
    outline: 2px solid white;
}

/* Hide arrows from number input */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.btn-minus, .btn-plus {
    background-color: black;
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 1rem;
}

.btn-minus {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-plus {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
