@font-face {
  font-family: head_TH;
  src: url(../fonts/Kanit-LightItalic.ttf);
}

body {
  font-family: head_TH;
}

.pc-light {
  background-color: #eeeeee;
  color: #838383;
}

.pc-light .main-banner {
  background-color: transparent;
  height: 4rem;
  left: 0px;
  position: relative;
  top: 0px;
  width: 100%;
}

.pc-light .banner-preference {
  background-color: #ffffff;
  box-shadow: 0px 3px 6px #00000029;
  height: 100%;
  left: 0px;
  position: absolute;
  top: 0px;
  width: 100%;
}

.pc-dark {
  background-color: #13151a;
  color: #e6e6e6;
}

.pc-dark .main-banner {
  background-color: transparent;
  height: 4rem;
  left: 0px;
  position: relative;
  top: 0px;
  width: 100%;
}

.pc-dark .banner-preference {
  background-color: #202426;
  box-shadow: 0px 3px 6px #00000029;
  height: 100%;
  left: 0px;
  position: absolute;
  top: 0px;
  width: 100%;
}

@media only screen and (min-width: 200px) {
  .banner-img {
    content: url("../img/logo_xl.png");
    margin: 0;
    width: 7rem;
    position: absolute;
    top: 50%;
    left: 3%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .banner-setting {
    background-color: transparent;
    bottom: calc(44.84% - 20px);
    height: 34px;
    position: absolute;
    right: 5em;
    width: 300px;
  }

  .banner-option {
    display: block;
  }

  .banner-user {
    background-color: transparent;
    bottom: calc(44.84% - 20px);
    height: 43px;
    position: absolute;
    right: 5em;
    width: 88px;
  }

  .banner-user .for-btn :hover {
    transform: scale(1.1, 1.1);
    transition: all 0.4s ease;
    cursor: pointer;
  }

  .contact_us {
    display: block;
    position: fixed;
    color: white;
    background-color: #2360a4;
    opacity: 1;
    bottom: 7vh;
    font-size: 15px;
    right: 7vh;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
  }

  .contact_us:hover {
    opacity: 0.6;
  }

  .contact_overlay {
    background: rgba(255, 255, 255, 0.6);
    color: gray;
    display: none;
    position: fixed;
    z-index: 2;
    width: 200px;
    bottom: 12vh;
    font-size: 16px;
    right: 7vh;
    padding: 8px;
    border-radius: 5px;
  }

  .pc-light .contact_us {
    background-color: #2360a4;
    color: white;
  }

  .pc-dark .contact_us {
    background-color: orange;
    color: white;
  }

  .pc-light .contact_overlay {
    background: rgba(255, 255, 255, 0.6);
    color: gray;
  }

  .pc-dark .contact_overlay {
    background: rgba(0, 0, 0, 0.6);
    color: silver;
  }

  .pc-light .contact_overlay b {
    color: #2360a4;
  }

  .pc-dark .contact_overlay b {
    color: orange;
  }

  .contact_overlay span {
    font-weight: bold;
  }

  .contact_us:hover ~ .contact_overlay {
    display: block;
  }
}

@media only screen and (max-width: 599px) {
  .main-banner {
    height: 3rem !important;
  }

  .banner-img {
    content: url("../img/logo_sm.png");
    margin: 0;
    width: 10rem;
    position: absolute;
    top: 50%;
    left: 25%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .banner-option {
    background-color: transparent;
    color: #939393;
    position: absolute;
    font-size: 30px;
    right: 20px;
    width: 20px;
    top: 45%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .banner-option :active {
    color: #fbba04;
  }

  .banner-setting {
    display: none;
    top: calc(100% + 13px);
    right: -30px !important;
    position: absolute;
    right: 5em;
    width: 200px;
  }

  .contact_us {
    display: none;
  }

  .contact_overlay {
    display: none;
  }
}

/*TOGGLE*/
.toggle {
  position: relative;
  display: flex;
  width: 150px;
  height: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
}

.toggle:before {
  content: "";
  position: relative;
  top: -3px;
  left: -3px;
  width: 46px;
  height: 25.2px;
  display: block;
  background: #cfcfcf;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.toggle span {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  display: block;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(154, 153, 153, 0.5);
  transition: all 0.2s ease;
}

.toggle p {
  color: #969696;
}

.toggle span:before {
  position: absolute;
  display: block;
  margin: -18px;
  width: 56px;
  height: 56px;
  background: rgba(255, 99, 71, 0.8);
  border-radius: 50%;
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
}

#dark-check:checked + .toggle:before {
  background: #ffc451;
}

#dark-check:checked + .toggle span {
  background: #ffffff;
  transform: translateX(20px);
  transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), background 0.15s ease;
  box-shadow: 0 3px 8px rgba(255, 182, 220, 0.2);
}

