/* ======= Root Variables ======= */
:root {
  --bg-light: #fff2e8;
  --text-light: #333;
  --bg-dark: #4a0900;
  --text-dark: #d7cbf2;
  --error-red: #ff4c4c;
  --hover-bg: #ffd1a9;
}

/* ======= Base Styles ======= */
body {
  padding: 3em;
  font-family: sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  transition: background 0.3s, color 0.3s;
  text-align: center;
  user-select: none;
}

.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

/* ======= Dark Mode Toggle Button ======= */
#darkModeToggle {
  position: fixed;
  top: 1em;
  right: 1em;
  font-size: 2em;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
  color: inherit;
}

/* ======= Cookie Banner ======= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 1em;
  text-align: center;
  z-index: 1000;
  font-size: 0.9em;
}

#cookie-banner button {
  margin-left: 1em;
  padding: 0.3em 0.7em;
  background: var(--bg-light);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  color: #222;
  transition: background 0.3s;
}

#cookie-banner button:hover {
  background: var(--hover-bg);
}

/* ======= 404 Page Container ======= */
#message-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding: 0 1em;
}

/* ======= 404 Text Styles ======= */
.whoops {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--error-red);
  cursor: default;
  opacity: 0;
  transform: translateY(-60px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1),
              transform 0.7s cubic-bezier(.4,0,.2,1);
  user-select: none;
}

.whoops.visible {
  opacity: 1;
  transform: translateY(0);
}

.whoops.buzzer {
  cursor: pointer;
  text-decoration: underline;
}

.not-found {
  font-size: 1.5em;
  margin-top: 1em;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}

.not-found.visible {
  opacity: 1;
}

/* ======= Bluescreen (BSOD) Mode ======= */
body.bluescreen {
  background-color: #0078d7;
  color: white;
  font-family: 'Lucida Console', Monaco, monospace;
  padding: 4em 2em;
  user-select: none;
}

.bluescreen .whoops {
  font-size: 5em;
  margin-bottom: 0.5em;
  color: inherit;
}

.bluescreen .sad-face {
  font-size: 7em;
  line-height: 0.7em;
  margin-bottom: 0.3em;
}

.bluescreen .bsod-message {
  font-size: 1.5em;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4em;
}

/* ======== Extras ========= */

ul {
  list-style-type: none;
  padding-left: 0;
}
