@import "variables";
@import "3rdParty/index";
@import "components/index";
@import "flexbox/index";
@import "project/index";
@import "project/segments";

.butter-bar {
  margin-top: 8px;
  margin-bottom: 4px;
  background-color: $butter-bar-bg;
  text-align: center;
  line-height: 44px;
  position: sticky;
  top: 0;
  z-index: 1;
  >* { // since the markdown can be <p we need to reset any styling
    display: inline-block;
    margin: 0;
  }
}
.display-none {
  display: none !important;
}
.dark .butter-bar {
  background-color: $butter-bar-bg-dark;
  color: $header-color-dark;
}


bold, strong {
  font-weight: bold;
}

.overflow-visible {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.faint {
  color: $text-muted;
  font-size: 0.8em;
}

.value-editor {
  &.disabled {
    code {
      cursor: not-allowed;
      opacity: 0.5;
    }
    .select-language {
      display: none;
    }
  }
}

.faint-lg {
  color: $text-muted;
  font-size: 1.25em;
}

.striped-section {
  padding: 20px;

  &:nth-child(2) {
    background-color: #f7f7f7;
  }
}

.cursor-pointer {
  cursor: pointer;
}
.cursor-default {
  cursor: default;
}
.cursor-not-allowed {
  cursor: not-allowed;
}


.maintenance {
  background: $bg-dark400;

  h1 {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2em;
    font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  }

  a {
    color: #6896ba;
  }

  color: white;
  font-size: 1.25em;
  line-height: 44px;

  .small {
    margin-top: 44px;
    color: white;
    font-size: 0.8em;
  }
}

.clickable {
  cursor: pointer;
}

body, html {
  height: 100%;
}

body.dark {
  background-color: $bg-dark500;
  a {
    color: $anchor-color-dark;

  }
}

a {
  color: $anchor-color;
  font-weight: 500;
  cursor: pointer;
}

.no-pointer {
  pointer-events: none !important;
}

input:disabled {
  opacity: 0.4;
}

.full-width {
  width: 100%;

  > input {
    width: 100%;
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.inline-block {
  display: inline-block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.header-icon {
  margin-left: 10px;
  font-size: 1.5em;
}

.alert-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 200;
  color: #fff;
  padding: 15px;
  font-size: 1.2em;
  background-color: #384f68;
  text-align: center;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;

  a {
    color: white;

    &.close-btn {
      font-size: 30px;
      line-height: 30px;
    }
  }

  &__text {
    font-size: 14px;
    @media screen and (max-width: 368px) {
      font-size: 11px;
    }
  }


  &.slideOut {
    padding: 0;
  }
}

@media screen and (max-width: 576px) {

  .alert-bar {
    padding: 10px 10px 5px 0;
    font-size: 1em;
  }

}

.bottom-banner {
  position: fixed;
  bottom: 20px;
  margin: auto;
  height: 44px;
  line-height: 44px;
  right: 0;
  text-align: center;

  .inner {
    padding-left: 10px;
    padding-right: 10px;
    height: 44px;
    background-color: white;
    display: inline-block;
    box-shadow: rgba(75, 75, 75, 0.21) 0px 1px 6px, rgba(75, 75, 75, 0.21) 0px 1px 4px;
  }
}

.react-select__menu {
  z-index: 3 !important;
}


body {
  max-width: 100vw;
  overflow-x: hidden;
}

.repo-code-references-section {
  background-color: $code-btn-bg;
}