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;
}
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
  color: #e3ecf6;
}
h3 {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #dfebee;
}
.results-content {
  animation: fadeIn 1.5s ease-in-out;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.results-content img {
  width: 60%;
  height: auto;
  border: 1px solid #9b1297;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.results-content img:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}
.buttonuserguess {
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  transition: border-color 0.3s ease;
  height: 45px;
  width: 320px;
  font-family: "DM Serif Text", serif;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  color: #ffffff;
  padding: 10px;
}

.buttonuserguess:focus {
  border-bottom: 2px solid #9b1297;
  color: white;
}

.buttonuserguess:hover {
  border-bottom: 2px solid #9b1297;
}
.flaggenbild {
  width: 100%;
  max-width: 400px;
  height: auto;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  margin: 20px auto;
}
.nextbtnbutton {
  border: none;
  background-color: rgba(183, 135, 93, 0.01);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  padding: 0;
  height: 40px;
  width: 50%;
  margin: 20px auto;
  display: block;
}
.nextbtnbutton:hover {
  background-color: #d79a48;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
#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: 5%;
  margin-bottom: 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{
  margin-top: 2%;
  width: 90%;
  max-width: 800px;
}

.navigation-buttons {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  max-width: 600px; 
  margin-bottom: 10%;
}
.button-row {
  display: flex;
  justify-content: center; 
  gap: 10px; 
  margin-bottom: 10%; 
  flex-wrap: wrap;
}

.weiterleitungbutton1, .weiterleitungbutton {
  background-color: rgba(183, 135, 93, 0.01);
  color: white;
  padding: 10px 30px;
  border-radius: 10px;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.weiterleitungbutton1:hover, .weiterleitungbutton:hover {
  background-color: #d79a48;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .quiz-container {
      padding: 12px;
      width: 90%;
  }
  input[type="text"] {
      width: 70%;
  }
  #otherPageBtn {
      font-size: 0.85rem;
      margin-bottom: 1%;
  }
  .button-row {
    flex-direction: column;
  }
  .flaggenbild {
    width: 80%;
  }
  .nextbtnbutton {
    width: 20%px;
  }
  .results-content {
    width: 40%;
  }
}
@media screen and (max-width: 768px) {
  .quiz-container {
      padding: 12px;
      width: 90%;
  }
  input[type="text"] {
      width: 70%;
  }
  #otherPageBtn {
      font-size: 0.85rem;
      margin-bottom: 1%;
  }
  .button-row {
    flex-direction: column;
  }
  .flaggenbild {
    width: 80%;
  }
  .nextbtnbutton {
    width: 70%px;
  }
}

@media screen and (max-width: 480px) {
  .quiz-container {
      width: 95%;
      padding: 10px;
      width: 90%;
  }
  input[type="text"] {
      width: 70%;
      font-size: 0.9rem;
  }
  #otherPageBtn {
      font-size: 0.8rem;
      margin-bottom: 1%;
  }
  .button-row {
    flex-direction: column;
  }
  .flaggenbild {
    width: 80%;
  }
  .nextbtnbutton {
    width: 20%px;
  }
}
