@font-face {
  font-family: "pokemon-classic";
  src: url("./fonts/pokemon-classic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #ffcb05;
  --secondary-color: #439c4f;
  --background-color: #2c2c2c;
  --accent-color: #ffa217;
  --text-color-light: #fff;
  --text-color-dark: #000;
  --text-color-grey: #4b4b4b;
  --bg-color-red: #a52114;
  --bg-color-orange: #c1451f;
  --bg-color-yellow: #f2c96f;
  --bg-color-brown: #592402;
  --font-family: "pokemon-classic", sans-serif;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background-color);
}

canvas {
  display: block;
}

h1,
h2,
h3 {
  color: var(--text-color-light);
  font-family: var(--font-family);
  text-align: center;
  margin: 1rem 0;
}
p {
  color: var(--text-color-light);
  font-family: var(--font-family);
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 1rem auto;
}

a {
  font-family: var(--font-family);
}

figure {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

figcaption {
  font-family: var(--font-family);
  color: var(--text-color-grey);
  font-size: 0.5rem;
  line-height: 1;
  padding-top: 0.5rem;
  align-self: flex-start;
}

#fox-content {
  padding-bottom: 5rem;
}

.burger {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
}

.burger span {
  width: 100%;
  height: 0.25rem;
  background: var(--text-color-light);
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  z-index: 999;
  background: #1a1a1a;
  color: var(--text-color-light);
  padding-top: 4rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer ul li {
  border-bottom: 1px solid #333;
}

.drawer a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-color-light);
  text-decoration: none;
  transition: background 0.2s ease;
}

.drawer a.link-active {
  background: #ffa217;
}

.drawer a:hover {
  cursor: pointer;
  background: #333;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

body[data-route="/"] {
  background-color: var(--background-color);
  background-image: url("img/fmf_foxden_bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
body[data-route="/foxtree"] {
  background-color: var(--bg-color-orange);
  background-image: url("img/fmf_foxtree_bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
body[data-route="/tetrahedron"] {
  background-color: var(--background-color);
  background-image:
    linear-gradient(rgba(0, 255, 0, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
}
body[data-route="/foxes"] {
  background-color: var(--secondary-color);
  overflow-y: scroll;
  align-items: unset;
}

#foxhome {
  text-shadow: 1px 2px var(--text-color-dark);
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* firefox */
}

#foxhome::-webkit-scrollbar {
  display: none; /* chrome, safari */
}

#foxden,
#foxtree {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#foxden-section,
#foxtree-section {
  position: relative;
  max-width: 600px;
  padding: 0 1rem;
}

.chevron {
  font-family: var(--font-family);
  color: var(--bg-color-yellow);
  font-size: 2rem;
  user-select: none;
  cursor: pointer;
  position: absolute;
}

.chevron-down {
  text-shadow: -1px -2px var(--text-color-dark);
  transform: translateX(-50%) rotate(180deg);
  left: 50%;
}

.chevron-up {
  transform: translateX(-50%) translateY(-100%);
  left: 50%;
}
