body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f7f6;
}

.container {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

h1 {
    color: #333;
    margin-bottom: 2rem;
}

.lotto-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    min-height: 60px;
}

.ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.placeholder {
    font-size: 1.1rem;
    color: #888;
}

/* 로또 번호별 색상 */
.ball-1-10 { background-color: #fbc400; }
.ball-11-20 { background-color: #69c8f2; }
.ball-21-30 { background-color: #ff7272; }
.ball-31-40 { background-color: #aaa; }
.ball-41-45 { background-color: #b0d840; }

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-bottom: 2rem;
}

button:hover {
    background-color: #0056b3;
}

.history-section {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    text-align: left;
}

.history-section h3 {
    font-size: 1rem;
    color: #666;
}

#lotto-history {
    list-style: none;
    padding: 0;
}

.history-item {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    gap: 5px;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid #eee;
}

.history-ball {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
}
