body{background-color:#f3f3f3;} 
.container{background-color:#fff;}
img{max-width:100%; height:auto}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.result-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}

.student-details {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    min-width: 150px;
    color: #333;
}

.detail-value {
    color: #666;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fff;
}

.result-table th,
.result-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.result-table th {
    background-color: #343a40;
    color: #fff;
    font-weight: 600;
}

.result-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.result-table tr:hover {
    background-color: #e9ecef;
}

.result-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0;
}

.summary-label {
    font-weight: bold;
    margin-right: 20px;
}

.summary-value {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.overall-result .summary-value {
    color: #28a745;
    font-size: 1.1em;
}

.result-fail {
    color: #dc3545 !important;
}

#back-btn {
    margin-bottom: 20px;
}
