/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* OMR Container */
.omr-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.omr-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.omr-header h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.student-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.info-field {
    margin: 10px;
    text-align: left;
}

.info-field span {
    font-weight: bold;
    margin-right: 10px;
}

.underline {
    width: 200px;
    height: 2px;
    background-color: #333;
    margin-top: 5px;
}

/* Instructions */
.instructions {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 5px;
}

/* Subject Sections */
.subject-section {
    margin-bottom: 40px;
}

.subject-section h2 {
    background-color: #2c3e50;
    color: white;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 20px;
    border-radius: 3px;
}

/* Questions Grid */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .questions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.question-item {
    display: flex;
    align-items: center;
}

.question-number {
    font-weight: bold;
    margin-right: 8px;
    min-width: 25px;
}

.bubble-options {
    display: flex;
}

.bubble {
    width: 22px;
    height: 22px;
    border: 2px solid #333;
    border-radius: 50%;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.bubble.selected {
    background-color: #333;
}

.bubble-label {
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    pointer-events: none;
}

.bubble.selected .bubble-label {
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

#reset-btn {
    background-color: #e74c3c;
}

#reset-btn:hover {
    background-color: #c0392b;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .omr-container {
        box-shadow: none;
        padding: 10px;
    }
    
    .action-buttons {
        display: none;
    }
}