body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #111;
  color: white;
  overflow-y: auto;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.glowText {
  padding: 0.2rem 0.5rem;
  color: #0f0;
  /* bright green text */
  border-radius: 4px;
  box-shadow: 0 0 5px #00ff88;
  animation: glowPulse 2s infinite ease-in-out;
  user-select: none;
}

kbd {
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: #111;
  /* dark background */
  color: #0f0;
  /* bright green text */
  border-radius: 4px;
  box-shadow: 0 0 5px #00ff88;
  animation: glowPulse 2s infinite ease-in-out;
  user-select: none;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88;
  }

  50% {
    box-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88;
  }

  100% {
    box-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88;
  }
}

h1 {
  font-size: clamp(1rem, 3vw + 2vh, 4rem);
  text-align: center;
}

h4 {
  font-size: clamp(1rem, 1vw + 1.5vh, 2rem);
  text-align: center;
}

p {
  font-size: clamp(0.4rem, 0.5vw + 1.5vh, 1rem);
}

.centered-text {
  text-align: center;
}

h1,
h4,
p {
  margin: 0.5rem auto;
  line-height: 1.2;
  max-width: 90vw;
}

.page {
  box-sizing: border-box;
  min-height: 100vh;
  padding-left: 20px;
  padding-top: 10px;
}

/* Make the container a grid */
.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.button-grid>* {
  flex: 1 1 150px;
  /* basis 150px, grow and shrink */
  min-width: 150px;
}

/* Make <a> look like buttons */
.button-link {
  display: inline-block;
  padding: 1rem 1.5rem;
  text-align: center;
  background-color: rgb(70, 165, 229);
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: bold;
  /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
  transition: transform 0.5s ease, background-color 0.5s ease;
  margin: 0.5rem;
  max-width: 20vw;
  margin: auto;
}

/* Hover effect */
.button-link:hover {
  background-color: rgb(42, 103, 143);
  transform: scale(1.1);
  /* pop effect */
  z-index: 10
}

.menu-wrapper {
  display: flex;
  flex-wrap: nowrap;
  /* Don't wrap items */
  overflow-x: auto;
  /* Allow side scroll */
  -webkit-overflow-scrolling: touch;
  /* Smooth scroll on iOS */
  white-space: nowrap;
  padding: 10px;
  background-color: rgba(72, 19, 232, 0.6);
  scrollbar-width: none;
  /* Hide scrollbar in Firefox */
}

/* So the menu can hide smoothly */
.menu-wrapper {
  position: sticky;
  top: 0;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Specific class for hiding the menu smoothly */
.menu-wrapper.menu-hidden {
  transform: translateY(-100%);
  pointer-events: none;
  /* Optional: disable clicks while hidden */
}

.menu-wrapper::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar in Chrome */
}


.right-buttons-start {
  margin-left: auto
}

main {
  flex: 1;
  text-align: left;
  margin: 0 auto;
  padding: 1rem;
  max-width: 60vw;
}

.site-footer p {
  text-align: center;
  font-size: 0.8rem;
  padding: 10px;
  color: #eee;
}

.hidden {
  display: None;
}

.password-wrapper {
  position: relative;
  display: inline-block;
}

.password-wrapper input {
  padding-right: 2rem;
  /* Space for the eye */
}

.password-wrapper button {
  position: absolute;
  right: 0.2rem;
  top: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
}

#searchResults {
  margin: auto
}