/* Allgemeine Stile */
    body {
      font-family: Arial, sans-serif;
      background-color: #f8f9fa;
      color: #343a40;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .page-title {
      font-family: 'Arial', sans-serif;
      font-size: 20pt;
      font-weight: bold;
      text-align: left;
      background-color: #BF0000;
      color: #ffffff;
      padding: 40px 0;
      padding-left: 175px;
      margin: 0;
      background-image: url('https://dl.ccb-online.de/informatik/HTML-Applets/Logo.svg');
      background-repeat: no-repeat;
      background-position: 40px center;
      background-size: contain;
      width: 100%;
      box-sizing: border-box;
    }

    .layout3 {
      padding-top: 20px;
      margin-top: 20px;
      max-width: 400px;
      width: 90%;
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: #ffffff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      box-sizing: border-box;
    }

/* Überschrift */
h1 {
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #333;
}

/* Gestaltung des Eiforms */
.egg {
  position: relative;
  margin: 0 auto 1.5rem;
  width: 150px;
  height: 210px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  overflow: hidden;
}

#eggCode {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  animation: bounceIn 0.6s ease-out;
}

/* Bounce-In-Effekt für das Ei */
@keyframes bounceIn {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -50%) scale(0.95);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Keyframes für den Slide-Right-Effekt */
@keyframes moveRight {
  0% { transform: translate(-50%, -50%) translateX(0); }
  50% { transform: translate(-50%, -50%) translateX(100px); }
  100% { transform: translate(-50%, -50%) translateX(0); }
}

/* Klasse, die den Slide-Right-Effekt auslöst */
.move-right {
  animation: moveRight 0.6s ease;
}

/* Inputs */
.inputs {
  text-align: left;
  margin-bottom: 1.5rem;
}

.inputs label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.inputs select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: border 0.3s;
}

.inputs select:focus {
  outline: none;
  border-color: #BF0000;
}

/* Button */
button {
  background-color: #BF0000;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #a30000;
  transform: translateY(-2px);
}

/* Modal-Fenster Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 1.5rem;
  border-radius: 8px;
  width: 80%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

select:disabled {
  background-color: #eee;
  color: #aaa;
}
