﻿:root {
  /* trinckle */
  --petrol-blue: #0084A4;
  --col-accent-dark: #002738;
  --petrol-cyber-blue: #00ffff;
  --petrol-dark-blue: #002738;
  --grey-light: #e3e3e3;
  --grey-middle: #c5c5c6;
  --grey-dark: #3c3c3b;
  /* settings */
  --font-size-default: 12px;
  --btn-size: 40px;
  --slider-height: 5px;
  --checkbox-size: 1.15em;
  --padding-global: 22px;
  --padding-elem: 5px;
  --thumb-width: 350px;
  --thumb-height: 200px;
  /* tooltip defaults*/
  --tooltip-bottom-after-pos: 50%;
  --tooltip-right-after-pos: 50%;
  --scrollbar-offX: 35px;
  
  --col-primary: white;
  --col-viewPort: whitesmoke;
  
  --col-dark: var(--petrol-dark-blue);
  --col-accent: var(--petrol-blue);
  --col-accent-bright: var(--petrol-cyber-blue);
  --col-accent-dark: var(--petrol-dark-blue);

  /* Color example */
  /*   
  --col-dark: #141e6f;
  --col-accent: #346BE6;
  --col-accent-bright: #bee8f9;
  --col-accent-dark: #2133BF;
  */
  --col-spinner: var(--col-primary);
  --col-warning: #f5b002;
}


@font-face {
  font-family: 'Museo Light';
  src: url('../assets/fonts/MuseoSans-100.otf');
}
@font-face {
  font-family: 'Museo Sans';
  src: url('../assets/fonts/MuseoSans-300.otf');
}
@font-face {
  font-family: 'Museo Bold';
  src: url('../assets/fonts/MuseoSans-500.otf');
}
@font-face {
  font-family: 'Museo Bolder';
  src: url('../assets/fonts/MuseoSans-700.otf');
}


* {
  box-sizing: border-box;
  -webkit-user-drag: none;
  user-drag: none;
}

*::selection {
  background: var(--col-accent);
  color: var(--col-primary);
}

body {
  background: var(--col-accent-dark);
  width: 100vw;
  height: 100vh;
  margin: 0;
  /* font-family: 'Inter', Arial, Helvetica, sans-serif; */
  font-family: 'Museo Sans';
  overflow: hidden;
  display: flex;
  align-items: center;
}

body.faded {
  background: var(--col-accent);
  transition: background 2s;
}

button {
  border: none;
}

body.darkmode {
  filter: invert(90%) hue-rotate(180deg);
  & *::selection {
    color: black !important;
  }
  & #viewPort canvas, #version-label {
    filter: invert(100%) hue-rotate(180deg) contrast(1.1);
  }
  & .type-selection-preview {
    filter: invert(100%) hue-rotate(180deg) contrast(1.1);
  }
  & .holes-img {
    filter: invert(100%) hue-rotate(180deg);
  }
  & .color-container {
    filter: invert(100%) hue-rotate(180deg) contrast(0.9) !important;
  }
  & .feature-editor-warning {
    filter: invert(1) hue-rotate(180deg) !important;
  }
  & .message-h-wrapper img {
    filter: invert(1) hue-rotate(180deg) !important;
  }
}

input:hover, input:focus, input:focus + span,
.feature-editor-input:hover span,
.feature-editor-input:hover input,
.feature-editor-input:hover label,
input:active + span {
  color: var(--col-accent) !important;
}

.feature-editor-input.read-only:hover,
.feature-editor-input.read-only:hover * {
  color: initial !important;
}


.feature-editor-input:hover .slider-range-container+span,
.slider:active ~ span {
  color: var(--col-accent) !important;
}

h3 {
  font-size: 14px !important;
  font-weight: normal;
  width: 100%;
}

*:not(input) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#message-container h3, 
.modal-content h3, 
#paramateProgress-title,
.as-editor h3 {
  padding-bottom: var(--padding-global) !important;
  margin-bottom: 0;
  overflow: hidden;
}

.as-editor h3 {
  display: flex;
  align-items: baseline;
  line-height: calc(var(--btn-size) - 1px);
  margin: 0;
  overflow: hidden;
}

.as-editor h3 {
  flex-shrink: 0;
}

.modal-content h3 {
  margin-top: .5em;
  margin-bottom: .5em;
}

#message-container h3, #paramateProgress-title, .as-editor h3 {
  border-bottom: 1px solid var(--col-accent);
}

li, p, a, span {
  font-size: var(--font-size-default);
}

a {
  color: skyblue;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
}

a:hover {
  color: var(--col-accent);
}

p {
  line-height: 1.25 !important;
  margin: var(--padding-global) 0;
}

/* Custom checkbox */

input[type="checkbox"], 
input[type="color"] {
  z-index: 10;
  opacity: 0;
  width: var(--checkbox-size) !important;
  height: var(--checkbox-size) !important;
  margin: 0;
  padding: 0;
}

