* {
    font-family: "Kanit", Arial, sans-serif;
    margin: 0;
}
/* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the color of links on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

  .navbar {
    background-color: #000;
    overflow: hidden;
    padding: 10px 0;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure the navbar appears above other content */
    display: flex;
    justify-content: space-between; /* Distribute space between items */
    align-items: center; /* Center items vertically */
    left: 0;
}

p {
    color: #fff;
    margin: 0 !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0 auto; /* Center the brand section */
}

.navbar-brand img {
    height: 25px; /* Adjust the height as needed */
    width: auto;
    margin-right: 10px;
}

/* .navbar-logo img {
    height: 25px;
    width: auto;
    margin-right: 10px;
} */


#calendar-container {
  width: 100%;
  padding: 20px;
  /* margin-top: 60px; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

#calendar {
  width: 100%;
  max-width: 1200px;
  background-color: #fff; /* White background */
  border: 1px solid #ddd; /* Light border */
  border-radius: 10px; /* Rounded corners */
  padding: 20px; /* Padding around the calendar */
  margin-top: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.fc {
  background-color: #fff; /* Background color of the calendar */
  border-radius: 10px; /* Rounded corners for calendar cells */
}

.fc-event-time {
  color: white;
  font-size: 12px;
}

.fc-event-title {
  color: white;
  font-size: 12px;
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Display ellipsis for overflowing text */
  max-width: 100%; /* Ensure the title doesn't exceed its container */
  display: inline-block; /* Inline-block to make ellipsis work correctly */
}

.fc-daygrid-event-harness {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 3%;
  cursor: pointer;
  color: black;
}
.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
  min-height: 6em;
  position: relative;
}
/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-content label {
  display: block;
  margin: 10px 0 5px;
}

.modal-content input {
  /* width: calc(100% - 22px); */
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.w3-container {
  padding: 0 !important;
}
.center {
  text-align: center;
  margin-top: 1%;
}

.pagination {
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
  margin: 0 4px;
}

.pagination a.active {
  background-color: #4CAF50;
  color: white;
  border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {background-color: #ddd;}