/* Make whole title clickable */
.menu_controls .title {
  cursor: pointer;
}

.hamburger-hitbox {
  position: absolute;

  /* center around icon */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 80px;
  height: 80px;

  background: transparent;

  z-index: 9999;
  cursor: pointer;
}

.menu_controls .title i {
  position: relative;
  z-index: 1;
}

.menu_controls .title {
  position: relative; /* 🔥 REQUIRED */
}



.map_pointer_circle {
  position: relative;
  width: 10px;
  height: 10px;
  background-color: #2FB7DA; /* Aqua */
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 6px 2px rgba(47,183,218,0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.map_pointer_circle:hover,
.map_pointer_circle:focus {
  transform: scale(1.6);
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 10px 4px rgba(47,183,218,0.85); 
}

.map_pointer_circle.active {
  background-color: #1F3A5F;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 12px 4px rgba(31,58,95,0.9); 
}

.map_pointer_circle::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}

.map_pointer_circle,
.map_pointer_circle::before {
  pointer-events: auto;
}



/* Use block labels so they stack nicely */
.leaflet-control-layers-base label {
  display: block;
}

/* Hide original text but keep it in flow */
.leaflet-control-layers-base label span span {
  font-size: 0;
  color: transparent;
}

/* 1st base layer (Street) */
.leaflet-control-layers-base label:nth-child(1) span span::after {
  content: "Kartverket";
  font-size: 12px;
  color: #1F3A5F;
}

/* 2nd base layer (Satellite) */
.leaflet-control-layers-base label:nth-child(2) span span::after {
  content: "Satellitt";
  font-size: 12px;
  color: #1F3A5F;
}


/* Hide Partial row ALWAYS */
.score-item:has(#score_partial) {
  display: none !important;
}

/* Hide Partial ring */
.score-ring-container-partial {
  display: none !important;
}

/* Hide Partial ring */
#learning_score .score-ring-container-partial {
  display: none !important;
}

.score-title {
  font-size: 18px;
}

.score-title::first-letter {
  margin-right: 6px;
}


.easter-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  pointer-events: none;
}

/* Base emoji styling */
.easter-emoji {
  display: inline-block;
  margin-right: 6px;
}

/* Bigger icon in modal */
.easter-emoji.large {
  font-size: 42px;
  margin-right: 0;
}

/* Center modal icon nicely */
.learning-intro-icon {
  text-align: center;
  margin-bottom: 10px;
}

/* Optional: subtle animation */
.easter-emoji.large {
  animation: bounce 1.8s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

#submit-eggs {
  background: #ffb7b2;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

#done-msg {
  margin-top: 8px;
  font-size: 14px;
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#learning_score {
  pointer-events: auto !important;
}

#submit-eggs {
  pointer-events: auto !important;
  cursor: pointer;
}




/* Main container */
#learning_score .score-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  max-width: 260px;
}

/* Title */
.score-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Subtitle row */
.score-item {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Dot */
.score-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffb7b2 !important;
  margin-right: 6px;
}

/* Donut ring softer */
.score-ring-container-global .donut-bg {
  stroke: #ffe3e0 !important;
}

.score-ring-container-global .donut-fill {
  stroke: #ffb7b2 !important;
}

/* Button */
#submit-eggs {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ffb7b2, #ffd1b3);
  color: #333;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
}

/* Hover */
#submit-eggs:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 183, 178, 0.4);
}

/* Disabled (after submit) */
#submit-eggs:disabled {
  background: #e6a9a5;
  color: #555;
  cursor: default;
  box-shadow: none;
}

/* Success message */
#done-msg {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  color: #333;
  animation: fadeIn 0.4s ease;
}

/* Small animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Egg icon center nicer */
.easter-icon {
  font-size: 20px;
}

/* Optional: make whole card float nicer */
#learning_score {
  transform: translateY(-5px);
}

.easter-egg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  pointer-events: none;
  animation: egg-bounce 1.6s infinite ease-in-out;
}

@keyframes egg-bounce {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -60%) scale(1.1);
  }
}

