/*
 * Global styles for the IELTS speaking practice site.
 * The colours and spacing were chosen to create a calm and focussed
 * experience. Inputs change border colour when answers are checked to
 * give immediate visual feedback.
 */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f6f6f6;
    color: #333;
}

header {
    background-color: #004d99; /* dark blue as the primary accent */
    color: #fff;
    text-align: center;
    padding: 20px 10px;
}

header h1 {
    margin: 0 0 5px;
    font-size: 1.8rem;
}

header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    min-height: calc(100vh - 140px);
}

.question-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

.question-type {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
}

.question-content {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Style for navigation buttons */
button {
    background-color: #004d99;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin: 5px;
    transition: background-color 0.2s ease;
}

button:hover:not(:disabled) {
    background-color: #003d79;
}

button:disabled {
    background-color: #ccc;
    cursor: default;
}

/* Inputs and selects inside question cards */
input[type="text"], select {
    padding: 6px;
    margin: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 80px;
    box-sizing: border-box;
}

input.correct, select.correct {
    border-color: #2e8b57; /* green for correct answers */
}
input.incorrect, select.incorrect {
    border-color: #c0392b; /* red for incorrect answers */
}

.explanation {
    margin-top: 15px;
    padding: 10px;
    background-color: #e6f2ff;
    border-left: 4px solid #004d99;
    color: #004d99;
    font-size: 0.95rem;
    line-height: 1.4;
}

.answer-key {
    margin-top: 8px;
    color: #003d79;
}

.answer-key-list {
    margin: 6px 0 0;
    padding-left: 18px;
}

.answer-key-list li {
    margin: 2px 0;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #f1f1f1;
    position: sticky;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

#progress {
    margin: 0 20px;
    font-size: 1rem;
    font-weight: bold;
}
