body {
    width: 100%;
    height: 100%;
}

/*https://chartio.com/resources/tutorials/how-to-resize-an-svg-when-the-window-is-resized-in-d3-js/*/
.svg-container {
    display: inline-block;
    position: relative;
    width: 100%;
    padding-bottom: 56.5%;
    vertical-align: top;
}

.svg-content {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
}

#container {
    display: flex;
    /*width: 100%;*/
    /*flex-direction: column;*/
    /*align-items: center;*/
    /*justify-content: center;*/
}


#toolbox {
    margin-top: 0.5vh;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #638869;
}

.button-zoom {
    padding-top: 1vh;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.04cm;
}

.button-zoom button {
    font-family: monospace;
    font-weight: bolder;
    font-size: large;
    color:chartreuse;
    background: black;
    margin-left: 0.05cm;
    margin-right: 0.05cm;
    border: chartreuse 0.03cm solid;
}


.button-zoom button:active,
.button-zoom button:hover {
    color:black;
    background: chartreuse;
}

#presets {
    padding: 1vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 74vw;
    background-color: #314b37;
    box-shadow: #343a40 0px 3px 3px 5px;
    margin-top: 2vh;
    margin-bottom: 2vh;

}

/*#presets button {*/
/*    display: flex;*/
/*    color: white;*/
/*    font-family: monospace;*/
/*    font-weight: bolder;*/
/*    background-color: #1b6c85;*/
/*    padding: 0.5vh;*/
/*    margin: 0.5vh;*/
/*}*/


#presets button {
    display: flex;
    justify-content: center;
    color: #eef6fe;
    font-family: monospace;
    font-weight: bolder;
    background-color: #1160a8;
    padding: 0.5vh;
    margin: 0.5vh;
    line-height: 1.5em;
    min-width: 8em;
    border-radius: 0.8em;
}


#presets button:hover,
#presets button:active {
    background-color: #63abf3;
    text-shadow: #000000 1px 1px 3px;
    box-shadow: black 8px 8px 8px;

}

#input-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: inherit;
}

#input-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ruleSet-containerClass {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#ruleSet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#ruleSet-container-btns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
}

.ruleSet-Style {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;
}

.labels {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: right;
    font-family: monospace;
    font-weight: bolder;
    width: 3cm;
    color: white;
}

.top-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-weight: bolder;
    font-size: x-large;
    width: 4.5cm;
    color: white;
}


#help-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #000000;
    font-family: monospace;
    padding: 0.09cm;
    user-select: none;
}

#l-system-rules-label {
    display: flex;
    flex-direction: row;
}

#help-icon-btn:hover,#help-icon-btn:active {
    cursor: pointer;
}

/*floating div icon*/
#floating-div {
    display: none;
    position: absolute;
    z-index: 9;
    background-color: rgba(43, 43, 44, 0.90);
    border: 1px solid #d3d3d3;
    text-align: center;
    resize: both;
    overflow: auto;
}
#floating-div-header {
    cursor: move;
    z-index: 10;
    background-color: #2b2c32;
    border: 0.01cm solid black;
}

#header-text {
    height: fit-content;
    font-size: x-large;
    font-family: monospace
}

#close-btn {
    float: right;
    display: inline-block;
    text-decoration: none;
    font-family: monospace;
    font-weight: bolder;
    font-size: x-large;
    width: 0.9cm;
    background-color: black;
}

#floating-div-content {
    text-wrap: unset;
    word-break: keep-all;
    padding: 0.25cm;
}

.floating-div-content-lines {
    display: flex;
    flex-wrap: nowrap;
    word-break: keep-all;
    color: #d8ae3b;
    text-align: left;
    font-family: monospace;
    font-weight: bolder;
}

.floating-div-content-lines:nth-child(even) {
    background-color: rgba(43, 43, 44, 0.25);
}
.floating-div-content-lines:nth-child(odd) {
    background-color: rgba(43, 43, 44, 0.25);
}

