body{
    color:white;
    font-family:"Rubik", sans-serif;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    background-color:#000000;
    autocomplete:"off";
}

h1{
    font-family:"Rubik Scribble", sans-serif;
    font-size: 2em;
    margin: .67em 0;
}
h1 a{
    color: inherit;
    text-decoration: inherit;
}

hr{
    border:solid white thin;
}

#template_name_input {
    font-size: 2em;
    font-weight: bold;
    text-align:center;
}

#main_div{
    width: 80vw;
}

canvas {
    image-rendering: pixelated;
    position: absolute;
    top: 0;
    left: 0;
}

button{
    font-family: inherit;
    font-size: inherit;
    color: DarkSlateBlue;
    border: solid DarkSlateBlue;
    background: white;
    border-radius : 10px;
    font-weight: bold;
}
button:disabled{
    background: color-mix(in srgb, white 25%, transparent);
    opacity: 1;
}
button:hover{
    background-color: lavender;
}
.big_button{
    font-size: 1.17em;
    border: solid white;
    padding-top: 0.34em;
    padding-bottom: 0.34em;
}
.icon_button{
    font-family: "Noto Sans Symbols 2";
    font-size: 1.17em;
    height: 2em;
    width: 2em;
}

.ui-layer {
    z-index: 3;
}
.game-layer {
    z-index: 2;
}
.background-layer {
    z-index: 1;
}

select{
    font-family: inherit;
    font-size: inherit;
    border-radius : 5px;
    border: none;
    color: DarkSlateBlue;
    outline: none;
}
select hr{
    color: DarkSlateBlue;
}
.base_option{
    background-color: lavenderblush;
}
.custom_option{
    background-color: lavender;
}

label {
    display: flex;
    align-items: center;
}
label input, label select{
    margin-left: 1em;
}

table, th, td {
    border: 1px solid;
    border-collapse: collapse;
    border-color: white;
}

a{
    color:lightskyblue;
}
.a_button{
    color: inherit;
    text-decoration: inherit;
    padding-right: 1em;
    padding-left: 1em;
    margin-top: 1em;
    margin-bottom: 1em;display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}


#path_div{
    display:flex;
    align-self:flex-start;
}
#controlDiv{
    margin-top:1.5em;
}
#path_div a{
    color: inherit;
    text-decoration: inherit;
    border-right: solid white;
    border-top: solid white;
    border-bottom: solid white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-right: 1em;
    padding-left: 2em;
    margin-left: -1em;
}

.content_div {
    padding-top : 8px;
    padding-bottom : 8px;
    border: solid white;
    border-radius : 10px;
}
.text{
    text-align: justify;
    padding-left: 1em;
    padding-right: 1em;
}
.selected_group .content_div{
    background: MediumPurple;
}
.selected_group button{
    color: MediumPurple;
    border: solid MediumPurple;
}
.emitter {
    background-color: DarkSalmon;
}
.emitter button{
    color: DarkSalmon;
    border: solid white;
}
.emitter button:hover{
    background-color:beige;
}
.emitter input, .emitter select{
    color: DarkSalmon;
}
.fireworker {
    background-color: DarkSlateBlue;
}
.documentation {
    background-color: DarkGoldenRod;
}
.firework {
    background-color: palevioletred;
}
.firework button{
    color: palevioletred;
    border: solid white;
}
.firework button:hover{
    background-color:mistyrose;
}
.firework input,.firework select{
    color: palevioletred;
}
.variables {
    background-color: teal;
}
.variables button{
    color: teal;
    border: solid white;
}
.variables button:hover{
    background-color:ivory;
}
.sequence{
    background-color: Salmon;
}
.sequence button{
    color: Salmon;
    border: solid white;
}
.sequence button:hover{
    background-color:LightSalmon;
}
.demo{
    border: solid white;
    border-radius : 10px;
}
.demo button{
    border-radius : 0;
}
.demo div canvas{
    border-top: solid white;
    border-left: solid white;
    border-right: solid white;
    border-top-left-radius : 10px;
    border-top-right-radius : 10px;
    margin-top : -2.5px;
    margin-left : -2.5px;
    margin-right : -2.5px;
}
button:disabled:hover{
    background: color-mix(in srgb, white 25%, transparent);
    opacity: 1;
}
@-moz-document url-prefix(){
    .demo div canvas {
        margin-left : -3px;
        margin-right : -3px;
    }
}
.content_div:has(.add_content_button) {
    padding-bottom : 0;
}
.add_content_button {
    margin-bottom: 3px;
    border-radius:0;
    padding-top : 8px;
    padding-bottom : 8px;
    margin-top : 8px;
    margin-bottom : 0;
}

