
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
}

/* Frosted-glass card */
.container {
    width: min(100%, 520px);
    padding: 30px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.currency-container {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.currency-container select {
    max-width: 55%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.92);
    color: #1d2b2d;
    font-family: inherit;
}

.currency-container input {

    border: 0;
    background-color: transparent;
    font-family: inherit;
    font-size: 25px;
    text-align: right;

    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.35s ease, background-color 0.2s ease;
}

.swap-button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.swap-button.flipped {
    transform: rotate(180deg);
}

.exchange-rate {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 600;
}

.status {
    min-height: 20px;
    margin: 6px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.error-message {
    min-height: 20px;
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffe08a;
}

.attribution {
    margin: 14px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.attribution a {
    color: inherit;
}

select:focus-visible,
input:focus-visible,
button:focus-visible,
.attribution a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Visible to screen readers only: the labels for the dropdowns and inputs */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 420px) {
    .container {
        padding: 20px;
    }

    .currency-container {
        flex-direction: column;
        align-items: stretch;
    }

    .currency-container select {
        max-width: none;
    }

    .currency-container input {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swap-button {
        transition: none;
    }
}


