|
body { |
|
font-family: Arial, sans-serif; |
|
background-color: #f5f5f5; |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
.container { |
|
max-width: 800px; |
|
margin: 50px auto; |
|
padding: 20px; |
|
background-color: #fff; |
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
|
border-radius: 8px; |
|
} |
|
|
|
h1, h2 { |
|
color: #333; |
|
} |
|
|
|
form { |
|
display: flex; |
|
flex-direction: column; |
|
} |
|
|
|
label { |
|
margin-top: 10px; |
|
font-weight: bold; |
|
} |
|
|
|
input[type="text"], input[type="number"] { |
|
margin-top: 5px; |
|
padding: 10px; |
|
font-size: 16px; |
|
border: 1px solid #ccc; |
|
border-radius: 4px; |
|
} |
|
|
|
button { |
|
margin-top: 20px; |
|
padding: 10px; |
|
font-size: 16px; |
|
color: #fff; |
|
background-color: #007BFF; |
|
border: none; |
|
border-radius: 4px; |
|
cursor: pointer; |
|
} |
|
|
|
button:hover { |
|
background-color: #0056b3; |
|
} |
|
|
|
.result { |
|
margin-top: 20px; |
|
padding: 10px; |
|
background-color: #e9ecef; |
|
border-left: 5px solid #007BFF; |
|
border-radius: 4px; |
|
} |
|
|
|
.correct { |
|
border-left-color: #28a745; |
|
} |
|
|
|
.incorrect { |
|
border-left-color: #dc3545; |
|
} |
|
|