/* A modern CSS reset for consistency */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f2f2f2;
  color: #333;
  
  /* This is the modern way to perfectly center the main container */
  min-height: 100vh;
  display: grid;
  place-items: center;
}

/* The main container for our game */
.container {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center;   /* Center items horizontally */
  gap: 15px; /* Adds nice spacing between all items */
  padding: 20px;
}

h1 {
  font-size: 2.5rem; /* A bigger, more impactful title */
  color: #222;
}

#name {
  font-size: 1rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 250px;
  text-align: center;
}

#icecream-clicker {
  width: 175px; /* A bit bigger */
  height: auto;
  cursor: pointer;
  transition: transform 0.1s ease-out, filter 0.1s ease-out;
}

#icecream-clicker:active {
  transform: scale(0.92) rotate(-5deg); /* Added a slight rotation for fun */
  filter: drop-shadow(0 0 15px deepskyblue);
}

.click-counter {
  font-size: 1.2rem;
  font-weight: 500;
}

.leaderboard-section {
  text-align: center;
  margin-top: 20px; /* Add some space above the leaderboard */
  width: 100%;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

#leaderboard {
  list-style: none;
  font-size: 1.1rem;
  line-height: 1.6;
}
