/* Estilo geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

/* Estilos do corpo da página */
body {
  background-color: #000;
  color: #fff;
  font-size: 14px;
  overflow: hidden;
}

/* Estilos do cabeçalho página */
header {
  width: 80%;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  margin: auto;
}

header a {
  color: #fff;
  margin-right: 35px;
  font-weight: 500;
}

header a:hover {
  text-decoration: underline;
}

/* Estilos do container principal da página */
.container {
  height: 100%;
  width: 100%;
  margin-top: -50px;
}

.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: #fff;
  text-shadow: 0 5px 10px #0004;
}

.container .list .list-item .title {
  font-size: 3.6em;
  font-weight: 700;
  line-height: 1.3em;
}

.container .list .list-item .description {
  font-size: 1.2em;
}

.container .list .list-item .buttons {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  margin-top: 18px;
  gap: 10px;
}

.container .list .list-item .buttons a {
  border: none;
  border-radius: 5px;
  letter-spacing: 3px;
  background-color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  padding: 10px 0 10px 10px;
}

.container .list .list-item .buttons a:hover {
  background-color: transparent;
  border: 1px solid #ffffff87;
  color: #fff;
  transition: 0.7s;
}

.container .thumb {
  position: absolute;
  bottom: 35px;
  left: 45%;
  display: flex;
  gap: 20px;
}

.container .thumb .thumb-item {
  width: 130px;
  height: 190px;
  position: relative;
  z-index: 3;
}

.container .thumb .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  filter: brightness(80%);
}

.container .thumb .content {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.container .arrows {
  display: flex;
  position: absolute;
  bottom: 80px;
  left: 135px;
  width: 300px;
  gap: 10px;
}

.container .arrows button {
  border-radius: 5px;
  border: none;
  padding: 3px 10px;
  background-color: #ffffff44;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3em;
}

.container .arrows button:hover {
  background-color: #fff;
  color: #000;
  transition: 0.7s;
}

/* Movimento da thumb */

.container.next .thumb {
  animation: effectNexThumb 0.5s linear 1 forwards;
}

@keyframes effectNexThumb {
  from {
    transform: translateX(150px);
  }
}

/* Movimento última thumb */

.container.next .thumb .thumb-item:nth-last-child(1) {
  animation: effectLastThumb 0.5s linear 1 forwards;
}

@keyframes effectLastThumb {
  from {
    width: 0;
    opacity: 0;
  }
}

/* Textos Principais */

.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.6s;
}

.container .list .list-item:nth-last-child(1) .content .buttons {
  animation-delay: 2s;
}

/* Imagem Principal Next */

.container.next .list .list-item:nth-last-child(1) img {
  width: 145px;
  height: 210px;
  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;
  }
}

/* Imagem Principal Back */

.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: 130px;
    height: 190px;
    border-radius: 5px;
    left: 45%;
    bottom: 35px;
  }
}
