@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
body,
html {
  background-color: #fff;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
.font_sarabun{
  font-family: 'Sarabun', sans-serif;
}

.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	display: none;
	align-items: center;
	justify-content: center;
	background-color: #dc143c;
	border-radius: 0.5rem;
	padding: 0.5rem;
	text-decoration: none;
	transition: 0.2s ease-out;
}

.back-to-top span {
	color: #fff;
	font-size: 2rem;
	transition: 0.2s ease-out;
}

.back-to-top:hover {
	background-color: #be1a3b;
}
.back-to-top:hover span {
	transform: translateY(-4px);
}

#profile-pic{
  -webkit-appearance: none;
  position: fixed;
  top:10px; right:12px;
  z-index: 1010;
}
#profile-name{
  font-family: 'Sarabun', sans-serif;
  -webkit-appearance: none;
  position: fixed;
  top:18px; right:60px;
  z-index: 1010;
  font-size: 1rem;
  color: tomato;
  text-decoration: none;
}


#logo {
  font-family: 'Sarabun', sans-serif;
  font-size: 40px;
  font-weight: bold;
  transition: 0.4s;
}

/*          new nav                */

.circle-nav{
  height: 40px;
  width: 56px;
  background-color: #D8C4B6;
  
  top: 8px;
  left: 0px;
  z-index: 2;
  position: fixed;
}


.sarabun{
  font-family: "Sarabun", serif;
  font-weight: 300;
  font-style: normal;

}
.linktoschool{
  font-family: "Sarabun", serif;
  font-weight: 300;
  font-style: normal;
  text-decoration:none;
  color:white;
}
.linktoschool:hover{
  color:#bcfb1f;
  font-size: 18px;
}

.school_font{
  font-family: "Sarabun", serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
}


.aside-section {
  top: 0;
  bottom: 0;
  position: fixed;
  z-index: 3;
}

.aside-left {
  display: none;
  width: 40%;
  left: 0;
  /*  ======= old color #ff5964; ========  */
  background-color: #3E5879;
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -o-transform: translateY(-100%);
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

.aside-right {
  width: 100%;
  right: 0;
  background-color: #D8C4B6;
  -webkit-transform: translateX(100%);
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -o-transform: translateX(100%);
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  
}

.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 150px;
  text-align: left;
  padding-left: 50px;
}

.aside-content {
  margin-top: 150px;
  padding: 0 40px;
  position: relative;
  color: white;
  text-align: center;
}

.aside-list li {
  margin-bottom: 20px;
}

.aside-anchor::after {
  content: "";
  position: absolute;
  bottom: 0;
  background-color: #ff5964;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
}

.aside-anchor::before {
  border-radius: 3px;
  content: "";
  position: absolute;
  bottom: 0;
  background-color: #fff;
  left: 0;
  height: 3px;
  z-index: 3;
  width: 50%;
  -webkit-transition: transform 0.2s ease-in-out;
  -o-transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
  
}

.aside-anchor:hover:before {
  -webkit-transform: translateX(100%);
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -o-transform: translateX(100%);
  transform: translateX(100%);
}

.aside-anchor {
  font-family: "Sarabun", serif;
  padding-bottom: 7px;
  color: #fff;
  text-decoration: none;
  font-size: 30px;
  position: relative;
  font-weight: 500;
}
.aside-anchor:hover {
  
  color:#fbff1d;
}

.inputnav[type="checkbox"] {
  display: none;
}

.inputnav[type="checkbox"]:checked ~ aside .aside-left {
  transform: translateY(0%);
}

.inputnav[type="checkbox"]:checked ~ aside .aside-right {
  transform: translateX(0%);
}

.inputnav[type="checkbox"]:checked ~ label .bar {
  background-color: #fff;
}

.inputnav[type="checkbox"]:checked ~ label .top {
  -webkit-transform: translateY(0px) rotateZ(45deg);
  -moz-transform: translateY(0px) rotateZ(45deg);
  -ms-transform: translateY(0px) rotateZ(45deg);
  -o-transform: translateY(0px) rotateZ(45deg);
  transform: translateY(0px) rotateZ(45deg);
}

.inputnav[type="checkbox"]:checked ~ label .bottom {
  -webkit-transform: translateY(-14px) rotateZ(-45deg);
  -moz-transform: translateY(-14px) rotateZ(-45deg);
  -ms-transform: translateY(-14px) rotateZ(-45deg);
  -o-transform: translateY(-14px) rotateZ(-45deg);
  transform: translateY(-15px) rotateZ(-45deg);
}

.inputnav[type="checkbox"]:checked ~ label .middle {
  width: 0;

}

.middle {
  margin: 0 auto;
}

.labelnav {
  top: 2px;
  display: inline-block;
  padding: 5px 8px;
  background-color: transparent;
  cursor: pointer;
  margin: 10px;
  z-index: 4;
  position: fixed;
}

.bar {
  display: block;
  background-color: #ffffff;
  width: 30px;
  height: 3px;
  border-radius: 5px;
  margin: 5px auto;
  transition: background-color 0.4s ease-in, transform 0.4s ease-in,
    width 0.4s ease-in;
}


.button-gohome {
  display: inline-block;
  background-image: none;
  border: none;
  background-color: transparent;
  padding-bottom: 7px;
  position: relative;
  cursor: pointer;
  font-size: 20px;
  color: white;
  padding: 7px 50px;
  border: 2px solid rgb(255, 255, 255);
}
.button-gohome:hover{
  background-color: #ff5964;

}

@media only screen and (max-width: 650px) {
  #profile-name{
    visibility: hidden;
  }
  
}
@media only screen and (min-width: 650px) {
  .aside-left {
    display: block;
  }
  .aside-right {
    width: 60%;
  }
  
  .back-to-top span {
    font-size: 1rem;
  }
  
  
}
@media only screen and (min-width: 1000px){
  .school_font{
    font-size: 30px;
  }
  .circle-nav{
    background-color: #3E5879;    
  }
  
}

/* ################################ */