/* Main colours */
:root{
    --purple: #573C81;
    --orange: #F39200;
    --yellow: #FFDD00;
}
/* CSS reset */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.html, body, .container{
    height: 100%;
}
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../img/images/BG-Main@3x.png") no-repeat;
    background-color: var(--purple);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden; 
}

.yoplait {
    position: absolute;
    top: 0; left: 0;
    width: 40%;
}

.center{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 2px solid var(--blue);
    padding: 150px 0 40px 0;
}
.logo_placeholder{ 
    width: 46vh;
    min-width: 400px;
    max-width: 600px;
    height: 300px;
    min-height: 175px; 
    margin: 20px 0 10px;
}
.logo{
    height: 100%;
    width: 80%;
    margin-left: 10%;
    background: url(../img/Frubes-logo.svg) no-repeat;
    background-size: contain;
    background-position: center top;
}
.coming-soon{
    width: 20vw;
    height: auto;
}
.hidden.button {
    opacity: 0; /* Hidden by default */
}
.button {
    opacity: 1;
    transition: opacity 300ms ease-in-out;
}



.main, .tutorial{
    transition: all .1s ease-in-out;
}
.main:active{
    transform: scale(80%); /* Tutorial and Play Now buttons "pop" when interacted with (80% size)  */
}
.first_copy, .second_copy{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100vw;
}
img.copy{
    width: 52%;
    height: auto;
}

.scan{
    width: 40% !important;
}

.first_copy, .second_copy{
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}
.tutorial, .play, .cookies{
    display: none;
}
.qr{
    height: 100%;
    width: 100%;
    background: url("../img/Frubes-QR.svg") no-repeat;
    background-size: contain !important;
    background-position: center !important;
    margin-bottom: 10px;
    min-height: 200px;
    max-height: 200px;
}

/* Modal (overlay) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Inner Box */
.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background-color: var(--purple);
    padding: 20px;
}
/* Modal text */
.modal-text{
    max-height: 65vh;
    overflow: scroll;
    font-family: Verdana;
}
/* Modal Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.bottomLinks a, 
.bottomLinks a:visited,
.bottomLinks a:hover {
  text-decoration: none;
}


.animate {
    animation-duration: 0.5s;
    animation-name: animate-fade;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}
.animate.pop {
    animation-name: animate-pop;
    animation-timing-function: cubic-bezier(.26,.53,.74,1.48);
}
.delay-1 {
    animation-delay: 0.6s;
}
.delay-2 {
    animation-delay: 0.7s;
}
.delay-3 {
    animation-delay: 0.8s;
}

.delay-4 {
    animation-delay: 1s;
}

@keyframes animate-fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes animate-pop {
    0% {
        opacity: 0;
        transform: scale(0.5, 0.5);
    }
    40% {
        opacity: 1;
        transform: scale(1, 1);
    }
    60% {
        opacity: 1;
        transform: scale(0.9, 0.9);
    }  
    100% {
        opacity: 1;
        transform: scale(1, 1);
    }
}



@media only screen and (min-width: 641px) {
    .align{
        display: none;
    }
    .arg{
        display: none;
    }
}

/* Mobile version */


@media only screen and (max-width: 640px) {
    .container{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        background: url("../img/images/BG-Phone@3x.png") no-repeat;
        background-color: var(--purple);
        background-position: center;
        color: #fff;
        overflow: scroll; 
        background-size: cover;
    }

    .yoplait {
        position: absolute;
        top: 0; left: 0;
        width: 60%;
    }

    .logo_placeholder{
        /* max-width: 90vw; */
        min-width: 200px;
        max-width: 100vw;
        height: 150px;
        min-height: 130px;
        margin-top: 20px;
    }
    .coming-soon{
        width: 40vw;
    }
    .center{
        padding: 90px 0 80px 0;
    }
    .button.copy:first-of-type{
        display: none;
    }
    .first_copy{
        flex-direction: column;
        top: 55vw;
    }
    .second_copy{
        display: none;
    }
    .buttons{
        width: 90vw;
        margin-left: 5vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        outline: none;
    }

    .tutButton{
        max-width: 56vw;
    }

    .freezem{
        height: auto;
        width: 74%;
        margin-left: 13%;
        margin-top: -15px;
    }
    .argame{
        height: auto;
        width: 80%;
        margin-left: 10%;
        margin-top: -30px;
    }
    .tutorial, .main, .cookies{
        display: initial;
        height: auto;
        max-width: 56vw;
        margin-bottom: -10px
    }
    .tutorial{
        margin-bottom: 5px;
    }
    .cookies{
        height: 10px;
        object-position: 0 0;
        margin-top: -10px;
        padding: 0px 10px 0px 10px;
    }
    .qr{
        display: none;
    }
}

/* Surface Duo screen */
@media only screen and (width: 540px) {
    .logo {
        height: 160px;
    }
}

@media only screen and (max-width: 390px) {
    .main {
        height: auto;
    }

}

/* Smaller mobile version */
@media only screen and (max-width: 375px) {
    .logo_placeholder{
        margin-top: 25px;
    }

    .freezem{
        width: 60%;
        margin-left: 20%;
        margin-top: -35px;
    }

    .argame {
        width: 60%;
        margin-left: 20%;
        margin-top: -20px;
    }

}
