.item {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: var(--backgroud);
}

.item.active {
    display: block;
}

.title {
    font-size: 12rem;
    color: #ffffff;
    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;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

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

.refri {
    z-index: 2;
    width: 600px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

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

#prev {
    left: 30px;
}

#next {
    right: 30px;
}
 
    @keyframes toActive {
    from {
        top: 100%;
        opacity: 0;
    }
}

.item.active img.fruit {
    animation: toActive 0.6s ease-in-out 1;
}

.item.active .title {
    animation: toActive 0.6s ease-in-out 1;
}

@media screen and (max-width: 500px) {
 
    .fruit {
        width: 106%;
    }

    .refri {
        width: 282px;
    }

    .title {
        font-size: 5rem;
    }

    #prev,#next {
        top: 60%;
        width: 39px;
        height: 39px;
    }

}