* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
}

main {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.question-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.question-header {
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.question-header h2 {
    color: #2980b9;
    font-size: 1.5em;
}

.question-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.diagram-container {
    margin: 20px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.diagram-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.diagram-caption {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
}

.question-prompt {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 20px 0 15px 0;
}

.answer-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.answer-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.check-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.check-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.check-btn:active {
    transform: translateY(0);
}

.answer-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-scheme {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.answer-scheme h3 {
    color: #27ae60;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.answer-scheme p {
    color: #2c3e50;
    line-height: 1.8;
}

.analysis {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.analysis h3 {
    color: #e67e22;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.analysis p {
    color: #2c3e50;
    line-height: 1.8;
}

.marks {
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

.marks.good {
    color: #27ae60;
    background: #d5f4e6;
}

.marks.partial {
    color: #f39c12;
    background: #fef5e7;
}

.marks.poor {
    color: #e74c3c;
    background: #fadbd8;
}

.actions-section {
    text-align: center;
    margin: 30px 0;
}

.check-all-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.check-all-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.3);
}

.check-all-btn:active {
    transform: translateY(-1px);
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    animation: slideDown 0.5s ease;
}

.summary-card h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.summary-content {
    text-align: center;
}

.score-display {
    margin-bottom: 25px;
}

.total-score {
    font-size: 2em;
    font-weight: 700;
    color: #2980b9;
    margin-bottom: 10px;
}

.percentage {
    font-size: 1.5em;
    color: #7f8c8d;
    font-weight: 600;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.summary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.summary-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.summary-item p {
    color: #7f8c8d;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }

    .question-card {
        padding: 15px;
    }

    .summary-details {
        grid-template-columns: 1fr;
    }
}



