* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.roboto {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
html{
  height: 100%;
  width: 100%;
  overflow: hidden;
}
body {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

main {
  position: relative;
  width: 100%;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.item {
  width: 250px;
  height: 150px;
  list-style-type: none;
  position: absolute;
  top: 70%;
  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;

  &:nth-child(1), &:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
  }

  &:nth-child(3) { left: 50%; }
  &:nth-child(4) { left: calc(50% + 270px); }
  &:nth-child(5) { left: calc(50% + 540px); }
  &:nth-child(6) { left: calc(50% + 1080px); opacity: 0; }
}

.content {
  width: min(30vw,400px);
  position: absolute;
  top: 60%;
  left: 10%;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica,sans-serif;
  color: rgb(0, 0, 0);
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  opacity: 0;
  display: none;

  & .title {
    text-transform: uppercase;
    font-size: 3em;
    font-weight: bold;
  }

  & .description {
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 1.1rem;
  }

  & button {
    width: fit-content;
    background-color: rgba(0,0,0,0.1);
    color: rgb(0, 0, 0);
    border: 2px solid rgb(0, 0, 0);
    border-radius: 0.25rem;
    padding: 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all .3s ease;
  }

  & button:hover {
    background-color: rgba(255, 228, 196, 0.2);
  }
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;

  & .btn {
    color: rgb(196, 196, 196);
    font-size: 2em;
    margin: 0 0.25rem;
    padding: 0.25rem;
    border-radius: 50%;
    cursor: pointer;
  }
}

@media (width > 650px) and (width < 900px) {
  .item {
    width: 160px;
    height: 270px;

    &:nth-child(3) { left: 50%; }
    &:nth-child(4) { left: calc(50% + 170px); }
    &:nth-child(5) { left: calc(50% + 340px); }
    &:nth-child(6) { left: calc(50% + 510px); opacity: 0; }
  }
}

@media (width < 650px) {
  .item {
    width: 130px;
    height: 220px;

    &:nth-child(3) { left: 50%; }
    &:nth-child(4) { left: calc(50% + 140px); }
    &:nth-child(5) { left: calc(50% + 280px); }
    &:nth-child(6) { left: calc(50% + 420px); opacity: 0; }
  }
}