@import url("../fonts/fonts.css");
@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;700&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Mitr-light", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #212121;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #e88431;
  border-radius: 10px;
}

.select-section {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.select-section button {
  padding: 0;
  border-radius: 50%;
  box-shadow: unset !important;
  background-color: transparent;
  border: unset;
  transition: 0.2s ease;
  width: 40px;
  height: 40px;
  outline: unset !important;
}

.select-section button:hover {
  transform: scale(1.1);
}

.select-section .prev-section {
  opacity: 0.5;
}

.dropdown-toggle::after {
  vertical-align: middle !important;
}

.blackcat-nav {
  background: linear-gradient(to bottom, #000, transparent);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
  position: fixed;
  z-index: 7;
}

.blackcat-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.blackcat-nav li.active > a {
  color: #e88431;
}

.blackcat-nav .dropdown .dropdown-item:first-child {
  padding-top: 1rem !important;
}

.blackcat-nav .dropdown .dropdown-item:last-child {
  padding-bottom: 1rem !important;
}

.blackcat-nav .dropdown .dropdown-item {
  padding: 0 1rem 0.5rem !important;
  font-family: "Kanit", sans-serif;
  font-size: clamp(12px, 3vw, 14px);
  color: #fff;
}

.dropdown-item.active,
.dropdown-item:active {
  background: transparent;
}

.blackcat-nav .dropdown-menu {
  border: 0;
  margin: 0;
  border-radius: 0;
  display: block;
  top: 50%;
  transition: all 0.6s ease;
  opacity: 0;
  z-index: -10;
  background-color: rgba(0, 0, 0, 0.5);
  height: 0;
  overflow: hidden;
  padding: 0;
}

.blackcat-nav a,
.blackcat-nav-mobile a {
  color: #fff;
}

.blackcat-nav .dropdown.bc-custom:hover .dropdown-menu {
  transform: translateY(0);
  opacity: 1;
  z-index: 1000;
  top: 80%;
  height: fit-content;
}

.dropdown-item:focus,
.dropdown-item:hover {
  background: none;
}

.blackcat-nav-mobile {
  height: 100%;
  position: fixed;
  width: 70%;
  background: #000000;
  right: -70%;
  top: 0;
  bottom: 0;
  transition: ease-in-out 0.4s;
  z-index: 99;
}

.blackcat-nav-mobile ul {
  list-style: none;
  padding-top: 20px;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blackcat-nav-mobile ul li {
  padding-left: 20px;
}

.blackcat-nav-mobile.open {
  right: 0;
}

.blackcat-nav-mobile a {
  font-family: "Kanit", sans-serif;
  font-size: 16px;
  color: #ffffff;
  display: block;
  padding: 10px 0;
  transition: ease 0.3s;
  text-decoration: none;
}

.device-dropdown a {
  font-size: 14px;
}

#hamburger {
  position: fixed;
  right: 0;
  top: 0;
  cursor: pointer;
  z-index: 99;
  margin-top: 15px;
  margin-right: 15px;
  transition: ease-in-out 0.4s;
  transform-origin: 5px 0px;
}

#hamburger.open {
  right: 70%;
}

#hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 1px;
  margin-top: 3px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

#hamburger div:first-child {
  transform-origin: 0% 0%;
}

#hamburger div:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#hamburger.open div {
  opacity: 1;
  transform: rotate(45deg) translate(-5px, -8px);
  background: #fff;
}

#hamburger.open div:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#hamburger.open div:nth-last-child(2) {
  transform: rotate(-45deg) translate(1px, 8px);
}

.blackcat-nav ul li {
  margin-right: 50px;
  text-align: center;
}

.blackcat-nav ul li:last-child {
  margin-right: 0;
}

.blackcat-nav li > a {
  display: block;
  font-size: clamp(14px, 3vw, 16px);
  color: #ffffff;
  text-decoration: none;
  transition: ease 0.3s;
  line-height: 4;
  font-family: "Kanit", sans-serif;
}

.blackcat-nav-mobile a:hover,
.blackcat-nav-mobile a.active,
.blackcat-nav a:hover,
.blackcat-nav a.active {
  color: #e88431 !important;
}

.blackcat-nav li:nth-child(4) a:hover {
  transform: translateY(-10px) scale(1.2);
}

.blackcat-nav li:last-child a {
  margin-right: 0;
}

.blackcat-nav a img {
  width: 20%;
  height: 100%;
}

.logo-blackcat {
  width: 100%;
  height: 85vh;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 1200px) {
  .select-section {
    left: 0.5rem;
  }
  .select-section button {
    width: 30px;
    height: 30px;
  }
}

@media screen and (max-width: 992px) {
  .blackcat-nav ul li {
    margin-right: 1.5rem;
  }
}

@media screen and (max-width: 350px) {
  .blackcat-nav-mobile a {
    font-size: 12px;
    padding: 0.5rem 0;
  }
}

@media screen and (min-width: 1600px) {
  .container {
    max-width: 1300px;
  }
}