:root {
  --primary-color: #007bff;
  --caption-color: #444;
  --custom-bg-primary: #0377a1;
  --custom-bg-highlighted: rgba(255, 255, 255, 0.2);
  --sidebar-width: 300px;
}

[id] {
  scroll-margin-top: 70px;
}

a {
  text-decoration: none;
  word-break: break-word;
}

dt,
dd {
  display: inline;
}

dd::after {
  content: '';
  display: block;
}

dt {
  font-weight: 600;
}

.jumbotron {
  background-color: #e9ecef;
  border-radius: 10px;
}

.stats-chart-container {
  max-width: 800px;
  max-height: 500px;
  margin: auto !important;
  position: relative;
}

.toast-container {
  background-color: white;
  position: fixed;
  right: 1em;
  bottom: 1em;
  z-index: 10000;
}

.search-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.search-dropdown {
  min-width: 180px;
  z-index: 1000;
}

.text-warning {
  color: #e9a100 !important;
}

.caption {
  font-size: 0.75rem;
  color: var(--caption-color);
}

.modal-content pre,
.modal-content code.hljs {
  background: inherit;
  overflow: visible !important;
}

.app-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--custom-bg-primary) no-repeat;
  background-size: cover;
  z-index: -9999;
}

main {
  margin: 0.25rem;
  background-color: #fefefe;
  position: relative;
  padding: 0.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  flex-grow: 1;
  view-transition-name: main-section;
}

.main-content {
  grid-template-columns: 300px 1fr;
}

.light-bold {
  font-weight: 600 !important;
}

.fixed-toast {
  position: fixed;
  bottom: 5px;
  right: 5px;
}

.hljs {
  background: #0d1117 !important;
}

.hide-on-desktop {
  display: none;
}

@media only screen and {
  .hide-on-mobile {
    display: none;
  }

  .hide-on-desktop {
    display: inherit;
  }
}

.nav-sidebar {
  position: relative;
  float: left;
  width: var(--sidebar-width);
  z-index: 1050;
}

@keyframes fade_in {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .nav-sidebar {
    display: none;
    transform-origin: top;
    width: 100%;
    background-color: var(--custom-bg-primary);
    height: 100%;
    position: fixed;
    animation: fade_in 0.3s ease-in-out;
  }

  main {
    border-radius: 0;
    margin: 0;
  }
}

@media only screen and (max-width: 800px) {
  main {
    padding: 0.25rem;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slide-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

::view-transition-old(main-section) {
  animation: 400ms cubic-bezier(0.4, 0, 0.2, 1) both slide-out;
}

::view-transition-new(main-section) {
  animation: 300ms cubic-bezier(0.1, 0.4, 0.2, 1) 100ms both slide-in;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(main-section) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out;
  }

  ::view-transition-new(main-section) {
    animation: 300ms cubic-bezier(0.1, 0.4, 0.2, 1) both fade-in;
  }

  .fade {
    transition: opacity 0.15s linear !important;
  }

  .collapsing {
    transition: height 0.35s ease !important;
  }
}
