body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #333;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem 1rem 1rem;
}

h1 {
  color: #4caf50;
  text-align: center;
}

/* Garden Grid */
.garden {
  display: grid;
  grid-template-columns: repeat(6, 60px);
  grid-gap: 0px;
  margin: 1rem 0;
  justify-content: center; /* Center the grid horizontally */
  position: relative;
}

#sound-icon {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.garden-tile {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.garden-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Question & Input Area */
.question-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.question {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.answer-input {
  font-size: 1rem;
  padding: 0.25rem;
  text-align: center;
  width: 100px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #4caf50;
  color: #fff;
  font-size: 1rem;
}

.btn:hover {
  background-color: #45a049;
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hidden {
  display: none !important;
}

.timer {
  margin-top: 1rem;
  font-weight: bold;
}

.results {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #333;
  text-align: center;
}

/* --- MOBILE FRIENDLY SCALING (NO LAYOUT CHANGE) --- */
@media (max-width: 600px) {
  .garden {
    grid-template-columns: repeat(6, 45px);
    justify-content: center; /* Ensure center on small screens too */
  }

  #sound-icon {
    top: -25px;
    right: -25px;
    width: 20px;
    height: 20px;
  }

  .garden-tile {
    width: 45px;
    height: 45px;
  }

  .question {
    font-size: 1rem;
  }

  .answer-input {
    font-size: 0.9rem;
    width: 80px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .controls {
    gap: 0.4rem;

    /* 👇 NEW: Stack controls vertically and stretch them */
    flex-direction: column;
    align-items: stretch;
  }

  .results {
    font-size: 1rem;
  }

  .timer {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  /* 👇 NEW: Container and section tweaks */
  .container {
    align-items: center;
    padding: 1rem 1rem 2rem 1rem; /* Top-heavy padding to push content up */
  }

  .question-section {
    padding: 0.5rem;
  }

  .settings {
    width: 100%;
    padding: 1rem 0.5rem;
  }
}
