
:root {
    --bg-color-light: #f0f2f5;
    --text-color-light: #333;
    --container-bg-color-light: #fff;
    --h1-color-light: #333;
    --number-bg-color-light: #eee;
    --number-text-color-light: #333;

    --bg-color-dark: #1a1a1a;
    --text-color-dark: #fff;
    --container-bg-color-dark: #2c2c2c;
    --h1-color-dark: #f0f0f0;
    --number-bg-color-dark: #444;
    --number-text-color-dark: #fff;
}

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

body.light-mode {
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
}

.container {
    background-color: var(--container-bg-color-dark);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 90%;
    max-width: 500px;
    transition: background-color 0.3s;
}

body.light-mode .container {
    background-color: var(--container-bg-color-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--h1-color-dark);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

body.light-mode h1 {
    color: var(--h1-color-light);
    text-shadow: none;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--number-bg-color-dark);
    color: var(--number-text-color-dark);
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

body.light-mode .number {
    background-color: var(--number-bg-color-light);
    color: var(--number-text-color-light);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.number.generated {
    animation: number-pop 0.5s ease-out forwards;
}

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

#generate-btn {
    background: linear-gradient(145deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.6);
}

#generate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.4);
}

/* Number Colors */
.number:nth-child(6n+1) { background-color: #fbc400; color: #333; }
.number:nth-child(6n+2) { background-color: #69c8f2; color: #333; }
.number:nth-child(6n+3) { background-color: #ff7272; color: #333; }
.number:nth-child(6n+4) { background-color: #aaa; color: #333; }
.number:nth-child(6n+5) { background-color: #b0d840; color: #333; }
.number:nth-child(6n+6) { background-color: #c9c9c9; color: #333; }

/* Theme Switcher */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

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

