@import url("./_primitives.css");

/* ===================================== */
/* ---------- 1. Normalize ---------- */
/* ===================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

body {
  min-height: 100svh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================== */
/* ---------- 2. Variables ---------- */
/* ===================================== */

:root {
  /* ---------- 2.2 Semantic ---------- */

  /* 2.2.1 Typography */
  /* TODO: Add semantic typography */

  /* 2.2.2 Spacing */
  /* TODO: Add semantic spacing */

  /* 2.2.3 Sizes */
  /* TODO: Add semantic sizes */

  /* 2.2.4 Colors */
  /* TODO: Add semantic colors */

  /* 2.2.5 Borders */
  /* TODO: Add semantic borders */

  /* 2.2.6 Shadows */
  /* TODO: Add semantic shadows */

  /* ---------- 2.3 Semantic Desktop ---------- */
  @media (width >= 48rem) {
    /* TODO: Override desktop semantic tokens */
  }
}

/* ===================================== */
/* ---------- 3. Globals ---------- */
/* ===================================== */

/* ---------- 3.1 Fonts ---------- */
@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-Regular.woff2") format(woff2);
  font-weight: 400;
}

@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-SemiBold.woff2") format(woff2);
  font-weight: 600;
}

@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-Medium.woff2") format(woff2);
  font-weight: 500;
}

body {
  font-family: Poppins;
}
/* ---------- 3.2 Styles ---------- */

body {
  background-color: var(--graphite-700);
}

/* ===================================== */
/* ---------- 4. Layout ---------- */
/* ===================================== */
body {
  display: grid;
  place-items: center;
  padding-inline: var(--space-200);
  padding-block: var(--space-150);
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
}

header {
  grid-area: header;
}

main {
  grid-area: main;
}

/* ===================================== */
/* ---------- 5. Components ---------- */
/* ===================================== */

.category {
  text-align: center;

  .category__title {
    font-size: var(--fs-150);
    font-weight: var(--fw-semibold);
    color: var(--gray-50);
  }

  .category__subtitle {
    font-size: var(--fs-87-5);
    color: var(--gray-300);
  }
}

.quiz {
  color: var(--gray-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-400);
  text-align: center;

  .quiz__question {
    font-size: var(--fs-125);
    font-weight: var(--fw-semibold);
  }

  .quiz__answer-wrapper {
    display: flex;
    flex-direction: column;
    width: var(--size-1625);
    gap: var(--space-50);

    .quiz__answer-box {
      line-height: var(--lh-130);
      padding-block: var(--space-50);
      padding-inline: var(--space-75);
      border: 1px solid var(--gray-450);
      border-radius: var(--br-25);
      background: none;

      .quiz__answer-text {
        font-size: var(--fs-75);
        color: var(--gray-50);
      }
    }
  }
}

.sidebar {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding-block: var(--space-100);
  padding-inline: var(--space-150);
  width: 100%;
  height: 4rem;
  background: linear-gradient(
    to bottom,
    oklch(20% 0.014 250deg),
    oklch(16.5% 0.016 250deg)
  );
}

/* ===================================== */
/* ---- 6. Utilities / Modifiers ---- */
/* ===================================== */

.button-styling {
  margin-block-start: 2.5rem;
  padding-inline: var(--space-150);
  padding-block: var(--space-50);
  color: var(--gray-50);
  background: linear-gradient(180deg, #594ddb 0%, #372f94 100%);
  border-radius: var(--br-150);
  border: none;
}

.button-text-styling {
  letter-spacing: -0.25px;
  font-size: var(--fs-87-5);
  font-weight: var(--fw-medium);
}
