html {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally center */
    padding-top: 40px; /* Minimum space at the top */
    background: #1a2423;
    color: #333;
    box-sizing: border-box;
}

.container {
    background: #2a3736;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 480px;
    width: 90%;
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

h1 {
    color: #3bb6e3;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 6px;
}

.subtitle {
    color: #fdffff;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-top: 0;
    margin-bottom: 24px;
}

button {
    background: #4acafc;
    color: #1a2423;
    font-weight: bold;
    border: none;
    padding: 12px 28px;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #3bb6e3;
}

.result-box {
    margin-top: 28px;
    background: #1a2423;
    border: 1px solid #4acafc;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.result-box h2 {
    color: #3bb6e3;
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.result-box p {
    margin: 6px 0;
    color: #3bb6e3;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
}

.result-box span {
    color: #fdffff;
}

.hidden {
    display: none;
}

footer {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(74, 202, 252, 0.25);
    color: #4acafc;
    text-align: center;
    padding: 16px 20px;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px;
}

footer p,
footer i {
    margin: 0;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    letter-spacing: 0.5px;
}

.grading-system {
    margin-top: 24px;
    animation: fadeIn 0.5s ease;
}

.grading-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    background: #1a2423;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #4acafc;
}

.grading-table th,
.grading-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #bcecfd;
}

.grading-table th {
    background-color: #2a3736;
    color: #3bb6e3;
    font-weight: 600;
}

.grading-table td {
    color: #fdffff;
}