* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.game-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

h3 {
  display: none;
}

.score-container {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

#gameCanvas {
  background-color: #ecf0f1;
  border: 2px solid #bdc3c7;
  border-radius: 5px;
  margin: 1rem 0;
}

.controls {
  margin: 1rem 0;
  color: #7f8c8d;
}

#startButton {
  background-color: #204852;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#startButton:hover {
  background-color: #2980b9;
}

.hidden {
  display: none;
}

.medals-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 20px auto;
}

.medal {
  width: 40px;
  height: 40px;
  border-radius: 90%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.medal.unlocked {
  opacity: 1.5;
}

.medal::before {
  content: "🚉";
  font-size: 24px;
  position: absolute;
}

.medal::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 90%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  pointer-events: none;
}

@media (max-width: 960px) {
  .game-container {
    padding: 1rem;
    border-radius: 5px;
  }

  #gameCanvas {
    margin: 0.5rem 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  .score-container {
    font-size: 1rem;
  }

  .controls {
    font-size: 0.8rem;
  }

  .medals-container {
    margin: 10px auto;
  }

  .medal {
    width: 30px;
    height: 30px;
  }

  .medal::before {
    font-size: 18px;
  }

  .medal::after {
    width: 80%;
    height: 80%;
  }

  #startButton {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  h3 {
    display: contents;
    color: #2c3e50;
    margin-bottom: 1rem;
  }

  span {
    display: none;
  }

  #gameCanvas {
    display: none;
  }

  .medals-container {
    display: none;
  }
}
