* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #ff0066, #4a90e2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333333;
    overflow: hidden;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
    overflow-y: auto;
    max-height: 80vh;
}

h1 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #333333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 18px;
    font-weight: 500;
}

input[type="number"] {
    padding: 12px 20px;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="number"]:focus {
    border-color: #0056b3;
}

.button-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1 1 45%;
    margin: 5px;
}

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

button#show-primes-button {
    background-color: #28a745;
}

button#show-primes-button:hover {
    background-color: #218838;
}

button#clear-button {
    background-color: #ffc107;
}

button#clear-button:hover {
    background-color: #e0a800;
}

button#reset-button {
    background-color: #f44336;
}

button#reset-button:hover {
    background-color: #d32f2f;
}

#result {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 5px 0;
    font-size: 18px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
