html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
html,
body {
  user-select: none;
  -webkit-user-select: none; /* For Safari and older Chrome */
  -moz-user-select: none; /* For Firefox */
  -ms-user-select: none; /* For IE/Edge */
}

#back-arrow {
  display: block;
  font-family: "Inconsolata", monospace;
  font-weight: 700;
  font-size: 2rem;
  cursor: pointer;
  margin-top: 0rem; /* Pulls arrow closer to h1 */
  /* No margin: 0 auto; */
  /* No text-align: center; */
  /* No width: fit-content; */
}

#bottom {
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgb(255, 255, 255);
  position: fixed;
  z-index: 1;
  visibility: hidden;
}
#top {
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgb(255, 255, 255);
  position: fixed;
  z-index: 2;
  visibility: hidden;
}

h1 {
  font-family: "Inter", sans-serif;
  font-weight: 600; /* Semibold */
  font-style: normal;
  font-size: 10rem;
}

h1 {
  margin-bottom: -0.1em;
}

#menu {
  margin-top: 0.2rem; /* Adjust this value to control how low the menu appears */
}

.nav-link {
  font-family: "Inconsolata", monospace;
  font-weight: 400; /* or 700 for bold */
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 0 6px 4px 0; /* optional: spacing between links */
  font-size: 1.5rem;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.main-text {
  font-family: "Inconsolata", monospace;
  font-weight: 500; /* or 700 for bold */
  background: none;
  border: none;
  color: inherit;
  cursor: default;
  padding: 0;
  margin: 0 4px 4px 0; /* optional: spacing between links */
  font-size: 1.5rem;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
.mini-text {
  font-family: "Inconsolata", monospace;
  font-weight: 500; /* or 700 for bold */
  background: none;
  border: none;
  color: #767676;
  cursor: default;
  padding: 0;
  margin: 0 4px 4px 0; /* optional: spacing between links */
  font-size: 1rem;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
#about-header {
  display: flex;
  align-items: center; /* Vertically centers arrow and text */
  gap: 1rem; /* Space between arrow and text */
  margin-bottom: 2rem; /* Space below the header */
}

/* Optional: Remove focus outline for cleaner look */
.nav-link:focus {
  outline: none;
}
.nav-link:hover {
  color: #0074d9; /* or any color you like */
  text-decoration: underline wavy;
}

/* new text stuff */
#main-container {
  display: flex;
  align-items: stretch; /* This is the key! */
  margin-top: 3rem;
  margin-left: 0.74rem;
}

#menu {
  min-width: 220px; /* Adjust width as needed */
}

.vertical-line {
  border-left: 2px solid #ccc;
  margin: 0 2rem;
  align-self: stretch; /* This makes the line fill the container height */
  height: auto; /* Let the flexbox handle the height */
}

#content-area {
  flex: 1;
  /* Optional: for vertical alignment and spacing */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 1.5rem; /* space between images */
  margin-top: 2rem;
  padding-bottom: 1.5rem; /* Adds space below the last row */
  padding-right: 1rem; /* space on the right side */
  box-sizing: border-box; /* ensures padding doesn't break layout */
}

.book-grid img {
  width: 100%;
  aspect-ratio: 2/3; /* Typical book cover ratio, adjust as needed */
  object-fit: cover;
  border-radius: 8px; /* optional: rounded corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* optional: subtle shadow */
  background: #f5f5f5; /* fallback background */
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); /* smooth pop */
  will-change: transform;
  cursor: default;
}

.book-grid img:hover {
  transform: scale(1.02); /* slightly larger on hover */
  z-index: 2;
}

#main-heading {
  display: inline-block;
  margin-bottom: -0.1em;
  padding: 0;
}

/* Typewriter effect for default message */
#typewriter-text {
  display: inline-block;
  border-right: 2px solid #222;
  white-space: pre;
  font-family: "Inconsolata", monospace;
  font-size: 1.5rem;
  animation: blink-cursor 0.8s steps(1) infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: #222; }
  50% { border-color: transparent; }
}

.hide-cursor {
  border-right: none !important;
  animation: none !important;
}


/*If you want the divider to disappear or change on mobile, you can add:

@media (max-width: 700px) {
  #main-container {
    flex-direction: column;
  }
  .vertical-line {
    display: none;
  }
}
*/
