@font-face {
  font-family: 'THSarabunNew';
  src: url('fonts/thsarabunnew-webfont.eot');
  src: url('fonts/thsarabunnew-webfont.eot?#iefix') format('embedded-opentype'),
    url('fonts/thsarabunnew-webfont.woff') format('woff'),
    url('fonts/thsarabunnew-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'THSarabunNew';
  src: url('fonts/thsarabunnew_bolditalic-webfont.eot');
  src: url('fonts/thsarabunnew_bolditalic-webfont.eot?#iefix') format('embedded-opentype'),
    url('fonts/thsarabunnew_bolditalic-webfont.woff') format('woff'),
    url('fonts/thsarabunnew_bolditalic-webfont.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;

}

@font-face {
  font-family: 'THSarabunNew';
  src: url('fonts/thsarabunnew_italic-webfont.eot');
  src: url('fonts/thsarabunnew_italic-webfont.eot?#iefix') format('embedded-opentype'),
    url('fonts/thsarabunnew_italic-webfont.woff') format('woff'),
    url('fonts/thsarabunnew_italic-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;

}

@font-face {
  font-family: 'THSarabunNew';
  src: url('fonts/thsarabunnew_bold-webfont.eot');
  src: url('fonts/thsarabunnew_bold-webfont.eot?#iefix') format('embedded-opentype'),
    url('fonts/thsarabunnew_bold-webfont.woff') format('woff'),
    url('fonts/thsarabunnew_bold-webfont.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;

}

* {
  box-sizing: border-box;
}

.primary {
  font-family: 'THSarabunNew', sans-serif;
  background-color: #ffffff;
  box-shadow: 6px 7px lightslategrey;
  border: 1px solid #f1f0f0;
  margin: 40px 100px;
  overflow: auto;
}



.form1 {

  background-color: #f2f2f2;
  height: auto;
  width: auto;
  padding: 10px;
  border-radius: 3px;
  margin: 15px;
}

form {
  font-size: 25px;
  font-family: 'THsarabunNew', sans-serif;
  font-weight: bold;
}

#fname,
#lname {
  width: 35%;
}

#Engfname,
#Englname {
  width: 40%;
}

#NickE,
#NickT {
  width: 39.9%;
}


#more {
  width: 10%;
}

#hnumber,
#valley {
  width: 15%;
}

#village,
#road {
  width: 15%;
}

#SDistrict,
#District,
#Province {
  width: 20%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

hr {
  border-top: 3px solid #8c8b8b;
  margin: 0 auto;
}

.bt1 {
  width: 90px;
  margin: 10px auto;
  font-family: 'THSarabunNew', sans-serif;
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.3s;
}

.button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.3s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

.button {
  background-color: rgb(51, 138, 145);
  border: none;
  color: white;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  border-radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --input-border: #8b8a8b;
  --input-focus-h: 245;
  --input-focus-s: 100%;
  --input-focus-l: 42%;
}

input,
select {
  font-size: 16px;
  font-size: Max(16px, 1em);
  font-family: inherit;
  padding: 0.25em 0.5em;
  background-color: #fff;
  border: 2px solid;
  border-radius: 4px;
  transition: 180ms box-shadow ease-in-out;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
  box-sizing: border-box;
}

input:hover,
input:focus,
select:hover,
select:focus {
  border-color: hsl(168, 26%, 70%);
  box-shadow: 0 0 0 3px hsla(168, 26%, 110%, 0.8);
  outline: 3px solid transparent;
}

input[type="file"] {
  font-size: 0.9em;
  padding-top: 0.35rem;
}

.radio-toolbar {
  margin: 10px;
  overflow: auto;
}

.radio-toolbar input[type="radio"] {
  opacity: 0;
  position: fixed;
}

.radio-toolbar label {
  display: inline-block;
  background-color: white;
  padding: 10px 20px;
  font-size: 25px;
  border: 2px solid #444;
  border-radius: 4px;
}

