* {
    box-sizing: border-box;
  }

body {
    width: 100%;
    padding: 0 0 0;
    font-family: 'Kanit', sans-serif;
    background-color:white;
}
/*Grid Layout*/
    .item1 { grid-area: header; }
    .item2 { grid-area: topmenu; }
    .item3 { grid-area: left; }
    .item4 { grid-area: right; }
    .item5 { grid-area: main; }
    .item6 { grid-area: main2; }
    .item7 { grid-area: footer; }
    
    .grid-container {
      width: 100%;
      display: grid;
      grid-template-areas:
        'header header header'
        'topmenu topmenu topmenu'
        'left left right'
        'main main main'
        'main2 main2 main2'
        'main3 main3 main3'
        'footer footer footer';
      gap: 0px;
      background-color:white;
      margin: 0;
    }
    
    .grid-container > div {
      background-color: white;
      text-align: center;
      padding: 0 ;
    }

    
    /*topmenu*/
ul.topmenu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
}

li.topmenu {
    float:right;
}

li.topmenu a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.active {
    background-color: yellowgreen;
}

@media screen and (max-width: 600px) {
    .topnav a, .topnav input[type=text] {
      float: none;
      display: block;
      text-align: left;
      width: 100%;
      margin: 0;
      padding: 14px;
    }
    
    .topnav input[type=text] {
      border: 1px solid #ccc;  
    }
  }

/*header*/
.header {
    background-color: olivedrab;
    width: 100%;
    text-align:left;
}

.head {
    color: white;
    font-size: 20px;
    border: 50px;
    margin: 0;
    
}


/*navmenu*/
ul.navmenu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
    width:100%;
}

li {
    float: left;
}

li a, .dropbtn {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
    background-color: red;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: red;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/*Megamenu*/
/* The dropdown container */
.dropdown2 {
    overflow: hidden;
  }
  
  /* Dropdown button */
  .dropdown2 .dropbtn2 {
    width: 100%;
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: black;
    font: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
  }
    
  /* Dropdown content (hidden by default) */
  .dropdown-content2 {
    display: none;
    position: absolute;
    background-color: black;
    width: 100%;
    left: 0;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  /* Show the dropdown menu on hover */
  .dropdown2:hover .dropdown-content2 {
    display: block;
    width: 100%;
  }
  
  /* Create three equal columns that floats next to each other */
  .column {
    float: left;
    width: 25%;
    padding: 5px;
    background-color: black;
    height: auto;
  }
  
  /* Style links inside the columns */
  .column a {
    float: none;
    color: white;
    padding: 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    background-color: black;
  }
  
  /* Add a background color on hover */
  .column a:hover {
    background-color: red;
  }
  
  /* Clear floats after the columns */
  .row:after {
    content: "";
    display: table;
    clear: both;
  }

/*Left*/
.item3 {
    background-color: white;
    width: 100%;
}
/* Slideshow container */
.mySlides {
    display: none;}
img {vertical-align: middle;}

.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  padding: 30px;
  padding-bottom: 0;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 2s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}


/*youtube table*/
.table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
  position: center;
  margin: 0;
}

td, th {
  text-align: center;
  padding: 5px;
  margin: 0;
}


/*tapmenu ประชาสัมพันธ์ จัดซื้อจัดจ้าง รับสมัครงาน*/
.tablink {
    background-color: lightcyan;
    float: left;
    border-top: 0.2px solid black;
    border-radius: 20px 20px 0 0;
    outline: none;
    cursor: pointer;
    padding: 15px 16px;
    font-size: 17px;
    width: 32.6%;
    text-align: center;
}

.tablink:hover {
    background-color:bisque;
}

.tabcontent {
    display: none;
    padding: 20px;
    padding-top: 60px;
    height: 100%;
    border-radius: 20px 0 0 0;
    text-align: justify;
}

#PR {background-color: white;}
#Procurement {background-color: white;}
#Recruit {background-color: white;}

.content {
    text-decoration: none;
    text-align: justify;
    color: black;
}

.content:hover {
    color: blue;
}

.content:active {
    color: red;
}

/*Right*/
.item4 {
    align-items: center; 
    text-align: center;
    float: top; 
    margin: 5px;
    margin-top: 0;
    width: 100%;
}

#DRPAEO {
    width: 150px;
    height: 200px;
    border-style: ridge;
}


/*main*/
.item5 {
  align-items: center; 
  text-align: center;
  margin: 5px;
  margin-top: 0;
  height: 100%;
}

div.gallery {
    margin: -5px 5px -5px;
    border: 1px none #ccc;
    float: left;
    width: 180px;
    height: 100%;
  }
  
  div.gallery:hover {
    border: 1px none #777;
  }
  
  div.gallery img {
    width: 100%;
    height: auto;
  }
  
  div.gallery2 {
    margin: -1px 1px -1px;
    border: 1px none #ccc;
    float: left;
    width: 170px;
    height: 300px;
  }
  
  div.desc {
    padding: 2px;
    text-align: center;
    height: 100px;
    font-size: 14px;
  }
  
  
/*Main2 General*/
.item6 {
  align-items: center; 
  text-align: center;
  float: top; 
  margin: 5px;
  margin-top: 0;
}
.generaltable {
  padding: 10px;
  padding-left: 50px;
}

.generalpic {
    width: 200px;
    height: 150px;
}
/*footer item7*/

.footer {
    background-color: black;
    color: white;
    width: 100%;
    text-align:left;
    padding-top: 10px;
    padding-bottom: 30px;
    padding-left: 50px;
    padding-right: 50px;
  }

.footermenu {
  float:right;
  text-decoration: none;
  color: white;
} 

.footermenu2 {
  float:right;
  text-decoration: none;
  color: white;
} 

.footermenu:visited {
  color: white;
  background-color: transparent;
  text-decoration: none;
}

.footermenu:hover {
  color: red;
  background-color: transparent;
  text-decoration: none;
}

.footermenu:active {
  color: pink;
  background-color: transparent;
  text-decoration: none;
}

/*ITA*/
.body-bg_ita{
  margin:0 20%;
  padding: 0px;
  width: 60%;
  background-color:white;
  text-align: left;
}

.submenu_ita{
margin-left:30px;
padding:5px 38px;
color:#3e9f40;
font-size: 18px;
text-align: left;
}

.detail_ita{
margin-left:50px;
padding:5px 60px;
font-size:16px;
text-align: left;
}

.itgtoggle{
  padding:10px;
  margin: 0;
  color:#0000ff;
  background-color:#dbd8e2;
  border:solid 0.5px #8d8d8d;
  font-size:20px;
  text-align: left;
}

.header_ita{
  color:#000080;
}
  a {
  color: black;
  text-decoration: none;
  }

.detail_ita a:hover {
  color: #ff0000;
}

marquee{
  font-size: 20px;
  font-weight: 800;
  color:gold;
  padding: 10px;
  }