@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500&family=Nunito+Sans:wght@400;700&display=block');

* {
    user-select: none;
}

#overlay {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 50px;
    color: white;
    height: 80vh;
    width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#action > *, #social > * {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s;
}


#overlay h1 {
    font-size: 4em;
    line-height: 1;
    background: #F2D30A;
    background: -webkit-linear-gradient(to bottom left, #F2D30A 41%, #E09107 100%);
    background: -moz-linear-gradient(to bottom left, #F2D30A 41%, #E09107 100%);
    background: linear-gradient(to bottom left, #F2D30A 41%, #E09107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

#overlay h2 {

    background: #FFBB54;
    background: -webkit-linear-gradient(to bottom, #FFBB54 29%, #E0875A 100%);
    background: -moz-linear-gradient(to bottom, #FFBB54 29%, #E0875A 100%);
    background: linear-gradient(to bottom, #FFBB54 29%, #E0875A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    

}

#overlay  h1, h2 {
    font-family: 'Fredoka', sans-serif;
    margin: 5px;
    text-align: center;
}

#name {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#action {
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 150px;
    left: 50%;
}

#action button {
    color: white;
    padding: 20px 80px;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

#overlay a {
    background-image:linear-gradient(#ffffff, #ffef14);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 3px;
    transition: background-size cubic-bezier(0,.5,0,1) 0.3s, opacity 0.5s;
}

#overlay a:hover,
a:focus {
    text-decoration: none;
    color: #ffef14;
}

#overlay #social {
    margin-top: 16px;
}

#legacyLink:hover,
#legacyLink:focus {
    background-size: 100% 3px;
}

/* Speech bubble landing page */
.menuPreserve .speech-bubble-landingpage {
	opacity: 1;
    padding: 10px 40px;
    display: inline-block;
    position: fixed;
    bottom: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
	max-width: 400px;
	height: auto;
    background-color: #d77c26f2;
    color:#ffffff;
}

.menuPreserve .speech-bubble-landingpage p {
    font-family: 'Gluten', sans-serif;
    font-size: 1rem;
    text-align: center;
}

#legacyLink {
    opacity: 0.7;
}

/* #fwa {
    display: flex !important;
    position: fixed;
    z-index: 99;
    top: 0px;
    left: 0px;
    width: 180px;
} */

#xmasGreetingsImg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(30%, -90%);
    width: min(max(18vw, 18vh), 200px);
    opacity: 0;
}

@media (max-width: 1000px) { 

    #overlay h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 1.2em;
    }

    #action button {
        padding: 20px 70px;
        font-size: 1.2rem;
    }

    #consentButtons button {
        min-width: 110px;
    }

    .menuPreserve .speech-bubble-landingpage {
        bottom: 18%;
        left: 50%;
        padding: 5px 0px;
        min-width: 180px;
    }

    .menuPreserve .tri-right.btm-left-in:after{
        top: -20px;
        bottom: -30px;
        border-color: transparent #d77c26f2   #d77c26f2  transparent;
    }

    .menuPreserve .round {
        border-radius: 30px;
        -webkit-border-radius: 30px;
    }

    /* #fwa {
        width: 140px;
    } */

}


@media (orientation: landscape) and (max-width: 1000px) { 

    #overlay {
        flex-direction: row;
        width: 95vw;
        margin: 0 0 0 30px;
    }

    #overlay h1 {
        font-size: 2em;
    }

    #overlay h2 {
        font-size: 1.2em;
    }

    #overlay h1, h2 {
        text-align: left;
    }

    #action {
        margin-right: 50px;
    }

    #action button {
        padding: 20px 40px;
        font-size: 1.2rem;
    }

    #name {
        max-width: 250px;
        align-items: flex-start;
    }
    
    .menuPreserve .speech-bubble-landingpage {
        display: none;
        bottom: 7%;
        left: 44%;
    }
}