@font-face { 
    font-family: 'noto_sans_thai';
    src: url('../fonts/NotoSansThai.ttf') format('truetype'); /*because from css folder*/
    font-weight: normal;
    font-style: normal;
}

@font-face { 
    font-family: 'libre';
    src: url('../fonts/LibreBaskerVille.ttf') format('truetype'); /*because from css folder*/
    font-weight: normal;
    font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* font-family: Arial, sans-serif; */
  font-family: noto_sans_thai;
  font-size: 1.0em;
  padding-top: 60px; /* For fixed header */
  background-color: #e8f1ea; /*e8e4df */  /*b7c7bb */  /* aec0b0 */
}

main {
  padding: 20px;
}

.container {
  padding: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: white;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header {
  background-color: #2f5f4f;  /* 3f4d43 */  /* 2a5c4f */
  color: white;
  padding: 15px 20px;
  /*padding-right: 100px;*/
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

    .logo {
      font-size: 1.2em;
    }

    nav {
      display: flex;
      /* align-items: flex-end; -----align to bottom-----*/
    }

    nav a {
      color: white;
      text-decoration: none;
      padding: 10px 15px;
    }

    nav a:hover {
      background-color: #444;
    }

    .menu-toggle {
      display: none;
      font-size: 1.2em;
      cursor: pointer;
    }

    @media (max-width: 768px) {
      nav {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
      }

      nav a {
        padding: 15px;
        border-top: 1px solid #444;
      }

      nav.show {
        display: flex;
      }

      .menu-toggle {
        display: block;
      }

      ul.menu {
        flex-direction: column;
      }
    }

    @media (min-width: 768px) {
      .content {
        flex-direction: row;
      }

      .card {
        flex: 1;
      }
    }

    ul.menu {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
    }

    ul.menu > li {
      position: relative;
    }

    ul.menu > li > a {
      display: block;
      padding: 14px 20px;
      color: white;
      text-decoration: none;
    }

    ul.menu > li:hover {
      background-color: #444;
    }

    /* Submenu styling */
    ul.submenu {
      list-style: none;
      position: absolute;
      left: 0;
      top: 100%;
      background-color: #444;
      padding: 0;
      margin: 0;
      display: none;
      min-width: 180px;
      z-index: 1000;
    }

    ul.submenu li a {
      padding: 12px 16px;
      display: block;
      color: white;
      text-decoration: none;
    }

    ul.submenu li a:hover {
      background-color: #555;
    }

    /* Show submenu on hover */
    li:hover > ul.submenu {
      display: block;
    }


  .tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1em;
  }
  .tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    background: #f7f7f7;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: background 0.2s;
  }
  .tab.active {
    background: #fff;
    font-weight: bold;
  }
  .tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    background: #fff;
  }
  .tab-content.active {
    display: block;
  }

.image-container {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center;     /* Vertical centering */
    width: 100vw;            /* Full viewport width */
    height: 100vh;           /* Full viewport height */
    background-color: #e8e4df;  /* Optional: black bars if image ratio differs */
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;     /* Use 'cover' to crop and fill the entire screen */
}

table {
  padding: 1px;
}

td {
  padding: 5px;
}
  
footer {
  background-color: #2f5f4f;
  min-height: 100px;
  color: #444;
  /* padding: 15px 20px; */
  /*padding-right: 100px;*/
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  text-align: center;
}
