* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Helvetica Neue", "Roboto", "Work Sans", Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
}

html {
  /* font-size: clamp(1rem, 0.6vw + 0.9rem, 1.125rem); */
  font-size: 1rem;
  line-height: 1.5;
  color: black;
  scrollbar-gutter: stable;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Rounded", "Arial Rounded", "AG Book Rounded", "Nunito", "Inter", "Helvetica Neue", "Roboto", "Work Sans", Arial, sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 700;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.4rem;
}

h4 {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
}

p {
  /* font-size: clamp(1rem, 0.5vw + 0.8rem, 1.25rem); */
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1em;
}

a:link {
  color: black;
  background-color: white;
  text-decoration: none;
}

a:visited {
  color: #666;
}

a:hover, a:active {
  text-decoration: underline;
}

/* Slideshow background */
.slideshow {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: #FFEE00; /* default background */
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 69vw;
  height: 100%;
  background: #FFEE00;
  padding: 1rem;
  display: flex;
  justify-content: flex-end; /* push content to the right */
  z-index: 50;
  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

/* hide it when not in use */
.home-content.hidden {
  display: none;
}

.home-content-text {
  pointer-events: auto; /* allow selection/clicks */
  user-select: text;    /* make text selectable */
  margin-right: 5vw;
  max-width: 50vw;
  text-align: left;
  line-height: 1.2;
}

.home-content-text h2 {
  margin-top: 15%;
}

.short-bio {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1rem;
}

summary {
  display: inline-block;
  cursor: pointer;
  margin-bottom: 0.5rem;
  list-style: none; /* removes the default arrow */
  position: relative;
  font-style: italic;
  margin-left: 1em;
  font-size: 1rem;
}

/* Hide the original summary text */
summary span {
  visibility: hidden;
}

/* Add other text instead */
summary::before {
  content: "Read more  ";
  visibility: visible;
  background-color: white;
}

/* When opened, change the label */
details[open] summary::before {
  content: "Read less  ";
}

details p {
  margin-top: 0.1rem;
}

.hilite {
  font-weight: 600;
}

/* Menu */
.menu-container {
  position: absolute;
  top: 0;
  left: 40px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 2rem 0;
  z-index: 10;
}

.menu-item {
  margin-bottom: 60px;
  margin-right: 30px;
  margin-left: 20px;
  position: relative;
}

.menu-item img {
  width: 25%;  /* this is the width of the menu strip */
  display: block;
  cursor: pointer;
}

/* Highlight border for active menu item */
.menu-item.active img {
  outline: 5px solid #FFEE00;
  outline-offset: -5px;       /* keeps it inside the image */
}

/* Glow animation */
@keyframes softGlow {
  0%   { outline: 10px solid rgba(255,255,255,0); }
  50%  { outline: 10px solid rgba(255,255,255,1); }
  100% { outline: 10px solid rgba(255,255,255,0); }
}

.menu-hint-glow img {
  animation: softGlow 3s ease-in-out infinite;
}

/* Info box */
.info-box {
  position: absolute;
  top: 0;
  left: 25%; /* attaches to the right of the menu item */
  margin-left: 0px;
  width: 68%; /* should follow the width of the menu strip */
  max-width: 80ch;
  background: #FFEE00;
  border: none;
  display: none; /* hidden by default */
  padding: 1rem;
  z-index: 20;
}

/* Hide scrollbars completely (for menu) */
.menu-container::-webkit-scrollbar {
  display: none;
}
.menu-container {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}

/* Navigation buttons */
.nav-button {  /* outer transparent wrapper */
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 400px;
  border: none;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-button-center {
  width: 1.6rem;
  height: 1.6rem;
  background-color: #FFEE00;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-button-center:hover,
.nav-button-center:active {
  outline: 5px solid #FFEE00;
}

.nav-button img {
  width: 1.4rem;
  height: 1.4rem;
}

.prev-btn { left: 0px; }
.next-btn { right: 0px; }

.dots-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2vh;
  z-index: 5000;
}

.dot {
  width: 2vh;
  height: 2vh;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #FFEE00;
}

/* ===== Touch Devices (phones/tablets) ===== */
@media (hover: none) and (pointer: coarse) {
  html {
    font-size: clamp(1rem, 0.2rem + 3.2vw, 2.2rem);
  }

  p, h3, h4 {
    font-size: clamp(1rem, 0.2rem + 3.2vw, 2.2rem);
    line-height: 1.2;
  }

  h4 {
    font-size: clamp(1.2rem, 0.4rem + 3.2vw, 2.4rem);
  }

  h1, h2, h3, h4 {
    letter-spacing: 0.02em;
  }

  .home-content-text {
    max-width: 65vw;
    margin-right: 0;
  }

  .info-box h3 {
    font-weight: 700;
  }

  .menu-item.active img {
    outline: 10px solid #FFEE00;
    outline-offset: -10px;       /* keeps it inside the image */
  }

  .nav-button-center {
    width: calc(4vh + 0.6rem);
    height: calc(4vh + 0.6rem);
  }

  .nav-button img {
    width: calc(3vh + 0.5rem);
    height: calc(3vh + 0.5rem);
  }
}