/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5em;
}

h2 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 2.2em;
}

p {
    font-size: 1.2em;
    margin: 8px 0;
}

label {
    font-size: 1.1em;
    margin-right: 10px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 200px;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1.1em;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
}

button {
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin: 0 5px;
}

button:hover {
    background-color: #2980b9;
}

.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.nav-item {
    font-size: 1.1em;
    margin: 0 10px;
}

.nav-item button {
    padding: 8px 16px;
    font-size: 0.9em;
}

.review-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.review-options button {
    padding: 15px 30px;
    font-size: 1.2em;
}

.mode-section, .num-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-section h2, .num-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.mode-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mode-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.mode-label:hover {
    border-color: #3498db;
    background: #e8f4f8;
}

.mode-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #3498db;
}

.mode-label input[type="radio"]:checked + span {
    color: #3498db;
    font-weight: bold;
}

.mode-label:has(input[type="radio"]:checked) {
    border-color: #3498db;
    background: #e8f4f8;
}

.num-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.num-btn {
    padding: 18px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.num-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.custom-num {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.custom-num input[type="number"] {
    width: 150px;
    padding: 12px 15px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.custom-num input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
}

.custom-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.custom-btn:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(155, 89, 182, 0.4);
}

.grade-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grade-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.grade-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.grade-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.grade-label:hover {
    border-color: #3498db;
    background: #e8f4f8;
}

.grade-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.grade-label input[type="radio"]:checked + span {
    color: #3498db;
    font-weight: bold;
}

.grade-label:has(input[type="radio"]:checked) {
    border-color: #3498db;
    background: #e8f4f8;
}

.other-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.other-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.other-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.other-btn {
    padding: 18px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.other-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.4);
}

.auth-box {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
}

@media (max-width: 600px) {
    .review-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}
