@import './_variables.scss';

div, p, span {
  font-size: 16px;
}

.disabled {
  pointer-events: none;
  /* color: #666; */
  filter: contrast(50%) brightness(40%) grayscale(100%);
}

.warning-box {
  display: flex;
  flex-direction: row;
  align-items: center;

  border: 1px solid $warning-color;
  color: $warning-color;
  margin: 0px 16px;
  padding: 16px;

  font-size: 16;

  border-radius: 2px;

  *:not(:first-child) {
    margin-left: 24px;
  }
}

h1, h2, h3 {
  font-family: 'Overpass' !important;
  font-weight: 100 !important;
  margin: 0;
  padding: 0;
}

button, .button {
  background-color: rgba($blackBg, $normalTransparentOpacity);

  padding: 0.5rem 2rem;
  margin: 3px;

  color: #aaa;
  border: 1px solid transparent;
  user-select: none !important;

  &:hover {
    color: #fff;
    background-color: rgba($blackBg, $hoverTransparentOpacity);
    border-bottom: 1px solid rgba($primary, 0.5);
  }

  &.active {
    color: $primary;
    background-color: $primaryBg;
    border-color: rgba($primary, .5);
  }

  &.danger {
    background-color: #ff2211 !important;
    color:#000;
  }
}
.b3 {
  margin: 0.25rem;
  padding: 0.5rem 2rem;
}

.input, .range-input {
  background-color: rgba($blackBg, $normalTransparentOpacity);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  position: relative;

  &:active, &:focus, &:focus-within {
    border-bottom: 1px solid rgba($primary, 0.5);
  }

  input {
    width: 100%;
    outline: none;
    border: 1px solid transparent;
    background-color: transparent;
    color: #fff;
  }

  .unit {
    position: absolute;
    right: 0px;
    pointer-events: none;
    opacity: 0.69;
    font-size: 0.8rem;
    top: 0;
    transform: translateY(69%);
  }
}

.range-input {
  display: flex;
  flex-direction: row;

  * {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }


  input {
    max-width: 5rem;
  }

  input[type=range] {
    max-width: none;
  }
}

.field {
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;

  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;

  align-items: center;

  &.l2 {
    margin-left: 4rem;
  }

  .label {
    flex: 0 0 25%;
    min-width: 16rem;
    text-align: right;
    padding-right: 1rem;

    .color-emphasis {
      color: #fa6;
    }
    .sub-label {
      font-size: 0.9em;
      opacity: 0.69;
    }
  }

  .input, .range-input {
    flex-grow: 1;
    flex-shrink: 1;
    max-width: 24rem;
  }

  .has-hint {
    display: flex;
    flex-direction: column;
  }

  .select {
    flex-grow: 1;
    flex-shrink: 1;

    select {
      background: rgba($blackBg, $hoverTransparentOpacity);
      color: #fff;
      // border: 0px solid transparent;
      border: 1px solid rgba(255, 171, 102, 0.42);

      padding: 0.5rem 1rem 0.25rem;
      outline: none;

      font: inherit;
      font-size: inherit;
    }
  }
}
.hint {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  margin-left: 5rem;
  // width: 100%;
  box-sizing:border-box;
}

.options-bar {
  position: absolute;
  width: calc(100% - 4rem);
  top: 0;

  margin: 1rem;
  padding: 1rem;

  &.isEditing {
    background-color: $primary;
    position: relative;
    color: #000;
  }
}
.b3 {
  width: 9rem;
  padding-left: 0.33rem;
  padding-right: 0.33rem;
}
.input-slider {
  width: 480px;
}
.warning-lite {
  padding-right: 16px;
  padding-bottom: 16px;
  padding-top: 8px;
}

.edit-action-area {
  background-color: rgba($blackBg,0.5);
  padding: 0.5rem;
  margin-bottom: 2rem;
}
.edit-action-area-header {
  background-color: $primary;
  color: #000;
  padding: 0.25rem 0.5rem;
  padding-top: 0.5rem;
}

.pointer {
  cursor: pointer;
  user-select: none;
}
