/* Ensure both overlays are correctly displayed */
#age-verification-overlay, 
#user-selection-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 0, 0, 0.98);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9;
}

/* Prevent body scrolling when the popup is active */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    width: 100%;
}

#user-selection-popup h2 {
    text-transform: uppercase;
    font-size: 40px;
    margin-top: 250px;
}

/* Hide second popup initially */
#user-selection-popup {
    display: none; /* JavaScript should handle visibility */
}

/* Shared Popup Styling */
#age-verification-popup, 
#user-selection-popup {
    width: 90%;
    background: transparent;
    padding: 20px;
    text-align: center;
    color: #fff;
    max-width: 1000px;
    font-family: "Montserrat", Sans-serif;
    display: none; /* Ensure popups are hidden individually */
}

/* Ensure it stays hidden until needed */
#user-selection-popup {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Titles */
#age-verification-popup h2, 
#user-selection-popup h2 {
    margin-bottom: 30px;
}

/* Paragraphs */
#age-verification-popup p, 
#user-selection-popup p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Links */
#age-verification-popup a, 
#user-selection-popup a {
    color: #d3b574;
}

/* Button Container */
#age-verification-buttons {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

#user-type-buttons {
    display: block;
    margin-bottom: 30px;
}

#user-type-buttons button {
    margin: 15px auto;
    display: block;
    min-width: 450px;
}

/* Shared Button Styling */
.age-button, 
.user-type-button {
    background: #f8eee6;
    border: 0;
    color: #3b0b0b;
    padding: 12px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

/* Hover Effects */
.age-button:hover, 
.user-type-button:hover {
    background: #c6a56a;
    color: #fff;
}

/* Mobile optimization */
@media (max-width: 480px) {
    #user-selection-popup h2 {
        margin-top: 30px !important;
        font-size: 30px;        
    }

    #age-verification-overlay h2 {
        margin-top: 0px;
        font-size: 30px;
    }

    #user-type-buttons button {
        margin: 15px auto;
        display: block;
        min-width: 300px;
        font-size: 14px;
        padding: 12px 10px;
    }

    .age-button {
        padding: 12px 20px;
        font-size: 16px;
    } 

    #age-verification-popup p, 
    #user-selection-popup p {
        font-size: 16px;
        margin: 20px 0;
    }       

    #user-type-buttons {
        margin-bottom: 30px;
    }
}