 html, body {
      height: 100%;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
body {
  position: relative;
  font-family: Arial, sans-serif;
  background: url('../images/Background.png') center/cover fixed no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

a:visited{
    color: #ccc;
}

body::before {
  content: "";
  position: fixed; /* oder absolute */
  
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Weißes Overlay, 60% Deckkraft */
  z-index: -1; /* Hinter dem Content */
}

#card-container {
  margin-top:  -400px; /* oder padding-top: 50px; */
}

.card {
  width: 500px;
  max-height: 500px;
  perspective: 1000px;
  margin: 0 auto;
  position: relative;
}

.card-inner {
  width: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
  min-height: 280px;   /* Mindesthöhe */
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  max-height: 500px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
  backface-visibility: hidden;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

 .card-back {
  transform: rotateY(180deg);
}

.action-button {
  margin-top: 120px;
  color: #28a745;
  text-align: center;
  width: 400px; /* gleiche Breite wie die Karte */
  margin-left: auto;
  margin-right: auto;
}

    button {
      display: block;
      margin: 10px auto;
      padding: 10px;
      width: 90%;
      border: none;
      border-radius: 5px;
      font-weight: bold;
      cursor: pointer;
      color: #fff;
    }

    .answer-button {
      background-color: #808080;
      width: 350px;
    }

    .answer-button:hover {
      background-color: #218838;
    }

    .dont-know-button {
      background-color: #5a6268;
    }

    .dont-know-button:hover {
      background-color: #5a6268;
    }

    .feedback {
      margin-top: 15px;
      font-weight: bold;
      padding: 10px;
      border-radius: 5px;
    }

    .feedback.correct {
      background-color: #d4edda;
      color: #155724;
    }

    .feedback.wrong {
      background-color: #f8d7da;
      color: #721c24;
    }

    .feedback.skip {
      background-color: #e2e3e5;
      color: #383d41;
    }

    .description {
      margin-top: 10px;
      font-size: 0.95rem;
      color: #333;
    }
.action-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Button immer zentrieren */
}

.main-action {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-width: 200px; /* Einheitliche Breite */
  text-align: center;
}

.main-action:hover {
  background-color: #0056b3;
}

.welcome-text {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

.form-card {
  width: 400px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
}

.form-card h3 {
  margin-top: 0;
  color: #333;
}

.form-card input,
.form-card textarea {
  width: 90%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.form-card textarea {
  min-height: 60px;
  resize: vertical;
}

.form-card button {
  background-color: #007bff;
  margin-top: 10px;
}

.form-card button:hover {
  background-color: #0056b3;
}

.switch-link {
  margin-top: 10px;
  font-size: 0.9rem;
}

.switch-link a {
  color: #007bff;
  text-decoration: none;
}

.switch-link a:hover {
  text-decoration: underline;
}

/* Abdunkelung */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 100;
}

/* Modalfenster */
.modal {
  position: fixed;
  width: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
}

/* Einheitlicher Kartenstil */
.form-card {
  background: white;
  padding: 20px;
  width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: center;
}

.form-card input,
.form-card textarea {
  width: 90%;
  margin: 5px 0;
  padding: 8px;
}

.form-card button {
  margin-top: 10px;
}

.switch-link {
  margin-top: 10px;
  font-size: 0.9em;
}

.action-button {
  margin-bottom: 1rem; /* Abstand unter dem Buttonbereich */
  text-align: center;  /* Buttons zentrieren */
}
