/* @import "colors.scss"; */
/*
@import "fonts.scss";
@import "flex.scss";
*/

* {
  box-sizing: border-box;
}

body {
  background-color: $background-primary;
  color: $text-normal;
  font-family: 'Overpass', sans-serif;
  font-size: 1.2em;
  width: 100%;
  min-height: 100%;
  height: 100vh;
  border: 0px;
  margin: 0px;
  padding: 0px;
}

.main-window::before {
  content: ' ';
  color: #000;
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  z-index: -1;
  width: calc(100% + 1rem);
  height: calc(100% + 1rem);
  background-image: url('/csui/res/img/uw-window-bg-texture-3.webp');
  opacity: 0.75;
}

/* STANDARD WIDTHS AND HEIGHTS */
.w100, .w-full {
  width: 100%;
}

.h100, .h-full {
  height: 100%;
}

.w24 {
  width: 100px;
}

.m-t-0-33em {
  margin-top: 0.33em;
}

.x-pad-1em {
  padding-left: 1em;
  padding-right: 1em;
}

/* overflow stuff */
.overflow-y-auto {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba($primary-color, 0.7) $background-primary;
}
.scrollbar-darker {
  scrollbar-color: rgba($primary-color, 0.5) $background-primary;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(#fa6, 0.5);
  border-radius: 20px;
  border: transparent;
}



/* scrollbars for chrome/webkit */
.overflow-y-auto::-webkit-scrollbar {
  width: 3px;
}
.overflow-y-auto::-webkit-scrollbar-track {
  background: $background-primary;
}
.overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba($primary-color, 0.7);
}
.overflow-y-auto::-webkit-scrollbar-button {
  display: none;
}
.scrollbar-darker::-webkit-scrollbar-thumb {
  background: rgba($primary-color, 0.5);
}

.no-overflow {
  overflow: hidden;
}

.no-overflow-x {
  overflow-x: hidden;
}

.no-overflow-y {
  overflow-y: hidden;
}

/* .SELECTED CLASSES */

.selected-tab {
  background-color: initial;
  border-left: $primary-color 5px solid;
}

.selected-tab-secondary {
  background-color: initial;
  border-left: $secondary-color 3px solid !important;
}


/* BASIC STYLING */

.description {
  color: $text-dim;
  font-size: 1rem;
}

.label {
  font-size: 1.5rem;
  font-variant: small-caps;
  font-weight: 600;
}

.label-secondary {
  font-weight: 600;
}

.button-box {
  padding-top: 0.69rem;
  padding-bottom: 0.69rem;
}

.indent {
  padding-left: 4.2rem;
}

.row-padding {
  padding-top: 0.69rem;
  padding-bottom: 0.69rem;
}

a, a:visited {
  color: $primary-color;
}
a:hover {
  color: lighten($primary-color, 10%);
}

/* INPUT FORMATTING */
input[type="number"], input[type="text"], input {
  outline: none;
  background-color: $input-background;
  color: $text-normal;
  padding: 0.1rem;
  padding-top: 0.2rem;
  padding-bottom: 0.1rem;
  margin-left: 1rem;
  border: 1px solid $input-border;
}

input:disabled {
  background: #444444;
  color: darken($text-normal, 50%);
}

/* ELEMENT POSITIONING */

.row {
  display: block;
  margin-top: 20px;
  margin-bottom: 10px;
}

.button-row {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
}

.float-left {
  float: left;
}
.float-right {
  float: right;
}

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

.block {
  display: block;
}

.hidden {
  display: none !important;
}

.hide {
  display: none !important;
}



/* TEXT FORMATTING (no colors) */

small {
  font-size: 0.75em;
  font-weight: 200;
}

.small {
  font-size: 0.75em;
  font-weight: 200;
}

.medium-small {
  font-size: 0.85em;
  font-weight: 200;
}

.smallcaps{
  font-variant: small-caps;
}

.center{
  text-align: center;
  width: 100%;
}
.text-center {
  text-align: center;
}


.invalid-input {
  border: 1px solid #720 !important;
  background-color: #410 !important;
}

button,
.button {
  /*display: inline-block;*/
  border: 1px solid rgb(39, 39, 39);
  margin-top: 3px;
  margin-bottom: 3px;
  color: $text-dim;
  text-align: center;
  cursor: pointer;
  user-select: none;;

  background-color: rgba(11,11,11,0.75);


  padding: 0.5rem 2rem;
  background-color: rgba(11, 11, 11, 0.5);
  border: 1px solid transparent;
  user-select: none !important;

  &.primary {
    background-color: #fa6;
    color: #000;
  }
  &.danger {
    background-color: #ff2211 !important;
    color:#000;
  }
  &.disabled {
    filter: saturate(0%);
    pointer-events: none;
  }
}


.selected, .setting-selected {
  color: $selected-color !important;
  background-color: $background-selected !important;
}

.selected-tab {
  color: $selected-color;
}

.setting-selected {
  border: 1px solid shade($selected-color, 25%);
}

.button:hover {
  color: lighten($selected-color, 10%);
  background-color: lighten($background-selected, 10%);
}

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

.disabled-button {
  color: #666 !important;
  cursor: not-allowed !important;
}

.disabled-button:hover {
  color: #777 !important;
  background-color: #222 !important;
}

/* BROWSER-SPECIFIC DISABLE */
.disabled-edge {
  pointer-events: none !important;
  filter: contrast(50%) brightness(40%) grayscale(100%) !important;
  content: "NOT SUPPORTED IN THIS BROWSER";
}
.disabled-edge::after {
  background-color: #333272;
  color: #d8d9e6;
  display: inline-block;
  font-size: .75em;
  font-variant: small-caps;
  padding-left: 5px;
  padding-right: 5px;
  margin-left: 10px;
}




/** misc **/

.warning-color {
  color: #d6ba4a;
}

.warning, .warning-lite {
  color: #d6ba4a;
  padding-left: 35px;
  float: right;
}

.warning::before, .warning-lite::before {
  content: "⚠ ";
  display: inline-block;
}
.warning::before {
  font-weight: bold;
  font-size: 2.5em;
  margin-left: -35px;
  padding-right: 10px;
}

.info-button {
  color: $info-color;
  border: 1px solid $info-color;
}

.info {
  color: $info-color;
  padding-left: 35px;
  float: right;
}
.info-color {
  color: $info-color;
}

.info::before {
  content: "ⓘ";
  display: inline-block;
  font-weight: bold;
  margin-left: -35px;
  padding-right: 10px;
}

.new {
  color: #fff;
}

.new::after {
  content: "ⓘ";
  color: $info-color !important;
  display: inline-block;
  font-weight: bold;
  padding-right: 10px;
}

.experimental::after {
  content: "Ⓔ";
  color: #ffde12;
  display: inline-block;
  font-size: .75em;
  font-variant: small-caps;
  padding-left: 5px;
  padding-right: 5px;
  margin-left: 10px;
  margin-top: -4px;
}
.experimental:hover::after {
  content: "Ⓔ Experimental";
  color: #ffde12;
  display: inline-block;
  font-size: .75em;
  font-variant: small-caps;
  padding-left: 5px;
  padding-right: 5px;
  margin-left: 10px;
  margin-top: -4px;
}

.sticky-bottom {
  width: 100%;
  position: sticky;
  bottom: 0px;
  background-color: rgba($background-primary, 0.7);
}

.rtl {
  direction: rtl;
}

.ltr {
  direction: ltr;
}
.monospace {
  font-family: 'Overpass Mono';
}

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