.checkbox-container {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox-container::before {
  pointer-events: none;
  display: none;
  content: ' ';
  position: absolute;
  top: -0.5px;
  left: -0.5px;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border: .5px solid var(--grey-dark);
  border-radius: 2px;
  background: var(--col-accent) !important;
  opacity: 0;
}

.checkbox-container:hover::before {
  display: block;
  opacity: 0.5;
}

.feature-editor-input:hover .checkbox-container::before {
  display: block;
  opacity: 0.5;
}

.feature-editor-input input:checked ~ .checkbox-container::before {
  display: block;
  opacity: 1;
}


.checkbox-mark {
  position: absolute;
  /* top: 0;
  left: 0; */
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border: .5px solid var(--grey-dark);
  border-radius: 2px;
  background: transparent;
}

.checkbox-container:hover input ~ .checkbox-mark,
.feature-editor-input:hover input ~ .checkbox-mark {
  /* background: rgba(0, 132, 164, .5) !important; */
  opacity: 0.75;
  border-color: var(--col-accent);
}

.checkbox-container:hover input:checked ~ .checkbox-mark,
.feature-editor-input:hover input:checked ~ .checkbox-mark {
  background-color: var(--col-accent) !important;
  border-color: var(--col-accent);
  opacity: 1;
}

.checkbox-container input:checked ~ .checkbox-mark {
  background-color: var(--grey-dark) !important;
}

.checkbox-container .checkbox-mark:after {
  content: "";
  position: absolute;
  display: none;
  left: calc(var(--checkbox-size) / 2.875);
  top: calc(var(--checkbox-size) / 13);
  width: calc(var(--checkbox-size) / 5);
  height: calc(var(--checkbox-size) / 1.8);
  border: solid rgb(250, 250, 250);
  border-width: 0 1px 1px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkbox-mark:after {
  display: block;
}

/* slider input */

.feature-editor-input:hover .slider-range-container {
  background: var(--col-accent) !important;
}

.slider-range-container {
  position: absolute;
  height: var(--slider-height);
  background: var(--grey-middle);
  border-radius: 2.5px 0 0 2.5px;
  pointer-events: none;
}

.slider:active + .slider-range-container {
  background: var(--col-accent) !important;
}

.slider {
  display: flex;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  width: 100px !important;
  height: var(--slider-height);
  background: transparent !important;
  outline: none;
  border-radius: 2.5px;
  z-index: 1;
  border: .5px solid var(--grey-middle) !important;
  margin: 0 !important;
}

.feature-editor-input:hover .slider {
  border-color: var(--col-accent) !important;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  appearance: none;
  width: 5px;
  height: var(--slider-height);
  background: var(--grey-dark);
  z-index: 2;
  border: 0 !important;
  border-radius: 2.5px !important;
}

.slider::-moz-range-thumb {
  width: 5px;
  height: var(--slider-height);
  background: var(--grey-dark);
  z-index: 2;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 2.5px !important;
}

.slider-value {
  min-width: 5em !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* color input */

.color-container {
  position: relative;
  display: flex;
  border: .5px solid var(--col-dark);
  border-radius: 2px;
  width: var(--checkbox-size) !important;
  height: var(--checkbox-size) !important;
}


/* Overwrite wait animation styles */
.paramate-waitAnim {
  z-index: 1000;
}

.paramate-waitAnimContainer .paramate-waitAnim-circle:before {
  background-color: var(--col-spinner) !important;
}

body.darkmode #viewPort .paramate-waitAnimContainer .paramate-waitAnim-circle:before {
  filter: invert(90%) hue-rotate(180deg) !important;
}


#manual-container {
  position: fixed;
  z-index: -10;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: white;
  /*padding: 5vw;*/
}
.manual-img-container {
  position: relative;
  width: 50%;
  height: auto;
}
.manual-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


#main-page {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  font-size: var(--font-size-default);
  opacity: 0;
  transition: opacity .5s;
}


/*  general */

.shown {
  opacity: 1 !important;
}

.img-btn {
  position: relative;
  background: transparent;
  filter: brightness(0);
  min-width: var(--btn-size);
  max-width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 5px;
  padding: var(--padding-elem);
  margin: 1px;
}

.img-btn.selected {
  background: var(--grey-dark);
  filter: brightness(1);
}

.img-btn:hover {
  background: var(--col-dark);
  filter: brightness(1);
}

.btn {
  padding: 15px !important;
  border: none;
  border-radius: 5px;
  color: var(--col-dark);
  background: var(--grey-light);
  font-size: var(--font-size-default);
}

.btn:hover {
  color: var(--col-primary) !important;
  background: var(--col-dark) !important;
}

.btn.wide {
  max-width: 150px;
  width: 100%;
}

.btn.wider {
  max-width: 180px;
  width: 100%;
}

.btn.disabled {
  pointer-events: none;
  opacity: .5;
}

.btn-container .btn.wide {
  max-width: 100%;
  margin: 1px;
}

/* header */

#header {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: var(--padding-global);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--col-primary);
  flex-wrap: wrap;
  -webkit-box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 6px 0px;
  -moz-box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 6px 0px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 6px 0px;
  border-bottom: .5px solid var(--grey-light);
}

.header-set {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#perspective-btn {
  filter: brightness(1) !important;
}

.header-set p {
  margin: 0 1em;
  cursor: default !important;
}

.header-set span {
  color: gray;
  margin: 0 1em;
}

#session-id {
  position: fixed;
  right: calc(var(--padding-global) * 1.5);
  color: var(--grey-middle);
}

