/* styles.css */

/* Add styles here to customize the appearance of your app */

:root {
  --input-color: #7d8393;
  --input-border: #CDD9ED;
  --input-background: #fff;
  --input-placeholder: #CBD1DC;
  --input-border-focus: #065dd8;
  --group-color: var(--input-color);
  --group-border: var(--input-border);
  --group-background: #EEF4FF;
  --group-color-focus: #fff;
  --group-border-focus: var(--input-border-focus);
  --group-background-focus: #678EFE;
}

html{
    background-color: rgb(58, 62, 65);
    height: 100%;
    width: 100%;
}

/* div {
    border: 2px solid;
    padding: 20px;
    resize: both;
    overflow: auto;
  } */

.settings {
    flex-direction: column;
    float: right;
    position: absolute;
    width: 20vw;
    left: 100%;
    top: 0;
    /* display: none; */
    height: 100%;
    overflow-y: scroll;
    padding: 20px;
}

body {
    margin:0;
    height: 100%;
    width: 100%;
}

  
legend {
    text-align: center;
}

input[type=number]{
    /* width: 50%; */
    background: white;
    box-shadow: 0px 0px 2px 0px black;
}

input[type=range]{
  width: 97%;
}

textarea{
  max-height: 50vh;
  width: -webkit-fill-available;
  height: 20vh;
  resize: vertical;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  -webkit-appearance: none;
  color: var(--input-color);
  border: 1px solid var(--input-border);
  background: var(--input-background);
  transition: border 0.3s ease;
}
textarea:focus {
  outline: none;
  border-color: var(--input-border-focus);
}

.dataInputContainer{
  /* display: flex; */
  /* flex-wrap: nowrap; */
  justify-content: space-between;
  flex-basis: 0;
  /* padding: 5px; */
}

.dataBoolContainer{
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

/* CSS */
button {
  background-color: #0a6bff;
  border-radius: 4px;
  border: 0;
  box-shadow: rgba(1,60,136,.5) 0 -1px 3px 0 inset,rgba(0,44,97,.1) 0 3px 6px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inherit;
  font-family: "Space Grotesk",-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  margin: 0;
  min-height: 56px;
  min-width: 120px;
  padding: 16px 20px;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  transition: all .2s cubic-bezier(.22, .61, .36, 1);
}

button:hover {
  background-color: #065dd8;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  button {
    /* padding: 16px 44px; */
    /* min-width: 150px; */
  }
}

.listButton{
  flex-grow: 1;
  display: block;
  padding: 0px;
  margin: 5px;
  min-width: 0;
}

.zoomControl{
  padding: 5px;
  min-width: 0;
  min-height: 0;
  margin-left: 10px;
}
#canvasModeContainer,
#cropText{
  color: red;
  font-family: "Space Grotesk",-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-weight: 700;
}

.inlineButton{
  padding: 5px;
  min-width: 0;
  min-height: 0;
  margin: 0px;
}

.square {
  display: block;
  width: 95%;
  margin:auto; 
}

.square:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

select.form-field{
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--input-background);
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 50%;
}

/* #region flex */

flex {
    display: flex;
    overflow: hidden;
}

/* flex-item > flex {
    position: absolute;
    width: 100%;
    height: 100%;
} */

flex.h {
    flex-direction: row;
}

flex.v {
    flex-direction: column;
}

flex-item {
    /* display: flex; */
    /* position: relative; */
    /* overflow: hidden; */
    overflow: auto;
}

flex > flex-resizer {
    flex: 0 0 10px;
    /* background: white; */
    background-color: #aaa;
    background-repeat: no-repeat;
    background-position: center;
}

flex.h > flex-resizer {
    cursor: ew-resize;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='30'><path d='M2 0 v30 M5 0 v30 M8 0 v30' fill='none' stroke='black'/></svg>");
}

flex.v > flex-resizer {
    cursor: ns-resize;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='10'><path d='M0 2 h30 M0 5 h30 M0 8 h30' fill='none' stroke='black'/></svg>");
}

/* #endregion flex */

/* #region tooltips */

.textOverlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: xxx-large;
    text-shadow: 0px 10px 5px black;
}

