* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 100px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo a {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
}

header .logo a:hover {
  color: #8a8a8a;
  letter-spacing: 0.5px;
}

main {
  position: relative;
  width: 100%;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

a {
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.item {
  width: 200px;
  height: 270px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

.item:nth-of-type(1),
.item:nth-of-type(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.item:nth-of-type(3) {
  left: 65%;
}

.item:nth-of-type(4) {
  left: calc(65% + 40px);
}

.item:nth-of-type(5) {
  left: calc(65% + 90px);
}

.item:nth-of-type(6) {
  left: calc(65% + 30px);
  opacity: 0;
}

.content {
  width: min(35vw, 400px);
  position: absolute;
  top: 50%;
  left: 5.5em;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.3rem;
  font-family: helvetica, sans-serif;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: none;
}

.content .title {
  font-family: "arial-black";
  text-transform: uppercase;
}

.content .description {
  line-height: 1.7;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.content button {
  width: fit-content;
  background-color: rgba(0, 0, 0, 0.1);
  color: white;
  border: 2px solid white;
  border-radius: 0.25rem;
  padding: 0.75rem;
  cursor: pointer;
}



.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.80s ease-in-out 0.4s forwards;
}

@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;

  & .btn {
    background-color: rgba(229, 229, 229, 0.8);
    color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.6);
    margin: 0 0.25rem;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;

    &:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }
  }
}

@media (width > 650px) and (width < 920px) {

  header {
    visibility: visible;
    margin-bottom: 25px;
    padding: 5px 1%;
  }

  .content {

    top: 45%;
    left: 15%;

    & .title {
      font-size: 1.1rem;
    }
    
    & .description {
      font-size: 0.9rem;
    }
    & button {
      font-size: 0.8rem;
    }
  }
  .item {
    width: 160px;
    height: 240px;

    &:nth-child(3) {
      left: 65%;
    }
    &:nth-child(4) {
      left: calc(65% + 40px);
    }
    &:nth-child(5) {
      left: calc(65% + 80px);
    }
    &:nth-child(6) {
      left: calc(65% + 20px);
      opacity: 0;
    }
  }
}

@media (width < 650px) {

  header {
    visibility: visible;
    padding: 65px 5%;
  }

  .content {

    width: min(65vw, 280px);
    top: 45%;
    left: 5%;
    
    & .title {
      font-size: 1.2rem;
    }
    & .description {
      font-size: 1.1rem;
    }
    & button {
      font-size: 1rem;
    }
  }
  .item {
    width: 150px;
    height: 220px;
    top: 70%;

    &:nth-child(3) {
      left: 45%;
    }
    &:nth-child(4) {
      left: calc(45% + 20px);
    }
    &:nth-child(5) {
      left: calc(45% + 40px);
    }
    &:nth-child(6) {
      left: calc(45% + 10px);
      opacity: 0;
    }
  }
}
