@import url('https://fonts.googleapis.com/css2?family=Sarabun&display=swap');

#forum2_table {
    font-family: 'Sarabun', sans-serif;
    border-collapse: collapse;
    width: 100%;
    
  }
  
  #forum2_table td, #forum2_table th {
    border: 1px solid #ddd;
    padding: 8px;
  }

  #forum2_table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #14984b;
    color: white;
    
  }

  #chat_table {
    font-family: 'Sarabun', sans-serif;
    border-collapse: collapse;
    width: 60%;
    
  }
  
  #chat_table td, #chat_table th {
    border: 1px solid #ddd;
    padding: 8px;
  }

  #chat_table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #14984b;
    color: white;
    
  }





  

  .list {
    display:inline-block;
    
    }

  .list-item {
    display:inline-block;
    grid-template-columns: repeat(4 , 1fr);
    padding: 20px;
    }
    
    .warp {
        font-family: 'Sarabun', sans-serif;
        font-size: 16px;    
          
    }
    .warp:link {
        text-decoration: none;
        color:black;
    }
    .warp:visited{
        text-decoration: none;
        color:black;
    }
    .warp:hover{
        text-decoration: underline;
        color: #50c1f2;
    }
    .singlefont{
      font-family: 'Sarabun', sans-serif;
    }
.divcenter {
  text-align: center;
}

.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;
  pointer-events: none;
}

.pagination a:hover:not(.active) {background-color: #ddd;}
a.disabled{
    pointer-events: none;
}
.button {
font-family: 'Sarabun', sans-serif;
}
.button:hover{
    background-color: #3cc676;
    color: white;
    cursor: pointer;
}
.respon_font {
  font-size: 16px;
}

.img_login {
  height: 350px;
}

.inputContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#inputField_name {
  border: 2px solid black;
  background-color: transparent;
  border-radius: 10px;
  padding: 12px 15px;
  color: black;
  font-weight: 500;
  outline: none;
  caret-color: rgb(155, 78, 255);
  transition-duration: .3s;
  font-family: 'Sarabun', sans-serif;
}

.userIcon {
  position: absolute;
  fill: rgb(78, 187, 255);
  width: 12px;
  top: -23px;
  left: -15px;
  opacity: 0;
  transition: .2s linear;
}

.usernameLabel {
  position: absolute;
  top: -25px;
  left: 5px;
  color: rgb(55, 55, 55);
  font-size: 14px;
  font-weight: 400;
  font-family: 'Sarabun', sans-serif;
  overflow: hidden;
  transition: .2s linear;
  opacity: 0;
}

#inputField_name:focus ~ .usernameLabel,
#inputField_name:valid ~ .usernameLabel {
  transform: translateX(20px);
  opacity: 1;
}

#inputField_name:focus ~ .userIcon,
#inputField_name:valid ~ .userIcon {
  transform: translateX(20px);
  opacity: 1;
}

#inputField_nane:focus,
#inputField_name:valid {
  background-color: #ddd;
  transition-duration: .3s;
}


.button_profile {
  font-family: 'Sarabun', sans-serif;
  --bg: #ff57c4;
  --hover-bg: #ffd6e4;
  --hover-text: #000;
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--bg);
  border-radius: 4px;
  padding: 0.8em 2em;
  background: var(--bg);
  transition: 0.2s;
}

.button_profile:hover {
  color: var(--hover-text);
  transform: translate(-0.25rem, -0.25rem);
  background: var(--hover-bg);
  box-shadow: 0.25rem 0.25rem var(--bg);
}

.button_profile:active {
  transform: translate(0);
  box-shadow: none;
}

.button_submit {
  font-family: 'Sarabun', sans-serif;
  --bg: #00993d;
  --hover-bg: #6bffc1;
  --hover-text: #000;
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--bg);
  border-radius: 4px;
  padding: 0.8em 2em;
  background: var(--bg);
  transition: 0.2s;
}

.button_submit:hover {
  color: var(--hover-text);
  transform: translate(-0.25rem, -0.25rem);
  background: var(--hover-bg);
  box-shadow: 0.25rem 0.25rem var(--bg);
}

.button_submit:active {
  transform: translate(0);
  box-shadow: none;
}




/* ///////////// button ////////////////////// */

/* delete btn */ 
.btn_del {
  font-family: 'Sarabun', sans-serif;
  appearance: button;
  /* เงา */
  background-color: #ff3333;
  /*  end เงา */
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 13px 19px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
 }
 
 .btn_del:after {
  background-clip: padding-box;
   /* สีปุ่ม */
  background-color: #ff6666;
   /* end สีปุ่ม */
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
 }
 
 .btn_del:main, .btn_del:focus {
  user-select: auto;
 }
 
 .btn_del:hover:not(:disabled) {
  filter: brightness(1.1);
 }
 
 .btn_del:disabled {
  cursor: auto;
 }
 
 .btn_del:active:after {
  border-width: 0 0 0px;
 }
 
 .btn_del:active {
  padding-bottom: 10px;
 }

 /* general btn */ 
.btn {
  font-family: 'Sarabun', sans-serif;
  appearance: button;
  /* เงา */
  background-color: #0e5eff;
  /*  end เงา */
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 13px 19px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
 }
 
 .btn:after {
  background-clip: padding-box;
   /* สีปุ่ม */
  background-color: #70bafa;
   /* end สีปุ่ม */
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
 }
 
 .btn:main, .btn:focus {
  user-select: auto;
 }
 
 .btn:hover:not(:disabled) {
  filter: brightness(1.1);
 }
 
 .btn:disabled {
  cursor: auto;
 }
 
 .btn:active:after {
  border-width: 0 0 0px;
 }
 
 .btn:active {
  padding-bottom: 10px;
 }



 /*  btn add */ 
.btn_add {
  font-family: 'Sarabun', sans-serif;
  appearance: button;
  /* เงา */
  background-color: #019323;
  /*  end เงา */
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 13px 19px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
 }
 
 .btn_add:after {
  background-clip: padding-box;
   /* สีปุ่ม */
  background-color: #1daf42;
   /* end สีปุ่ม */
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
 }
 
 .btn_add:main, .btn_add:focus {
  user-select: auto;
 }
 
 .btn_add:hover:not(:disabled) {
  filter: brightness(1.1);
 }
 
 .btn_add:disabled {
  cursor: auto;
 }
 
 .btn_add:active:after {
  border-width: 0 0 0px;
 }
 
 .btn_add:active {
  padding-bottom: 10px;
 }


/* ///////////// end button ////////////////////// */












@media (max-width:450px){
  .respon_font {
    font-size: 12px;
  }
  #chat_table {
    width: 100%;
  }
  .img_login {
    height: 200px;
  }
  

}




