html {
  background-color: #fafafa;
  color: #6a6a6a;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
}

#root,
.playground-container {
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.fixedHeaderContainer {
  position: static;
}

@media (max-width: 400px) {
  header {
    padding: 10px;
  }
}

header a,
header a:visited,
header a:focus,
header a:active,
header a:hover {
  color: #fff;
  text-decoration: none;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo {
  height: 34px;
  margin-right: 10px;
}

header h1 {
  font-size: 20px;
  display: block;
  font-family: inherit;
  font-weight: 400;
  line-height: 18px;
  position: relative;
  z-index: 9999;
  margin: 0;
}

#version {
  font-size: 0.5em;
  line-height: 0;
  opacity: 0.5;
}

.links {
  display: flex;
  font-size: 16px;
}
.links > * + * {
  margin-left: 15px;
}

.editors-container {
  display: flex;
  flex: 1;
  min-height: 0;
}

.editors {
  display: flex;
  flex: 1;
}

.readonly-editor .monaco-editor .view-lines {
  cursor: default;
}

.editor {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 100%;
  position: relative;
  border-bottom: 1px solid #ddd;
}

/* display as 2x2 grid */
@media (min-width: 800px) {
  .options-container {
    border-right: 0;
  }

  .editor {
    flex-basis: 50%;
    border-left: 1px solid #ddd;
    margin-left: -1px;
  }
}

.graphql-sdl {
  height: 50%;
}

.graphiql-container {
  height: 50%;
}

.editor.loading {
  opacity: 0;
}

.CodeMirror {
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  line-height: 1.6;
}

.options-container {
  display: none;
  box-sizing: border-box;
  width: 225px;
  overflow-y: auto;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  flex: 0 1 auto;
}

.options-container.open {
  display: block;
}

.options {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: auto;
}

.sub-options {
  flex: 1;
  padding: 15px 0 10px;
  border-bottom: 1px solid #ddd;
}

.sub-options:last-child {
  border: 0;
}

.sub-options > summary {
  font-size: 14px;
  font-weight: bold;
  padding-bottom: 5px;
  cursor: pointer;
}

.sub-options > summary:focus {
  outline: 0;
}

.sub-options > * {
  margin-left: 10px;
}

label {
  font-family: Consolas, Courier New, Courier, monospace;
  margin: 10px 0;
  display: block;
}

input[type="number"] {
  max-width: 40px;
}

/* Copied from the GitHub button styling. */
.btn {
  box-sizing: content-box;
  display: inline-block;
  height: 18px;
  padding: 0 5px;
  border: 1px solid #d1d2d3;
  border-radius: 0.25em;
  background-image: linear-gradient(to bottom, #fafbfc, #e4ebf0);
  font-size: 11px;
  line-height: 18px;
  font-weight: 600;
  font-family: inherit;
  color: #24292e;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  position: relative;
}

.btn:focus {
  border-color: #c8e1ff;
}

.btn:hover {
  background-color: #e6ebf1;
  background-image: linear-gradient(to bottom, #f0f3f6, #dce3ec);
  border-color: #afb1b2;
}

.btn:active {
  background-color: #e9ecef;
  background-image: none;
  border-color: #afb1b2;
  box-shadow: inset 0 0.15em 0.3em rgba(27, 31, 35, 0.15);
}

.tooltip {
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  padding: 0.4em 0.8em;
  background-color: #000;
  color: #fff;
  border-radius: 0.4em;
  pointer-events: none;
}

.tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom: none;
  border-top-color: #000;
}

.docExplorerShow {
  display: none;
}

a[title="Show History"] {
  display: none !important;
}

/* Search */
input[type="search"] {
  -moz-appearance: none;
  -webkit-appearance: none;
}
.navSearchWrapper {
  align-items: center;
  align-self: center;
  display: flex;
  justify-content: center;
  padding-left: 10px;
  right: 10px;
}
.navSearchWrapper:before {
  border: 3px solid #e5e5e5;
  border-radius: 50%;
  content: " ";
  display: block;
  height: 6px;
  left: 15px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-58%);
  transform: translateY(-58%);
  width: 6px;
  z-index: 1;
}
.navSearchWrapper:after {
  background: #e5e5e5;
  content: " ";
  height: 7px;
  left: 24px;
  position: absolute;
  top: 55%;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  width: 3px;
  z-index: 1;
}
.navSearchWrapper .aa-dropdown-menu {
  background: #f9f9f9;
  border: 3px solid rgba(57, 57, 57, 0.25);
  color: #393939;
  font-size: 14px;
  left: auto !important;
  line-height: 1.2em;
  right: 0 !important;
}
.navSearchWrapper
  .aa-dropdown-menu
  .algolia-docsearch-suggestion--category-header {
  background: #2a6379;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}
.navSearchWrapper
  .aa-dropdown-menu
  .algolia-docsearch-suggestion--category-header
  .algolia-docsearch-suggestion--highlight {
  background-color: #2a6379;
  color: #fff;
}
.navSearchWrapper
  .aa-dropdown-menu
  .algolia-docsearch-suggestion--subcategory-column
  .algolia-docsearch-suggestion--highlight,
.navSearchWrapper
  .aa-dropdown-menu
  .algolia-docsearch-suggestion--title
  .algolia-docsearch-suggestion--highlight {
  color: #2a6379;
}
.navSearchWrapper
  .aa-dropdown-menu
  .algolia-docsearch-suggestion--subcategory-column,
.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion__secondary {
  border-color: rgba(57, 57, 57, 0.3);
}
input#search_input_react {
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  outline: none;
  padding-left: 25px;
  position: relative;
  transition: width 0.5s ease;
  width: 170px;
}
.navSearchWrapper:before {
  left: 24px;
}
.navSearchWrapper:after {
  left: 35px;
}
input#search_input_react:active,
input#search_input_react:focus {
  color: #fff;
  width: 220px;
}
.navigationSlider .slidingNav .navSearchWrapper .algolia-docsearch-footer a {
  height: auto;
}
@media only screen and (max-width: 735px) {
  .navSearchWrapper {
    width: 40%;
  }
}
