body {
  margin: 0;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Courier New', monospace;
}

.monitor-container {
  position: relative;
  width: 500px;
  height: 400px;
}

/* Bildschirm mit GIF als Hintergrund */
.screen {
  position: absolute;
  top: 10px;
  left: 80px;
  width: 340px;
  height: 300px;
  background-image: url('static.gif');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;

  opacity: 1;
  pointer-events: auto;
}

/* START Button */
.start-button {
  color: #00ff00;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border: 2px solid #00ff00;
  border-radius: 5px;
  transition: opacity 0.3s ease;
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

.start-button.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Monitorrahmen */
.monitor-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 400px;
  z-index: 2;
  pointer-events: none; /* Klicks gehen durch das Bild hindurch */
}

/* Klickbereich, unsichtbar und klickbar */
.click-area {
  position: absolute;
  top: 310px;
  left: 418px;
  width: 20px;
  height: 16px;
  cursor: pointer;
  background-color: transparent; /* Sichtbar machen zum Testen: rgba(255, 0, 0, 0.3); */
  z-index: 10;
}

/* TV Ausschalt Animation (ohne Opacity-Fade) */
@keyframes tvTurnOff {
  0% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}

/* TV Einschalt Animation (ohne Opacity-Fade) */
@keyframes tvTurnOn {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

/* Animationen */
.screen.turn-off {
  animation: tvTurnOff 0.3s forwards;
  transform-origin: center center;
  pointer-events: none;
}

.screen.turn-on {
  animation: tvTurnOn 0.3s forwards;
  transform-origin: center center;
  pointer-events: auto;
}
