
:root {
    --bg-color: #f0f0f0;
    --container-bg: white;
    --text-color: #333;
    --ball-text: white;
    --plus-color: #555;
}

[data-theme='dark'] {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f0f0;
    --plus-color: #aaa;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    position: relative;
}

h1 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

#theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

#lotto-games {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--ball-text);
    font-size: 1.2rem;
}

.plus {
    font-size: 1.5rem;
    color: var(--plus-color);
}


/* Color styles based on 동행복권 */
.color-1 { background-color: #fbc400; } /* 1-10 */
.color-2 { background-color: #69c8f2; } /* 11-20 */
.color-3 { background-color: #ff7272; } /* 21-30 */
.color-4 { background-color: #aaa; } /* 31-40 */
.color-5 { background-color: #b0d840; } /* 41-45 */

#generate-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate-btn:hover {
    background-color: #45a049;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    .ball {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .game {
        gap: 0.3rem;
    }
}
