
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #e6f0f7;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 20px;
  transition: background 0.5s, color 0.5s;
}


#game-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

canvas {
  background: #e0f7fa;
  border: 2px solid #94d1be;
  box-shadow: 0 0 20px #94d1be99;
}


button {
  margin: 10px;
  padding: 10px 20px;
  background: #94d1be;
  border: none;
  border-radius: 6px;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #80bfa9;
}

#restartBtn {
  display: none;
}


#menu {
  text-align: center;
}


.dark-theme {
  background: #1f1f1f;
  color: #f0f0f0;
}

.dark-theme canvas {
  background: #292929;
  border-color: #8ecae6;
  box-shadow: 0 0 20px #8ecae699;
}

.dark-theme button {
  background: #8ecae6;
  color: #1f1f1f;
}


#touch-controls {
  margin-top: 20px;
  text-align: center;
}

#touch-controls button {
  width: 60px;
  height: 60px;
  font-size: 24px;
  margin: 5px;
  border-radius: 10px;
  border: none;
  background-color: #444;
  color: white;
}

@media (max-width: 600px) {
  #game-wrapper {
    flex-direction: column;
    align-items: center;
  }

  #touch-controls button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  #leaderboard {
    margin-top: 20px;
  }
}


#leaderboard {
  min-width: 150px;
  background: #f2f2f2;
  padding: 10px 15px;
  border-radius: 10px;
  display: none;
}

#leaderboard h2 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

#leaderboard ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#leaderboard li {
  padding: 4px 0;
  font-size: 16px;
  background: #ffffff;
  margin: 4px 0;
  border-radius: 5px;
}

.dark-theme #leaderboard {
  background: #333;
}

.dark-theme #leaderboard li {
  background: #444;
  color: #fff;
}

#clearLeaderboardBtn {
  margin-top: 10px;
  background: #ff4d4d;
  color: white;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 5px;
}

#clearLeaderboardBtn:hover {
  background: #e03c3c;
}


select {
  margin-top: 10px;
  padding: 5px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

select option {
  background: white;
  color: black;
}
