@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f9f9f9;
  overflow-x: hidden;
  margin: 0;
  width: 100%;
  padding-top: 0cqb;
  font-family: "Kanit", sans-serif;
}
header {
  position: relative;
  width: 100%;
  z-index: 9999;
  top: 0;
}

.navbar {
  box-sizing: border-box;
  padding: 33px 0px;
  display: flex;
  justify-content: space-between;
  background: black;
  font-family: "Poppins", sans-serif;
  height: 5em;
  align-items: center;
}

.logo {
  align-items: center;
  padding-left: 2.5rem;
  overflow: hidden;
  width: 20rem;
  height: 5rem;
  position: absolute;
}

.logonodisplay {
  font-size: 1.5rem;
  margin: 0.5rem;
}

#menu-icon {
  color: white;
  font-size: 30px;
  z-index: 10000;
  margin-right: 1.5rem;
  cursor: pointer;
  display: none;
}

.navbar ul {
  width: 100%;
  display: flex;
  justify-content: right;
  align-items: center;
  padding-right: 2rem;
}

.navbar ul a {
  margin: 0 1rem;
  text-decoration: none;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, padding 0.2s;
}

.navbar ul a:hover,
.navbar ul a.active {
  background: white;
  color: BLACK;
  padding: 6px 30px;
}

.navbar ul {
  list-style: none;
  letter-spacing: 0.5px;
}

.phonenav {
  background: black;
  margin-top: 0em;
  font-size: 16px;
  height: auto;
  position: absolute;
  width: 20em;
  right: -20em;
  transition: right 0.3s ease;
  z-index: 100;
}

.phonenav ul {
  list-style: none;
  text-align: center;
}

.phonenav a {
  display: table;
  margin: 1em;
  right: 0;
  left: 0;
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
  font-size: 600;
  text-decoration: none;
  color: white;
  font-size: 16px;
}

.phonenav li {
  position: relative;
  overflow: hidden;
}

.phonenav li::before,
.phonenav li::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: white;
  transition: transform 0.3s ease, width 0.3s ease;
}

.phonenav li::before {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.phonenav li::after {
  right: 50%;
  bottom: 0;
  transform: translateX(50%);
}

.phonenav li:hover::before,
.phonenav li:hover::after {
  width: 50%; /* Expand the border to both sides */
  transform: scaleX(1);
}

::-webkit-scrollbar {
  width: 5px;
  background: rgba(30, 31, 31);
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: rgba(89, 89, 89);
  -webkit-box-shadow: inset 0 0 6px rgba(89, 89, 89);
}
::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(255, 255, 255);
}

@media (max-width: 1300px) {
  .navbar ul a {
    padding: 6px 10px;
  }

  .navbar ul a:hover,
  .navbar ul a.active {
    background: white;
    color: BLACK;
    padding: 6px 20px;
  }
}

@media (max-width: 1100px) {
}

@media (max-width: 900px) {
  #menu-icon {
    display: block;
  }
  ul a {
    display: none;
  }

  .logo {
    padding-left: 0px;
  }
}

@media (min-width: 900px) {
  .phonenav {
    display: none;
  }
}