.rules {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rules input {
    font-size: x-large;
    font-family: monospace;
    color: black;
    border-color: black;
}

/*.add-new-ruleset {*/
/*    text-decoration: none;*/
/*    margin-top: 0.5vh;*/
/*    margin-bottom: 0.5vh;*/
/*    margin-left: 1.5vh;*/
/*    background: #1b6d85;*/
/*    border: 0.045cm solid black;*/
/*    font-family: monospace;*/
/*    font-weight: bolder;*/
/*    font-size: x-large;*/
/*}*/

.add-new-ruleset {
    text-decoration: none;
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;
    margin-left: 1.5vh;
    background-color: #1160a8;
    border: 0.05cm solid black;
    font-family: monospace;
    font-weight: bolder;
    font-size: x-large;
}

.add-new-ruleset:hover {
    background-color: #63abf3;
    text-shadow: #000000 1px 1px 3px;
    box-shadow: black 8px 8px 8px;
}

.submit-style {
    font-size: xx-large;
    width: 100%;
    color: chartreuse;
    margin-top: 2vh;
    margin-bottom: 1.5vh;
    background: #335613;
}

.submit-style:hover {
    cursor: pointer;
    color: #c7efb0;
    text-shadow: 0 0 5px #000000, 0 0 15px #050000;
    width: 100%;
    padding: 0.5vh 0.5vw;
    background: #518c12;
}

.svg-style {
    border: 0.02cm solid chartreuse;
    background: rgba(0, 0, 0, 1);
}

/*svg {*/
/*    border: 0.02cm solid chartreuse;*/
/*    background: rgba(0, 0, 0, 1);*/
/*}*/


.tooltip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: large;
    background: black;
    width: 2rem;
    border-radius: 50%;
    cursor: help;
    font-family: monospace;
    user-select: none;
}

/*https://www.w3schools.com/css/css_tooltip.asp*/
.tooltip .tooltiptext {
    visibility: hidden;
    padding: 1vh 2vw;
    font-size: small;
    background-color: black;
    color: white;
    text-align: left;
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext {
    position: absolute;
    visibility: visible;
    margin-right: 6.75cm;
    width: 5.5cm;
    height: fit-content;
    padding: 0.4rem;
    text-align: right;
    text-shadow: black 0.1cm 0.1cm 0.1cm;
    background: rgba(0, 0, 0, 0.68);

}


.tooltip:active .tooltiptext {
    position: absolute;
    visibility: visible;
    margin-right: 6.75cm;
    width: 5.5cm;
    height: fit-content;
    padding: 0.4rem;
    text-align: right;
    text-shadow: black 0.1cm 0.1cm 0.1cm;
    background: rgba(0, 0, 0, 0.68);

}

.input-form-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    justify-content: center;
    height: 100%;
    gap: 0.5cm;
}

.line-attributes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-items: center;
    background-color: #314b37;
    box-shadow: #343a40 0px 3px 3px 5px;
}



.color-attributes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75vw;
    background: #314a38;
    box-shadow: #343a40 0px 3px 3px 5px;
}

.color-attributes-items,
.color-attributes-column  {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1vh;
    padding-bottom: 1vh;
}
.color-attributes-column {
    flex-direction: column;
    width: available;
    padding-top: 0.5vh;
    padding-bottom: 0.5vh;
}

#preset-select-options {
    color: black;
    width: auto;
    text-align: left;
    height: 2em;
}

#preset-select-options option {
    color: black;
}

#color-options {
    text-align: left;
    height: 2em;
    color: black;
    min-width: 11rem;
}
#color-options option {
    color: black;
}
#color-options optgroup {
    color: black;
}

#preset-select-options optgroup {
    color: black;
}

input[type=color] {
    height: 2.5em;
    width: 2.5em;
}





/*TOOL TIP?*/
/*http://jsfiddle.net/BumU5/3/*/
