/* Default: DARK MODE */
body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: rgb(150, 150, 150);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  margin: 0;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: center;
  width: min(720px, 92vw);
}

h1 {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  color: rgb(82, 82, 82);
  font-variant-caps: all-small-caps;
  margin-bottom: 20px;
}

/* Inputs */
input {
  padding: 10px;
  margin-right: 10px;
  width: min(360px, 100%);
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #333;
  background: #141414;
  color: #ddd;
}

/* Buttons */
button {
  padding: 10px 15px;
  border: none;
  background: #1f5fa3;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  margin: 5px;
}
button:hover {
  background: #194c83;
}

/* Result-liste */
ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}
li {
  background: #333;
  padding: 10px;
  margin: 5px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-radius: 5px;
  line-height: 1.3;
}
li.total {
  border: 1px solid #1f5fa3;
}

/* Checkbox-størrelse */
input[type="checkbox"] {
  transform: scale(1.3);
}

/* Klikkbar tittel uten å endre farger */
a {
  text-decoration: none;
  color: inherit;
}
a:visited {
  color: inherit;
}
a h1 {
  cursor: pointer;
}

/* Hooks (ikke i bruk nå, men beholdt) */
#checklist-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.checklist-multi {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.checklist-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Fullscreen popup */
#custom-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #332666;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  z-index: 9999;
  text-align: center;
}
#custom-popup.hidden {
  display: none;
}
#timer-display {
  font-size: 3rem;
  font-weight: bold;
  margin: 20px 0;
}

/* --------------------------------------- */
/* LIGHT MODE OVERRIDES (body.light-mode)  */
/* --------------------------------------- */

body.light-mode {
  background-color: #f4f4f4;
  color: #000;
}

body.light-mode .container {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.light-mode input {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
}

body.light-mode li {
  background: #e0e0e0;
}

body.light-mode button {
  background: #2b7bd6;
  color: #fff;
}
body.light-mode button:hover {
  background: #2364ad;
}