.utils_div{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.custom_row{
    display: flex;
}
.selected_row{
    padding-top: 8px;
    margin-top: -8px;
    padding-bottom: 8px;
    margin-bottom: -8px;
}
.column{
    display: flex;
    flex-direction:column;
    justify-content:space-around;
    height:100%;
}

.vr{
    display: flex;
    margin-top: -8px;
    margin-bottom: -8px;
}
.vr hr{
    margin: 0;
}

.display_editor_div p{
    margin-top: 0px;
}

input[type="text"],input[type="number"] {
    background-color: transparent;
    color: inherit;
    border: solid 1px;
    border-radius: 5px;
    width: 95%;
    font-family: inherit;
    font-size: inherit;
}
input:disabled {
    border: none;
}
input:focus-visible {
    outline: none;
    border-bottom: dotted 2px;
}

input[type="number"] {
    width: 6ch;
}
input[type="number"][min="0"] {
    width: 4ch;
}

.formula, input.formula{
    font-family: "Roboto Mono", sans-serif;
}

.tabs{
    width: 100%;
}
.tabs button{
    width: 50%;
    background-color: Transparent;
    color: white;
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: solid white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 1.17em;
    font-weight: bold;
    padding-top: 0.34em;
    padding-bottom: 0.34em;
}
.tabs button:hover{
    border-top: solid lavender;
    border-right: solid lavender;
    border-left: solid lavender;
    color: lavender;
    background: #3e3769;
}
.tabs button.active_tab{
    border-top: solid white;
    border-right: solid white;
    border-left: solid white;
    border-bottom: solid DarkSlateBlue;
    background: DarkSlateBlue;
}
.tab_content{
    background-color: DarkSlateBlue;
    border-right: solid white;
    border-left: solid white;
    border-bottom: solid white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.wide {
    width: 100%;
}
.shift {
    padding-left: 3ch;
}

.tooltip {
  font-family: "Nanum Myeongjo", serif;
  margin-left:0.2em;
  margin-right:0.2em;
  position: relative;
  display: inline-block;
  cursor: default;
}

.tooltip span {
  font-family: "Rubik";
  font-weight: normal;
  visibility: hidden;
  width: 16em;
  background-color: black;
  color: white;
  text-align: center;
  border: solid white;
  border-radius: 10px;
  padding: 8px 0;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -8em;
}

.tooltip:hover span{
  visibility: visible;
}
.tooltip p{
  padding-left: 1em;
  padding-right: 1em;
}

.tooltip_demo {
    width:100%;
    display:flex;
    justify-content: center;
}
.fireworker .tooltip_demo .demo{
    background-color:DarkSlateBlue;
}
.firework .tooltip_demo .demo{
    background-color:palevioletred;
}
.variables .tooltip_demo .demo{
    background-color:teal;
}
.emitter .tooltip_demo .demo{
    background-color:DarkSalmon;
}
.sequence .tooltip_demo .demo{
    background-color:Salmon;
}
.documentation .tooltip_demo .demo{
    background-color:DarkGoldenRod;
}
.group .tooltip_demo .demo button{
    border-color:white;
}
.group .tooltip_demo .demo{
    background-color:DarkSlateBlue;
}
.selected_group .tooltip_demo .demo{
    background-color:MediumPurple;
}

#panel{
    position:relative;
    width:80vw;
    left:20vw;
    z-index:500%;
    background-color: red;
    top:2em;
}

button.activeCoordEditor{
    background: lightgreen;
}