body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #663573, #225668 );
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: linear-gradient(45deg, #663573, #225668, #6643a7);
  background-size: 300% 300%;
  animation: gradientAnimation 20s infinite;
}
h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
  color: #e3ecf6;
}
h3 {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #dfebee;
}
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#otherPageBtn {
  top: 8%;
  left: 50%;
  padding: 11px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: rgba(183, 135, 93, 0.01);
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  margin-top: 2%;
}
#otherPageBtn:hover {
  background-color: #d79a48;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#otherPageBtn:active {
  background-color: #d79a48;
  transform: scale(1);
}
.quiz-container {
    width: 90%;
    max-width: 700px;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    margin-top: 2%;
    text-align: center;
}
.quiz-container h1 {
    margin-bottom: 20px;
}
header {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}
header div {
    font-size: 1.2rem;
    
}
.question-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Immer mindestens 2 Spalten */
  gap: 20px;
  margin-top: 20px;
}
.question-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}
.plate {
    background: white;
    color: black;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    border-left: 5px solid #007bff;
}
input[type="text"] {
  width: 100%;
  max-width: 350px;
  padding: 8px;
  font-size: 0.8rem;
  border: 2px solid #dddddd;
  border-radius: 5px;
  margin-bottom: 15px;
  margin-top: 5%;
  margin-left: 5%;
  text-align: center;
  color: black;
}
input[type="text"]:focus {
    border-color: #9c37ca;
    outline: none;
}
#restart-btn, #end-btn {
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}
#restart-btn:hover, #end-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
#restart-btn {
  background:  #27a25a;
  color: white;
}
#end-btn {
  background: #d16762;
  color: white;
}
button {
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background: linear-gradient(to right, #663573, #225668 );
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  margin: 15% auto;
  width: 30%;
  
}
.modal-content p,h2 {
  color: white
}
.modal button {
  margin: 10px;
  padding: 10px;
  border: none;
  cursor: pointer;
}
.modal button:hover {
  transform: scale(1.1);
}
#shareWhatsapp {
  background: #25D366;
  color: white;
}
#shareTwitter {
  background: #1DA1F2;
  color: white;
}
#copyLink {
  background: #555;
  color: white;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}
#closeModalButton {
  margin-top: 10px;
  background-color: #ebebeb;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
}

#closeModalButton:hover {
  background-color: #bbb;
}
/* Verbesserte Responsivität */
@media (max-width: 768px) {
  .quiz-container {
    padding: 15px;
  }
  .question-item {
    flex-direction: column;
    text-align: center;
  }

  input[type="text"] {
    width: 100%;
  }
  #otherPageBtn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  #otherPageBtn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .button {
    top: 15px;
    width: 48px;
    height: 48px;
  }
  input[type="text"] {
    width: 90%;
  }
  .quiz-container {
    padding: 10px;
  }

  .restart-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}
