
.item{
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--bkg);
}
.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;
    text-align: center;
    
    position: absolute ;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.item .refri{
    z-index: 2;
    width: 600px;

    position: absolute ;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

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

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

}
.item.active img.fruit,.title{
    animation: toActive 2.2s ease-in-out;
}

@media (max-width: 800px) {
    #prev, #next{
        width: 28px;
        height: 28px;
    }
    #prev{
        left: 5px;
    }
    #next{
        right: 5px;
    }
.item .refri{
    width: 300px;
}
.title{
    font-size:  4rem;
    
}
.item .fruit{
    width: 100%;
    top:30%;
    }
}
