/* Reset and base layout */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: red;
  background: transparent;
  position: relative;
  z-index: 0;
}

/* Dark mode support */
body.dark {
  color: #eee;
}

.main-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Canvas trail background */
#cursorTrail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* Header and nav */
h1.glow {
  font-size: 3rem;
  text-shadow: 0 0 15px red;
}

nav {
  background-color: dodgerblue;
  border-radius: 1rem;
  padding: 1rem;
  margin: 2rem 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  color: red;
  font-weight: bold;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  background: white;
  color: #3a01df;
}

/* Dark mode nav override */
body.dark nav {
  background-color: #222;
}

body.dark .nav-list a {
  color: #eee;
}

body.dark .nav-list a:hover {
  background-color: #fff;
  color: #222;
}

/* Toggle Button */
#modeToggle {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #111;
  color: white;
  border: 2px solid white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

#modeToggle:hover {
  background: white;
  color: #111;
}
//
/* FORM LAYOUT */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  color: red;
}

fieldset {
  border: 1px solid red;
  padding: 1rem;
  border-radius: 0.5rem;
  color: red;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

input,
textarea,
button {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
}

input,
textarea {
  background: white;
  color: black;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

textarea {
  resize: vertical;
}

button {
  width: auto;
  padding: 0.6rem 1.2rem;
  margin-right: 1rem;
  background-color: #fff;
  border: 2px solid red;
  color: red;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: red;
  color: white;
}

/* Dark mode overrides */
body.dark form {
  color: white;
}

body.dark input,
body.dark textarea {
  background: #222;
  color: white;
}

body.dark button {
  border-color: white;
  color: white;
}

body.dark button:hover {
  background-color: white;
  color: #111;
}

