
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #4CAF50; /* Green */
  --background-color: #f0f0f0;
  --text-color: #333;
  --font-family: 'Noto Sans KR', sans-serif;
  --container-bg: white;
  --button-text-color: #333;
  --body-bg-image: linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);
}

body.dark-mode {
  --primary-color: #fdd835; /* Brighter Gold for dark mode */
  --secondary-color: #66bb6a; /* Lighter Green for dark mode */
  --background-color: #333;
  --text-color: #f0f0f0;
  --container-bg: #424242;
  --button-text-color: #333;
  --body-bg-image: linear-gradient(to right top, #2d3436, #3b4244, #495053, #585e62, #676d71, #757c80, #838b8f, #929a9e, #a3aab2, #b5bbc6, #c8cddb, #dce0f0);
}


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: var(--body-bg-image);
  transition: background-color 0.3s, color 0.3s;
}

#theme-toggle-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 1px solid var(--text-color);
  background-color: var(--container-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  z-index: 1000;
}

#theme-toggle-button:hover {
    background-color: var(--text-color);
    color: var(--container-bg);
}

.container {
  text-align: center;
  background-color: var(--container-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.23);
  max-width: 90%;
  width: 500px; /* Increased width */
  transition: background-color 0.3s;
  position: relative;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

h1 {
  color: var(--secondary-color);
  font-size: 3rem; /* Increased font size */
  margin: 0;
}

.lotto-machine {
  margin-top: 2rem;
}

#generate-button {
  background-color: var(--primary-color);
  color: var(--button-text-color);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.5rem; /* Increased font size */
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#generate-button:hover {
  background-color: #FFC700;
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

#generate-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

lotto-numbers {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap; /* Added for responsiveness */
}

lotto-numbers > div {
  width: 60px; /* Increased size */
  height: 60px; /* Increased size */
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem; /* Increased font size */
  font-weight: bold;
  animation: pop-in 0.5s ease-in-out forwards;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes pop-in {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
