@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@400&family=Lobster&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #781E2A;
  background-image: url('../images/background.png');
  background-size: 500px 250px;
  background-position: top left;
  background-repeat: repeat;
}

#map {
  position: absolute;
  inset: 0;
}

.santa-marker {
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.45));
}

.leaflet-container {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#noscript-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 16px system-ui, sans-serif;
  color: #234;
  padding: 2rem;
  text-align: center;
}

.navbar-logo {
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 75%;
  height: auto;
  max-width: 800px;
}

.top-navbar {
  position: fixed;     /* Keeps the bar fixed at the top while scrolling */
  top: 0;              /* Aligns it perfectly to the very top edge */
  left: 0;             /* Aligns it to the left edge */
  width: 100%;         /* Forces it to stretch completely across the screen */
  height: 100px;        /* Sets the thickness/height of your bar */
  background-color: #87c38f; /* Dark gray color (change this to your preference) */
  box-shadow: 0 15px 0px rgba(0,0,0,0.2); /* Optional: adds a subtle shadow below the bar */
  z-index: 1000;       /* Ensures the bar stays on top of all other page content */
  border-radius: 0 0 15px 15px;
  outline-style: solid;
  outline-width: 6px;
  outline-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: white;
  background: #226f54;
  border: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  font-family: 'Arvo', serif;
  font-size: 22px;
  cursor: pointer;
}

.leaflet-control-zoom a:hover {
  background: #781E2A;
  filter: none;
}

.leaflet-control-zoom {
  border: 3px solid #87c38f !important;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}

.leaflet-control-zoom a:first-child {
  border-radius: 25px 25px 0 0 !important;
  border-bottom: 2px solid #87c38f;
}

.leaflet-control-zoom a:last-child {
  border-radius: 0 0 25px 25px !important;
}

.index-page {
  min-height: 100vh;
  margin: 0;
  background-color: #781E2A;
  background-image: url('../images/background.png');
  background-size: 500px 250px;
  background-position: top left;
  background-repeat: repeat;
  padding-top: 70px; 
}

.quiz-page {
  min-height: 100vh;
  margin: 0;
  background-color: #781E2A;
  background-image: url('../images/background.png');
  background-size: 500px 250px;
  background-position: top left;
  background-repeat: repeat;
  padding-top: 70px; 
}

.index-title {
  font-family: 'Lobster', cursive;
  text-align: center;
  margin: 0;
  padding: 50px 0;
  color: #FFFFFF;
  font-weight: 400;
  font-size: 300%;
  -webkit-text-stroke: 1px #d0d0d0;
}

#find-santa {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  padding: 0;
  border: 4px solid #87c38f;
  color: white;
  background: #781E2A;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: 0.2s ease;
}

#find-santa:hover {
  background: #226f54;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
}

#find-santa:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

#find-santa:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.tracker-button {
  display: block;
  margin: 0 auto;
  font-family: 'Arvo', serif;
  font-size: 18px;
  color: white;
  background: #226f54;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  cursor: pointer;
  transition: 0.2s ease;
}

.tracker-button:hover {
  opacity: 0.85;
}

.quiz-container {
  width: min(680px, calc(100% - 32px));
  margin: 40px auto;
  padding: 28px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  border: 5px solid #87c38f;
  border-radius: 8px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2);
}

.quiz-title {
  margin: 0 0 24px;
  font-family: 'Lobster', cursive;
  color: #781E2A;
  text-align: center;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 400;
}

.quiz-question {
  margin: 0 0 16px;
  padding: 16px;
  border: 2px solid #87c38f;
  border-radius: 6px;
}

.quiz-question legend {
  padding: 0 8px;
  font-family: 'Arvo', serif;
  color: #781E2A;
  font-weight: 700;
}

.quiz-question label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: 'Arvo', serif;
  color: #234;
  cursor: pointer;
}

.quiz-question input {
  width: 18px;
  height: 18px;
  accent-color: #226f54;
}

.quiz-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.quiz-reset {
  border: 2px solid #781E2A;
  border-radius: 25px;
  padding: 12px 25px;
  background: transparent;
  color: #781E2A;
  font-family: 'Arvo', serif;
  font-size: 18px;
  cursor: pointer;
}

.quiz-reset:hover {
  background: #781E2A;
  color: white;
}

.quiz-result {
  min-height: 24px;
  margin: 18px 0 0;
  text-align: center;
  font-family: 'Arvo', serif;
  font-size: 18px;
  color: #226f54;
}