#dark-check:checked + .toggle p {
  color: #fbba04;
}

#dark-check:checked + .toggle span:before {
  transform: scale(1);
  opacity: 0;
  transition: all 0.4s ease;
}

/*TOGGLE-Mobile*/
.toggle-mobile {
  position: relative;
  display: flex;
  width: 150px;
  height: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
}

.toggle-mobile:before {
  content: "";
  position: relative;
  top: -3px;
  left: -3px;
  width: 46px;
  height: 25.2px;
  display: block;
  background: #cfcfcf;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.toggle-mobile span {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  display: block;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(154, 153, 153, 0.5);
  transition: all 0.2s ease;
}

.toggle-mobile p {
  color: #969696;
}

.toggle-mobile span:before {
  position: absolute;
  display: block;
  margin: -18px;
  width: 56px;
  height: 56px;
  background: rgba(255, 99, 71, 0.8);
  border-radius: 50%;
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
}

#dark-check-mobile:checked + .toggle-mobile:before {
  background: #ffc451;
}

#dark-check-mobile:checked + .toggle-mobile span {
  background: #ffffff;
  transform: translateX(20px);
  transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), background 0.15s ease;
  box-shadow: 0 3px 8px rgba(255, 182, 220, 0.2);
}

#dark-check-mobile:checked + .toggle-mobile p {
  color: #fbba04;
}

#dark-check-mobile:checked + .toggle-mobile span:before {
  transform: scale(1);
  opacity: 0;
  transition: all 0.4s ease;
}

/*  CONTENT CSS */
@media only screen and (min-width: 1401px) {
  .main-content {
    min-height: 50rem;
  }

  .pc-light .background-content {
    background-color: rgba(255, 255, 255, 0.5);
    position: fixed;
    min-height: 100em;
    width: 74%;
    transform: translate(13%, 0);
    z-index: -1;
    box-shadow: 1px 0px 2px silver;
  }

  .pc-dark .background-content {
    background-color: rgba(255, 255, 255, 0.02);
    position: fixed;
    min-height: 100em;
    width: 74%;
    transform: translate(13%, 0);
    z-index: -1;
  }
}

@media only screen and (max-width: 1400px) and (min-width: 600px) {
  .main-content {
    min-height: 32rem;
  }

  .pc-light .background-content {
    background-color: rgba(255, 255, 255, 0.1);
    position: fixed;
    min-height: 100em;
    width: 85%;
    transform: translate(8.25%, 0%);
    margin-top: -100px;
    z-index: -1;
    box-shadow: 1px 0px 2px silver;
  }

  .pc-dark .background-content {
    background-color: rgba(255, 255, 255, 0.02);
    position: fixed;
    min-height: 100em;
    width: 85%;
    transform: translate(8.25%, 0);
    z-index: -1;
  }
}

footer {
  text-align: center;
  color: gray;
  margin-bottom: 20px;
}

