body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin-top: 20px;
}

h1 {
    color: #008000; /* SA Green */
}

h2 {
    color: #0055a4; /* SA Blue */
    margin-top: 25px;
}

hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

/* --- Input and Button Styling --- */
.input-control {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex-wrap: wrap; /* Added for better mobile support */
}

#numLines, #strategySelect {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

#numLines {
    width: 40px;
    text-align: center;
}

#generateBtn {
    background-color: #ff0000; /* SA Red */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generateBtn:hover {
    background-color: #cc0000;
}

/* --- History Input Styling --- */
.history-input-section {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 25px;
}

.instruction {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

#lotto-history-input, #powerball-history-input {
    width: 95%;
    min-height: 100px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
}

/* --- Ball and Container Styling --- */
.multiple-lines-container {
    min-height: 80px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.numbers-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px dotted #f0f0f0;
}

.ball {
    width: 35px;
    height: 35px;
    background-color: #ffd700; /* Gold/Yellow */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.powerball {
    background-color: #ff4500; /* PowerBall Red-Orange */
    color: white;
    border: 2px solid #000;
}

.placeholder {
    color: #aaa;
    font-style: italic;
    padding: 20px;
}