@font-face {
  font-family: "register";
  src: url("./fonts/register.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.ff-led {
  font-family: "register";
}

:root {
  --c-bg: #ffffff;
  --c-bg-2: #202123;
  --c-fg: #444444;
  --c-scroll: #d9d9d9;
  --c-scroll-hover: #bbbbbb;
  --100vh: 100vh;
  --sidebar-width: 260px;
  --sidebar-width-neg: -260px;
  scrollbar-color: var(--c-scrollbar) var(--c-bg);
}

html {
  font-family: "Open Sans", sans-serif;
  background-color: var(--c-bg);
  color: var(--c-fg);
  overflow: scroll;
}

html.dark {
  --c-bg: #212129;
  /* --c-bg-2: #141414; */
  --c-fg: #ddddf0;
  --c-scroll: #333333;
  --c-scroll-hover: #555555;
}

.embedded-chat-hidden {
  display: none;
}

.h-vh {
  height: 100vh;
  height: var(--100vh);
}

.top-header {
  width: 100%;
  height: 35px;
  position: absolute;
  z-index: 8;
}

.sidebar-container {
  position: relative;
  max-width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  height: var(--100vh);
  max-height: 100vh;
  max-height: var(--100vh);
  display: flex;
  overflow: visible;
}

.sidebar {
  position: fixed;
  flex: 0 1 var(--sidebar-width);
  max-width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  overflow: hidden;
  max-height: 100vh;
  max-height: var(--100vh);
  height: 100vh;
  height: var(--100vh);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.sidebar-close-button {
  position: fixed;
  opacity: 0;
  transition: left 250ms ease-out;
  left: 10px;
}
.sidebar-container.sidebar-open .sidebar-close-button {
  opacity: 1;
  left: 230px;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 9;
  transition: opacity 250ms ease-out;
}

.sidebar-container.sidebar-open + .sidebar-overlay {
  opacity: 0.5;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
}

.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 13;
}

.dialog {
  position: fixed;
  padding: 1rem 0;
  overflow: hidden;
  z-index: 15;
  display: flex;
  flex-direction: column;
  height: 400px;
  width: 300px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 40px);
}

.user-select-none {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.pointer-events-none {
  pointer-events: none;
  -webkit-pointer-events: none;
}

.google-btn {
  height: 50px;
  width: 240px;
  max-width: 100%;
  border: none;
  text-align: center;
  vertical-align: center;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
  font-size: 16px;
  line-height: 48px;
  display: block;
  border-radius: 1px;
  transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  font-family: Roboto, arial, sans-serif;
  cursor: pointer;
  user-select: none;
  background-color: #4285f4;
  color: #fff;
}

.google-btn:hover {
  box-shadow: 0 0 3px 3px rgba(66, 133, 244, 0.3);
}

.google-btn:disabled {
  background-color: rgba(37, 5, 5, 0.08);
  color: rgba(0, 0, 0, 0.4);
  cursor: not-allowed;
}

.google-btn .google-icon {
  width: 48px;
  height: 48px;
  text-align: center;
  vertical-align: center;
  display: block;
  margin-top: 1px;
  margin-left: 1px;
  margin-bottom: 1px;
  float: left;
  background-color: #fff;
  border-radius: 1px;
  white-space: nowrap;
}

.google-btn .google-icon svg {
  width: 48px;
  height: 48px;
  display: block;
}

.spinner {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background-color: none;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.15);
  border-top: 3px solid rgba(148, 163, 184, 0.5);
  animation: spin 1s linear 0s infinite;
}

@keyframes spin {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 768px) {
  .sidebar-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--sidebar-width-neg);
    background-color: var(--c-bg-2);
    transition: left 250ms ease-out;
    z-index: 10;
  }
  .sidebar-container.sidebar-open {
    left: 0;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--c-scroll);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--c-scroll-hover);
}
::-webkit-scrollbar-track {
  background-color: var(--c-bg);
}
