* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

#input-section {
    margin-bottom: 20px;
}

#text-input {
    width: 100%;
    height: 200px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 16px;
}

.options {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.options label {
    margin-right: 10px;
    font-weight: 500;
}

.options select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.test-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.test-buttons .btn {
    width: 48%;
    margin: 0;
}

.instructions {
    background-color: #e8f4f8;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid #2196F3;
}

.instructions p {
    margin: 0;
    color: #0d47a1;
    font-weight: 500;
}

.sentence {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}

input[type="text"] {
    padding: 8px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 150px;
    font-size: 16px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

.result-item {
    margin: 10px 0;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ddd;
}

.correct {
    background-color: #dff0d8;
    color: #3c763d;
    border-left-color: #3c763d;
}

.incorrect {
    background-color: #f2dede;
    color: #a94442;
    border-left-color: #a94442;
}

.explanation {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.answer-result {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
}

.answer-result.correct {
    border-left: 3px solid #3c763d;
}

.answer-result.incorrect {
    border-left: 3px solid #a94442;
}

.first-letter {
    color: #007bff;
    font-weight: bold;
    margin-right: 2px;
}

/* Total score styling */
.total-score {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.total-score strong {
    color: #007bff;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.action-buttons .btn {
    width: 48%;
    margin: 0;
}

/* C-test options */
.c-test-options {
    margin-bottom: 15px;
}

.c-test-options input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.c-test-options.hidden {
    display: none;
} 