@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

body {
    font-family: 'Lato', sans-serif;
    background-color: #f0f4f0;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

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

h1, h2 {
    text-align: center;
    color: #2c5e3A;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.instructions {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
}

.question-block {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.question-block p {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

.options label {
    display: block;
    margin: 8px 0;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
}

.options label:hover {
    background-color: #e9f5e9;
}

.options input[type="radio"] {
    margin-right: 10px;
}

button[type="submit"] {
    display: block;
    width: 200px;
    margin: 30px auto 20px;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

#results {
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
}

/* Dynamic classes for results */
.correct-answer {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.correct-answer::before {
    content: '✔ ';
    font-weight: bold;
}


.incorrect-answer {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.incorrect-answer::before {
    content: '✖ ';
    font-weight: bold;
}


.unanswered {
    border: 2px solid #ffc107;
}

#results.good {
    background-color: #d4edda;
    color: #155724;
}

#results.medium {
    background-color: #fff3cd;
    color: #856404;
}

#results.bad {
    background-color: #f8d7da;
    color: #721c24;
}

