@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --background-color: #1a1a1a;
  --container-bg: #2c2c2c;
  --text-color: #f0f0f0;
  --accent-color: #4CAF50;
  --accent-glow: rgba(76, 175, 80, 0.5);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --font-family: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23333333' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.container {
  background-color: var(--container-bg);
  padding: 2rem 3rem;
  border-radius: 15px;
  text-align: center;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19),
    0 0 40px 10px var(--shadow-color);
  max-width: 500px;
  width: 90%;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-color);
}

#numbers-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

lotto-ball {
  --ball-color: #333; /* Default color */
  display: inline-block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 20px 20px, var(--ball-color), #222);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 60px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 2px 3px rgba(255,255,255,0.2);
  transition: transform 0.3s ease;
}

#generate-button {
  background-color: var(--accent-color);
  color: white;
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--accent-glow);
}

#generate-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow), 0 0 10px var(--accent-glow);
}

#generate-button:active {
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 600px) {
  .container {
    padding: 2rem;
  }
  h1 {
    font-size: 2rem;
  }
  lotto-ball {
      width: 50px;
      height: 50px;
      line-height: 50px;
      font-size: 1.2rem;
  }
}
