@import "variables";
@import "bootstrap";

@import "../fonts/JetBrainsMono";

@import "keylighter";
@import "sidebar";
@import "docs";

$footer-height: 60px;

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  padding-top: 1rem;
  color: $color-dark;
}

html {
  position: relative;
  min-height: 100%;
  line-height: 1.3;
}

body {
  margin-bottom: $footer-height;
  color: #444;
}

#content {
  padding: 5rem 0;

  img {
    max-width: 100%;
  }
}

#footer {
  padding: 1rem;
  line-height: 2rem;
  background: $gray-100;
  border-top: 1px solid $gray-300;
  vertical-align: middle;
  height: $footer-height;

  position: absolute;
  bottom: 0;
  left: 0; right: 0;

  span, a {
    display: inline-block;
    line-height: 2rem;
  }

  .copyright {
    font-size: $font-size-sm;
    filter: #{"grayscale(100%)"};
    margin-left: auto;
    transition: ease-in-out filter 150ms;

    &:hover {
      filter: #{"grayscale(0%)"};
    }

    img {
      height: 1.5rem;
    }
  }
}


.timing {
  height: 1.5rem;

  .progress-bar {
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

.snippet {
  > nav, > aside, > pre, > section {
    margin-bottom: 1rem;
  }

  aside {
    font-weight: bolder;
  }
}

#try-form {
  padding: 1rem 0;
  color: $foreground;
  background: $color-dark;

  textarea, label, input {
    font-family: $font-family-monospace;
  }

  textarea, input {
    border-radius: 0;
    border: none;
    background: $background;
    color: $foreground;
  }

  textarea {
    padding: 1.5rem;
  }

  &.hidden {
    display: none;
  }

  &.visible {
    display: block;
  }
}

.d-flex.dual {
  justify-content: space-between;
}

.nav-item > a.slim {
  padding-left: 0 !important;
}

#form-toggle {
  &.visible svg {
    transform: rotate(180deg);
  }

  svg {
    transition: transform 300ms ease, color 100ms ease;
  }
}

#language-selector {
  > a.language {
    margin-bottom: .5rem;
    margin-right: .5rem;

    display: none;
  }

  margin-bottom: -.5rem;

  &.standalone > a.standalone { display: inline-block }
  &.embeddable > a.embeddable { display: inline-block }

  a.hidden { display: none !important; }
}