#session-id span {
  font-size: .5rem;
}

#session-id span:last-of-type {
  -webkit-user-select: text !important;
  user-select: text !important;
}

#header-logo,
#mate-img,
#company-img {
  position: relative;
  height: var(--btn-size);
  width: auto;
  padding: var(--padding-elem);
}

#mate-img {
  padding: 0px;
  top: 2px;
  height: calc(var(--btn-size) + 2 * var(--padding-elem));
  cursor: default;
}

#mate-img:hover {
  cursor: pointer;
}


#company-img {
  padding: 0;
  top: 2px;
  height: calc(var(--btn-size) + 2 * var(--padding-elem) - 8px);
  width: auto;
  margin-right: calc(var(--padding-global) + (var(--padding-elem) * 2));
}


/* editor */

#editor {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.editor-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}


/* toolbar */

#toolbar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 0;
  background: var(--grey-light);
  height: 100%;
}

.toolbar-container {
  display: flex;
  flex-direction: column;
  padding: var(--padding-global);
}

#toolbar.disabled .toolbar-container {
  pointer-events: none;
  opacity: .5;
}

#header.disabled .header-set:not(:first-of-type) {
  pointer-events: none;
  opacity: .5;
}

body.darkmode #header.disabled .header-set:not(:first-of-type) {
  pointer-events: none;
  opacity: .25;
}

#header.disabled #header-view-set,
#header.disabled #header-view-set {
  pointer-events: all !important;
  opacity: 1 !important;
}

.toolbar-feature {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.toolbar-feature::after {
  position: absolute;
  left: calc(100% - 15px);
  top: 7px;
  display: block;
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: transparent;
  pointer-events: none;
}

.toolbar-feature.noted::after {
  background: var(--col-accent) !important;
}

.toolbar-feature.selected.noted::after {
  background: var(--col-primary) !important;
}

#toolbar .img-btn.selected {
  background: var(--col-accent);
}

.toolbar-feature p {
  margin-right: 10px;
  white-space: pre;
  display: none;
}

.user-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* background: var(--petrol-blue); */
}

#user-btn {
  padding: 7px;
  filter: brightness(1);
  background: var(--grey-middle);
  border-radius: 50%;
}

#user-btn:hover {
  background: var(--col-dark);
}

#trinckle-btn,
#release-btn {
  height: 40px;
  width: 40px;
  object-fit: contain;
  background: transparent !important;
}
#trinckle-btn {
  filter: brightness(1);
  padding: 5px;
}

#release-btn {
  filter: brightness(1);
  padding: 6px;
}

.toolbar-feature[data-step="9"] {
  margin-bottom: 5px;
}
.toolbar-feature[data-step="10"] {
  margin-bottom: 15px;
}


#version-label {
  position: relative;
  cursor: default !important;
  width: 100%;
  height: 30px;
  /* margin-top: 10px; */
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--grey-dark);
  color: var(--grey-middle);
  -webkit-box-shadow: rgba(0, 0, 0, 0.33) 0px -2px 6px 0px;
  -moz-box-shadow: rgba(0, 0, 0, 0.33) 0px -2px 6px 0px;
  box-shadow: rgba(0, 0, 0, 0.33) 0px -2px 6px 0px;
  border-top: 1px solid var(--grey-middle);
  z-index: 10;
}

#perspective-btn {
  padding: 0px !important;
}


/* feature editor */

#feature-editor {
  background: rgb(250, 250, 250);
  overflow: hidden;
  width: 0;
  height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

#feature-editor.expanded {
  width: 33%;
  min-width: 345px;
  max-width: 370px;
  height: 100%;
  max-height: 100%;
  border-left: .5px solid var(--grey-middle);
  border-right: .5px solid var(--grey-light);
  /* box-shadow:rgba(0, 0, 0, 0.05) 2px 0px 6px 0px;  */
}

#feature-editor.disabled * {
  pointer-events: none;
  opacity: .75;
}

#feature-editor.disabled #feature-editor-hide {
  pointer-events: all;
  opacity: 1;
}

#feature-editor-content {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
  width: calc(100% + var(--scrollbar-offX));
  padding-right: var(--scrollbar-padding);
  padding-bottom: var(--padding-global);
}

#feature-editor-footer {
  display: none;
}

#feature-editor.expanded #feature-editor-footer {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 30px;
  border-top: .5px solid var(--grey-light);
  -webkit-box-shadow: rgba(0, 0, 0, 0.05) 0px -2px 6px 0px;
  -moz-box-shadow: rgba(0, 0, 0, 0.05) 0px -2px 6px 0px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px -2px 6px 0px;
}

#feature-editor.expanded #feature-editor-footer::before {
  content: '';
  width: 100%;
  -webkit-box-shadow: inset 0px -11.5px 0px 0px var(--col-dark);
  -moz-box-shadow: inset 0px -11.5px 0px 0px var(--col-dark);
  box-shadow: inset 0px -11.5px 0px 0px var(--col-dark);
  opacity: 1;
  transition: opacity .5s;
}

#feature-editor-footer.inactive::before {
  opacity: .1 !important;
}

.feature-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 2vh; */
  padding: var(--padding-global);
}

#feature-editor-hide {
  color: var(--col-dark);
}

