html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: white;
    font-family: sans-serif;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

canvas {
    border: 4px solid white;
    background: #111;
    image-rendering: pixelated;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 140px;
}

.controls {
    font-size: 14px;
    white-space: pre-line;
}

.rainbow {
    animation: rainbow 1s linear infinite;
}

@keyframes rainbow {
    0% { border-color: red; }
    16% { border-color: orange; }
    33% { border-color: yellow; }
    50% { border-color: green; }
    66% { border-color: blue; }
    83% { border-color: indigo; }
    100% { border-color: violet; }
}

/* Shake animation - less strong */
@keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-2px, 2px) rotate(-1deg); }
    40% { transform: translate(2px, -2px) rotate(1deg); }
    60% { transform: translate(-2px, 2px) rotate(-1deg); }
    80% { transform: translate(2px, -2px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.shake {
    animation: shake 0.3s;
}

/* WOW! message */
#wowMessage {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: bold;
    color: #FF0D72;
    text-shadow:
    0 0 5px #FF0D72,
    0 0 10px #FF0D72,
    0 0 20px #FF0D72,
    0 0 40px #FF0D72;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

#pauseButton {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

.button-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 1001;
}

.rainbow-button {
  position: relative;
  background-color: #f0f0f0;
  color: #333;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: transform 0.3s ease;
  z-index: 1;
  font-weight: 700;
}

.rainbow-button:hover {
  transform: scale(1.08);
}

.rainbow-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    red, orange, yellow, green, cyan, blue, violet, red);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  /* Mask only the border */
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  padding: 2px;
}

.rainbow-button:hover::before {
  animation: rainbowBorder 3s linear infinite;
  opacity: 1;
}

@keyframes rainbowBorder {
  0% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.mute-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #222;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mute-button:hover {
    background: #333;
    transform: scale(1.1);
}

.mute-button.muted {
    background: #FF0D72;
}

.sound-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: all 0.3s ease;
}

.mute-button.muted .sound-icon {
    fill: white;
}

.mute-button:hover .sound-icon {
    transform: scale(1.1);
}

.top-buttons {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  gap: 20px;
}

.home-button {
  text-decoration: none;
  display: inline-block;
  text-align: center;
  padding: 12px 24px;
}

/* Anpassung für den Pause-Button Container */
.button-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 1001;
}

.home-icon {
  vertical-align: middle;
  margin-right: 8px;
}

#logo {
  position: fixed;
  top: 20px;
  left: 20px;
  height: 100px;
  z-index: 1002;
}