/* Menu_grid*/
.cards-list {
  z-index: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.card_menu {
  margin: 18px;
  width: 170px;
  height: 130px;
  border-radius: 20px;
  box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.25),
    -2px -2px 4px 1px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
}

.card_menu .card_image {
  width: inherit;
  height: inherit;
  border-radius: 40px;
}

.card_menu .card_image img {
  width: inherit;
  height: inherit;
  border-radius: 20px;
  object-fit: cover;
}

.card_menu .card_title {
  text-align: center;
  border-radius: 0px 0px 0px 0px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 25px;
  margin-top: -130px;
  border-radius: 20px;
  height: 40px;
}

.card_menu:hover {
  transform: scale(1.1, 1.1);
  box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1),
    -1px -1px 2px 1px rgba(0, 0, 0, 0.1);
}

@media only screen and (min-width: 501px) {
  .title-operation {
    color: white;
    background-color: rgba(0, 37, 124, 0.75);
    clip-path: polygon(0 0, 0 75%, 75% 0);
    min-height: 150px;
    min-width: 150px;
  }

  .title-operation p {
    margin-right: 32px;
    padding-top: 37px;
    padding-bottom: 80px;
    font-size: 15px;
    margin-left: -0px;
    -ms-transform: rotate(-42deg);
    transform: rotate(-42deg);
    text-align: center;
  }

  .title-support {
    color: white;
    background-color: rgba(255, 0, 0, 0.75);
    clip-path: polygon(0 0, 0 75%, 75% 0);
    min-height: 150px;
    min-width: 150px;
  }

  .title-support p {
    margin-right: 32px;
    padding-top: 37px;
    padding-bottom: 80px;
    font-size: 15px;
    margin-left: -0px;
    -ms-transform: rotate(-42deg);
    transform: rotate(-42deg);
    text-align: center;
  }
}

@media all and (max-width: 500px) {
  .card-list {
    flex-direction: column;
  }

  .card_menu .card_title {
    font-size: 30px;
    margin-top: -120px;
    border-radius: 20px;
    height: 40px;
  }

  .card_menu {
    margin: 5px;
    width: 130px;
    height: 120px;
    border-radius: 20px;
  }

  .title-operation {
    color: white;
    background-color: rgba(0, 37, 124, 0.75);
    clip-path: polygon(0 0, 0 75%, 75% 0);
    min-height: 140px;
    min-width: 120px;
  }

  .title-operation p {
    margin-right: 7px;
    padding-top: 20px;
    padding-bottom: 80px;
    font-size: 9px;
    margin-left: -0px;
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    text-align: center;
  }

  .title-support {
    color: white;
    background-color: rgba(255, 0, 0, 0.75);
    clip-path: polygon(0 0, 0 75%, 75% 0);
    min-height: 120px;
    min-width: 120px;
  }

  .title-support p {
    margin-right: 7px;
    padding-top: 20px;
    padding-bottom: 80px;
    font-size: 13px;
    margin-left: -0px;
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    text-align: center;
  }
}

.unavilable img {
  filter: grayscale(100%);
}

.unavilable .title-support {
  background-color: rgba(0, 0, 0, 0.75);
}

.unavilable .title-operation {
  background-color: rgba(0, 0, 0, 0.75);
}

.pc-dark .modal-body {
  background-color: #171b24;
}

.pc-light .vl {
  display: fixed;
  position: absolute;
  border-left: 1px solid silver;
  height: 42px;
  margin-left: -9px;
  z-index: 1;
}

.pc-dark .vl {
  display: fixed;
  position: absolute;
  border-left: 1px solid #606060;
  height: 42px;
  margin-left: -9px;
  z-index: 1;
}

.bordered_wrong {
  border: 1px solid orange;
  transition: all 0.4s ease;
}

.bordered_success {
  border: 1px solid yellowgreen;
  transition: all 0.4s ease;
}

.card_menu p {
  font-size: 13px;
}
