
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


.item {
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    position: absolute
   
;
}

.item.active {
    display: block
}

 

.title {
    font-size: 12rem;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;

    position: absolute;
    top: 80px;
    left: 80px;

    transform: none;
}


.fruit {
     width: 100%;
    position: absolute;
    top: 0;
    z-index: 3;
}

.iogurt {
    width: 600px;
    position: absolute;
    left: 50%;
    /*centralizar horizontalmente*/
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}


 #prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid #eee9;
    border-radius: 50%;
    color: rgba(238, 238, 238, 0.733);
    background-color: rgba(238, 238, 238, 0.276);
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: 4;

}

#prev {
    left: 30px;
}

#next {
    right: 30px;
}

@keyframes toActive {
    from {
        top: 100%;
        opacity: 0;
    }
}

.item.active img.fruit {
    animation: toActive 0.5s ease-in-out 1;
}
.item.active .title {
    animation: toActive 0.6s ease-in-out 1;
}
/* RESPONSIVO PARA CELULAR */
@media (max-width: 600px) {

    .title{
        font-size: 4rem;   /* diminui o texto */
        top: 40px;
        left: 20px;
    }

    .iogurt{
        width: 300px;   /* iogurte menor */
        top: 60%;
    }

    .fruit{
        width: 100%;
    }

    #prev, #next{
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

}