.tooltip {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip .tooltiptext {
  width: 80%;
  pointer-events: none;
  bottom: 100%;
  margin-left: 15%; /* Use half of the width (120/2 = 60), to center the tooltip */
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

/* #endregion tooltips */

/* #region checkbox */

.form-bool {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: relative;
  border-radius: 5px;
  /* left: 0px; */
  /* top: 0px; */
  height: 20px;
  width: 20px;
  margin: 2px 10px 2px 0px;
  background-color: rgb(203, 203, 203);
}

/* On mouse-over, add a grey background color */
.form-group:hover .form-bool ~ .checkmark {
  background-color: rgb(179, 179, 179);
}

/* When the checkbox is checked, add a blue background */
.form-group .form-bool:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.form-group .form-bool:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.form-group .checkmark:after {
  left: 50%;
  top: 50%;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  -ms-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}

  
/* #endregion checkbox */
  
/* #region Collapsible boxes */

.collapsible {
    background-color: #777;
    box-shadow: rgba(122, 122, 122, 0.5) 0 -1px 3px 0 inset,rgba(0,44,97,.1) 0 3px 6px 0;
  
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
  }
  
  .active, .collapsible:hover {
    background-color: #555;
  }
  
  .collapsible:after {
    /* content: '\002B'; */
    color: white;
    font-weight: bold;
    float: right;
    margin-left: 5px;
  }
  
  .active:after {
    /* content: "\2212"; */
  }
  
  .content {
    padding: 0px 0px 0px 18px;
    display: none;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #f1f1f1;
    
  }
  .content.active{
    display: block;
  }

  .heirarchy{
    padding: 1px;
    min-height: 0px;
  }

  .heirarchy::before{
    content: "";
    position: absolute;
    border-color: white;
    border-style: solid;
    border-width: 0 0.3em 0.3em 0;
    height: .5em;
    top: 0.5em;
    left: 0.5em;
    transform: rotate(-45deg);
    width: .5em;
  }

  .heirarchy.active::before {
    content: "";
    position: absolute;
    border-color: white;
    border-style: solid;
    border-width: 0 0.3em 0.3em 0;
    height: .5em;
    top: 0.5em;
    left: 0.5em;
    transform: rotate(45deg);
    width: .5em;
}
.heirarchyDropdown{
  width: 1.7em;
  height: 20px;
  display: inline-block;
}
.content.heirarchy{
  padding: 0 0 0 .5em;
}

#proceduralConfig{
    flex-grow: 1;
    height: 80vh;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 80vh;
    column-gap: 10px;

  }

/* #endregion Collapsible boxes */

/* #region Modals*/
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

  font-size: 14px;
  line-height: 25px;
  font-weight: 500;
  color: #555;
  font-family: "Space Grotesk",-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";

}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  /*margin: auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 50%; /* Could be more or less, depending on screen size */
  position: absolute;
  top: 15%;
  left: 25%;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
/* #endregion Modals*/

.hint {
  color: white;
  line-height: 25px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Space Grotesk",-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  text-align: center;
}

.form-field {
  display: block;
  width: 97%;
  /* padding: 8px 16px; */
  line-height: 25px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Space Grotesk",-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  border-radius: 6px;
  -webkit-appearance: none;
  color: var(--input-color);
  border: 1px solid var(--input-border);
  background: var(--input-background);
  transition: border 0.3s ease;
  
}

.form-field:focus {
  outline: none;
  border-color: var(--input-border-focus);
}

.form-group > label {
  /* text-align: center; */
  /* padding: 8px 12px; */
  font-size: 14px;
  line-height: 25px;
  font-weight: 500;
  color: #555;
  font-family: "Space Grotesk",-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  
  /* background: var(--group-background);
  border: 1px solid var(--group-border);
  transition: background 0.3s ease, border 0.3s ease, color 0.3s ease; */
}

.form-group > label::after{
  content: "\a";
  white-space: pre;
}

.form-group:focus-within > label {
  /* color: var(--group-color-focus);
  background: var(--group-background-focus);
  border-color: var(--group-border-focus); */
}

/* The checkContainer */
/* .checkContainer {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
} */

/* Hide the browser's default checkbox */




/* .form-field {
  display: block;
  width: 100%;
  padding: 8px 16px;
  line-height: 25px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  -webkit-appearance: none;
  color: var(--input-color);
  border: 1px solid var(--input-border);
  background: var(--input-background);
  transition: border 0.3s ease;
}
.form-field::-moz-placeholder {
  color: var(--input-placeholder);
}
.form-field:-ms-input-placeholder {
  color: var(--input-placeholder);
}
.form-field::placeholder {
  color: var(--input-placeholder);
}
.form-field:focus {
  outline: none;
  border-color: var(--input-border-focus);
}

.form-group {
  position: relative;
  display: flex;
}
.form-group > label,
.form-group .form-field {
  white-space: nowrap;
  display: block;
}
.form-group > label:not(:first-child):not(:last-child),
.form-group .form-field:not(:first-child):not(:last-child) {
  border-radius: 0;
}
.form-group > label:first-child,
.form-group .form-field:first-child {
  display: flex;
  flex-grow: 1;
  border-radius: 6px 0 0 6px;
}
.form-group > label:last-child,
.form-group .form-field:last-child {
  border-radius: 0 6px 6px 0;
}
.form-group > label:not(:first-child),
.form-group .form-field:not(:first-child) {
  margin-left: -1px;
}
.form-group .form-field {
  position: relative;
  z-index: 1;
  flex: 3 1 auto;
  width: 1%;
  margin-top: 0;
  margin-bottom: 0;
}
.form-group > label {
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 25px;
  color: var(--group-color);
  background: var(--group-background);
  border: 1px solid var(--group-border);
  transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}
.form-group:focus-within > label {
  color: var(--group-color-focus);
  background: var(--group-background-focus);
  border-color: var(--group-border-focus);
} */



/* Dropdown Button */
.dropbtn {
  /* background-color: #3498DB;
  color: white; */
  /* padding: 16px;
  font-size: 16px;
  border: none; */
  width: 100%;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  /* background-color: #2980B9; */
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 100%;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  line-height: 25px;
  font-weight: 500;
  color: #555;
  font-family: "Space Grotesk",-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";

}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}