/* MAIN MENU ------------------------------------------------------*/
/* Background overlay */
.menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-modal.visible {
  opacity: .95;
  pointer-events: auto;
}

.menu-content {
  width: 100px;
  background: #000000;
  height: 100%;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2.5rem;
  position: relative;
}

/* Slide-in when visible */
.menu-modal.visible .menu-content {
  transform: translateX(0);
}

/* Menu items */
.menu-items {
  list-style: none;
  padding: 4rem 0 0 0;
  margin: 0;
}

.menu-items li {
  margin: 1.5rem 0;
}

.menu-items a {
  display: block;       /* makes the link fill the width of its parent */
  text-align: left;     /* explicitly left-align text */
  color: #eee;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  padding: 0.2rem 0;    /* optional: adds vertical spacing inside the link */
}

.menu-items a:hover {
  color: #00bfff;
}

/* ADMIN LINK --------------------------------------------  */

.admin-link-container {
  margin-bottom: 0rem;
  display: flex;
  justify-content: center;
}

.admin-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.admin-link:hover {
  text-decoration: underline;
  opacity: 1;
}






/* AUTH VIEW --------------------------------------------  */

/* Login placeholders */
input::placeholder {
  color: #ffffffa2;
  font-style: italic;
}

.auth-view {
  display: none;
  position: absolute;
  top: 200px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.auth-input {
  padding: 1rem;
  font-size: 1rem;
  border: 0px;
  border-radius: 8px;
  width: 16rem;
  margin-bottom: 0.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  outline: none;
}

.button-row {
  display: flex;
  gap: 0.5rem;
}

.auth-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.auth-btn:hover {
  opacity: 0.8;
}

.forgot-password-btn {
  all: unset; /* Resets all default button styles */
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  margin-top: 1rem;
}

.user-info {
  font-size: 0.875rem;
  color: white;
  margin-top: 1rem;
}

.logos-container {
  width: 90%;
  margin-top: auto; /* pushes it to bottom */
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 1rem;
}

.poweredby-logo-img {
  width: 800px;
  height: auto;
  max-width: 100%;
  transition: transform 0.2s ease;
}



/* ABOUT VIEW --------------------------------------------  */

.about-modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 22, 0.8);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s;
}

.about-modal.visible {
  pointer-events: auto;
  opacity: 1;
}

.about-content {
  position: relative;
  z-index: 0;
  background: #00000000;
  color: #f0f0f0cc;
  padding: 2rem;
  width: 100%;
  height: 100%;
  max-width: 600px;
  overflow-y: auto;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.webgl-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center it */
  z-index: 0;
  pointer-events: none;
}

/* main title for the modal, top group */
.about-content h2 {
  color: #d9ff00;
  font-size: 1.2rem;
  margin: 0 0 0.3em 0;
}

/* subtitles inside content */
.about-content h3 {
  color: #d9ff00;
  font-size: 1rem;
  font-weight: normal;
  margin: 1.2em 0 0.2em 0;
}

/* paragraphs / text under headings */
.about-content p {
  margin: 0 0 1em 0;
  line-height: 1.3;
}

.contact-content {
  position: relative; /* make canvas absolute relative to this */
  z-index: 0;         /* keep text on top */
  background: #00000000;
  color: #f0f0f0cc;
  padding: 2rem;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  max-width: 600px;
  overflow-y: auto;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  overflow: hidden;        /* prevent scrollbars */
}

.contact-content h2 {
  color: #d9ff00;
  font-size: 1.2rem;
  margin: 0 0 0.3em 0;
}

/* subtitles inside content */
.contact-content h3 {
  color: #d9ff00;
  font-size: 1rem;
  font-weight: normal;
  margin: 1.2em 0 0.2em 0;
}

/* paragraphs / text under headings */
.contact-content p {
  margin: 0 0 1em 0;
  line-height: 1.3;
}

.contact-content a {
  color: #4cafef;
  text-decoration: none;
}

.content-content a:hover {
  color: #4cafef;
  text-decoration: underline;
}