body {
    font-family: Arial, sans-serif;
    margin: 0px;
    padding-top: 0px;
}

.title {
    text-align: center;
    margin: 20px;
    font-size: 2em;
}

.disclaimer {
    text-align: center;
    margin: 20px;
    font-size: 1em;
    color: red;
}

.selection-area {
    text-align: center;
    margin: 20px;
}

.selection-area label {
    display: block;
    margin: 10px 0;
    font-size: 1.2em;
}

.selection-area input,
.selection-area select,
.selection-area button {
    font-size: 1em;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
}

#questions-container {
    padding: 20px;
}

.question {
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.question h3 {
    font-size: 1.2em;
}

.question label {
    display: block;
    margin-bottom: 5px;
    font-size: 1em;
    cursor: pointer;
}

.correct {
    background-color: #d4edda;
}

.incorrect {
    background-color: #f8d7da;
}

.checkmark {
    font-size: 1.5em;
    margin-left: 10px;
}

#loading {
    display: none; /* Ẩn hình ảnh loading ban đầu */
    position: fixed; /* Cố định vị trí hình ảnh loading */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Đảm bảo hình ảnh loading ở trên các phần tử khác */
}

#loading img {
    width: 800px; /* Kích thước hình ảnh loading */
    height: 800px;
}

/* Progress Bar Styles */
#progress-container {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #f3f3f3;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#progress-bar {
    width: 90%;
    margin: 0 auto;
    display: block;
    height: 20px;
}

#progress-text {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
}

/* Media queries for responsiveness */

/* Mobile styles */
@media (max-width: 600px) {
    .title {
        font-size: 1.5em;
    }

    .disclaimer {
        font-size: 0.9em;
        color: red;
    }

    .selection-area label {
        font-size: 1em;
    }

    .selection-area input,
    .selection-area select,
    .selection-area button {
        font-size: 0.9em;
    }

    .question h3 {
        font-size: 1em;
    }

    .question label {
        font-size: 0.9em;
    }
}

/* Tablet styles */
@media (min-width: 601px) and (max-width: 768px) {
    .title {
        font-size: 1.75em;
    }

    .disclaimer {
        font-size: 1em;
        color: red;
    }

    .selection-area label {
        font-size: 1.1em;
    }

    .selection-area input,
    .selection-area select,
    .selection-area button {
        font-size: 1em;
    }

    .question h3 {
        font-size: 1.1em;
    }

    .question label {
        font-size: 1em;
    }
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.8); /* mờ nền */
  display: none; /* ẩn mặc định */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