#feature-editor-hide:hover {
  color: var(--col-primary);
}

.feature-editor-header:first-of-type {
  position: sticky;
  z-index: 2;
  top: 0;
  background: rgb(250, 250, 250);
  margin-bottom: var(--padding-global);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 6px 0px;
  border-bottom: .5px solid var(--grey-light);
}

.feature-editor-header * {
  margin: 0;
}

#subtraction-header-2 {
  padding: calc(var(--padding-global) * 2.5) var(--padding-global) 0 var(--padding-global) !important;
}

.feature-editor-descr,
.feature-editor-warning {
  display: flex;
  flex-direction: column;
  color: var(--grey-dark);
  padding: 0 var(--padding-global);
  padding-top: 1em;
}

.feature-editor-input + .feature-editor-descr {
  margin-top: calc(var(--padding-global) - 1em);
}

.feature-editor-separator + .feature-editor-header + .feature-editor-descr p {
  margin-top: 0 !important;
}

#editor-model-units-label {
  padding-top: 0;
  & p {
    margin-top: 0;
  }
  & span {
    color: var(--col-accent);
  }
}

.info-btn {
  height: 17px;
  width: 17px;
  filter: brightness(20%);
}

.feature-editor-warning {
  filter: none;
}

.feature-editor-warning p,
.feature-editor-warning a {
  color: lightsalmon;
}

.warning-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 13px;
  width: 13px;
  margin: 2px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 9px;
  font-weight: bold;
  background: lightsalmon;
  border-radius: 50%;
  color: rgb(250, 250, 250);
}

.feature-editor-feature {
  height: max-content;
  padding: var(--padding-global);
  margin-bottom: var(--padding-global);
  padding-top: calc(var(--padding-global) - 1em);
}

.feature-editor-input,
.feature-editor-separator {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .5px var(--padding-global);
  padding: 0 calc(1em) 0 calc(12px + 1em);
  color: var(--col-dark);
}

.feature-editor-separator {
  margin: 0;
  margin-top: 0.25em;
  padding: 1em 1em 1em calc(6px + 1em);
  /* border-bottom: 1px dashed var(--col-accent); */
}
.feature-editor-separator span {
  font-size: 9px;
  text-transform: uppercase;
  padding: 1px 3px 1px 3px;
  background: lightgray;
  border-radius: 3px;
  font-weight: bold;
  color: var(--col-dark);
}

.feature-editor-input.read-only * {
  pointer-events: none !important;
}

.feature-editor-input.read-only * {
  color: initial !important;
}

.feature-editor-input + .feature-editor-feature {
  margin-top: var(--padding-global);
}

#feature-modal .feature-editor-input {
  margin: 0;
  padding: 12px;
}

.feature-editor-input+.feature-editor-input {
  border-top: 1px dashed lightgray;
}

.feature-editor-input {
  border-top: 0 !important;
  border-bottom: 1px dashed lightgray;
  margin: 0 var(--padding-global);
}

.feature-editor-input.disabled *:not(label) {
  opacity: .6 !important;
  pointer-events: none !important;
}

.feature-editor-input::before {
  position: absolute;
  z-index: 2;
  top: calc(50% - .25em);
  left: 0;
  display: flex;
  align-items: center;
  content: '';
  width: .5em;
  height: .5em;
  border-radius: 50%;
  filter: saturate(.75);
  opacity: .75;
}

#settings-message .feature-editor-input::before {
  display: none !important;
}
#settings-message .feature-editor-input {
  margin: 0 !important;
  padding: 1em 1.25em !important;
}
#settings-message .feature-editor-input label {
  margin: 0 !important;
}

.feature-editor-input.default:hover::before { background: var(--col-dark); }
.feature-editor-input.x-axis:hover::before { background: red; }
.feature-editor-input.y-axis:hover::before { background: green; }
.feature-editor-input.z-axis:hover::before { background: blue; }
.feature-editor-input.diameter:hover::before { content: '⌀'; }
.feature-editor-input.read-only:hover::before { display: none; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper span {
  color: var(--col-dark);
}

.feature-editor-input label {
  margin: 11px 10px 11px 0;
  width: 100%;
  font-weight: normal;
  pointer-events: none;
}

.feature-editor-input input {
  width: 100%;
  font-size: var(--font-size-default);
  color: var(--col-dark);
  border: 0;
  background: transparent;
  text-align: right;
  outline: 0 !important;
  padding: 0;
}

.list-item-header input {
  text-align: left;
}

.feature-editor-input.x-axis.incremental label, .feature-editor-input.x-axis.incremental input, 
.feature-editor-input.x-axis.incremental span {
  color: #ab3830 !important;
}
.feature-editor-input.y-axis.incremental label, .feature-editor-input.y-axis.incremental input, 
.feature-editor-input.y-axis.incremental span {
  color: green !important;
}
.feature-editor-input.z-axis.incremental label, .feature-editor-input.z-axis.incremental input, 
.feature-editor-input.z-axis.incremental span {
  color: #060696 !important;
}

.feature-editor-input.greyed-out {
  pointer-events: none !important;
  opacity: 0.5 !important;
  /* & .checkbox-container {
    opacity: 0.5 !important;
  } */
}

.feature-editor-list-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: max-content;
  padding: 0 var(--padding-global) var(--padding-global) var(--padding-global);
}

