* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.game-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  text-shadow:
    2px 2px 0 #ff6b6b,
    4px 4px 0 #6b6bff,
    6px 6px 0 #000000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 50px;
  user-select: none;
}

@media (max-width: 600px) {
  .game-title {
    font-size: 2rem;
    margin-top: 30px;
  }
}


html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  position: relative;
}

.background {
  position:fixed;
  width: 100%;
  height: 100%;
  background: url('assets/home_bg2.jpg') no-repeat center center;
  background-size:contain;
  z-index: -2;
  background-color:skyblue;
}

/* Container for everything */
.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2vh;
}

/* Buttons */
button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  margin: 1vh 0;
  border: none;
  border-radius: 8px;
  color: white;
  width: 80vw;
  max-width: 300px;
  transition: transform 0.2s;
}

button:hover {
  transform: scale(1.05);
}

.play { background-color: #28a745; }
.help { background-color: #17a2b8; }
.levels { background-color: #ffc107; color: black; }
.music { background-color: #dc3545; }

/* Ball animation */
.balls-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 3vh;
}

.ball {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  animation: rotate 4s linear infinite;
}

.red { background-color: red; top: 0; left: 50%; transform: translateX(-50%); }
.green { background-color: green; top: 85%; left: 15%; }
.blue { background-color: blue; top: 85%; left: 85%; }

@keyframes rotate {
  0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

@media (max-width: 480px) {
  .ball {
    width: 20px;
    height: 20px;
  }

  button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}
