/* ========== BASIS ========== */
html,
body {
  background-color: #eef3f7 !important;
  font-family: "Segoe UI", sans-serif;
  color: #333;
  margin: 0;
  padding: 0.5rem;
}

/* ========== CONTAINERS ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container_copyright {
  color: dodgerblue;
}

/* ========== KAARTEN ========== */

.card {
  background-color: #f0fff0 !important;
  color: #333;
  border: 2px solid #a8d5ba;
  border-radius: 12px;
  box-shadow: inset 0 0 12px #b6f7b6, inset 0 0 4px #ffffffaa;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}

.card2 {
  background: linear-gradient(to bottom, #fbeee6, #f1d3c2);
  color: #5d4037;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.2rem;
  border-radius: 12px;
  border: 2px solid #e0c7b7;
  box-shadow: inset 0 0 12px #f7d5c3, inset 0 0 4px #ffffff88;
  text-align: center;
}

.card:hover {
  transform: translateY(-2px);
}

.card h5,
.card h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #004466;
  margin-bottom: 0.5rem;
}

.card hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, #ffc107, transparent);
}

.card i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #006699;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .card {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .card i {
    font-size: 1.2rem;
  }
}

/* ========== POPUP EN MODAL ========== */
.popup,
.forcast,
.uv {
  border-radius: 8px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 90vw;
  z-index: 1000;
}

.modal-content {
  background-color: #fffaf5;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background-color: #e3f2fd;
  border-bottom: 1px solid #b3d7ff;
}

.btn-close {
  filter: none;
}

/* ========== BUTTONS ========== */
button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0056b3;
}

/* ========== NAAR BOVEN KNOP ========== */
#naarBovenKnop {
  position: fixed;
  bottom: 20px;
  /*  right: 8px; */
  right: clamp(8px, 1vw, 32px);
  z-index: 999;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none;
  transition: opacity 0.3s ease;
}

#naarBovenKnop:hover {
  background-color: #0056b3;
}

/* ========== DONKER MODUS ========== */
html.dark-mode,
body.dark-mode {
  background-color: #121212 !important;
  color: #e0e0e0;
}

html.dark-mode .card {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #333 !important;
  box-shadow: inset 0 0 12px #2a2a2a, inset 0 0 4px #444;
}

html.dark-mode .card2 {
  background: none !important;
  background-color: #242424 !important;
  color: #ffcc00 !important;
  border-color: #444 !important;
  box-shadow: inset 0 0 12px #3b3b3b, inset 0 0 4px #555;
}

html.dark-mode .card3,
html.dark-mode .card4,
html.dark-mode .card5 {
  background-color: #242424 !important;
  color: #ffcc00 !important;
}

html.dark-mode h5,
html.dark-mode h6 {
  color: #ffc107;
}

html.dark-mode hr {
  background: linear-gradient(to right, #444, transparent);
}

html.dark-mode i {
  color: #66ccff;
}

html.dark-mode .popup,
html.dark-mode .forcast,
html.dark-mode .uv {
  background-color: #2c2c2c;
  color: #f1f1f1;
  border-color: #555;
}

html.dark-mode .feest-text,
html.dark-mode .info-icon,
html.dark-mode .footnote-text,
html.dark-mode .footnoteA-text,
html.dark-mode .footnoteB-text {
  color: #ffcc00 !important;
}

html.dark-mode .modal-content {
  background-color: #2c2c2c;
  color: #f1f1f1;
}

html.dark-mode .modal-header {
  background-color: #444;
  border-bottom: 1px solid #666;
}

html.dark-mode .btn-close {
  filter: invert(1);
}

html.dark-mode #naarBovenKnop {
  background-color: #444;
  color: #ffc107;
}

html.dark-mode #naarBovenKnop:hover {
  background-color: #666;
}
@media (prefers-color-scheme: dark) {
  html:not(.light-mode) .card {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
    box-shadow: inset 0 0 12px #2a2a2a, inset 0 0 4px #444;
  }

  html:not(.light-mode) .card2 {
    background-color: #242424 !important;
    color: #ffcc00 !important;
    border-color: #555 !important;
  }

  html:not(.light-mode) #naarBovenKnop {
    background-color: #444;
    color: #ffc107;
  }

  html:not(.light-mode) #naarBovenKnop:hover {
    background-color: #666;
  }
}
