body, html {
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}

#card-container {
  width: 90%;
  max-width: 400px;
  perspective: 1000px;
  position: relative;
}

#current-card {
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 10px;
  transition: transform 0.3s;
}

#map-container {
  display: none;
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  overflow: hidden;
}

#map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#zoom-in, #zoom-out {
  display: none;
  position: absolute;
  bottom: 10px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

#zoom-in {
  right: 60px;
}

#zoom-out {
  right: 10px;
}

#puzzle-container {
  display: none;
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
}

#puzzle-container label {
  display: block;
  margin-bottom: 5px;
}

#puzzle-container input {
  width: 100%;
  padding: 5px;
  margin-bottom: 10px;
}

#puzzle-submit {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#puzzle-submit.incorrect {
  background-color: #f44336;
  animation: blink 1s;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

#textfield-puzzle-container {
  display: none; /* Standardmäßig nicht sichtbar */
  position: absolute;
  top: 50%; /* Zentriert in der Vertikalen */
  left: 50%; /* Zentriert in der Horizontalen */
  transform: translate(-50%, -50%); /* Zentriert das Element genau in der Mitte */
  width: 80%;
  max-width: 300px; /* Maximale Breite ähnlich wie bei den Feldern auf Karte 12 */
}

#textfield-puzzle-container label {
  display: block;
  margin-bottom: 5px;
  text-align: center; /* Zentriert den Text des Labels */
}

#textfield-puzzle-container input {
  width: 100%; /* Nutzt die volle Breite des Containers */
  padding: 5px;
  margin-bottom: 10px;
}

#resident-submit {
  background-color: #4CAF50; /* Grüne Farbe */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block; /* Block-Element, um es zentriert unter dem Textfeld anzuzeigen */
  margin: 0 auto; /* Automatischer Seitenrand für Zentrierung */
}

#resident-submit.incorrect {
  background-color: #f44336; /* Rote Farbe für falsche Antwort */
  animation: blink 1s;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

#video-container {
  display: none;
  position: absolute;
  top: 1%;
  left: 1%;
  width: 99%;
  height: 99%;
}

#final-video {
  width: 100%;
  height: 100%;
}