@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(7deg);
  }
  50% {
    transform: rotate(-7deg);
  }
  75% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

#thelastofustls::before {
  background: radial-gradient(
    circle at center,
    rgba(137, 56, 67, 0.1),
    rgba(230, 168, 80, 0) 70%
  );
}

.cards-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 10px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.cards-image {
  display: block;
  width: 70%;
  opacity: 0.8;
}

.opening .tloutls-image {
  position: absolute;
  bottom: 55.25%;
  left: 19.9%;
  transform: translate(50%, 50%);
  opacity: 0.9;
  width: 30.5%;
  height: auto;
}

.content {
  width: 70%;
  padding-bottom: 20px;
}

.content h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0px;
}

.content p {
  color: var(--font-secondary-color);
  margin-top: 8px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.5;
  font-size: 18px;
}

.content-heading {
  font-size: 22px;
  font-weight: 500;
  margin-top: -15px;
  margin-bottom: 10px;
}

.highlighted-text {
  color: var(--font-color);
}

.overview-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
  margin-bottom: 30px;
}

.overview-block {
  width: 25%;
}

.overview-block > :nth-child(1) {
  margin-bottom: 8px;
}

.overview-block p {
  margin-block: -4px;
}

.game-sub-overview.extra-space {
  margin-top: 60px;
}

/* Programming section */
.programming-bento {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  row-gap: 20px;
  margin-bottom: 40px;
}

.output-description-container {
  width: max-content;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.output-description {
  width: 400px;
  height: 270px;

  background-color: rgba(30, 29, 28);
  border: #333333 solid 0.75px;
  border-radius: 15px;
}

.output-description-container .output-description:nth-of-type(2) {
  height: 530px;
}

.output-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.output-image img {
  width: 370px;
}

pre {
  margin: 0;
  padding: 0;
  overflow: auto;
  height: 770px;
}

code {
  margin-top: 0px;
  margin-left: 10px;
  margin-bottom: -30px;
  font-family: monospace !important;
  background-color: transparent !important;
}

.code-block {
  display: none;
}

.code-block.active {
  display: block;
}

.code-container {
  width: 700px;
  height: 820px;

  background-color: rgba(30, 29, 28);
  border: #333333 solid 0.75px;
  border-radius: 15px;
}

.window-output {
  display: flex;
  flex-direction: row;
  align-items: last baseline;
  width: 100%;
}

.code-container .window-output:first-of-type {
  overflow-x: auto;
}

.window-output p {
  width: 100%;
  color: white;
  font-size: 11px;
  text-align: center;
  padding-right: 50px;
}

.window-tab {
  padding: 0px;
  height: 30px;
  width: 100px;

  background-color: rgba(23, 22, 23);

  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-top: rgba(23, 22, 23) solid 0.75px;
  border-left: rgba(23, 22, 23) solid 0.75px;
  border-right: rgba(23, 22, 23) solid 0.75px;

  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  margin-left: 20px;

  cursor: pointer;
  transition: background 0.3s ease;
}

.window-tab p {
  width: max-content;
  padding: 0px;
  margin: 0;
  margin-left: 10px;
}

.window-tab.active {
  background-color: rgba(30, 29, 28);
  border-top: #333333 solid 0.75px;
  border-left: #333333 solid 0.75px;
  border-right: #333333 solid 0.75px;
}

.window-tab:hover {
  background-color: rgba(40, 39, 38);
}

.dot-container {
  display: flex;
  flex-direction: row;
  gap: 4px;
  width: max-content;
  margin-top: 20px;
  margin-left: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(50, 49, 48);
  border-radius: 50%;
}

.programming-desc-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-inline: 30px;
  padding-top: 15px;
}

.programming-desc-heading img {
  width: 40px;
  aspect-ratio: 1;
}

.programming-desc-heading p {
  font-size: 20px;
  font-weight: 500;
  color: white;
  margin-top: 16px;
}

.description-text {
  display: none;
  padding-inline: 40px;
}

.description-text.active {
  display: block;
}

/* Feedback Section */
.feedback-bento {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  padding-bottom: 20px;
  row-gap: 10px;
}

.feedback-block {
  display: flex;
  flex-direction: column;
  justify-content: baseline;
  align-items: center;
  gap: 10px;

  background: rgba(30, 29, 28);
  border: #333333 solid 1px;
  border-radius: 15px;

  width: 300px;
  height: 200px;

  transition:
    background 0.3s ease,
    transform 0.2s ease-in-out;
}

.feedback-block:hover img {
  animation: wiggle 0.4s ease;
}

.feedback-block:hover {
  background: rgba(40, 39, 38);
  transform: translateY(-5px);
}

.feedback-block img {
  margin-top: 35px;
  width: 65px;
  aspect-ratio: 1;
}

.feedback-block p {
  color: white;
  font-weight: 500;
  font-size: 14px;

  text-align: center;
  width: 85%;
}

@media only screen and (max-width: 970px) {
  .cards-container {
    width: 100%;
    height: max-content;
  }

  .opening .tloutls-image {
    display: block;
    position: relative;
    top: 0px;
    left: 0px;
    transform: translate(0px, 0px);

    width: 100%;
    height: auto;
  }

  .cards-image {
    display: none;
  }

  .overview-container {
    row-gap: 50px;
  }

  .overview-block {
    width: 50%;
  }

  .content {
    width: 98%;
  }

  .content p {
    line-height: 1.7;
    font-size: 16px;
  }

  /* Programming section */
  .programming-bento {
    justify-content: center;
  }

  .output-description {
    width: 100%;
  }

  .output-image img {
    width: 350px;
  }

  .window-tab {
    padding-right: 15px;
    margin-left: 20px;
  }

  .code-container {
    width: 100%;
    height: 500px;
  }

  pre {
    height: 450px;
  }

  /* Feedback Section */
  .feedback-block {
    width: 180px;
    height: 180px;
    margin: 0;
    margin-bottom: 20px;
  }

  .feedback-block img {
    margin-top: 20px;
    width: 50px;
  }

  .feedback-block p {
    font-size: 12px;
    width: 70%;
  }
}