.feature-editor-list-wrapper .feature-editor-input {
  margin: 0 !important;
  /* padding: 0 12px 0 calc(12px + 1em) !important; */
}

.feature-editor-list {
  display: flex;
  flex-direction: column;
}

.feature-editor-list-item {
  display: flex;
  flex-direction: column;
  margin: 1px 0;
}

.list-item-header {
  color: var(--col-dark);
  border-bottom: 1px dashed lightgray;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 !important;
  font-weight: normal;
}

.list-item-header>div {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  margin-right: 12px;
}

.list-item-header span {
  padding: 2vh 2vh 2vh 0;
  font-weight: bold;
}

.list-item-header .img-btn {
  padding: 12px;
}

.list-item-header.feature-editor-input {
  margin: 0 !important;
  padding: 0 !important;
}

.list-item-options {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 0;
}

.list-item-options.shown {
  display: flex;
  height: max-content;
  margin-bottom: var(--padding-global);
}

input[type="checkbox"] {
  margin-right: 2px !important;
}


/* viewport */

canvas:not(#cosy-canvas) {
  font-smooth: never;
  -webkit-font-smoothing : none;
}

#viewPort {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--col-viewPort);
}


#viewPort-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#viewPort-ruler {
  position: absolute;
  top: calc(100% - 30px);
  display: flex;
  width: 100%;
  height: 30px !important;
  overflow: hidden;
  background: rgba(250, 250, 250, .5);
  -webkit-box-shadow: rgba(0, 0, 0, 0.075) 0px -2px 6px 0px;
  -moz-box-shadow: rgba(0, 0, 0, 0.075) 0px -2px 6px 0px;
  box-shadow: rgba(0, 0, 0, 0.075) 0px -2px 6px 0px;
  border-top: 1px solid var(--grey-light);
  z-index: 10;
  opacity: 1;
  transition: opacity .5s ease-out;
}

#viewPort-ruler.inactive {
  opacity: .125;
}

#cosy-canvas {
  position: absolute;
  bottom: 0%;
	pointer-events: none;
  margin-bottom: 10px;
  filter: saturate(40%);
}

#viewPort-ruler.inactive + #cosy-canvas {
  bottom: -20px !important;
}

#fixture-info {
  position: absolute;
  bottom: 42px;
  display: flex;
  background: transparent;
  /* border: 1px solid; */
  width: max-content;
  left: 110px;
  pointer-events: none;
}

#viewPort-ruler.inactive ~ #fixture-info {
  bottom: 20px !important;
}

.fixture-info-container {
  margin: 0 var(--padding-global);
}
.fixture-info-container-header {
  margin-bottom: 10px !important;
  font-family: 'Museo Bolder';
}
.fixture-info-container-values {
  margin-top: 10px !important;
}

.fixture-info-container-values .x-axis { color: red; }
.fixture-info-container-values .y-axis { color: green; }
.fixture-info-container-values .z-axis { color: blue; }

sup {
  line-height: 0;
}

/* type selection */
.type-selection {
  position: fixed;
  z-index: 101;
  width: 100vw;
  height: 100vh;
}


.type-selection-wrapper {
  position: fixed;
  border-radius: 5px;
  cursor: default !important;
  border: .5px solid var(--grey-light);
  overflow-y: hidden;
  -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  -moz-box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  display: flex;
  flex-direction: row-reverse;
  background: var(--grey-light);
  padding: 5px;
  min-width: 100px;
}

.selection-item-wrapper {
  position: releative;
}

/* .selection-item-wrapper + .selection-item-wrapper {
  border-top: 0.5px dashed var(--grey-dark);
} */

.type-selection.withPreview .type-selection-wrapper {
  min-height: calc(var(--thumb-height) + var(--padding-global) * 2);
  max-height: calc(100% - var(--padding-global) * 2);
  padding: var(--padding-global);
  background: rgb(250, 250, 250);
}

.type-selection-preview {
  position: relative;
  display: flex;
  pointer-events: none;
  height: max-content
}

.type-selection-preview img {
  position: -webkit-sticky;
  position: sticky;
  top: var(--padding-global);
  width: auto;
  object-fit: contain;
}
.base-type-list.withPreview img,
.hole-type-list img,
.support-type-list img {
  max-width: calc(var(--thumb-width) * 1);
  height: auto;
}
.clamp-type-list img {
  object-position: 0% 50%;
  min-width: 100px;
  max-height: calc(var(--thumb-height) * 1.5);
}

.type-selection-list {
  display: flex;
  flex-direction: column;
  color: var(--col-dark);
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.withPreview .type-selection-list {
  margin: 0 var(--padding-global) 0 0;
}

.type-selection-list-group {
  max-height: 100%;
  overflow-y: scroll;
  width: calc(100% + 35px);
  overflow-x: hidden;
}

.withPreview .type-selection-list-group {
  padding-right: 35px;
}

.type-selection-list-group-header {
  font-weight: normal;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--col-accent);
  color: var(--col-dark);
  width: 100%;
}

.withPreview .type-selection-list-group-header {
  min-width: 120px;
}

.type-selection-list-group-header:hover {
  color: var(--col-accent);
}

