/* General Styles */
body {
  font-family: "Kanit", sans-serif;
  background-color: #f4f4f4;
  margin: 0;
}

/* Header */
header {
  background-color: #800000;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
}

.logo img {
  width: 120px;
  margin-right: 20px;
  padding-right: 20px;
}

.header-content h1 {
  font-size: 1.5em;
}

.header-content h2 {
  font-size: 1.1em;
}

.header-content p {
  font-size: 1.2em;
}

/* Navigation Bar */
.navbar {
  background-color: #ffcc00;
  padding: 10px;
  text-align: center;
}

.navbar ul {
  list-style: none;
  display: inline-flex;
  padding: 0;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  color: #800000;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  text-decoration: underline;
}

/* Main Content */
main {
  padding: 15px;
}

.intro {
  text-align: center;
}

.intro h2 {
  font-size: 36px;
  color: #1e73be;
}

.content {
  margin-top: 20px;
}

.content h3 {
  font-size: 25px;
  margin-left: 50px;
  color: #1e73be;
}

.content h4 {
  font-size: 25px;
  color: #1e73be;
}

.indicator {
  background-color: #fff;
  margin: 25px;
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.indicator p {
  font-size: 25px;
  color: #1e73be;
}

/*<a>*/
a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  text-decoration: none;
}
/**/

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

thead {
  background-color: #1e73be; /* Header background color */
}

table th,
table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

/*font-size-td*/
table td {
  font-size: 14px; /* Adjust this value to the desired font size */
}
/**/

table th {
  text-align: center; /* Centers the text */
  color: white; /* Sets the text color to white */
  background-color: #3369e7; /* Ensures the background is visible with white text */
  padding: 10px;
  font-size: 14px;
}

/* */
table th:nth-child(1),
table td:nth-child(1) {
  width: 4%; /* Adjust width for the first column */
}

table th:nth-child(2),
table td:nth-child(2) {
  width: 20%; /* Adjust width for the second column */
}

table th:nth-child(3),
table td:nth-child(3) {
  width: 50%; /* Adjust width for the third column */
}

table th:nth-child(4),
table td:nth-child(4) {
  width: 25%; /* Adjust width for the fourth column */
}

table th:nth-child(1),
table td:nth-child(1),
table th:nth-child(4),
table td:nth-child(4) {
  text-align: center; /* Centers the text horizontally */
}

thead {
  background-color: #ffcc00;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr {
  background-color: #f9f9f9; /* Alternating row color */
}

tbody tr:hover {
  background-color: #d0e4f7; /* Highlight color on row hover */
  transition: background-color 0.3s ease; /* Smooth transition */
}
/* Footer */
footer {
  background-color: #800000;
  color: white;
  text-align: center;
  padding: 10px 0;
}

.header-content h1,
.header-content h2 {
  margin: 0; /* Removes default margin */
  line-height: 1.2; /* Adjusts line height */
}

.my-nav {
  text-align: right;    /* จัดเนื้อหาข้างในทั้งหมดชิดขวา */
}
.my-nav a {
  color: #fff;          /* สีขาว */
  text-decoration: none;
}
