/* Updated styling for a modern, gameshow-inspired look */
body {
    background: radial-gradient(circle, #001a66, #000033);
    color: #ffffff;
    font-family: 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.header {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: gold;
    text-shadow: 0 0 10px #ffcc00, 2px 2px 4px #000;
    font-family: 'Orbitron', sans-serif;
}

.question-area {
    background: rgba(0, 0, 51, 0.8);
    border: 3px solid gold;
    border-radius: 20px;
    box-shadow: 0 0 20px gold;
    padding: 2rem;
    text-align: center;
    width: 70%;
}

.value-area {
    font-size: 3rem;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 20px gold, 0 0 10px #ffcc00;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.button {
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: #000033;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem 3rem;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

.button:active {
    transform: scale(0.95);
}

.bank-display {
    background: rgba(0, 0, 51, 0.8);
    border: 3px solid gold;
    border-radius: 20px;
    box-shadow: 0 0 20px gold;
    padding: 1rem 2rem;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 20px gold, 0 0 10px #ffcc00;
    margin-bottom: 1.5rem;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#bank {
    color: #ffcc00; /* or any color you prefer */
    text-shadow: 0 0 10px gold;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 999;
    transition: visibility 0.5s, opacity 0.5s;
}

.overlay.show {
    visibility: visible;
    opacity: 1;
}

.popup {
    background: #001a66;
    border: 3px solid gold;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 0 30px gold;
    animation: popup-scale 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes popup-scale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-text {
    font-size: 3.5rem;
    font-weight: bold;
    color: gold;
    text-shadow: 0 0 20px #ffcc00, 2px 2px 4px #000;
}

.gold-text {
    /*font-size: 3.5rem;*/
    font-weight: bold;
    color: gold;
    text-shadow: 0 0 20px #ffcc00, 2px 2px 4px #000;

}

.timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 12px;
    width: 100%;
    background: linear-gradient(to right, gold, #ffcc00);
    box-shadow: 0 0 20px gold;
    z-index: 1000;
}

.okay-button {
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: #000033;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    align-self: center;
    margin: 1rem 0 0;
}

.okay-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

.okay-button:active {
    transform: scale(0.95);
}

/* Styling for the Rules Popup */

#rulesOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
    transition: visibility 0.3s, opacity 0.3s;
}

#rulesOverlay.show {
    visibility: visible;
    opacity: 1;
}

#rulesOverlay .popup {
    background: #001a66;
    border: 3px solid gold;
    border-radius: 20px;
    padding: 2rem;
    width: 80%;
    max-width: 600px;
    text-align: left;
    color: white;
    box-shadow: 0 0 20px gold;
    font-family: 'Trebuchet MS', sans-serif;
}

#rulesOverlay .result-text {
    font-size: 2rem;
    font-weight: bold;
    color: gold;
    text-shadow: 0 0 10px #ffcc00;
    margin-bottom: 1rem;
    text-align: center;
}

#rulesOverlay .instructions {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

#rulesOverlay ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.2rem;
}

#rulesOverlay ul .key-press {
    padding: 0.5rem;
    margin: 0.2rem 0;
    background: rgba(255, 204, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

#rulesOverlay ul .key-press:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.8);
    background: rgba(255, 204, 0, 0.4);
}

/* Reload Overlay */
#reloadOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 999;
    transition: visibility 0.5s, opacity 0.5s;
}

#reloadOverlay.show {
    visibility: visible;
    opacity: 1;
}

/* Reload Popup */
#reloadOverlay .popup {
    background: #001a66;
    border: 3px solid gold;
    border-radius: 20px;
    padding: 2rem 3rem;
    text-align: center;
    box-shadow: 0 0 30px gold;
    animation: popup-scale 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Reload Popup Buttons */
.reload-buttons {
    display: flex;
    gap: 2rem;
}

.reload-buttons .button {
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: #000033;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reload-buttons .button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

.reload-buttons .button:active {
    transform: scale(0.95);
}

.cancel-button {
    background: linear-gradient(to bottom, #cccccc, #999999);
    color: #000033;
}

.restart-button {
    color: red !important;
}

