@import url('https://fonts.googleapis.com/css2?family=Mitr:wght@200&family=Noto+Sans+Thai:wght@100;300;400&display=swap');
body {
    font-family: Arial, sans-serif;
    font-family: 'Noto Sans Thai', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;

    background-color: white;
}
.quiz-container {
    margin: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 450px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header p {
    margin: 0;
    font-size: 20px;
    color: black;
}
.header .spkerimg {
    margin-left: 10%;
    display: block;
}
.question {
    margin-bottom: 10px;
    font-size: 17px;
    color: #0056b3;
}
.options {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.options label {
    display: block;
    padding-left: 3.5em; /* Adjusted padding for more space */
    text-indent: -2em; /* Adjusted text indent */
    margin-bottom: 1em;
    position: relative;
}
.options input[type="radio"] {
    position: absolute;
    left: 0;
}
.feedback {
    font-weight: bold;
}
.modal {
    display: none;
    position: fixed;
    top: -10%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-size: 25px;
}
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 300px;
    width: 100%;
    font-family: 'Noto Sans Thai', sans-serif;
 
}

.modal button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Noto Sans Thai', sans-serif;
}
.modal button:hover {
    background-color: #003d7a;
}



.spkerimg {
    border-radius: 10px;
    width: 45px;
    padding: 7px;
    cursor: pointer;

    display: block;
    margin: 0 auto;
}

.spkerimg:hover {
    background-color: rgb(226, 218, 239);
    border-radius: 10px;
    padding: 7px;
}
.ansbtn {
    border: 2px solid #0056b3;
    border-radius: 10px;
    padding: 7px;
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: #0056b3;
    color: white;
    width:100px;
    cursor: pointer;
}
.ansbtn:hover {
    background-color: white;
    color: #0056b3;
    border: 2px solid #0056b3;
}



.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}




.next {
    background-color: white;
    border:none;
    border-radius: 10px;
    padding: 7px;
    cursor: pointer;
}

.next:hover {
    background-color: rgb(226, 218, 239);
    border:none;
    border-radius: 10px;
    padding: 7px;
}