html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(40, 41, 50);
  margin-bottom: 50px;
  overflow-x: hidden;
}

* {
  font-family: "Kanit", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #d8d8d8;
}

*::selection {
  background-color: rgb(255, 197, 88);
  color: rgb(40, 41, 50);
}

/* Hide Video Speed Controller extension UI */
.vsc-controller {
  display: none !important;
}
button {
  border: none;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
}

input {
  background-color: rgb(52, 53, 64);
  color: rgb(157, 159, 174);
  border: 3px solid transparent;
  border-radius: 6px;
  transition: all 0.2s;
  padding: 3px 5px;
}
input:focus {
  outline: none;
  border: 3px solid rgb(159, 166, 245);
}

.navbar {
  position: fixed;
  background-color: rgba(209, 200, 255, 0.26);
  left: 50%;
  top: -105px;
  display: none;
  align-items: center;
  opacity: 0;
  width: fit-content;
  max-width: calc(100vw - 24px);
  padding: 0px !important;
  transform: translate(-50%, -50%);
  z-index: 16;
  padding: 0px 0;
  border-radius: 10px;
  backdrop-filter: blur(10px); /* Add this line */
  transition: all 0.5s ease; /* Add a smooth transition effect */
  overflow: hidden;
  margin-top: 30px;
}

.navbar-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 100%;
  border-radius: 10px;
  background-color: #f4a221;
  box-shadow: 0 0 16px rgba(244, 162, 33, 0.35);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.navbar-indicator.is-visible {
  opacity: 1;
}

.navbar a {
  min-width: 96px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  padding: 10px 16px;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.navbar a.is-active {
  color: #ffffff;
}

.navbar a:hover {
  background-color: rgba(185, 185, 255, 0.145);
}
