body {
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  background: linear-gradient(to bottom right, #dfefff, #f3f9ff);
  margin: 0;
  padding: 0;
}

h1 {
  background-color: #4a90e2;
  color: white;
  padding: 20px 0;
  margin: 0 0 20px 0;
}

#game, #setup {
  max-width: 600px;
  margin: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 20px;
}

.image-wrapper {
  width: 100%;
  max-height: 400px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eef3f9;
  border-radius: 8px;
  margin: 20px 0;
}

img {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.5s ease, opacity 0.4s ease;
  border-radius: 8px;
}

img.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

button {
  font-size: 18px;
  margin: 10px;
  padding: 10px 30px;
  border: none;
  border-radius: 8px;
  background-color: #4a90e2;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #357ac8;
}

#score, #highscore {
  font-weight: bold;
  font-size: 18px;
  margin-top: 15px;
  color: #333;
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
}

footer a {
  color: #555;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.navigation {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-button {
  padding: 0.8rem 1.5rem;
  background-color: #444;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #222;
}

#buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
