/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @format
 */

/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #dc2319;
  --ifm-color-primary-dark: #dc2319;
  --ifm-color-primary-darker: #dc2319;
  --ifm-color-primary-darkest: #dc2319;
  --ifm-color-primary-light: #dc2319;
  --ifm-color-primary-lighter: #dc2319;
  --ifm-color-primary-lightest: #dc2319;
  --ifm-navbar-height: 3.5rem;
  --ifm-navbar-padding-vertical: 0;
  --ifm-code-font-size: 95%;
  --flow-yellow: #e8bd36;
  --flow-gray-darker: #384048;
  --flow-gray-darkest: #2d343a;
  --flow-green: #9cd732;
  --flow-red: #dc2319;
}

.docusaurus-highlight-code-line {
  background-color: rgb(72, 77, 91);
  display: block;
  margin: 0 calc(-1 * var(--ifm-pre-padding));
  padding: 0 var(--ifm-pre-padding);
}

.navbar {
  background-color: #2d343a;
}

.navbar .navbar__link, .navbar .navbar__toggle, .navbar .menu__link, .navbar .navbar-sidebar__back {
  color: rgba(255, 255, 255, 0.7);
}

.navbar__brand, .navbar__logo {
  height: 100%;
}

.navbar .navbar__icon {
  padding: 0px;
  padding-right: 1rem;
}
.navbar .navbar__icon:hover {
  opacity: 0.8;
}
.navbar .navbar__icon:active {
  opacity: 0.7;
}
.navbar .navbar__icon:before {
  content: '';
  display: flex;
  height: 20px;
  width: 21px;
  background-color: rgba(255, 255, 255, 0.7);
}

.navbar .twitter__link:before {
  background: url(/img/icon-twitter.svg);
  background-repeat: no-repeat;
}
.navbar .stackoverflow__link:before {
  background: url(/img/icon-stackoverflow.svg);
  background-repeat: no-repeat;
}
.navbar .github__link:before {
  background: url(/img/icon-github.svg);
  background-repeat: no-repeat;
}

.navbar-sidebar {
  background-color: #2d343a;
}

.navbar-sidebar .navbar__icon {
  padding: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal);
}
.navbar-sidebar .navbar__icon:hover {
  opacity: 1;
}
.navbar-sidebar .navbar__icon:active {
  opacity: 1;
}

.rounded {
  border-radius: 0.25rem;
}

.version {
  padding: 3px 5px;
  font-size: 12px;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}
.version.added {
  background: var(--flow-green);
  color: white;
}
.version.removed {
  background: var(--flow-red);
  color: white;
}

.gh-btn {
  position: relative;
  vertical-align: middle;
}

@media (min-width: 1680px) {
  .docusaurus-mermaid-container {
    /* Make mermaid graphs use up all the width available so that they are legible. */
    margin-left: calc(-50vw + var(--doc-sidebar-width) + var(--ifm-container-width-xl) / 2);
    margin-right: calc(-50vw + var(--ifm-container-width-xl) /  2);
    max-width: initial !important;
  }
}
