/****************************
Age Gate
****************************/

#ageGate {
    align-items: center;
    justify-content: center;
}

#ageGateInner {
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    margin: 20px;
    max-width: 420px;
    padding: 40px 36px;
    text-align: center;
    width: 100%;
}

#ageGateLogo {
    height: 56px;
    margin: 0 auto 24px;
    width: auto;
}

#ageGateTitle {
    color: var(--primary);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

#ageGateText {
    color: var(--black);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

#ageGateDob {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.ageGateDobSelect {
    appearance: none;
    background-color: white;
    border: 2px solid lightgray;
    border-radius: 5px;
    flex: 1;
    min-width: 0;
    padding: 13px 8px;
    text-align: center;
    transition: 0.3s;
}

.ageGateDobSelect:focus {
    border-color: var(--primary);
    outline: none;
}

/* validation hint — hidden until the visitor submits an incomplete date */
#ageGateError {
    color: var(--secondary);
    display: none;
    font-size: 14px;
    margin-bottom: 16px;
}

#ageGateError.active {
    display: block;
}

#ageGateSubmit {
    width: 100%;
}

/* hidden until the visitor is under 21; shown via the .denied state class */
#ageGateDenied {
    color: var(--secondary);
    display: none;
    font-size: 16px;
    line-height: 1.5;
}

#ageGate.denied #ageGateDob,
#ageGate.denied #ageGateError,
#ageGate.denied #ageGateSubmit {
    display: none;
}

#ageGate.denied #ageGateDenied {
    display: block;
}

@media (max-width: 800px) {
    /* tighten the dropdowns so all three fit on one line in the narrow card */
    .ageGateDobSelect {
        font-size: 14px;
        padding: 13px 4px;
    }
}
