.item {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: var(--background); /* variável criada no HTML */
}

.item.active { /* class para aparecer*/
    display:block;
}

.item .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;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.item .fruit {
    width: 95%;
    top:0;
    z-index: 3;

}

.item .refri{
    z-index: 2;
    width:600px;
    opacity: 0.91;
    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;
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: 4;
    border-radius: 50%;
}

#prev {
    left: 30px;
}

#next {
    right: 50px;
}


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

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


}

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

}

.item.active .refri {
    animation:toActive 0.5s ease-in-out 1;
    

}


/* ========================= */
/* RESPONSIVIDADE */
/* ========================= */

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  .header section {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    display: block;
    margin: 1rem 0;
  }

  .content h3 {
    font-size: 4rem;
  }

  .content p {
    font-size: 1.6rem;
  }

  .about .row {
    flex-direction: column;
  }

  .about .row .container-image img {
    width: 100%;
  }

  .box-container {
    grid-template-columns: 1fr;
  }

  iframe {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }

  .content h3 {
    font-size: 3rem;
  }

  .btn {
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
  }

  .navbar {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .icons img {
    width: 25px;
    height: 25px;
  }
}
