:where(*) {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  position: relative;
}

:root {
  font-family: 'Montserrat', sans-serif;

  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;

  --cubed-main-color: #f2ba3c;
  --cubed-dark-color: #18150f;
}

.content {
  margin: 0 auto;
  max-width: 1250px;
  width: 98%;
}

.doc-content {
  margin: 0 auto;
  max-width: 600px;
  width: 98%;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scroll-snap-start {
  scroll-snap-align: start;
}

.scroll-snap-end {
  scroll-snap-align: end;
}

ul {
  list-style-position: inside;
}

a:not(.link-button) {
  color: var(--cubed-main-color);

  &:hover {
    filter: opacity(75%);
  }
}

body {
  background-color: var(--cubed-dark-color);
  color: white;
}

header {
  background-color: var(--cubed-main-color);
  color: var(--cubed-dark-color);
  height: 6rem;

  & .content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    height: 100%;

    & > a {
      height: calc(100% - 2rem);
    }
  }

  & img {
    height: 100%;
    aspect-ratio: 1/1;
    display: block;
  }

  & #title {
    display: block;
  }
}

#index > main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 50;
  
  height: 100vh;
  background-color: var(--cubed-main-color);
  color: var(--cubed-dark-color);

  & #hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;

    & > img {
      width: 250px;
      aspect-ratio: 1/1;
    }

    @media (max-width: 800px) {
      & {
        flex-direction: column;
      }
    }
  }

  & #info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
  }

  & #title {
    & h1 {
      font-weight: 800;
      text-transform: uppercase;
    }
  }

  & #links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;

    & a.link-button {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;

      cursor: pointer;

      padding: 0.75rem;
      border-radius: 5px;

      background-color: var(--cubed-dark-color);
      color: white;

      text-decoration: none;
      text-transform: uppercase;
      user-select: none;
      font-weight: bolder;

      box-shadow: 0 3px 5px -5px rgba(0, 0, 0, 0.349);
      transition: transform 0.15s;

      /* Barb Arrow 🡠 🡢 🡡 🡣 🡤 🡥 🡦 🡧 */
      &:hover {
        --arrow-up: "🡥";
        --arrow-down: "🡦";

        --tooltip: flex;

        box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.466);
        transform: scale(102.5%);
        z-index: 100;
      }

      & img {
        aspect-ratio: 1/1;
        width: 1.5rem;
      }

      & .arrow {
        aspect-ratio: 1/1;
        width: 1.5rem;

        &::before {
          position: absolute;
          right: 0.25rem;
        }

        &.up::before {
          content: var(--arrow-up);
        }

        &.down::before {
          content: var(--arrow-down);
        }
      }
    }

    & #discord {
      background-color: #5865F2;
      background: linear-gradient(to right, #5865F2 0%, #6f57b3 100%);

      &:hover {
        background: linear-gradient(to left, #5865F2 0%, #6f57b3 100%);
      }
    }

    & #patreon {
      background-color: #fc674d;
      background: linear-gradient(to right, #fc674d 0%, #ff527d 100%);

      &:hover {
        background: linear-gradient(to left, #fc674d 0%, #ff527d 100%);
      }
    }

    & #ip {
      background: linear-gradient(to right, var(--cubed-dark-color) 0%, #663914 100%);

      &:hover {
        background: linear-gradient(to left, var(--cubed-dark-color) 0%, #663914 100%);
      }
    }

    & .tooltip {
      position: absolute;
      top: calc(95%);
      left: 0;

      display: var(--tooltip, none);
      justify-content: center;
      align-items: center;

      width: 100%;

      & p {
        display: block;
        padding: 0.25rem;

        background-color: white;
        color: var(--cubed-dark-color);

        font-size: 0.5rem;
      }
    }
  }
}

#scroll-down {
  scroll-snap-align: end;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 50vh;
  width: 90vw;
  pointer-events: none;
}

footer {
  position: sticky;
  bottom: 0;
  
  color: white;
  padding: 2rem;

  & :is(p, li) {
    font-size: 0.8rem;
  }

  & a {
    font-weight: bold;
  }

  & .content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;

    @media (max-width: 1250px) {
      & {
        display: flex;
        flex-direction: column;
        max-width: 1000px;
        width: fit-content;
        margin: 0 auto;
      }

      & #disclaimer {
        width: fit-content;
      }
    }
  }

  & #disclaimer {
    text-transform: uppercase;
    padding: 0.5rem;
    border: 2px solid white;
    border-radius: 5px;

    & p {
      font-size: 0.66rem;
    }
  }
}

.terms {

  & li > * {
    display: inline;
  }

  & article {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;

    & table {
      border-spacing: 1rem;
    }
  }
}
