/*------------------- Imported Fonts -------------------*/
@font-face {
    font-family: 'Elms-Sans';
    src: url('../../fonts/Elms_Sans/ElmsSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*------------------- Global -------------------*/
html,
body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Elms-Sans', sans-serif;
    color: rgb(25, 93, 105);
    background-color: rgb(252, 251, 242);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
    background-size: 100% auto;
}

/* Desktop background */
@media (min-width: 801px) {
    body {
        background-image: url(../../global-assets/grey-logo-background.png);
    }
}

/* Mobile background */
@media (max-width: 801px) {
    body {
        background-image: url(../../global-assets/grey-logo-background_mbl.png);
    }
}


/*------------------- Links -------------------*/
a {
    font-size: clamp(12px, 2vw, 16px);
    font-family: 'Elms-Sans', sans-serif;
    font-weight: 900;
    text-decoration: none;
    color: rgb(25, 93, 105);
    padding: 1vh 2vw;
    transition: color 0.3s ease, transform 0.3s ease-in-out;
}

a:hover {
    color: rgb(204, 191, 146);
    transform: scale(1.1);
}

/*------------------- Main Content -------------------*/
.ageval-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 100%;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin-top: -250px;
    margin-left: -25px;
}

/* Logo */
.ageval-container img {
    max-width: 250px;
    height: auto;
    margin-right: -7px;
}

/* Validation block */
.val-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Validation text */
.ageval-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Button grid */
.ageval-button-grid {
    display: flex;
    justify-content: center;
}

/* Buttons */
.contact-button {
    width: 100px;
    height: 40px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: rgb(25, 93, 105);
    color: rgb(204, 191, 146);
    cursor: pointer;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Hover rules */
#val1 #good:hover {
    background-color: rgb(146, 208, 80);
    color: rgb(252, 251, 242);
}

#val1 #bad:hover {
    background-color: rgb(255, 0, 75);
    color: rgb(252, 251, 242);
}
