
/* ######################### General ######################### */

* {
    margin: 0;
    border: 0;
    padding: 0;
}

body {
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}


/* ######################### SVG Canvas ######################### */

#canvas {
    margin-left: 200px;
    height: 100%;
    vertical-align: top;
    overflow: hidden;
}

#tam {
    width: 100%;
    height: 100%;
}

/*.shadingContours {
mix-blend-mode: multiply;
}*/

.title {
    padding: 5px 0px 10px 0px;
    text-align: center;
    font-family: 'Segoe UI';
    font-size: 10pt;
    font-weight: 600;
}

.version {
    font-size: 6pt;
    font-family: Arial, Helvetica, sans-serif;
    text-align: right;
    margin-left: 3px;
    font-weight: normal;
}


/* ######################### Menu Bar ######################### */

table.menu {
    display: inline-table;
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
    max-width: 155px;
}

td.paramlabel {
    width: 110px;
    padding: 0px 15px 3px 0px;
    overflow: hidden;
    white-space: nowrap;
}

td.param {
    padding: 0px 0px 3px 5px;
    width: 45px;
    overflow: hidden;
    white-space: nowrap;
    text-align: right;
}

.menu_toggler + .menu {
    display: none;
}

.menu_toggler:checked + .menu {
    display: inline-table;
}

input.filelabel {
    width: 145px;
    background: #eee;
    padding: 2pt;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
}

.paramspinbox {
    width: 45px;
    text-align: right;
    font-size: 9pt;
}

#menubar {
    float: left;
    display: inline-block;
    width: 200px;
    height: 100%;
    padding: 0px 5px 5px 5px;
    border: 1px solid #cccccc;
    background-color: #f6f6f6;
    font-size: 9pt;
    box-shadow: 2px 0px 4px gray;
}


    #menubar button {
        background: transparent;
        border-radius: 15em;
        border: 2px solid transparent;
        box-sizing: border-box;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
        padding: 10px 10px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        outline: none;
        background: #10bc98;
        color: #fff;
        box-shadow: 0 3px 0 #0c8d72;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
        -webkit-transition: all 0.1s ease-in-out 0s;
        -moz-transition: all 0.1s ease-in-out 0s;
        -ms-transition: all 0.1s ease-in-out 0s;
        transition: all 0.1s ease-in-out 0s;
    }

        #menubar button:hover {
            background: #13d7ae;
        }

        #menubar button:active, #menubar button:focus {
            background: #0fae8d;
        }

    #menubar .switch {
        position: relative;
        display: inline-block;
        width: 34px;
        height: 20px;
    }

        #menubar .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

    #menubar .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .1s;
        transition: .1s;
        border-radius: 20px;
    }

        #menubar .slider:before {
            position: absolute;
            content: "";
            height: 14px;
            width: 14px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            -webkit-transition: .1s;
            transition: .1s;
            border-radius: 50%;
        }

    #menubar input:checked + .slider {
        background-color: #4fc46f; /*#34c759*/
    }

    #menubar input:focus + .slider {
        box-shadow: 0 0 1px #4fc46f; /*#34c759*/
    }

    #menubar input:checked + .slider:before {
        -webkit-transform: translateX(14px);
        -ms-transform: translateX(14px);
        transform: translateX(14px);
    }

    #menubar fieldset {
        margin: 5px 5px 10px 5px;
        padding: 7px;
        background: white;
        border: 1px solid rgb(200,200,200);
        /*box-shadow: 2px 2px 2px gray;*/
    }

        #menubar fieldset legend label {
            font-size: 8pt;
            padding: 2px 5px 2px 5px;
            background: white;
            border: 1px solid transparent;
        }

            #menubar fieldset legend label.toggler {
                cursor: pointer;
            }

                #menubar fieldset legend label.toggler:hover {
                    border: 1px solid #bbb;
                    background: #f6f6f6;
                }

        #menubar fieldset table {
            font-size: 9pt;
        }

        #menubar fieldset .btn {
            margin: 15px 0px 5px 0px;
            text-align: center;
        }

input.button {
    padding: 1px 4px;
}

#tooltip {
    position: absolute;
    display: block;
    font-size: 11pt;
    visibility: hidden;
    border-radius: 0.1rem;
    background-color: rgba(90, 90, 90, 0.95);
    color: white;
    padding: 0.4em 0.4em;
    white-space: pre-line; /* enable line breaks and wrapping */
    max-width: 400px;
}

/* ######################### Overlays ######################### */

#overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
}

#background {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: black;
    opacity: 0.5;
}

.modal {
    position: absolute;
    width: auto;
    height: auto;
    padding: 2em 2em 1em 2em;
    top: 50%;
    left: 50%;
    background-color: rgb(240, 240, 240);
    transform: translate(-50%, -50%);
    box-shadow: 0px 8px 12px 1px rgba(0,0,0, 0.5);
    border-radius: 5px 5px;
    text-align: center;
    z-index: 99;
}

    .modal h1 {
        font-size: 18px;
        padding-bottom: 10px;
    }

    .modal p {
        font-size: 14px;
        padding-bottom: 10px;
    }

#modal-file-upload {
    display: none;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.0;
    background: none;
    color: gray;
}

    .close:hover {
        color: revert;
    }

.custom-button {
    background-color: #ccc;
    margin-top:6px;
    padding: 7px 16px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

    .custom-button:hover {
        background-color: #4fc46f;
        color: white;

        transition-property: all;
        transition-duration: 150ms;
        transition-timing-function: ease-in-out;
        transition-delay: 0s;
    }
