/* These variables are already present in the global CSS File. They are only here for easier reference.
:root {
    --background-color: #1f1f1f;

    --white-1: #bfbfbf;

    --blue-1: #4a90e2;
    --blue-2: #203f66;
    --blue-3: #0b1624;

    --primary-500: hsl(259, 13%, 28%);
    --primary-600: hsl(252, 9%, 22%);
    --primary-900: hsl(256, 43%, 7%);

    --border-1: var(--primary-500);
    --border-2: var(--primary-600);
    --surface-1: var(--primary-900);
} */

body {
  background-color: var(--background-color);
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.full-viewport {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  box-sizing: border-box; /* Why the hell does this one attribute fix all the weird issues every time???*/
  max-width: 1000px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px;
  gap: 80px;
  position: relative;
  text-align: center;
}

.container:has(.chapter) {
  background-color: var(--primary-800);
  padding-left: 50px;
  padding-right: 50px;
}

.centering {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.description {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  transform: none;
  margin: 50px 0;
}

.element {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px;
  gap: 30px;
  max-width: 1340px; /* Original Width 1200px + double margin 20px * 2 = 1340px */
  flex: 1;
}

.text {
  text-align: center;
  transition: transform ease 0.3s;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  font-weight: bold;
}

.text.clickable:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.text h1,
.text h2 {
  margin-bottom: 10px;
}

.text h1 {
  font-size: 3rem;
  margin-bottom: 60px !important;
}

.chapter h2 {
  text-align: left;
  font-size: 2rem;
}

.large {
  font-size: 1.4rem;
  line-height: 1.6;
}

.image {
  min-width: 280px;
  display: flex;
  justify-content: center;
  transition: transform ease 0.3s;
  user-select: none;
  flex: 1;
  max-width: 100%;
  margin: 30px 0;
}

.image.small {
  max-width: 140px;
  display: flex;
  justify-content: center;
  transition: transform ease 0.3s;
  height: auto;
  width: auto;
}

.image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.divider {
  width: 95%;
  margin: 0 auto;
  border: 2px solid var(--blue-1);
}

.reverse {
  flex-direction: row-reverse;
}

.notice {
  text-align: right;
  margin-right: 20px;
  color: var(--primary-400);
}

.chapter {
  width: 100%;
  font-family: Helvetica, sans-serif;
}

.textblock {
  text-align: justify;
  transition: transform ease 0.3s;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.divider.dark {
  border: 2px solid var(--blue-2);
}

@media (max-width: 768px) {
  .largetext {
    font-size: 1rem;
  }

  .image.small {
    width: auto;
    height: auto;
    margin: 0 auto;
  }

  .text {
    min-width: 0;
    font-size: 0.7rem;
  }

  .large {
    font-size: 0.98rem; /* 1.4 * 0.7 */
  }

  .notice {
    font-size: 0.7rem;
  }

  .text h1 {
    font-size: 2.1rem; /* 3 * 0.7 */
  }

  .element {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    gap: 30px;
  }

  .image {
    width: auto;
    height: auto;
  }

  .chapter h2 {
    font-size: 1.4rem;
  }

  .container {
    margin: 10px 0;
  }

  .description {
    margin: 50px 0;
  }

  .container:has(.chapter) {
    padding-left: 20px;
    padding-right: 20px;
  }
}
