body {
  font-family: "Comic Sans MS", "Arial", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  margin: 0;
  padding: 20px;
  overflow: hidden;
  transition: background 0.5s, color 0.5s;
  position: relative;
}

canvas#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Title */
h1 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  animation: floaty 3s ease-in-out infinite;
  text-align: center;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 25px 35px;
  border-radius: 20px;
  transition: background 0.5s, box-shadow 0.5s;
}

/* Buttons silly wiggle */
button {
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  transform: scale(1.1) rotate(-2deg);
  animation: wiggle 0.3s ease-in-out;
}

@keyframes wiggle {
  25% { transform: rotate(2deg) scale(1.05); }
  50% { transform: rotate(-2deg) scale(1.05); }
  75% { transform: rotate(2deg) scale(1.05); }
}

/* Toggle Button */
#modeToggle {
  margin-top: 20px;
  font-size: 0.9rem;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.5s, color 0.5s;
}

/* Coming Soon */
.coming-soon {
  margin-top: 20px;
  padding: 15px 25px;
  border-radius: 12px;
  font-weight: bold;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Footer */
footer {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
  font-style: italic;
}

/* Corner Decorations */
.corner {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.2;
  animation: blob 6s infinite ease-in-out alternate;
  z-index: -1;
}

@keyframes blob {
  0% { transform: scale(1); }
  100% { transform: scale(1.3) rotate(20deg); }
}

.top-left { top: -20px; left: -20px; }
.top-right { top: -20px; right: -20px; }
.bottom-left { bottom: -20px; left: -20px; }
.bottom-right { bottom: -20px; right: -20px; }

/* -------- DARK MODE -------- */
body.dark {
  background: radial-gradient(circle at bottom, #0a0a1f, #000010);
  color: #f5f5f5;
}

body.dark h1 { text-shadow: 0 0 8px #8899ff, 0 0 15px #6677ff; }
body.dark .menu { background: rgba(0, 0, 0, 0.4); box-shadow: 0 0 20px rgba(130, 150, 255, 0.3); }
body.dark button { background: #1f1f3a; color: white; }
body.dark button:hover { background: #3c3c66; box-shadow: 0 0 10px #6677ff; }
body.dark #modeToggle { background: #eee; color: #111; }
body.dark .coming-soon { background: rgba(100, 120, 255, 0.3); color: #fff; }
body.dark .corner { background: #6677ff; }

/* -------- LIGHT MODE -------- */
body.light {
  background: radial-gradient(circle at top, #f5fff5, #e2f5e2);
  color: #222;
}

body.light h1 { text-shadow: 0 0 6px #66aa66; }
body.light .menu { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 15px rgba(120, 200, 120, 0.4); }
body.light button { background: #d0ebd0; color: #222; }
body.light button:hover { background: #aaddaa; box-shadow: 0 0 10px #66aa66; }
body.light #modeToggle { background: #222; color: #f5f5f5; }
body.light .coming-soon { background: rgba(120, 200, 120, 0.3); color: #222; }
body.light .corner { background: #66aa66; }

/* Corner blobs */
.blob {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: rainbowShift 10s linear infinite;
  z-index: 0;
}

.blob.tl { top: -60px; left: -60px; }
.blob.tr { top: -60px; right: -60px; }
.blob.bl { bottom: -60px; left: -60px; }
.blob.br { bottom: -60px; right: -60px; }

/* Rainbow gradient animation */
@keyframes rainbowShift {
  0%   { background: radial-gradient(circle, red, orange); }
  20%  { background: radial-gradient(circle, orange, yellow); }
  40%  { background: radial-gradient(circle, yellow, green); }
  60%  { background: radial-gradient(circle, green, blue); }
  80%  { background: radial-gradient(circle, blue, purple); }
  100% { background: radial-gradient(circle, red, orange); }
}