.home-button {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid #781E2A;
  border-radius: 25px;
  background: white;
  color: #781E2A;
  font-family: 'Arvo', serif;
  font-size: 16px;
  text-decoration: none;
  transition: 0.2s ease;
}

.home-button:hover {
  background: #781E2A;
  color: white;
}

.tracker-home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  min-height: 48px;
  background: #87c38f;
  border-color: #781E2A;
  color: #781E2A;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.tracker-home-button:hover {
  background: white;
}

.quiz-home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  min-height: 48px;
  background: #87c38f;
  border-color: #781E2A;
  color: #781E2A;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.quiz-home-button:hover {
  background: white;
}

.index-page {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 32px 16px;
}

.index-container {
  width: min(760px, 100%);
}

.index-card {
  box-sizing: border-box;
  padding: clamp(20px, 4vw, 36px);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 5px solid #87c38f;
  border-radius: 8px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.2);
}

.index-logo {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: 0 auto;
}

.index-tagline {
  margin: 4px 0 20px;
  font-family: 'Lobster', cursive;
  color: #781E2A;
  font-size: clamp(22px, 4vw, 30px);
}

.index-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.index-action {
  min-height: 112px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  font-family: 'Arvo', serif;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.index-action:hover {
  filter: none;
}

.index-action-icon {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.index-action:hover .index-action-icon {
  transform: scale(1.08);
}

.index-action-primary {
  width: 100%;
  min-height: 96px;
  justify-content: flex-start;
  padding: 16px 24px;
  color: white;
  background: #226f54;
  border: 0;
  border-radius: 25px;
  box-shadow: 0 6px 0 rgba(34, 111, 84, 0.45);
}

.index-action-primary:hover {
  background: #781E2A;
  outline: 3px solid #f4c95d;
  outline-offset: -7px;
}

.index-action-primary:hover .index-action-icon {
  background: rgba(244, 201, 93, 0.28);
}

.index-action-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(34, 111, 84, 0.45);
}

.index-action-primary .index-action-icon {
  flex-basis: 58px;
  height: 58px;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  font-size: 36px;
}

.index-action-primary strong {
  font-size: 24px;
}

.index-action-primary small {
  font-size: 14px;
}

.index-action-secondary {
  color: #781E2A;
  background: white;
  border: 3px solid #781E2A;
  box-shadow: 0 6px 0 rgba(120, 30, 42, 0.18);
}

.index-action-secondary:hover {
  color: #fff;
  background: #781E2A;
  border-color: #781E2A;
  outline: 3px solid #f4c95d;
  outline-offset: -7px;
}

.index-action-secondary:hover .index-action-icon {
  border: 0;
  color: #781E2A;
  background: rgba(244, 201, 93, 0.28);
}

.index-quiz-card {
  width: 100%;
  min-height: 96px;
  margin-top: 14px;
}

.index-action-icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid currentColor;
}

.index-action-secondary .index-action-icon {
  border: 0;
  color: #781E2A;
  background: #87c38f;
}

.index-action strong,
.index-action small {
  display: block;
}

.index-action strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.index-action small {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.86;
}


.placeholder-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 3px solid #87c38f;
}

.placeholder-section h2 {
  margin: 0 0 16px;
  font-family: 'Lobster', cursive;
  color: #781E2A;
  font-size: 28px;
  font-weight: 400;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.placeholder-card {
  min-height: 150px;
  box-sizing: border-box;
  padding: 18px 12px;
  border: 2px dashed #87c38f;
  border-radius: 8px;
  background: rgba(135, 195, 143, 0.12);
}

.placeholder-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #781E2A;
  color: white;
  font-family: 'Arvo', serif;
  font-size: 20px;
}

.placeholder-card h3 {
  margin: 0 0 6px;
  font-family: 'Arvo', serif;
  color: #781E2A;
  font-size: 16px;
}

.placeholder-card p {
  margin: 0;
  font-family: 'Arvo', serif;
  color: #234;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .index-card {
    padding: 18px 14px;
  }

  .index-action-primary {
    min-height: 84px;
    padding: 12px 16px;
  }

  .index-action-primary strong {
    font-size: 20px;
  }

  .index-action-primary .index-action-icon {
    flex-basis: 52px;
    height: 52px;
    font-size: 32px;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .index-action,
  .index-quiz-card {
    min-height: 96px;
  }

  .placeholder-card {
    min-height: 120px;
  }
}