/* Grundlayout */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
}

h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 10px;
}

.textsmall {
  font-size: 0.8em;
  margin: 0 auto 30px;
}

/* Container für Dropdown-Menüs */
#dropdownContainer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

select {
  font-size: 1.2em;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Container für Buttons */
#buttonContainer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  font-size: 1.2em;
  padding: 10px 15px;
  margin: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

#startBtn {
  background-color: #007bff;
  color: white;
  font-size: 1.5em;
  padding: 15px 25px;
}
#startBtn:hover {
  background-color: #0056b3;
}

#statsBtn {
  background-color: #ffc107;
  color: black;
}
#statsBtn:hover {
  background-color: #e0a800;
}

/* Modal-Container */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Standard Modal-Inhalt */
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
}

/* Trainer Modal */
#trainerModal .modal-content.trainer-content {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  box-sizing: border-box;
  padding-top: 50px;
  padding-bottom: 20px;
  background-color: #fff;
  overflow-y: auto;
  display: block;
  text-align: center;
}

/* Feedback */
#feedback {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  line-height: 40px;
  font-size: 3em;
}

/* Rechnung */
#equationDisplay {
  font-size: 6em;
  font-weight: bold;
  margin: 20px 0;
  line-height: 1em;
}

/* Zahlenpanel */
#numericInput {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
}

/* Sterne */
#starContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  width: 90%;
  max-width: 500px;
  margin: 10px auto;
}

.star {
  font-size: 2em;
  color: gold;
}

/* Zahlenreihen */
.numRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* Zahlenfelder */
.numButton {
  font-size: 1.5em;
  width: 55px;
  height: 55px;
  border-radius: 8px;
  background-color: #28a745;
  border: 2px solid transparent;
  color: white;
  transition: background-color 0.3s, border 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numButton:hover {
  background-color: #218838;
}
.numButton.active {
  border: 2px solid #ffcc00;
}

/* Hervorhebung für 10, 20, ... */
.highlightButton {
  background-color: #fdf2b3 !important;
  color: #000 !important;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }
  #dropdownContainer {
    flex-direction: column;
    gap: 10px;
  }
  button {
    font-size: 1em;
    padding: 10px;
  }
  .numButton {
    width: 45px;
    height: 45px;
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }
  button {
    font-size: 0.9em;
    padding: 8px;
  }
  .numButton {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }
  #equationDisplay {
    font-size: 4em;
  }
  #dropdownContainer select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Statistik */
#statsModal .modal-content {
  max-width: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* Stopp-Button */
#stopBtn {
  background-color: #6c757d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#stopBtn:hover {
  background-color: #5a6268;
}

.dot {
  display: inline-block;
  font-family: "Segoe UI Symbol", "Helvetica Neue", "Roboto", "Noto Sans", sans-serif;
  font-size: 1em;
  transform: translateY(-0.1em); /* leicht zentrieren */
  font-weight: bold;
}
