body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-color: black;
  color: white;
  overflow-x: hidden;
  user-select: none;
  transition: background-color 0.5s ease;
}

button {
  padding: 10px 20px;
  margin: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: hotpink;
  color: black;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.05);
}

.glitching {
  animation: glitch 0.1s infinite;
}

@keyframes glitch {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-5px, 5px); }
  40%  { transform: translate(5px, -5px); }
  60%  { transform: translate(-10px, 10px); }
  80%  { transform: translate(10px, -10px); }
  100% { transform: translate(0, 0); }
}

#header-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  background: rgba(0, 0, 0, 0.85);
  padding: 15px 20px;
  border-radius: 15px;
  z-index: 10000;
  text-align: center;
}

#crazy-title {
  font-size: 3rem;
  animation: blinkRotate 1s infinite;
  color: hotpink;
}

@keyframes blinkRotate {
  0% { opacity: 1; transform: rotate(0deg); color: red; }
  25% { opacity: 0.5; transform: rotate(5deg); color: yellow; }
  50% { opacity: 1; transform: rotate(-5deg); color: cyan; }
  75% { opacity: 0.5; transform: rotate(10deg); color: magenta; }
  100% { opacity: 1; transform: rotate(0deg); color: green; }
}

#main-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#puzzle-container {
  position: fixed;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid hotpink;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 340px;
  z-index: 10001;
}

#puzzle-container input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid hotpink;
  background: black;
  color: white;
  margin-top: 10px;
}

#reward-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: black;
  padding: 20px 30px;
  border-radius: 20px;
  font-size: 2em;
  z-index: 9999;
  box-shadow: 0 0 20px hotpink;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  animation: fall 3s linear forwards;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.inverted {
  transform: rotate(180deg);
  filter: invert(1);
  transition: transform 1s ease, filter 1s ease;
}






































