/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}
body {
    display: flex;
    flex-direction: column;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* CONTAINERS */
.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* HEADER */
.header {
    text-align: center;
    background-color: #6c63ff;
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
}
.header h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
}
.subtitle {
    font-weight: 400;
    font-size: 1em;
    margin-bottom: 0;
    opacity: 0.85;
}

/* SECTIONS */
.section {
    margin-bottom: 20px;
}
.section-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    border-left: 4px solid #6c63ff;
    padding-left: 10px;
}

/* INPUT CONTAINER */
.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.input-container input {
    width: 60%;
    padding: 12px;
    margin: 10px 0;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}
.input-container button {
    cursor: pointer;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    font-size: 1em;
    padding: 10px 20px;
    margin-top: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.input-container button:hover {
    background-color: #584dd3;
}

/* MAIN BUTTON */
.main-button {
    cursor: pointer;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    font-size: 0.95em;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin: 5px;
    display: inline-block;
    text-align: center;
}
.main-button:hover {
    background-color: #584dd3;
}

/* Centering sets of buttons */
.center-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* FAQ */
.faq-section {
    margin-top: 20px;
}
.faq-item {
    margin-bottom: 10px;
    cursor: pointer;
}
.faq-item .question {
    background-color: #f1f1f1;
    padding: 10px 14px;
    border-radius: 4px;
    position: relative;
    font-weight: 600;
}
.faq-item .question:hover {
    background-color: #e1e1e1;
}
.faq-item .indicator {
    float: right;
    font-weight: bold;
    color: #6c63ff;
    font-size: 18px;
    margin-left: 8px;
}
.faq-item .answer {
    display: none;
    background-color: #f9f9f9;
    margin-top: 5px;
    padding: 10px 14px;
    border-left: 3px solid #6c63ff;
    border-radius: 4px;
}

/* TEST BOXES */
.question-box {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    background-color: #fafafa;
}
.question-text {
    font-weight: bold;
    margin-bottom: 10px;
}
.answer-container {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.answer-container:hover {
    background-color: #f1f1f1;
}
.answer-container input {
    margin-right: 8px;
}
.feedback {
    margin-top: 10px;
}
.correct {
    color: green;
    font-weight: bold;
}
.incorrect {
    color: red;
    font-weight: bold;
}

/* Highlights after final submission */
.correct-highlight {
    background-color: #e8f5e9 !important;
}
.incorrect-highlight {
    background-color: #ffebee !important;
}

/* FLOATING TIMER */
.floating-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffffd9;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
}
#timer {
    font-weight: bold;
    margin-bottom: 5px;
}
#timer-message {
    font-size: 0.85em;
    color: #444;
    text-align: center;
}

/* WARNINGS */
.warning-message-text {
    color: #d9534f;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* POPUP MESSAGE */
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 2px solid #6c63ff;
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
    text-align: center;
}

/* REVIEW FORM */
.review-form {
    margin-top: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #ddd;
}
.review-form h3 {
    margin-bottom: 10px;
    text-align: center;
}
.review-form textarea {
    width: 100%;
    height: 100px;
    resize: vertical;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    outline: none;
    font-family: inherit;
}
.review-form textarea:focus {
    border-color: #6c63ff;
}
.after-submit-info {
    color: #666;
    font-size: 0.9em;
    margin: 10px 0;
    text-align: center;
}
.review-buttons {
    text-align: center;
    margin-top: 10px;
}

/* SUMMARY / RESULT */
#summary .result-box {
    background-color: #f0f0ff;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid #ddd;
    text-align: center;
}
.review-hint {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

/* UNANSWERED FEEDBACK */
.unanswered-feedback {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    border-radius: 4px;
    margin-top: 8px;
}

/* LINKS */
.link-preview {
    color: #6c63ff;
    text-decoration: underline;
    cursor: pointer;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fff;
    margin: 6% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 6px;
    position: relative;
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}
.close:hover {
    color: #000;
}
.modal-image {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    margin: 10px 0;
}

/* FOOTER */
.footer {
    text-align: center;
    background-color: #fdfdfd;
    color: #666;
    margin-top: 20px;
    font-size: 0.85em;
}
.footer p {
    margin: 5px 0;
}

.section h2 {
    text-align: center;
}
li {
    margin-left: 20px;  /* Adds spacing for bullet points */
}

/* If you need more specific targeting */
.container li {
    margin-left: 20px;
}