/* FONTS */

@font-face {
    font-family: "Iowan";
    src: url(fonts/IowanOldSt-OSF-BT-Bold-Italic.ttf);
}

@font-face {
    font-family: "Google";
    src: url(fonts/GoogleSans-Regular.ttf);
}

@font-face {
    font-family: "Google";
    src: url(fonts/GoogleSans-Bold.ttf);
    font-weight: bold;
}

/* 
#sec2 > * {
    display:none;
} */


/* MAIN STYLES */

* {
    z-index: 1;
    font-family: Google, sans-serif;
}

.personaje {
    z-index: 0;
}

body {
    margin: 0;
}

nav {
    position: relative;
    background-color: black;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: space-evenly;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 10%;
    padding-right: 10%;
}

nav img {
    height: 40px;
    display: inline-block;
    margin: 8px 8px 3px 8px;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
}

#mas {
    display: none;
}

nav figure {
    margin: 0;
}

#sec1,
#sec2,
#sec3 {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


#sec1 {
    background-image: url(images/bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

}

#sec1>div {
    text-align: center;
    padding: 1em 0;
    max-height: 80vh;

}


#logo {
    width: 375px;
    max-width: 90vw;
    /* margin-top: 40px; */
}

.txt-yellow {
    color: #ffcc00;
    font-size: 26px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
    max-width: 800px;
    font-family: Iowan, sans-serif;
    text-shadow: 0px 2px #000;
}

#google-family {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 2em;
}

/* #google-family>div {
    width: min-content;
} */

#google-family>div:nth-child(2) {
    text-align: left;
}

#google-family img {
    width: 210px;
    margin: 0px 30px;
}

#google-family p {
    color: #fff;
    margin-left: 0.8em;
    margin-right: 0.8em;
    font-size: 16px;
}

#sec1>.divider {
    top: 100vh;
}

#sec2>.divider {
    top: 198vh;
}

#sec3>.divider {
    top: 298vh;
}

.divider {
    display: flex;
    position: absolute;
    /* bottom: -0.5vw; */
    padding: 0 !important;
    align-content: center;
    align-items: center;
}

.divider img {
    width: 50%;
}

#gumball {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

#gumball div {
    /*width: 280px;*/
    position: absolute;
    top: 50%;
    right: calc(11vw - 5%);
    z-index: -1;
    transform: scale(0.85);
}


#sec2 {
    background-image: url(images/bg2_02.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /* margin-bottom: 20px; */
}


#smartphone {
    max-height: 100vh;
    text-align: center;
    transform: translateY(12vh);
}

.back-smartphone {
    width: 380px;
    margin-top: 0px;
    margin-left: 20vw;
    max-width: 82vw;
}

#tomate {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

#tomate div {
    /*width: 151px; */
    position: absolute;
    top: calc(200vh - 25%);
    left: calc(3vw - 5%);
    z-index: -1;
    transform: scale(0.4);

}

#anais {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

#anais div {
    /* width: 148px; */
    position: absolute;
    top: calc(200vh - 40%);
    left: calc(30vw - 5%);
    z-index: -1;
    transform: scale(0.85);
}

#molly {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

#molly div {
    /* width: 220px; */
    position: absolute;
    top: calc(200vh - 50%);
    right: calc(7vw - 5%);
    z-index: -1;
}

#tm-an-smartphone {
    display: none;
}

#sec3 {
    background-image: url(images/bg3_05.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#sec3>div:nth-child(1) {
    text-align: center;
    /* height: 100%; */
    /* padding-top: 100px; */
}

#sec3>div:nth-child(1)>p {
    margin-top: 0;
}

#cards {
    /* position: relative; */
    /* text-align: center; */
    height: 100vw;
    max-height: 600px;
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    /* margin-top: 112px; */
}

#cards img {
    width: 600px;
    max-width: 30%;
    position: absolute;
    transition: opacity 0.4s linear 0.1s;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

#carta {
    background-image: url(images/gumball-card-b.png);
    transition: all 0.4s linear 0.1s;
    width: 983px;
    height: 1339px;
    transform: scale(0.5);
    max-width: 30%;

}

#cards img:nth-child(1) {
    /* transform: translateX(103%); */
    opacity: 0;
    z-index: 1;
}

