/* ========== FONT FACES ========== */
@font-face {
  font-family: "Jacquarda Bastarda";
  src: url("fonts/JacquardaBastarda9-Regular.ttf");
}

@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond-Light.ttf") format("truetype");
}

/* ========== GLOBAL ELEMENT STYLES ========== */
html {
  scroll-padding-top: 1.5rem;
  scroll-behavior: smooth;
}

body {
  background: #4d4851;
  background-image: linear-gradient(180deg, #67489c 19%, hsl(0, 0%, 0%) 100%);
  background-attachment: fixed;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0vh 10vw 10vh 10vw;
  font-size: 1.7rem;
  box-sizing: border-box;
  isolation: isolate;
  cursor: url("big-pointer-cursor.png"), auto;
  font-family: "Apple Garamond";
  color: #b2b2b2;
  justify-content: center;
  align-items: center;
  margin-left: 6rem;
}

header {
  position: relative;
  z-index: -1;
  margin-left: 6rem;
}

/* Anchor and button interaction */
a,
button {
  cursor: url("big-click-cursor.png") 35 0, pointer;
  z-index: 100;
}

a {
  color: rgb(198, 127, 255);
  text-decoration: none;
}

a:hover {
  transform: scale(1.05);
  color: whitesmoke;
  text-decoration: underline;
}

a:active {
  transform: scale(0.95);
}

button:hover,
.text-button:hover {
  background-color: black;
  color: white;
}

/* Selection */
::selection {
  background: white;
  color: black;
  text-shadow: 0 0 1px black;
}

/* hr */
hr {
  border: none;
  height: 0.5px;
  background-color: rgba(245, 245, 245, 0.771);
}

/* ========== HEADINGS ========== */
h1 {
  text-align: center;
  font-family: "Jacquarda Bastarda";
  line-height: 0.8;
  font-size: 7rem;
  filter: url(#grainy-glow);
  font-weight: 200;
}

h2 {
  text-align: center;
  font-size: 2rem;
  color: #b2b2b2;
  filter: url(#grainy-glow);
  font-weight: bold;
}

h3 {
  margin: 0;
  text-align: left;
  font-size: 1.5rem;
  color: #b2b2b2;
  font-weight: bold;
}

h4 {
  text-align: center;
  font-size: 1rem;
  color: #b2b2b2;
  font-weight: bold;
}

h5 {
  text-align: center;
  font-size: 2rem;
  color: rgb(143, 192, 197);
  font-family: "Jacquarda Bastarda";
  font-weight: 100;
}

/* ========== UTILITIES ========== */
.tag {
  opacity: 0;
  transform: translate(0, 10vh);
  transition: all 1s;
}
.tag.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.notes {
  text-align: center;
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
  color: white;
}

.red-text {
  color: rgb(143, 192, 197);
}

.flashlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle 100px at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.4),
    transparent 80%
  );
  mix-blend-mode: difference;
}

#scrollIndicator {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 8px;
  background: rgba(246, 235, 255, 0.527);
  z-index: 9999;
  transition: width 0.25s ease-out;
}

/* ========== COMPONENT STYLES ========== */

/* MENU */
#menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 180px;
  padding: 20px;
  z-index: 1000;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu li {
  margin-bottom: 20px;
}

#menu a {
  text-decoration: none;
  color: #b2b2b2;
  font-weight: 100;
}

#menu a:hover {
  color: rgb(198, 127, 255);
}

#menu a.active {
  color: rgb(143, 192, 197);
  text-decoration: underline;
}

/* HEADER */
.header {
  background: transparent;
  width: calc(100vw - 6rem);
  z-index: -1;
  position: relative;
  top: 1vh;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(177, 213, 218);
}

/* TEXT BUTTON */
.text-button {
  display: inline-block;
  padding: 0.5em 1em;
  font-size: 1.5rem;
  font-family: "Jacquarda Bastarda";
  color: #b2b2b2;
  text-decoration: none;
  border: 1px solid #b2b2b2;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-align: center;
}

.text-button-container {
  text-align: center;
}

/* BUTTON CLASS */
.button {
  background-color: rgba(215, 207, 231, 0.274);
  color: darkgrey;
  padding: 0px 8px;
  border-radius: 6px;
  display: inline-block;
  text-decoration: none;
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.555);
  color: aqua;
}

/* CHANGING TEXT */
#changingText {
  margin-top: -1rem;
  margin-bottom: 1rem;
  font-size: 3rem;
  height: 7rem;
}

/* IMAGE */
.logo-img {
  display: block;
  margin: 2rem 0;
  height: 80px;
}


/* LINKS CONTAINER */
.links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* CATEGORY SECTIONS */
section.category {
  min-height: 30rem;
  max-height: 50rem;
  overflow-y: auto;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 768px) {

  html {
    scroll-padding-top: 4rem;
  }

  .mobile-break {
    display: block;
  }

  h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-top: 1vh;
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  header {
    position: relative;
    z-index: -1;
  }

  body {
    font-size: 1.2rem;
    padding: 5vh;
    position: relative;
    z-index: 0; /* make sure it's below */
    margin-left: 0rem;
  }

  #menu {
    position: fixed;
    background: linear-gradient(to bottom, purple, transparent);
    top: 0;
    left: 0;
    width: 100vw;
    font-size: 1.1rem;
    height: auto;
    display: flex;
    justify-content: left;
    align-items: center;
    z-index: 9999;
  }

  #menu ul {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    max-width: 100vh;
    margin: 0;
    padding: 0;
  }

  #menu li {
    margin: 0;
  }

  #menu a {
    /* Optional enhancements for tap targets */
  }

}

/* ========== UNUSED/COMMENTED CODE ========== */
/*
.rainbow-text {
   background-image: radial-gradient(circle, violet, indigo, blue, green, yellow, orange, red);
   -webkit-background-clip: text;
   color: transparent;
}
*/

/* 
img {
  -webkit-filter: grayscale(100%); 
  filter: grayscale(50%);
  height: 80px;
  z-index: -1;
  position: relative;
}
*/

/* 
p {
  color: black;
  -webkit-text-fill-color: black;
  -webkit-text-stroke: 15px white;
  paint-order: stroke fill;
}
*/

/* 
video {
  padding: 20px;
  background-color: white;
  border-radius: 20px;
  box-shadow: rgb(197, 197, 197) 0px 0px 50px 5px;
}
*/