/* กำหนดโทนสีหลักของเว็บ */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff; /* สีฟ้าอ่อน */
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff; /* สีขาว */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #009688; /* สีเขียวอ่อน */
    text-align: center;
    font-size: 1.8em; /* ขนาดกลาง */
}

p {
    font-size: 1.2em; /* ขนาดกลาง */
    line-height: 1.6em;
    color: #333;
}

label {
    font-size: 1.2em; /* ขนาดกลาง */
    color: #009688;
}

textarea, select, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1.2em; /* ขนาดกลาง */
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button {
    background-color: #009688; /* สีเขียวอ่อน */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2em; /* ขนาดกลาง */
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #00796b; /* สีเขียวเข้ม */
}

audio {
    display: block;
    margin: 10px 0;
}

a {
    color: #0066cc; /* สีฟ้า */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004d99; /* สีฟ้าเข้ม */
}

/* ปรับโทนสีสำหรับการแจ้งสถานะ */
#status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #ffebee; /* สีแดงอ่อน */
    color: #FF0000; /* สีแดงเข้ม */
    font-size: 1.5em; /* ขนาดกลาง */
    font-weight: bold; /* ตัวหนา */
    text-align: center; /* จัดกลาง */
}

/* ตัวเลือกตัวอักษรและขนาด */
input[type="text"], select, textarea {
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* สำหรับการจัด layout และระยะห่าง */
textarea, select, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1.2em; /* ขนาดกลาง */
    box-sizing: border-box;
}

#charCount {
    font-weight: bold;
    color: #00796b;
    font-size: 1.2em; /* ขนาดกลาง */
}

footer {
    margin-top: 20px;
    text-align: center;
    color: #777;
    font-size: 1.2em; /* ขนาดกลาง */
}