.type-selection-list li {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.type-selection-list li + li,
.type-selection-list div + div {
  border-top: 1px dashed var(--grey-middle);
}

.withPreview .type-selection-list li + li {
  border-top: 1px dashed var(--grey-light);
}

.type-selection-list li.over,
.type-selection-list li.selected {
  color: var(--col-accent);
}

.type-selection-list-group-wrapper {
  display: none;
}

.type-selection-list-group.show-items .type-selection-list-group-wrapper {
  display: block;
}

.selection-row {
  display: flex;
  justify-content: space-between;
  padding: 1em 1.25em;
  border-bottom: 1px dashed lightgray;
}

#feature-editor .selection-row:not(.list-item-options .selection-row), #baseplate-message-container .selection-row {
  padding-left: calc(12px + 1em) !important;
  padding-right: calc(1em) !important;
}

#feature-editor .selection-row {
  margin: 0 var(--padding-global);
}

.selection-row.disabled {
  pointer-events: none;
  & #model-units {
    color: var(--grey-light) !important;
  }
}

.list-item-options .selection-row {
  margin: 0 !important;
  padding: 1em 1em 1em calc(1em + 12px) !important;
}

/* span#lang-sel {
  width: 120px;
} */

/* feature modal */

#feature-modal {
  position: fixed;
  z-index: 21;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#feature-modal.blocking {
  pointer-events: all;
}

.modal-content {
  position: fixed;
  display: flex;
  flex-direction: column;
  background: rgb(250, 250, 250);
  width: 250px;
  padding: var(--padding-global);
  pointer-events: all;
  -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  -moz-box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  border: .5px solid var(--grey-light);
  border-radius: 5px;
  cursor: default !important;
}

.feature-modal-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  color: var(--col-dark);
  cursor: default;
}

.feature-modal-feature:not(.feature-modal-feature:last-of-type) {
  border-bottom: 1px dashed lightgray;
}

.feature-hint-content .feature-modal-feature {
  padding-left: calc(12px + 1em);
  border-bottom: none !important;
}

.feature-modal-img {
  width: 1.35em;
  height: 1.35em;
  padding: 0;
  filter: brightness(0);
}

.feature-modal-feature:hover * {
  color: var(--col-accent) !important;
  filter: brightness(50%) sepia() saturate(25) invert() saturate(75%) brightness(66%);
}

#feature-modal input[type="checkbox"] {
  width: max-content !important;
}

#feature-modal label {
  margin: 0 !important;
}

#feature-modal .feature-editor-input::before {
  display: none !important;
}

/* feature hints */

#feature-hints,
.feature-hint-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100%; */
  pointer-events: none;
}

#feature-hints {
  height: calc(100% - 30px);
}

#feature-hints .btn {
  pointer-events: all;
}

.feature-hint-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  /* height: max-content; */
  justify-content: flex-start;
  z-index: 20;
  /* align-items: flex-end; */
}

.feature-hint-content-wrapper.as-editor {
  z-index: 0;
  height: 100%;
  /* width: calc(345px - 1px); */
  overflow: hidden;
  padding: 0;
  margin-left: calc(var(--padding-global) * 2 + var(--btn-size) + 2px);
}

.feature-hint-content {
  position: relative;
  background: rgb(250, 250, 250);
  padding: var(--padding-global);
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  color: var(--col-dark);
  pointer-events: all;
  -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  -moz-box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px 0px;
  margin: 1px var(--padding-global);
  border-radius: 5px;
  border: .5px solid var(--grey-light);
}


.feature-hint-content-wrapper.as-editor .feature-hint-content {
  flex-direction: column;
  align-items: flex-start;
  width: calc(100% + var(--scrollbar-offX));
  margin: 0;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  border-radius: 0;
  box-shadow: none;
  padding-right: calc(var(--scrollbar-offX) + var(--padding-global));
}

.feature-hint-text {
  font-weight: normal;
  margin-right: var(--padding-global);
  min-width: 45%;
}

.as-editor .feature-hint-text {
  margin-top: calc(1em + var(--padding-global));
  width: 100%;
}

.as-editor .feature-editor-input {
  margin: 0;
  width: 100%;
}

.as-editor .feature-hint-text + .feature-editor-input {
  margin-top: var(--padding-global);
}

.as-editor .btn-container {
  width: 100%;
  margin-top:  calc(var(--padding-global) + 1.5em);
}


#feature-hints .btn {
  background: var(--col-accent);
  color: var(--col-primary);
  margin: 1px;
}

.cancel-btn {
  background: var(--grey-light);
  color: var(--col-dark);
}

.feature-hint-sub-header {
  width: 100%;
  font-weight: bold !important;
  margin: 0 !important;
  padding: calc(1em + var(--padding-global)) 0 1em !important;
}

#rem-dir-content .feature-hint-sub-header {
  margin-bottom: calc(var(--padding-global) / 2) !important;
}


/* backdrop */

#backdrop {
  position: fixed;
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* background-color: rgba(0, 39, 56, .5); */
}

#backdrop:before {
  pointer-events: none;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: ' ';
  background-color: var(--col-accent);
  opacity: 0.5
}

#backdrop.shown {
  display: flex;
}

#backdrop.shown:before {
  display: block;
}

#backdrop.hideable:before {
  display: none;
}


