/* Allgemeines Styling für den Body */
body {
  font-family: "Arial", sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
}

/* Menü mit Select als Overlay */
.menu {
  position: absolute;
  top: 20px; /* Abstand von der Oberseite */
  left: 50%;
  transform: translateX(-50%); /* Zentriert das Menü horizontal */
  z-index: 1000; /* Bringt das Menü nach vorne */
  text-align: center;
}

/* Styling für das Select-Element */
select {
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  width: 200px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none; /* Entfernt das Standard-Browser-Design */
  margin-bottom: 10px;
}

/* Styling für Hover- und Fokus-Effekte */
select:hover {
  border-color: #0056b3;
}

select:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Container für das Spiel */
.game {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 80%;
  max-width: 600px;
}
.delete {
  background-color: red;
}
/* Styling für das deaktivierte Select-Element */
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Flaggenbild */
#flag {
  border: 5px solid #ccc;
  border-radius: 10px;
  height: 40vh;
  width: 100%;
  object-fit: cover;
  transition: border-color 0.5s ease;
}

/* Tabellenlayout */
table {
  width: 100%;
  margin-top: 20px;
}

table td {
  background-color: #007bff;
  color: white;
  font-size: 18px;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover-Effekt für die Tabellenzellen */
table td:hover {
  background-color: #0056b3;
}

/* Styling für die Tabellenzellen bei Klick */
table td:active {
  background-color: #003d80;
}

/* Score Styling */
#scoreP {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
}

/* Missed Hearts */
.mis {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.mis img {
  height: 30px;
  width: 30px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mis img.miss {
  animation: disappear 0.3s forwards; /* Herz verschwindet bei Fehler */
}

@keyframes disappear {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Rot blinkender Rand */
@keyframes blink-red {
  0%,
  100% {
    border-color: #ccc;
  }
  50% {
    border-color: red;
  }
}
.setttings img {
  height: 100px;
}
/* Style für den Settings-Button */
.settings-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.settings-button:hover {
  transform: rotate(45deg);
}

.settings-button img {
  height: 40px;
  width: 40px;
}

/* Modal-Overlay für Einstellungen */
.modal {
  display: none; /* Anfangszustand versteckt */
  position: fixed;
  z-index: 1000; /* über allen anderen Elementen */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
}

/* Inhalt des Modals für Einstellungen */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 80%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  color: #007bff;
}

.modalbtn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mmodalbtn:hover {
  background-color: #0056b3;
}
/* Modal-Overlay */
.modal {
  display: none; /* Anfangszustand versteckt */
  position: fixed;
  z-index: 1000; /* über allen anderen Elementen */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
}
./* Spezifischeren Selektor verwenden, um Styles zu überschreiben */
.modal-content .delete {
  background-color: #d9534f !important; /* Helles Rot für den Delete-Button */
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

.modal-content .delete:hover {
  background-color: #c9302c !important; /* Etwas dunkleres Rot bei Hover */
  transform: scale(1.05); /* Leichtes Vergrößern bei Hover */
}

.modal-content .delete:active {
  background-color: #ac2925 !important; /* Noch dunkleres Rot bei Aktivierung */
  transform: scale(0.95); /* Leichtes Verkleinern bei Klick */
}
/* Inhalt des Modals */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 80%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Schließen-Button im Modal */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Modal-Inhalt */
.modal-content h2 {
  color: #d9534f;
}

.modal-content button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #0056b3;
}
/* Grün blinkender Rand */
@keyframes blink-green {
  0%,
  100% {
    border-color: #ccc;
  }
  50% {
    border-color: green;
  }
}

/* Klasse, die den roten Blinkeffekt auslöst */
.blink-red {
  animation: blink-red 1s ease;
}

/* Klasse, die den grünen Blinkeffekt auslöst */
.blink-green {
  animation: blink-green 1s ease;
}

/* Responsives Design für Mobilgeräte */
@media (max-width: 768px) {
  select {
    font-size: 14px;
    width: 150px;
  }

  #flag {
    height: 30vh;
  }

  table td {
    font-size: 16px;
    padding: 15px;
  }
}
