body {
  font-family: Arial, sans-serif;
  text-align: center;
  color: white;
  margin: 0;
  padding: 0 0 50px 0;
  box-sizing: border-box;
  background: linear-gradient(to right, #663573, #225668 );
  background-size: cover;
  min-height: 100vh;
}
.results {
  animation: fadeIn 1.5s ease-in-out;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.results img {
  width: 100%;
  height: auto;
  border: 3px solid #9b1297;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.results 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: 380px;
  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: linear-gradient(to right, #6a11cb, #9b1297);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(106, 17, 203, 0.5);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  padding: 0%;
  height: 45px;
  width: 300px;
  margin: 20px auto;
}

.nextbtnbutton:focus {
  box-shadow: 0 0 20px rgba(106, 17, 203, 1);
}

.nextbtnbutton:hover {
  box-shadow: 0 0 25px rgba(106, 17, 203, 1);
  background: #6a11cb;
}

h1 {
  font-size: 2.5rem;
  color: #e3ecf6;
  color: transparent;
  font-weight: bold;
  color: #fff;
  animation: bounce 4s infinite;
  font-family: "Rubik Dirt", serif;
  text-shadow: 0 0 20px #a9adaf;
  margin-top: 140px;
}

h2 {
  font-size: 1.8rem;
  color: rgb(255, 255, 255);
  margin: 10px 0;
}
#otherPageBtn {
  top: 8%;
  left: 50%;
  padding: 11px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: rgba(183, 135, 93, 0.1);
  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);
}
@media screen and (max-width: 768px) {
  .results {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .buttonuserguess {
    width: 50%;
    margin: 10px auto;
  }

  .nextbtnbutton {
    width: 50%;
  }

  h1 {
    font-size: 2.5rem;
    margin-top: 50px;
  }

  .flaggenbild {
    max-width: 70%;
  }

  #otherPageBtn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

@media screen and (max-width: 480px) {
  .results {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .buttonuserguess {
    width: 50%;
    margin: 10px auto;
  }

  .nextbtnbutton {
    width: 50%;
  }

  h1 {
    font-size: 2.5rem;
    margin-top: 50px;
  }

  .flaggenbild {
    max-width: 70%;
  }

  #otherPageBtn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .restart-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  h1 {
    margin-top: 28%;
  }
}