#drag-n-drop-thumb {
  filter: none;
}

body.darkmode #drag-n-drop-thumb {
  filter: invert(100%) !important;
}

/* messages */

#message-container, #paramateProgress {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--col-primary);
  opacity: 0;
  top: -30px;
  width: 400px;
  height: max-content;
  max-height: calc(100vh - 4 * var(--padding-global));
  padding: var(--padding-global);
  border-radius: 5px;
  border: .5px solid var(--col-accent-dark);
  -webkit-box-shadow: 0px 2px 8px -1px var(--col-accent-dark);
  -moz-box-shadow: 0px 2px 8px -1px var(--col-accent-dark);
  box-shadow: 0px 2px 8px -1px var(--col-accent-dark);
  transition: opacity .5s, top .5s;
}

#message-container.releases,
#message-container.large {
  width: 600px;
}
#message-container.larger {
  width: max-content;
  max-width: 768px;
}


#backdrop.hideable #message-container {
  background: rgb(250, 250, 250);
  border: .5px solid var(--grey-light);
  -webkit-box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, .2);
  -moz-box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, .2);
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, .2);
}


#message-container .btn:not(.cancel-btn) {
  color: var(--col-primary);
  background: var(--col-accent);
  float: right;
}

#message-container .feature-editor-input {
  margin: 1px !important;
}

#message-container .feature-editor-input + .btn {
  margin-top: calc(var(--padding-global) + 1em);
}

#message-container p {
  color: var(--grey-dark);
}

.message-img {
  height: 140px;
  width: 100%;
  object-fit: contain;
  /* filter: invert(); */
}

.message-img.portrait {
  height: 320px;
  /* filter: invert(); */
}

.message-img.medium {
  height: 260px;
  /* filter: invert(); */
}

.message-content > div {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.message-content .feature-editor-feature {
  padding-left: 0;
  padding-right: 0;
}

.message-content.releases {
  overflow-y: auto;
}


.message-slides-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.message-slide {
  display: none;
}

.message-slide-count {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

.message-slide.shown {
  display: block;
}

.message-slide-intro {
  display: flex;
  justify-content: space-between;
}

.message-slide-toggle-container {
  position: absolute;
  width: 100%;
  max-width: 100%;
  color: var(--col-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Museo Bold' !important;
}

.slide-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-size);
  height: var(--btn-size);
  cursor: default;
  border-radius: 50%;
  background-color: var(--col-dark);
  opacity: .5;
  color: white;
  pointer-events: all;
}

.slide-btn:hover {
  opacity: 1;
}

#message-container .slide-btn.left {
  right: calc(var(--btn-size) * 1 - var(--padding-global));
}

#message-container .slide-btn.right {
  left: calc(var(--btn-size) * 1 - var(--padding-global));
}

.message-h-wrapper {
  display: flex;
  width: fit-content;
  /* height: 45vh; */
  height: 45vh;
  margin-bottom: calc(var(--padding-global) + 1em);
  overflow: hidden;
}

.scroll-container {
  min-width: 345px;
  max-width: 370px;
  /* width: 100%; */
  height: 100%;
  overflow-y: scroll;
  padding-right: 10px;
}

.message-h-wrapper img {
  margin-left: 10px;
  width: auto;
  max-width: 400px;
  height: 100%;
  object-fit: contain;
  object-position: 0% center;
}


/* Configurator Details on Error */

.config-info {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.config-info-details {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  margin: 0 !important;
  font-family: 'Museo Bold';
  height: max-content;
  max-height: 1em;
  overflow: hidden;
}

.config-info-details p:first-of-type {
  margin-top: var(--padding-global) !important;
}

.config-info-details p {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  font-family: 'Museo Sans';
}

#copy-btn-container {
  margin-top: var(--padding-global);
  display: flex;
  align-items: center;
}
#copy-btn {
  filter: brightness(1);
  background: var(--col-accent);
}
#copy-btn:hover {
  background: var(--col-dark);
  filter: brightness(1);
}

#copiedInfo {
  margin-left: var(--padding-global);
  color: var(--col-accent);
  font-family: 'Museo Bold';
}
#copiedInfo {
  opacity: 0;
  transition: opacity 1s;
}
#copiedInfo.shown {
  opacity: 1;
}

/* Release notes */

#release-date {
  color: var(--petrol-blue) !important;
}

#release-intro {
  margin: 0 !important;
}
.release-title, #release-date {
  margin-bottom: 0 !important;
  font-family: 'Museo Bolder';
}

/* default progress bar */