#cards img:nth-child(2) {
    /* transform:  translateX(-21%); */
    opacity: 0;
    z-index: 2;
}

#cards img:nth-child(3) {
    /* transform: translateX(-100%); */
    z-index: 3;
}

#buttons {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: 15px 0 80px 0px;

}

#buttons img {
    margin: 30px 5px;
    width: 40px;
}

#darwin {
    /* display: none; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#darwin div {
    /* width: 244px; */
    position: absolute;
    top: calc(300vh - 55%);
    right: calc(15vw - 5%);
}

#darwin-flex {
    display: none;
}

#footer {
    background-color: black;
    padding: 120px;
    padding-bottom: 60px;
}

#footer>div {
    width: 70%;
    margin: auto;
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}

#footer p {
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

#footer div:nth-child(1) img {
    margin-left: 30px;
}

#footer div:nth-child(2) div:nth-child(1) {
    display: flex;
}

#footer div:nth-child(2) div:nth-child(2) {
    text-align: right;
}



.list-footer {
    list-style-type: none;
    padding-left: 0px;
}

#footer div:nth-child(2) div .list-footer:nth-child(2) {
    padding-left: 65px !important;
}

.list-footer li {
    margin-top: 20px;
}

.list-footer li a {
    color: #fff;
}

#footer div:nth-child(2) div ul li {
    color: #fff;
}

#turner-cn-logo {
    max-width: 90vw;
}

#terminal {
    height: 395px;
    width: 362px;
    background: url(images/spritesheet-gumball-150.png);
    animation-name: sprite;
    animation-duration: 1.5s;
    animation-timing-function: steps(150);
    animation-iteration-count: infinite;
}


#sec3 > div:nth-child(1) > div:nth-child(1) {
    margin-top: 9vh;
}

@keyframes sprite {
    from {
        background-position: 0px;
    }

    to {
        background-position: -54300px;
    }
}

/* MEDIA QUERIES */

/* SMARTPHONES */
@media screen and (max-width: 767px) {

    #sec1 {
        background-image: url(images/bg_mobile_01.png);
        background-position: top;
    }

    #logo {
        width: 375px;
    }

    nav {
        padding-left: 0;
        padding-right: 0;
    }

    #mas {
        display: block;
    }

    nav a:nth-child(5),
    nav a:nth-child(6) {
        display: none;
    }

    .nav-item {
        font-size: 12px;
    }

    nav img {
        height: 32px;
    }

    #hey {
        width: 175px;
    }

    #google-family {
        flex-wrap: nowrap;
        margin-bottom: 1.5em;
    }

    #google-family p {

        font-size: 8px;
    }

    #google-family img {
        width: 90px;
        margin: 4px 0px 0px 15px;
    }

    #sec1>div {
        padding: 0.4em 0;
    }

    .txt-yellow {
        font-size: 18px;
        line-height: 1.5;
        padding-left: 1em;
        padding-right: 1em;

    }

    /* .divider {
        bottom: -10px;
    } */

    .divider img:nth-child(2) {
        display: none;
    }

    .divider img {
        width: 100vw;
    }

    #gumball {
        display: none;
    }

    #smartphone {
        transform: translateY(3vh);
        max-height: 80vh;
    }


    .back-smartphone {
        width: 325px;
        margin-left: 0;
    }

    #sec2 {
        background-position: unset;
    }

    #molly {
        display: none;
    }

    #anais {
        display: none;
    }

    #tomate {
        display: none;
    }

    /* #tm-an-smartphone {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -55px;
        align-items: flex-end;
        overflow: hidden;
        width: 100%;
    } */

    #tm-an-smartphone>div:nth-child(1) {
        transform: scale(0.65) translateX(100%);
    }

    #tm-an-smartphone>div:nth-child(2) {
        transform: scale(0.35) translateY(50%) translateX(-20%);
    }

    #tm-an-smartphone img:nth-child(1) {
        width: 38%;
    }

    #tm-an-smartphone img:nth-child(2) {
        width: 150px;
        margin-top: -55px;
    }

    #darwin {
        display: none;
    }

    /* #darwin-flex{
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        margin-top: -80px;
        margin-bottom: -80px;
    } */

    #darwin-flex>div {
        max-width: 50%;
    }

    #darwin-flex>div:nth-child(1) {
        transform: scale(0.6);
    }

    #darwin-flex>div:nth-child(2) {
        transform: scale(0.7);
    }


    /* #darwin-flex div {
        width: 45%;
    } */

    #legal {
        display: none;
    }

    #footer {
        padding: 20px;
    }

    #footer>div {
        width: auto;
        text-align: center;
        flex-wrap: wrap;
    }

    #cn-logo {
        display: none;
    }

    #footer div:nth-child(2) div:nth-child(1) {
        flex-wrap: wrap;
        flex-direction: column;
        margin: auto;
    }

    #footer div:nth-child(2) div:nth-child(2) {
        margin: auto;
    }

    #footer div:nth-child(2) div .list-footer:nth-child(2) {
        padding-left: 0 !important;
        margin-top: 0px;
    }

    #footer div:nth-child(2) div .list-footer:nth-child(1) {
        margin-bottom: 0;
    }

    #footer div p {
        text-align: left !important;
    }

    #cards {
        /* margin-top: 10vw; */
    }

    #buttons {
        /* margin: 30px 0 0px 0px; */
    }

    #buttons img {
        margin: 25px 5px 5px 5px;
    }

    #cards img {
        /* width: 70%; */
        max-width: 60vw;
    }

    /* #cards img:nth-child(1) {
        transform:  translateY(2%);
    }

    #cards img:nth-child(2) {
        transform: translateY(-99%) ;
    }

    #cards img:nth-child(3) {
        transform: translateY(-200%);
    } */

    #terminal-gumball {
        transform: scale(0.9) translateX(-10%);
    }

    #terminal-darwin {
        transform: scale(0.9) scaleX(-1) translateX(10%) !important;
    }

    #sec1>.divider {
        top: 99vh;
    }
    
    #sec2>.divider {
        top: 199vh;
    }
    
    #sec3>.divider {
        top: 299vh;
    }
}

