@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --background-color: #1a1a1a;
  --text-color: #e0e0e0;
  --primary-color: #4CAF50;
  --container-bg: #2c2c2c;
  --border-color: #444;
  --highlight-color: #fbc400;
}

body {
  font-family: 'Pretendard', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23333333' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

.container {
  background-color: var(--container-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 90%;
  max-width: 600px;
}

h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

h2 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
}

#next-drawing-date {
    color: var(--highlight-color);
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 30px;
    padding: 12px;
    background-color: rgba(251, 196, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(251, 196, 0, 0.3);
}

#generate {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  margin-top: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

#generate:hover {
  background-color: #45a049;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

#results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#results-table th, #results-table td {
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  text-align: center;
}

#results-table th {
  background-color: #333;
}

#results-table tbody tr:hover {
  background-color: #3a3a3a;
}

#numbers-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.lotto-set {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background-color: #333;
  border-radius: 8px;
  width: fit-content;
}

.lotto-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
  color: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.lotto-number:hover {
    transform: scale(1.1);
}

/* Color palette for lotto balls */
.lotto-number:nth-of-type(6n+1) { background-color: #fbc400; } /* Yellow */
.lotto-number:nth-of-type(6n+2) { background-color: #69c8f2; } /* Blue */
.lotto-number:nth-of-type(6n+3) { background-color: #ff7272; } /* Red */
.lotto-number:nth-of-type(6n+4) { background-color: #aaa; }    /* Gray */
.lotto-number:nth-of-type(6n+5) { background-color: #b0d840; } /* Green */
.lotto-number:nth-of-type(6n+0) { background-color: #ff7272; } /* Red again */
