* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: "Roboto Condensed", sans-serif;
}

body {
    background-color: #000;
    color: #eee;
    font-size: 12px;
}

header {
    width: 80%;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: auto;
}

header a{
    color: #eee;
    margin-right: 40px;
    font-size: 1.3em;
}

.container {
    height: 100%;
    width: 100%;
    margin-top: -50px;
    overflow: hidden;
}

.container .list .list-item {
    width: 100%;
    height: 100%;
    position: absolute;
}

.container .list .list-item img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(50%);
}

.container .list .list-item .content {
    position: absolute;
    top: 20%;
    right: 10%;
    padding-right: 30%;
    width: 80%;
    color: #eee;
    text-shadow: 0 5px 10px #0004;
}

.container .list .list-item .title {
    font-size: 5em;
    font-weight: 700;
    line-height: 1.3em;
}

.container .list .list-item .description {
    font-size: 1.5em;
}

.container .list .list-item .buttons {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 50px;
    margin-top: 25px;
    gap: 5px;
}

.container .list .list-item .buttons button {
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
}

.container .list .list-item .buttons button:hover {
    background-color: transparent;
    border: 1px solid #eee;
    color: #eee;
    transition: 0.7s;
}

.container .list .list-item .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #eee;
    color: #eee;
}

.container .list .list-item .buttons button:nth-child(2):hover {
    background-color: #eee;
    color: #000;
    transition: 0.7s;
}

.container .thumb {
    position: absolute;
    bottom: 50px;
    left: 50%;
    display: flex;
    gap: 20px;
}

.container .thumb .thumb-item {
    width: 135px;
    height: 200px;
    position: relative;
    z-index: 3;
}

.container .thumb .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: brightness(80%);
}

.container .thumb .content {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.container .arrows {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 120px;
    left: 120px;
    width: 300px;
}

.container .arrows button {
    border-radius: 10px;
    border: none;
    padding: 12px 17px;
    background-color: #eee4;
    color: #eee;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.5em;
}

.container .arrows button:hover {
    background-color: #eee;
    color: #000;
    transition: 0.7s;
}

.container .next .thumb {
    animation: effectNextThumb 0.5s linear 1 forwards;
}

@keyframes effectNextThumb {
    from {
        transform: translateX(150px);
    }
}

.container.next .thumb .thumb-item:nth-last-child(1){
    animation: effectLastThumb 0.5s linear 1 forwards;
}

@keyframes effectLastThumb {
    from {
        width: 0;
        opacity:0;
    }
}

.container .list .list-item:nth-last-child(1) .content .title,
.container .list .list-item:nth-last-child(1) .content .description,
.container .list .list-item:nth-last-child(1) .content .buttons {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.container .list .list-item:nth-last-child(1) .content .title {
    animation-delay: 1.2s;
}

.container .list .list-item:nth-last-child(1) .content .description {
    animation-delay: 1.5s;
}

.container .list .list-item:nth-last-child(1) .content .buttons {
    animation-delay: 2s;
}

.container.next .list .list-item:nth-last-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showMainImage 0.5s linear 1 forwards;
}

@keyframes showMainImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.container.back .list .list-item:nth-child(1) img{
    position: absolute;
    bottom: 0;
    left: 0;
    animation: hideMainImage 0.5s linear 1 forwards;
    z-index: 2;
}

@keyframes hideMainImage {
    to {
        width: 135px;
        height: 200px;
        border-radius: 10px;
        left: 50%;
        bottom: 50px;
    }
}

/* ====== RESPONSIVO ====== */

@media (max-width: 1024px) {
    header {
      width: 92%;
    }
    

    header a {
      margin-right: 20px;
    }
  
    .container .list .list-item .content {
      top: 16%;
      right: 6%;
      width: 88%;
      padding-right: 0;
    }
  
    .container .list .list-item .title {
      font-size: 3.8em;
    }
  
    .container .list .list-item .description {
      font-size: 1.2em;
    }
  
    .container .thumb {
      left: 50%;
      transform: translateX(-50%);
      bottom: 26px;
      gap: 12px;
    }
  
    .container .thumb .thumb-item {
      width: 110px;
      height: 160px;
    }
  
    .container .arrows {
      left: 24px;
      bottom: 210px;
      width: auto;
    }
  }
  
  @media (max-width: 640px) {
    header {
      width: 100%;
      justify-content: center;
    }
  
    nav {
        display: flex;
        gap: 10px;
    }

    header a {
      margin-right: 14px;
      font-size: 14px;
      align-items: center;
    }
  
    .container .list .list-item .content {
      top: 12%;
      left: 16px;
      right: 16px;
      width: auto;
      padding-right: 0;
    }
  
    .container .list .list-item .title {
      font-size: 3.2em;
      line-height: 1.1em;
    }
  
    .container .list .list-item .description {
      font-size: 1.19em;
      line-height: 1.35em;
  
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  
    .container .list .list-item .buttons {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: 44px;
      gap: 10px;
      max-width: 290px;
    }
  
    
    .container .thumb {
      left: 50%;
      transform: translateX(-50%);
      bottom: 14px;
  
      width: 100%;
      padding: 0 12px;
      gap: 10px;
  
      overflow-x: auto;
      scroll-snap-type: x mandatory;
    }
  
    .container .thumb .thumb-item {
      flex: 0 0 auto;
      width: 88px;
      height: 120px;
      scroll-snap-align: center;
    }
  
    .container .arrows {
      left: 16px;
      bottom: 155px;
      gap: 8px;
      width: auto;
    }
  
    .container .arrows button {
      padding: 10px 14px;
      font-size: 1.2em;
    }
  
    
    .container.next .list .list-item:nth-last-child(1) img {
      width: 90px;
      height: 130px;
      bottom: 14px;
    }
  
   
    @keyframes hideMainImage {
      to {
        width: 88px;
        height: 120px;
        border-radius: 10px;
        left: 50%;
        bottom: 14px;
      }
    }
  }
  