:host,
:root {
  --background-color: var(
    --design-background-color,
    var(--panel-background-color)
  );
  --text-color: var(
    --design-background-text-color,
    var(--panel-on-background-color)
  );
  --surface-color: var(--design-surface-color, var(--panel-surface-color));
  --surface-text-color: var(
    --design-surface-text-color,
    var(--panel-on-surface-color)
  );
  --bokeh-base-font: 'Lato', sans-serif;
}

html {
  scrollbar-face-color: var(--surface-color);
  scrollbar-base-color: var(--surface-color);
  scrollbar-3dlight-color: var(--surface-color);
  scrollbar-highlight-color: var(--surface-color);
  scrollbar-track-color: var(--background-color);
  scrollbar-arrow-color: var(--background-color);
  scrollbar-shadow-color: var(--surface-color);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: var(--background-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--surface-color);
}

body {
  background-color: var(--background-color);
  height: 100vh;
  margin: 0px;
  font-family: var(--bokeh-base-font);
}

#container {
  padding: 0px;
  width: 100vw;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#header {
  align-items: center;
  display: flex;
  padding: 10px;
}

#header-items {
  display: flex;
  flex-direction: row;
  padding-left: 15px;
  width: 100%;
}

#app-title {
  margin-right: 15px;
  padding-left: 10px;
}

a.title {
  color: var(--header-color);
  text-decoration: none;
  text-decoration-line: none;
  text-decoration-style: initial;
  text-decoration-color: initial;
  font-weight: 400;
  font-size: 1.5em;
  line-height: 1.8em;
  white-space: nowrap;
}

.app-header {
  display: contents;
  padding-left: 10px;
}

img.app-logo {
  padding-right: 10px;
  font-size: 28px;
  height: 30px;
  padding-top: 11px;
  padding-bottom: 7px;
  max-width: inherit;
}

.pn-bar {
  width: 20px;
  height: 2px;
  background-color: var(--header-color);
  margin: 4px 0;
}

#content {
  color: var(--text-color);
  display: flex;
  flex-grow: 1;
  margin: 0px;
  overflow: hidden;
  width: 100vw;
}

#sidebar-button {
  cursor: pointer;
  font-size: 30px;
  margin-left: 0.25em;
  margin-right: 0.25em;
}

#sidebar.hidden {
  border: 0px;
  margin: 0px;
  min-width: 0px;
  overflow: hidden;
  padding: 0px;
  width: 0px;
}

#sidebar {
  border-right: 1px solid var(--panel-surface-color);
  box-sizing: border-box;
  height: 100%;
  overflow: hidden auto;
  padding: 15px 10px 15px 5px;
  transition: all 0.2s cubic-bezier(0.945, 0.02, 0.27, 0.665);
  transform-origin: center left; /* Set the transformed position of sidebar to center left side. */
}

#main {
  box-sizing: border-box;
  flex: 1 0 0%;
  height: 100%;
  overflow-y: auto;
  padding: 10px;
  transition: all 0.2s cubic-bezier(0.945, 0.02, 0.27, 0.665);
}

#sidebar-button {
  padding-right: 10px;
}

a.navbar-brand {
  padding-left: 10px;
}

.sidenav {
  height: 100%;
  padding-top: 10px;
  padding-left: 10px;
  overflow-x: hidden;
  overflow-y: scroll;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 1.2em;
  }
}

.nav.flex-column {
  padding-inline-start: 0px;
  margin-block-start: 0px;
  margin-block-end: 0px;
}

.pn-modal {
  overflow-y: scroll;
  width: 100%;
  position: absolute;
  display: none;
  top: 0;
  left: 0;
}

.pn-modal-content {
  background-color: var(--surface-color);
  border: 1px solid #888;
  color: var(--surface-text-color);
  margin: auto;
  margin-top: 25px;
  margin-bottom: 25px;
  overflow-x: auto;
  padding: 15px 20px 20px 20px;
  width: 80% !important;
}

.pn-modal-close {
  position: absolute;
  right: 25px;
  z-index: 100;
}

.pn-modal-close:hover,
.pn-modal-close:focus {
  color: var(--surface-text-color);
  text-decoration: none;
  cursor: pointer;
}

.pn-busy-container {
  align-items: center;
  justify-content: center;
  display: flex;
  margin-left: auto;
}
