/* 1. Imports */
@import url("https://fonts.cdnfonts.com/css/trashhand");

/* 2. Global Styles */
body {
  background-image: url(../gifs/spacebg.gif);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* 3. Containers and Layout */
.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 10rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 1200px;
}

/* 4. Typography */
.header-container h1,
.header-container p {
  font-family: "TrashHand", sans-serif;
  color: #b2bfb8;
  margin: 0px;
  transform: rotate(-8deg);
}

.header-container h1 {
  font-size: 128px;
}

.header-container p {
  font-size: 28px;
}

/* 5. Content Blocks */
.div-border {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  min-height: 8rem;
  position: relative;
}

.div-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #959f99;
  border-radius: 2px;
  filter: url("#wiggle-big");
}

.content-transparent {
  background: rgba(216, 226, 220, 0.103);
  width: inherit;
  height: 100%;
  padding: 0;
  justify-content: center;
}

.content {
  z-index: 1;
  color: white;
  padding: 1.2rem;
}

.content.left {
  z-index: 1;
  color: white;
  padding: 5px;
  padding-bottom: 0px;
}

.left-gif-frame {
  max-width: 100%;
  height: 100%;
}

/* 6. Cloud Animation */
.clouds {
  opacity: 0.3;
  position: absolute;
  overflow: hidden;
  margin-top: 160px;
  margin-bottom: 160px;
}

.first,
.second,
.third {
  width: 100%;
  height: 362px;
}

.first {
  top: 200px;
}

.second {
  top: 550px;
}

.third {
  top: 800px;
}

.clouds > div {
  width: 2505px;
  height: 100%;
  background: url(../images/cloud.png);
  transform: translate3d(0, 0, 0);
}

.clouds .mover-1 {
  animation: moveSlideshow 15s linear infinite;
}

.clouds .mover-2 {
  animation: moveSlideshow 8s linear infinite;
}

.clouds .mover-3 {
  animation: moveSlideshow 18s linear infinite;
}

/* 7. Media Queries */
@media (min-width: 768px) {
  .container {
    flex-direction: row;
    gap: 1rem;
  }

  .div-border:nth-child(1) {
    flex: 0 0 calc(25% - (2 * 1rem / 3));
  }

  .div-border:nth-child(2) {
    flex: 0 0 calc(50% - (2 * 1rem / 3));
  }

  .div-border:nth-child(3) {
    flex: 0 0 calc(25% - (2 * 1rem / 3));
  }
}

/* 8. Keyframes */
@keyframes moveSlideshow {
  100% {
    transform: translateX(-20%);
  }
}
