body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

h1 {
    color: #333;
}

.question {
    margin-bottom: 20px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#result {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}


/*ข้อสอบ/


/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #e0f7fa; /* Light cyan background */
    padding: 20px;
}

/* Header styling */
h1 {
    text-align: center;
    color: #00796b; /* Teal color for the heading */
    margin-bottom: 30px;
}

/* Form styling */
form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff; /* White background for the form */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Question styling */
.question {
    margin-bottom: 25px;
}

.question p {
    font-size: 18px;
    color: #004d40; /* Darker teal for questions */
    margin-bottom: 12px;
    font-weight: bold; /* Make question text bold */
}

/* Label styling */
label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #00796b; /* Teal color for labels */
    cursor: pointer;
}

input[type="radio"] {
    appearance: none; /* Remove default radio button appearance */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #00796b; /* Teal border */
    background-color: #ffffff; /* White background */
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    outline: none;
}

input[type="radio"]:checked::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00796b; /* Teal color for selected state */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Button styling */
button {
    background-color: #00796b; /* Teal color for buttons */
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #004d40; /* Darker teal for hover effect */
}

/* Result section styling */
#result {
    text-align: center;
    margin-top: 30px;
}

#result p {
    font-size: 20px;
    color: #004d40; /* Darker teal for result text */
}



.slides {
    transition: transform 0.5s ease; /* เพิ่มการเปลี่ยนแปลงให้กับ transform */
}