@media screen and (max-width: 375px) {
    #terminal-gumball {
        transform: scale(0.7) translateX(-14%);
    }

    #terminal-darwin {
        transform: scale(0.7) scaleX(-1) translateX(14%) !important;
    }


    #tm-an-smartphone>div:nth-child(1) {
        transform: scale(0.65) translateX(115%);
    }

    #tm-an-smartphone>div:nth-child(2) {
        transform: scale(0.35) translateY(51%) translateX(-26%);
    }

    #smartphone{
        transform: translateY();
    }
}


/* TABLETS & LAPTOPS */
@media screen and (min-width: 768px) and (max-width: 1023px) {

    nav {
        padding-left: 0;
        padding-right: 0;
    }

    .divider img:nth-child(2) {
        display: none;
    }

    .divider img {
        width: 100vw;
    }

    #gumball {
        display: none;
    }

    /* #gumball div {
        width: 149px;
        position: absolute;
        top: 719px;
        right: calc(6vw - 5%);
        z-index: -1;
    } */

    #smartphone{
        transform: translateY(6vh);
    }

    .back-smartphone {
        margin-left: 0;
    }

    #sec2 {
        background-position: unset;
    }

    #molly {
        display: none;
    }

    #darwin {
        display: none;
    }

    #darwin-flex {
        display: none;
        align-content: center;
        justify-content: space-around;
        align-items: flex-end;
    }

    #anais {
        display: none;
    }

    #tomate {
        display: none;
    }

    #tm-an-smartphone {
        display: none;
        align-items: center;
        justify-content: center;
        margin-top: 50px;
        align-items: flex-end;
    }


    #tm-an-smartphone>div:nth-child(1) {
        transform: scale(0.65) translateX(100%);
    }

    #tm-an-smartphone>div:nth-child(2) {
        transform: scale(0.35) translateY(50%) translateX(-20%);
    }

    #tm-an-smartphone img:nth-child(1) {
        width: 38%;
    }

    #tm-an-smartphone img:nth-child(2) {
        width: 150px;
        margin-top: -55px;
    }

    #footer {
        padding: 80px 40px;
    }

    #footer>div {
        width: 80%;
    }

    #cards {
        /* margin-top: 60px; */
    }

    #cards img {
        width: 40%;
        max-width: 85vw;
    }

    #buttons {
        margin: 15px 0 10px 0px;
    }


}



