body {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
html {overflow-y: scroll;}
h1 {
    color: #337def;
    font-family: "Paytone One", sans-serif;
    font-weight: 900;
    text-align: left;
}

#cloud {
    display: none;
}
@media (min-width: 1338px) {
    #cloud {
        position: absolute;
        display: inline;
        top: 30%;
        left: -200px;
        width: 12rem;
        opacity: 0.9;
        animation: moveCloud 40s linear infinite;
        z-index: 1;
    }
}


@keyframes moveCloud {
    0% {
        left: -250px;
    }
    85% {
        opacity: 0.9;
    }
    100% {
        left: 86vw;
        opacity: 0;
    }
}

#cloud2 {
    display: none;
}
@media (min-width: 1443px) {
    #cloud2 {
        position: absolute;
        display: inline;
        top: 60%;
        left: -200px;
        width: 20rem;
        opacity: 0.7;
        animation: moveCloud2 100s linear infinite;
        z-index: 1;
    }
}

@keyframes moveCloud2 {
    0% {
        left: -300px;
    }
    85% {
        opacity: 0.9;
    }
    100% {
        left: 78vw;
        opacity: 0;
    }
}

/*Sezione Tale of Balance*/
#logo_tob {
    display: flex;
    margin: auto;
    width: 50%;
    max-height: 890px;
    max-width: 890px;
    z-index: 5;
}
@media (min-width: 1200px) {
    #main1 {
        background-image: url("img/sfondo_nuvole.png"), linear-gradient(to bottom, #337DEF, #82aff3, #FFFFFF);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        height: 70rem;
    }
}
@media (max-width: 1200px) {
    #main1 {
        background-image: url("img/sfondo_nuvole.png"), linear-gradient(to bottom, #337DEF, #82aff3, #FFFFFF);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        height: 63rem;
    }
    #logo_tob {
        display: flex;
        margin: auto;
        width: 90%;
        max-height: 890px;
        max-width: 890px;
        z-index: 5;
    }
}


/*Sezione Youtube*/
#trailer {
    display: flex;
    justify-content: center;
    z-index: 2;
}
p {
    color: #337DEF;
    text-align: center;
    width: 560px;
    margin: 0 auto;
}
#trailer iframe {
    width: 560px;
    height: 315px;
    border: none;
}
@media (max-width: 980px) {
    #trailer iframe {
        width: 90%;
        height: 500px;
    }
    p {
        width: 90%;
    }
}


/* Sezione carosello automatico */
#carosello_auto {
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}
.carousel img {
    height: 315px;
    margin: 0;
    padding: 0;
    display: block;
}
.carousel2 img {
    height: 315px;
    margin: 0;
    padding: 0;
    display: block;
}
.screen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.carousel {
    display: flex;
    align-items: center;
    will-change: transform;
    animation: scrolling 20s linear infinite;
    width: max-content;
    margin: 0;
    padding: 0;
}

.carousel a {
    margin-right: 50px;
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/*Carosello automatico 2*/
#carosello_auto2 {
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
}

.carousel2 {
    display: flex;
    align-items: center;
    will-change: transform;
    animation: scrolling 20s linear infinite;
    width: max-content;
    margin: 0;
    padding: 0;
}
.carousel2 a {
    margin-right: 50px;
}

/*Sezione Chop e Piantina e GFT*/
@media (min-width: 1200px) {
    #chop_e_piantina_mobile {
        display: none;
    }
    #testo_cp_mobile {
        display: none;
    }
    #chop_e_piantina {
        display: flex;
        align-items: center;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
        justify-content: center;
    }
    #chop_e_piantina img {
        display: block;
        margin: 0 auto 1rem auto;
        width: 30rem;
        height: auto;
    }
    #chop_e_piantina p {
        text-align: left;
        color: #061a38;
        max-width: 400px;
    }
    #chop_e_piantina .testo {
        flex: 1;
    }

    /*Sezione GFT*/
    #sfondo_gft {
        background-image:
                linear-gradient(to top, white, transparent, transparent, transparent, transparent, transparent, transparent),
                linear-gradient(to bottom, white, transparent, transparent, transparent, transparent),
                url("img/sfondo_gft.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
    #gft {
        display: flex;
        align-items: center;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
        z-index: 1;
        justify-content: center;
    }
    #gft img {
        display: block;
        margin: 0 auto 1rem auto;
        width: 30rem;
        height: auto;
        z-index: 1;
    }
    #gft p {
        text-align: left;
        color: #061a38;
        max-width: 400px;
    }
    #gft .testo {
        flex: 1;
    }
    #gft button {
        border: none;
        border-radius: 15px;
        background-color: #337def;
        font-family: "Poppins", sans-serif;
        font-weight: 600;
        font-style: normal;
        color: white;
        font-size: 22px;
        width: 10rem;
    }
    #gft button:hover {
        background-color: #061a38;
        cursor: pointer;
    }
}
@media (max-width: 1200px) {
    #chop_e_piantina {
        display: none;
    }
    #chop_e_piantina_mobile {
        display: flex;
        align-items: center;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    #chop_e_piantina_mobile img {
        display: block;
        margin: auto;
        width: 30rem;
        height: auto;
    }
    #testo_cp_mobile h1 {
        text-align: center;
    }

    /*Sezione GFT*/
    #sfondo_gft {
        background-image:
                linear-gradient(to top, white, transparent, transparent, transparent, transparent, transparent, transparent),
                linear-gradient(to bottom, white, transparent, transparent, transparent, transparent),
                url("img/sfondo_gft.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
    #gft {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 0 2rem;
        z-index: 1;
        justify-content: center;
    }
    #gft img {
        display: block;
        margin: auto 0 auto 0;
        width: 30rem;
        height: auto;
        z-index: 1;
    }
    #gft p {
        text-align: left;
        color: #061a38;
        max-width: 400px;
    }
    #gft .testo {
        flex: 1;
    }
    #gft button {
        border: none;
        border-radius: 15px;
        background-color: #337def;
        font-family: "Poppins", sans-serif;
        font-weight: 600;
        font-style: normal;
        color: white;
        font-size: 22px;
        width: 10rem;
    }
    #gft button:hover {
        background-color: #061a38;
        cursor: pointer;
    }
}



/*Sezione concept art*/
#placeholder {
    background-image:
            linear-gradient(to bottom, rgba(255,255,255,0) 80%, white 100%),
            url("img/prato_over.png"),
            url("img/prato.png");
    background-repeat: no-repeat;
    background-size: cover, 60%,  cover;
    background-position: center;
    height: 40rem;
    display: flex;
    position: relative;
}



/* Sezione FAQ */
#faq {
    display: flex;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
#faq_img {
    display: flex;
    margin: auto;
    width: 100%;
    max-height: 890px;
    max-width: 890px;
}


/* Sezione footer */
footer {
    background-image: url("img/footer.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 24rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 3rem 3rem;
    position: relative;
}
#footer_elements img{
    width: 3rem;
}
#footer_elements {
    display: flex;
    gap: 1rem;
}
#logo_footer {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    width: 16rem;
}
#footer_text {
    color: white;
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    text-align: center;
    opacity: 0.8;
}

#sovrimpressione {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem 3rem;
    z-index: 1000;
    pointer-events: auto;
}
@media (max-width: 980px) {
    #footer_elements img{
        width: 5rem;
    }
}
