@import '../../styles/mixins.scss';

.props {
  &__label {
    display: block;
    position: relative;
    clear: both;
    padding-left: 35px;
    margin: 10px 10px 0;
    height: 38px;
    line-height: 1.1;
    color: #2d2d2d;
    font-weight: 500;
    font-size: 18px;
  }

  &__block {
    display: flex;
    flex-direction: row;
    float: right;
    width: -100%;
    height: 100%;

    input {
      line-height: 1em;
      height: 38px;
      font-weight: 400;
      font-size: 14px;

      &:focus {
        border: 1px solid #66afe9;
        outline: 0;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
        0 0 8px rgba(102, 175, 233, 0.6);
      }
    }

    .search-button {
      @include font-inter(400);
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 24px;
      width: 74px;
      margin-top: -40px;
      margin-right: 12px;
      margin-bottom: 0;
      text-align: center;
      vertical-align: middle;
      padding: 5px 8px;
      color: white;
      background-color: #167782;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 12px;
      z-index: 2;

      &:hover {
        background-color: #0e919d;
      }
    }

    input[type='text'] {
      width: 100%;
      margin-right: 10px;
    }

    .search-button[disabled] {
      background-color: #167782;
      cursor: not-allowed;
      filter: alpha(opacity=65);
      opacity: 0.65;
    }
  }
}

.loadMore {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  padding: 8px 12px;
  color: #fff;
  background-color: #167782;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 12px;

  line-height: 1em;
  height: 38px;
  font-weight: 400;
  font-size: 14px;

}


.output {
  display: block;
  margin-top: 12px;

  code {
    line-height: 150px;
    margin: 0.5em 2em 1em;
    font-size: 18px;
    font-weight: 700;
  }

  .summary {
    display: flex;
    justify-content: space-between;
    text-align: left;
    overflow: hidden;
    font-size: 12px;
    font-weight: 400;
    margin-top: 8px;
  }

  .results {
    margin-left: 16px;
    padding: 0;
    list-style: none;
  }

  li {
    position: relative;
    padding: 16px 0;
    color: #8c8c8c;
    text-align: justify;

    &:not(:last-of-type) {
      border-bottom: 1px solid #eee;
    }

    &:after {
      content: '';
      width: 100%;
    }
  }

  dl {
    display: inline-block;
    vertical-align: middle;
    width: 600px;
    font-size: 9px;
    line-height: 14px;
    padding-left: 10px;
    margin: 0;
  }

  dt {
    color: #6d94bf;
    float: left;
    padding: 0 2px;
    margin: 0 3px 0 -10px;

    &:after {
      content: ':';
    }
  }

  dd {
    margin: 0;
    min-height: 14px;
    word-wrap: break-word;
    word-break: break-all;
  }

  a.export {
    cursor: pointer;
    background-image: none;
    border: 1px solid #474949;
    //color: #fff;
    background-color: #474949;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    height: 30px;
    pointer-events: none;
    color: #999;
  }

  .loading,
  img {
    height: 150px;
    width: 150px;
    vertical-align: middle;
  }

  .results .loading,
  .results img {
    margin: 10px 0 0 48px;
    height: 300px;
    width: 300px;
  }
}

.query {
  display: flex;
  flex-direction: column;
  margin-left: 16px;
  padding-bottom: 10px;
}

.results .properties pre {
  margin-top: 10px;
}

.no-results {
  margin-left: 16px;
  font-size: 12px;
  font-weight: 400;
  padding-bottom: 10px;
}

/* HTML: <div class="loader"></div> */
.loader {
  margin: 10px 0 0 0;
  width: 60px;
  aspect-ratio: 4;
  --_g: no-repeat radial-gradient(circle closest-side,#000 90%,#0000);
  background:
    var(--_g) 0%   50%,
    var(--_g) 50%  50%,
    var(--_g) 100% 50%;
  background-size: calc(100%/3) 100%;
  animation: l7 1s infinite linear;
}

@keyframes l7 {
  33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
  50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
  66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
}
