:root {
    --background-color: #f0f2f5;
    --container-bg: #ffffff;
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --text-color: #333333;
    --light-text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-color);
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.controls label {
    font-size: 1rem;
}

#game-count {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#generate-button {
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
}

#generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.result-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.lotto-card {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lotto-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.number-container {
    display: flex;
    gap: 0.5rem;
}

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