body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f9;
    margin: 0;
    padding: 10px;
}

.container {
    max-width: 500px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
    text-align: center;
}

h2, h3 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 3px;
    text-align: left;
    font-size: 14px;
}

input {
    width: 100px;
    padding: 4px;
    margin: 2px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-top: 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    display: block;
    width: 75%;
}

button:hover {
    background-color: #0056b3;
}

p {
    font-size: 14px;
    color: #333;
}

#subjects {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    align-items: center;
}

.subject-section {
    background: #f9f9f9;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    width: 90%;
    text-align: left;
}

#result, #totalResult {
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}
