:root {
  --bg: #87e7ff;
  --text: #222222;
  --nav-bg: #212bac;
  --nav-text: white;
  --hover-text: #000000;
  --hover-bg: #b8a9a9;
  --image-border: #080404;
}

html.dark {
  --bg: #0d0055;
  --text: #f4f4f4;
  --nav-bg: #09003d;
  --nav-text: white;
  --hover-text: white;
  --hover-bg: #333333;
  --image-border: white;
}

body {
  font-family: "Commissioner", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  transition: background-color 0.5s ease, color 0.5s ease;
}

header {
  padding: 60px 30px 20px;
}

nav {
  display: flex;
  gap: 20px;
  padding: 10px;
  background-color: var(--nav-bg);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}

nav a {
  text-decoration: none;
  color: var(--nav-text);
  font-weight: bold;
  padding: 5px 8px;
  border-radius: 6px;
}

nav a:hover {
  color: var(--hover-text);
  background-color: var(--hover-bg);
}

h1 {
  color: var(--text);
  font-size: 36px;
}

img {
  max-width: 300px;
  border-radius: 5%;
  border: 3px solid var(--image-border);
}

p {
  padding: 8px;
  line-height: 1.4;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

section {
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html.dark section {
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

#dark-mode-toggle {
  display: none;
}

label[for="dark-mode-toggle"] {
  position: fixed;
  top: 65px;
  right: 20px;
  z-index: 1001;
  width: 58px;
  height: 30px;
  background: #222;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

label[for="dark-mode-toggle"]::before {
  content: "☀️";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.3s ease;
}

#dark-mode-toggle:checked + label {
  background: #5b4cff;
}

#dark-mode-toggle:checked + label::before {
  content: "🌙";
  transform: translateX(28px);
}

html.dark,
html.dark body {
  cursor: url("../glow-cursor-colorful.png") 4 4, auto;
}

html:not(.dark),
html:not(.dark) body {
  cursor: auto;
}

#cursor-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

html:not(.dark) #cursor-ribbon {
  display: none;
}

html.galaxy-theme {
  --bg: #09001f;
  --text: #f5eaff;
  --nav-bg: #24005c;
  --nav-text: white;
  --hover-text: white;
  --hover-bg: #6f2cff;
  --image-border: #b44cff;
}

html.galaxy-theme section {
  background-color: rgba(60, 10, 100, 0.45);
  box-shadow: 0 4px 20px rgba(180, 76, 255, 0.35);
}

html.galaxy-theme #cursor-ribbon {
  filter: hue-rotate(30deg);
}


html.inferno-theme {
  --bg: #220808;
  --text: #fff1e8;
  --nav-bg: #6e160f;
  --nav-text: white;
  --hover-text: white;
  --hover-bg: #d63b1f;
  --image-border: #ff7138;
}

html.inferno-theme section {
  background-color: rgba(100, 20, 10, 0.45);
  box-shadow: 0 4px 20px rgba(255, 90, 30, 0.35);
}

html.inferno-theme #cursor-ribbon {
  filter: hue-rotate(250deg);
}

/* Hamburger menu */
#menu-toggle {
  display: none;
}

#nav-links {
  display: flex;
  gap: 20px;
}

/* Mobile */
@media (max-width: 600px) {

  nav {
    align-items: flex-start;
    min-height: 50px;
  }

  #menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 28px;
    cursor: pointer;
    padding: 0 5px;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-top: 45px;
  }

  #nav-links.open {
    display: flex;
  }

  #nav-links a {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
  }

  header {
    padding: 85px 15px 15px;
  }

  h1 {
    font-size: 30px;
  }

  main {
    width: auto;
    padding: 15px;
  }

  section {
    padding: 15px;
    margin: 18px 0;
    border-radius: 16px;
  }

  img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
  }

  p {
    padding: 5px;
    line-height: 1.5;
  }

  label[for="dark-mode-toggle"] {
    top: 10px;
    right: 15px;
  }
}

/* Secret theme hint */

.secret-hint {
  text-align: center;
  opacity: 0.7;
  margin-top: 40px;
}

.secret-hint p {
  font-size: 14px;
}

#secret-help-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#secret-help-btn:hover {
  transform: translateY(4px);
}

#secret-help {
  max-width: 450px;
  margin: 0 auto;
}

#secret-help p {
  font-size: 13px;
}

