@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

/* color main */
/* background: rgb(0, 30, 68); */


:root {
  --header-height: 3rem;
  --nav-width: 68px;
  --first-color: rgb(0, 35, 82);
  --first-color-light: #ffffff;
  --white-color: #F7F6FB;
  --normal-font-size: 1rem;
  --z-fixed: 100
}

*,
::before,
::after {
  box-sizing: border-box
}

body {
  position: relative;
  /* top: 50%; */
  padding: 0 1rem;
  /* font-family: var(--body-font); */
  font-size: var(--normal-font-size);
  transition: .5s
}

a {
  text-decoration: none
}

.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: transparent linear-gradient(148deg, #F6F9FE 0%, #EBF1FF 100%) 0% 0% no-repeat padding-box;
  z-index: var(--z-fixed);
  transition: .5s
}

.header_toggle {
  color: var(--first-color);
  font-size: 1.5rem;
  cursor: pointer
}

.header_img {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden
}

.header_img img {
  width: 40px
}

.l-navbar {
  position: fixed;
  top: 0;
  left: -30%;
  width: var(--nav-width);
  height: 100vh;
  background: var(--unnamed-color-152240) 0% 0% no-repeat padding-box;
  background: #152240 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 6px #4648842F;
  padding: .5rem 1rem 0 0;
  transition: .5s;
  z-index: var(--z-fixed)
}

.nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden
}

.nav_logo,
.nav_link {

  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: .5rem 0 .5rem 1.5rem
}

.nav_link:hover {

  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: .5rem 0 .5rem 1.5rem
}

.nav_logo {
  margin-bottom: 2rem
}

.nav_logo-icon {
  font-size: 1.25rem;
  color: var(--white-color)
}

.nav_logo-name {
  color: var(--white-color);
  font-weight: 700
}

.nav_link {
  position: relative;
  color: var(--first-color-light);
  margin-bottom: 1.5rem;
  transition: .3s
}

.nav_icon {
  font-size: 1.25rem
}

/* .show {
  left: 0
} */

.body-pd {
  padding-left: calc(var(--nav-width) + 1rem)
}

.active {
  color: var(--white-color)
}

.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--white-color)
}

.height-100 {
  height: 100vh
}

@media screen and (min-width: 300px) {
  body {
    margin: calc(var(--header-height) + 1rem) 0 0 0;
    padding-left: calc(var(--nav-width) + 2rem)
  }

  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
  }

  .header_img {
    width: 40px;
    height: 40px
  }

  .header_img img {
    width: 45px
  }

  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0
  }

  .l-navbar.show {
    width: calc(var(--nav-width) + 156px)
  }

  .body-pd {
    padding-left: calc(var(--nav-width) + 188px)
  }
}


/* ---------------------scrollbar-------------------- */

.ScorllbarPlus {
  width: 100%;
  max-height: 70vh;
  overflow-y: scroll;
  overflow-x: hidden;

}

.ScorllbarPlus::-webkit-scrollbar {
  width: 100%;
  width: 5px;
}


.ScorllbarPlus::-webkit-scrollbar-thumb {
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 5px;

}

.ScorllbarPlus {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.473) #c2c2c291;

}

.ScorllbarPlus::-moz-scrollbar {
  width: 5px;

}




.button-two {
  background-color: rgb(0, 58, 134);
  border: 0;
}


.nav_link:hover {
  border-radius: 30px;
  max-width: 100%;
  background: rgb(255, 255, 255);
  border-color: rgb(255, 255, 255);
  color: #000;
  opacity: 40%;
  transition: .5s
}

.listmenu {
  padding: 0px 50px 0px 20px;
  line-height: 3;
  color: aliceblue;

}

ul {
  list-style-type: none;
}

/* ------------แบ่งหน้า--------- */
.pagediv {
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 0.5em 1.5em rgb(0 0 0 / 10%), inset 0 0.125em 0.5em rgb(0 0 0 / 15%);
}

/* ส่วนหัว  */
.carousel-item {
  position: relative;
  /* display: none; */
  float: left;
  width: 100%;
  margin-right: -100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform .9s ease-in-out;
  opacity: 95%;
}

.button-rainbow {
  border-radius: 10px;
  background: #fff;
  background-color: rgb(0, 58, 134);

  border-color: transparent;
  opacity: 100%;

}

.button-rainbow:hover {
  border-radius: 10px;
  background: #fff;
  background-color: rgb(0, 58, 134);
  border-color: transparent;
  opacity: 70%;

}

.collapse {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: flex-start;
}

.SidebarTopMenu{
  border-bottom: 1px solid #ffffff17;
  font-size: 20px;
}

.SidebarListMenu{
  margin-top: -10%;  
  max-width: 50%;
}

.SidebarSignout{
  border-top: 1px solid #ffffff17;
  bottom: 10px;
}
.body{
  font-family: 'Prompt', sans-serif !important;
}