#progress-title,
#paramateProgress-progressText {
  font-size: var(--font-size-default);
  margin-bottom: 10px;
}
body #progress-title {
  color: var(--col-accent-bright);
}
#backdrop #progress-title {
  color: var(--col-dark);
}
#paramateProgress-progressText {
  margin: 1em auto;
  margin-top: var(--padding-global);
}
#paramateProgress-progressPercent {
  margin-bottom: 20px;
}
#progress-bar-container {
  position: relative;
  opacity: 0;
  top: -50px;
  margin: auto;
  padding: var(--padding-global);
  width: calc(300px + 2 * 3vh);
  display: flex;
  align-items: center;
  flex-direction: column;
  height: max-content;
  transition: opacity .5s, top .5s;
}
body > #progress-bar-container {
  top: 0;
}
#backdrop > #progress-bar-container {
  background: rgb(250, 250, 250);
  border-radius: 5px;
  border: .5px solid var(--col-accent-dark);
  -webkit-box-shadow: 0px 2px 8px -1px var(--col-accent-dark);
  -moz-box-shadow: 0px 2px 8px -1px var(--col-accent-dark);
  box-shadow: 0px 2px 8px -1px var(--col-accent-dark);
}
#message-container.active, 
#paramateProgress.active, 
#progress-bar-container.active {
  opacity: 1;
  top: 0;  
}
.progress-bar {
  width: 300px;
  position: relative;
  height: 3px;
  border-radius: 1.5px;
  margin: 0 auto;
}
body .progress-bar {
  background-color: var(--col-accent);
}
#backdrop .progress-bar {
  background-color: var(--grey-light);
}
#progress-bar-fill,
.progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 1.5px;
}
body #progress-bar-fill {
  background-color: var(--col-accent-bright);
}
#backdrop #progress-bar-fill {
  background-color: var(--col-accent);
}
.progress-bar-fill, 
#paramateProgress-progressBarFill {
  background-color: var(--col-accent);
}
.progress-bar-text {
  margin-top: 10px;
  font-size: var(--font-size-default);
  text-align: center;
  z-index: 3;
}
body .progress-bar-text {
  color: var(--col-accent-bright);
}
#backdrop .progress-bar-text {
  color: var(--col-dark);
}


.btn-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tooltip {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: max-content;
  padding: 12px;
  border-radius: 5px;
  line-height: 1.25 !important;
  opacity: 0;
  transition: 0s opacity;
  transition-delay: 0s;
  pointer-events: none;
  max-width: 300px;
  z-index: 200;
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, .1));
  outline: .5px solid var(--grey-light);
  font-weight: normal;
  font-size: var(--font-size-default);
}

#toolbar .tooltip, #header .tooltip {
  background: var(--col-dark);
  outline: none;
  color: var(--col-primary);
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, .5));
}

#feature-editor .tooltip, #feature-hints .tooltip, #message-container .tooltip {
  color: var(--col-dark);
  background: var(--col-primary);
}

#type-selection .tooltip {
  color: var(--col-dark);
  background: var(--grey-light);
}

.tooltip.bottom {
  top: calc(100% + 7px);
}

.tooltip.right {
  left: calc(100% + 7px);
}

#type-selection .tooltip.right {
  margin-left: -30px;
}

.tooltip.shown {
  min-height: var(--btn-size);
  opacity: 1;
  transition: .5s opacity;
  transition-delay: 1s;
}

#trinckle-btn + .tooltip.shown,
#release-btn + .tooltip.shown {
  transition-delay: 0s;
}

#feature-hints .tooltip.shown,
#type-selection .tooltip.shown,
#baseplate-message-container .tooltip.shown {
  transition-delay: 0.25s;
}

#feature-editor .tooltip.shown, #settings-message .tooltip.shown, #simplifyGeo-message .tooltip.shown {
  transition-delay: 0.5s;
}

.tooltip-img {
  width: 100%;
  max-width: 170px;
  height: auto;
  object-fit: contain;
  object-position: 0 0;
}

.tooltip-img-s {
  max-width: 100px;
}

.tooltip-img + p,
.tooltip-img-s + p {
  margin: 0 0 0 calc(var(--padding-global) / 2) !important;
  max-width: 200px;
}

.tooltip p {
  margin: 0;
}

#license-info {
  display: flex;
  flex-direction: column;
  margin: 1em 0;
  border-bottom: .5px solid var(--col-accent);
  /* padding-bottom: 1em; */
}
#license-info-organization {
  margin-top: 1em;
}
#license-info-username {
  font-family: 'Museo Bold';
}
#license-info-type {
  margin-top: 1em;
}
#license-info-date {
  display: flex;
  flex-direction: column;
  margin: 1em 0;
}
#license-info-warning {
  color: var(--col-warning);
  margin-bottom: 1em;
}
#license-info-warning.none {
  color: skyblue;
  margin-bottom: 0;
}
#license-info-downloads {
  margin-bottom: 1em;
}

.tooltip::after {
  content: "";
  position: absolute;
}

.tooltip.bottom::after {
  top: calc(0% - 10px);
  left: var(--tooltip-bottom-after-pos);
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
}

.tooltip.right::after {
  top: var(--tooltip-right-after-pos);
  left: 0%;
  margin-left: -10px;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
}

#toolbar .tooltip.bottom::after, #header .tooltip.bottom::after {
  border-color: transparent transparent var(--col-dark) transparent;
}

#toolbar .tooltip.right::after, #header .tooltip.right::after {
  border-color: transparent var(--col-dark) transparent transparent;
}

#feature-editor .tooltip.bottom::after {
  border-color: transparent transparent var(--col-primary) transparent;
}

#feature-editor .tooltip.right::after,
#feature-hints .tooltip.right::after,
#message-container .tooltip.right::after {
  border-color: transparent var(--col-primary) transparent transparent;
}

#type-selection .tooltip.right::after {
  border-color: transparent var(--grey-light) transparent transparent;
}