.radio-toolbar label:hover {
  background-color: grey;
}

.radio-toolbar input[type="checkbox"] {
  opacity: 0;
  position: fixed;
}

.radio-toolbar input[type="checkbox"]:checked+label {
  border-color: rgb(0, 178, 209);
  background-color: rgba(208, 255, 251, 0.349);
}

#no:checked+label {
  background-color: rgba(240, 0, 0, 0.308);
  border-color: rgba(240, 0, 0, 0.8);
}

#yes:checked+label {
  background-color: rgba(2, 255, 15, 0.308);
  border-color: rgba(0, 170, 0, 0.8);
}

.circle-loader {
  margin-bottom: 3.5em;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-left-color: #5ca6b8;
  animation: loader-spin 1.2s infinite linear;
  position: relative;
  display: inline-block;
  vertical-align: top;
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  margin-right: 10px;
}

.load-complete {
  -webkit-animation: none;
  animation: none;
  border-color: #5ca6b8;
  transition: border 500ms ease-out;
}

.checkmark {
  display: none;
}

.checkmark.draw:after {
  animation-duration: 800ms;
  animation-timing-function: ease;
  animation-name: checkmark;
  transform: scaleX(-1) rotate(135deg);
}

.checkmark:after {
  opacity: 1;
  height: 1.2em;
  width: .7em;
  transform-origin: left top;
  border-right: 3px solid #5ca6b8;
  border-top: 3px solid #5ca6b8;
  content: "";
  left: .5em;
  top: 1.2em;
  position: absolute;
}

@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes checkmark {
  0% {
    height: 0;
    width: 0;
    opacity: 1;
  }

  20% {
    height: 0;
    width: .7em;
    opacity: 1;
  }

  40% {
    height: 1.2em;
    width: .7em;
    opacity: 1;
  }

  100% {
    height: 1.2em;
    width: .7em;
    opacity: 1;
  }
}

.checkbtn {
  width: 340px;
  margin: 0 auto;
  margin-top: 20px;
  height: 90px;
}

#saveinfo {
  background-color: rgba(2, 255, 15, 0.308);
  border-color: rgba(0, 170, 0, 0.8);
  margin-bottom: 5px;
  outline: none;
  transition: .2s;
}

#saveinfo:hover {
  background-color: rgba(2, 150, 15, 0.508);
  border-color: rgba(0, 170, 0, 0.8);
  margin-bottom: 5px;
}

#deleteinfo {
  background-color: rgba(240, 0, 0, 0.308);
  border-color: rgba(240, 0, 0, 0.8);
  outline: none;
  transition: .2s;
}

#deleteinfo:hover {
  background-color: rgba(150, 0, 0, 0.508);
  border-color: rgba(240, 0, 0, 0.8);
}

#savereturn {
  color: rgba(0, 170, 0, 0.8);
  margin-bottom: 10px;
}

.Line_image figure img {
  width: 150px;
  height: 150px;
  border: 1px black solid;
  transition: .3s;
}

.Line_image figure {
	position: relative;
  width: fit-content;
  height: 100%;
  margin: 30px;
}

.Line_image img:hover{
  width: 105%;
  height: 105%;
}

.Line_image p{
  margin: 20px 20px 0px 20px;
  font-size: 25px;
}
@media screen and (max-width:1000px) {
  .primary {
    width: 100%;
    margin: 0;
  }
  .primary .form1 input{
    width: 97%;
  }
  .primary .form1 input[type="text"] {
    width: 97%;
  }
  .primary select{
    width: 97%;
  }
  #fname,
  #lname {
    width: 97%;
  }

  #Engfname,
  #Englname {
    width: 97%;
  }

  #NickE,
  #NickT {
    width: 97%;
  }


  #more {
    width: 97%;
  }

  #hnumber,
  #valley {
    width: 97%;
  }

  #village,
  #road {
    width: 97%;
  }

  #SDistrict,
  #District,
  #Province {
    width: 97%;
  }
}