/* Body stays the same gay-flag stripes */
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(
            to bottom,
            #E70000 0%,     #E70000 16.66%,
            #FF8C00 16.66%, #FF8C00 33.33%,
            #FFEF00 33.33%, #FFEF00 50%,
            #00811F 50%,    #00811F 66.66%,
            #0044FF 66.66%, #0044FF 83.33%,
            #760089 83.33%, #760089 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
}

/* Trans-flag card */
.white-card {
    /* light blue → pink → white → pink → light blue */
    background: linear-gradient(
            to bottom,
            #55CDFC 0%,     #55CDFC 20%,
            #F7A8B8 20%,    #F7A8B8 40%,
            #FFFFFF 40%,    #FFFFFF 60%,
            #F7A8B8 60%,    #F7A8B8 80%,
            #55CDFC 80%,    #55CDFC 100%
    );
    padding: 2rem;
    border-radius: 8px;
    max-width: 900px;
    width: calc(100% - 2rem);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.chart-wrapper {
    background: rgba(255, 255, 255, 0.3);
    /*background: transparent;*/
    /*background: rgba(0, 0, 0, 0.2);*/
    padding: 1rem;
    border-radius: 4px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
    display: block;
    width: fit-content;   /* only as wide as the canvas */
    margin: 0 auto;       /* horizontally center */
}

/* Text styling stays the same */
.current-amount {
    font-size: 1.5em;
    margin-bottom: 1em;
    text-align: center;
}

/* Style the currency selector dropdown */
#currency-selector {
    appearance: none; /* remove default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    padding: 0.5em 1em;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    width: 200px;
    margin-top: 1.5rem; /* bottom margin as requested */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease;
    background-image:
            url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%207%205-7H0z%22%20fill%3D%22%23666%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75em top 50%;
    background-size: 10px 7px;
}

/* On focus, highlight the border */
#currency-selector:focus {
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
}

/* Optional: hover effect */
#currency-selector:hover {
    border-color: #888;
}