/* General Styles */
:root {
  --blue: #004080;
  --blue-dark: #003060;
  --accent: #0066cc;
  --page-bg: #f9f9f9;
}

* { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: var(--page-bg);
  color: #333;
}

/* Headings & text */
h1,h2 {
  text-align: left;
  margin: 30px 0 15px;
}
p {
  text-align:left;
  margin:10px auto;
  max-width:600px;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue);
  padding: 10px;
}

.nav-left {
  flex-shrink: 0; /* always visible */
  z-index: 10;
}

.lang-btn {
  display: inline-block;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
}

.lang-btn:hover { background: #004d99; }

.nav-right {
  flex-shrink: 0;
  position: relative;
}

#menu-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 8px;
}

#menu-toggle:focus { outline:2px solid #fff8; }

#nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 8px;
  background: var(--blue);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  padding: 6px 0;
  min-width: 160px;
  width: max-content;
  display: none;
  z-index: 9;
}

#nav-menu.open { display: block; }

#nav-menu li { list-style: none; }

#nav-menu a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

#nav-menu a:hover { background: var(--blue-dark); }

/* RESPONSIVE MEDIA */
.responsive-media {
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Section separation */
section {
  padding: 20px 12px;
  border-radius: 8px;
  margin: 10px 12px;
}

section:nth-of-type(odd) { background: #ffffff; }
section:nth-of-type(even) { background: #f1f5f9; }

/* Footer */
.site-footer {
  background: #002b50;
  color: #fff;
  text-align: center;
  padding: 50px 20px 30px;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

.footer-name {
  font-size: 28px;
  font-weight: bold;
  text-transform: lowercase;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0.9;
}

.footer-qr {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.footer-note {
  font-size: 14px;
  opacity: 0.7;
  text-align: center;
}


/* --------------------------
   Student Voices Section
---------------------------*/
.voice-grid {
  display: flex;
  flex-direction: column;
  align-items: center;    /* center the whole list */
  gap: 14px;              /* space between buttons */
  margin: 0 auto;
}

.voice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85%;              /* was 90%, reduced by 20% */
  max-width: 400px;
  margin: 0 auto;          /* centers each button */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s ease, transform 0.1s ease;
}

.voice-item:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
}

.voice-name {
  font-weight: bold;
  font-size: 15px;
  text-align: left;
}

/* Play button using ASCII symbols > / II */
.play-btn {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  line-height: 36px;
  text-align: center;
}

.play-btn.playing {
  background: #004080;
}


/* --------------------------
   Mobile adjustments
---------------------------*/
@media (max-width: 480px) {
  nav {
    flex-wrap: wrap;
  }
  .nav-left {
    order: 1;
    margin-bottom: 5px;
  }
  .nav-right {
    order: 2;
  }
  #nav-menu {
    right: 0;
    left: auto;
  }
}


/* --------------------------
   NZ Treasure Hunting Game
---------------------------*/
.treasure-area {
  margin: 20px auto;
  max-width: 600px;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  line-height: 1.8;
  user-select: none; /* avoids accidental highlight */
  font-size: 20px;
  letter-spacing: 2px;
  word-break: break-word;
}

.treasure-letter-block {
  display: block;
  margin-top: 10px;
  font-family: monospace;
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1.8;
}

/* hidden picture */
.treasure {
  width: 0.6em;     /* about the size of a letter */
  height: 0.6em;
  display: inline-block;
  background: url("treasure.png") no-repeat center/contain;
  vertical-align: text-bottom;
  opacity: 0.65;    /* blends in better */
}


/* --------------------------
    Extra form styling
---------------------------*/
.enrol-form {
  max-width: 480px;
  margin: 20px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.enrol-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.enrol-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.enrol-form button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.enrol-form button:hover {
  background: #004d99;
}

/* Smaller screens */
@media (max-width: 480px) {
  .treasure-area,
  .treasure-letter-block {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .treasure {
    width: 18px;
    height: 18px;
  }
}