/* LARGE LAPTOPS */
@media screen and (min-width: 1024px) and (max-width: 1439px) {

    /* #gumball img {
        width: 185px;
        position: absolute;
        top: 694px;
        right: calc(9vw - 5%);
        z-index: -1;
    } */

    #gumball div {
        right: calc(3.5vw - 5%);
        transform: scale(0.8);
    }

    #molly div {
        right: calc(6vw - 5%);
        transform: scale(0.85);
    }

    #darwin div {
        top: calc(300vh - 55%);
        right: calc(15vw - 5%);
    }

    #footer {
        padding: 80px 40px;
    }

    #footer>div {
        width: 80%;
    }

    #smartphone{
        transform: translateY(5vh);
    }

}

/* LARGE LAPTOPS b*/

@media screen and (min-width: 1024px) and (max-width: 1232px) {

    #gumball div {
        right: calc(-0.5vw - 5%);
        transform: scale(0.6);
    }

    #anais div {
        left: calc(24vw - 5%);
    }

    #tomate div {
        left: calc(-5vw - 5%);
    }

    #darwin div {
        /* right: calc(9vw - 5%); */
    }

    #molly div {
        right: calc(4vw - 5%);
    }
}

/* XL SCREENS*/

@media screen and (min-width: 1440px) {
    #anais div {
        left: calc(24vw - 5%);
    }

    #tomate div {
        left: calc(4vw - 5%);
    }

    #darwin div {
        /* right: calc(9vw - 5%); */
    }

    #molly div {
        right: calc(6vw - 5%);
    }
}


.scale-up-center {
    -webkit-animation: scale-up-center 0.8s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: scale-up-center 0.8s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

/* ----------------------------------------------
 * Generated by Animista on 2022-1-15 11:58:0
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation scale-up-center
 * ----------------------------------------
 */
@-webkit-keyframes scale-up-center {
    0% {
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes scale-up-center {
    0% {
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}


/* PERSONAJES ANIMATIONS */

/* GUMBALL */

#terminal-gumball {
    height: 395px;
    width: 362px;
    background: url(images/spritesheet-gumball-150.png);
    animation-name: sprite-gumball;
    animation-duration: 1.5s;
    animation-timing-function: steps(150);
    animation-iteration-count: infinite;
}


@keyframes sprite-gumball {
    from {
        background-position: 0px;
    }

    to {
        background-position: -54300px;
    }
}

/* TOMATE */

#terminal-tomate {
    width: 600px;
    height: 300px;
    background: url(images/spritesheet-tomate-18.png);
    animation-name: sprite-tomate;
    animation-duration: 1.5s;
    animation-timing-function: steps(18);
    animation-iteration-count: infinite;
}


@keyframes sprite-tomate {
    from {
        background-position: 0px;
    }

    to {
        background-position: -10800px;
    }
}

/* ANAIS */

#terminal-anais {
    width: 288px;
    height: 306px;
    background: url(images/spritesheet-anais-150.png);
    animation-name: sprite-anais;
    animation-duration: 1.5s;
    animation-timing-function: steps(150);
    animation-iteration-count: infinite;
}


@keyframes sprite-anais {
    from {
        background-position: 0px;
    }

    to {
        background-position: -43200px;
    }
}

/* MOLLY */

#terminal-molly {
    width: 250px;
    height: 358px;
    background: url(images/spritesheet-molly-150.png);
    animation-name: sprite-molly;
    animation-duration: 1.5s;
    animation-timing-function: steps(150);
    animation-iteration-count: infinite;
}


@keyframes sprite-molly {
    from {
        background-position: 0px;
    }

    to {
        background-position: -37500px;
    }
}

/* DARWIN */

#terminal-darwin {
    width: 269px;
    height: 299px;
    background: url(images/spritesheet-darwin-150.png);
    animation-name: sprite-darwin;
    animation-duration: 1.5s;
    animation-timing-function: steps(150);
    animation-iteration-count: infinite;
    transform: scaleX(-1);
}


@keyframes sprite-darwin {
    from {
        background-position: 0px;
    }

    to {
        background-position: -40350px;
    }
}