
/* ##### MARK: - Tags */

#outputCanvases,
#inputCanvases {
    position: relative;
}

@media all and (orientation: portrait) {
    #outputCanvases,
    #inputCanvases {
        width: 100%;
    }
    
    #inputCanvases  {
        display: flex;
        height: 30%;
    }
    #outputCanvases {
        height: 70%;
    }

    #inputCanvases canvas {
        width: 100%;
        height: calc(100% - 52px);
    }
    #outputCanvases canvas {
        width: 100%;
        height: 100%;
    }

    #inputCanvases > .canvasWrapper {
        width: 50%;
    }
    #inputCanvases > .canvasWrapper:last-child {
        border-left: 1px solid #CCC;
        width: calc(50% - 1px);
    }

    #outputCanvases .canvasWrapper {
        height: calc(33.33% - 1px);
        border-top: 1px solid #CCC;
    }
    /*
    #outputCanvases .canvasWrapper:first-child {
        border-top-width: 2px;
        border-top-color: #999;
    }
    */
}
@media all and (orientation: landscape) {
    #outputCanvases,
    #inputCanvases {
        width: 100%;
        height: 100%;
    }

    #inputCanvases  {
        width: 30%;
    }
    #outputCanvases {
        width: 70%;
    }

    #inputCanvases > .canvasWrapper {
        height: calc(50% - 1px);
        border-right: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
    }
    #inputCanvases canvas {
        width: 100%;
        height: calc(100% - 52px);
    }

    #outputCanvases .canvasWrapper {
        width:  100%;
        height: calc(33.33% - 1px);
        border-bottom: 1px solid #CCC;
    }
    #outputCanvases canvas {
        width: 100%;
        height: 100%;
    }

    .switchButton > img {
        transform: rotate(90deg);
    }

    /*
    #inputCanvases canvas {
        width: 100%;
        height: calc(100% - 52px);
    }


    */
}



/* ##### MARK: - Helper */
.center {
/*    width: 1004px;*/
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-wrap: wrap;
}

.hidden {
    display: none;
}

.manipulateable {
    cursor: pointer;
}
.manipulateable:active {
    cursor: grabbing;
}

.draggable {
    cursor: ew-resize;
}

.unmutable {
    cursor: crosshair;
}



/* ##### MARK: - Canvas setup */


.imgWrapper {
    display: block;
    padding: 1em;
    margin-left: -1em;

    cursor: pointer;
}
.imgWrapper > img {
    margin: -0.55em 0.5em -0.45em 0;
    height: 1.5em;
    display: inline-block;
}
.imgWrapper > div {
    display: none;
}
.imgWrapper:hover > div {
    display: block;
}


/* ##### MARK: Function buttons */
.buttonWrapper {
    border-top: 1px solid #CCC;
    display: flex;
    flex-wrap: nowrap;
    justify-content: stretch;
}
.buttonWrapper > button {
    width: 100%;
    min-width: 50px;
    display: inline-flex;
    background-color: #EEE;
    cursor: pointer;
    border-right: 1px solid #DDD;
}
.buttonWrapper > button:last-child {
    border-right: none;
}
.buttonWrapper > button:hover {
    background-color: #DDD;
}

.buttonWrapper {
    overflow-y: hidden;
    overflow-x: scroll;
}
.canvasWrapper button > img {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    padding: 4px;
}





/* ##### MARK: - Settings */
#settingsWrapper {
    transition: all 0.05s ease-in-out;
}
#settingsWrapper.highlighted {
    background-color: #EEE;
}

#settingsPanel {
    cursor: auto;
    z-index: 1000;
    position: fixed;
    top: 3em;
    left: 0;
    padding: 1em;
    padding-top: 0;
    border: 1px solid #CCC;
    border-left: none;
    border-top: none;
}

#settingsPanel hr {
    margin: 0.5em -0.5em ;
}

#settingsPanel > label > input[type=checkbox] {
    margin-right: 0.75em;
}

#settingsPanel > label > input[type=number] {
    background: none;
    margin-right: 0.75em;
    width: 2.5em;
    font-size: 1em;
}

#settingsPanel > label {
    display: block;
    margin-right: 0.25em;
    padding: 0.5em 1em;
    border-radius: 5px;
}

#settingsPanel > label:hover {
    background-color: #EEE;
}

.keyCommand {
    font-family: monospace;
    background: #EEE;
    border: 1px solid #CCC;
    padding: 0.25em 0.5em;
    margin: -0.25em 0.5em;
    border-radius: 4px;
}





/* ##### MARK: - Formular */
.formularImage {
    opacity: 0.8;
    height: 1.25em;
}

#discreteConvolution .discreteFormular,
#continuousConvolution .continuousFormular {
    display: block;
}
#discreteConvolution .discreteFormular.inline,
#continuousConvolution .continuousFormular.inline {
    display: inline;
}

#discreteConvolution .continuousFormular,
#continuousConvolution .discreteFormular {
    display: none;
}





/* ##### MARK: - Reset canvas button */
.rescaleButton {
    padding: 10px;
}
.resetButton {
    padding: 6px 10px;
}

.actionButton {
/*
    34 × 41
*/
    text-align: center;
    background: #EEE;
    border: 1px solid #CCC;
    border-radius: 30px;
}
.actionButton > img {
    transition: all 0.1s ease-in-out;
    opacity: 0.5;
    cursor: pointer;
}
.actionButton:hover > img {
    opacity: 1;
}



.stepperButton > img {
    transition: all 0.1s ease-in-out;

    margin: 0;
    padding: 0.5em 1em;
    border: 1px solid #CCC;

    background: #EEE;

    background: rgba(245, 245, 245, 0.7);
    -webkit-backdrop-filter: blur(5px) saturate(150%);
    -moz-backdrop-filter: blur(5px) saturate(150%);
    -o-backdrop-filter: blur(5px) saturate(150%);
    backdrop-filter: blur(5px) saturate(150%);
}
.stepperButton > img:hover {
    background: #CCC;
    border-color: #999;



    background: rgba(200, 200, 200, 0.7);
    -webkit-backdrop-filter: blur(5px) saturate(150%);
    -moz-backdrop-filter: blur(5px) saturate(150%);
    -o-backdrop-filter: blur(5px) saturate(150%);
    backdrop-filter: blur(5px) saturate(150%);
}

.stepperButton > img:last-child {
    border-right: none;
    border-bottom-right-radius: 30px;
    border-top-right-radius: 30px;
}
.stepperButton > img:first-child {
    border-bottom-left-radius: 30px;
    border-top-left-radius: 30px;
}




/* ##### MARK: - NoScript */
.NotificationWrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10000;
    background-color: rgba(100,100,100,0.75);

    display: flex;
    justify-content: center;
    align-items: center;
}
.NotificationBackground {
    max-width: 30em;
    padding: 2em;
    background: #FFF;
}




/* ##### MARK: Additional single item elements */

.settingsButton {
    display: inline-block;
    background: #CCC;
    padding: 0.5em 0.75em;
    border-radius: 50px;
    margin: 0 0.5em 0 1em
}




/* ##### MARK: - Help sign */

.showHelpButton {
    background-color: #222;
    color: #FFF;
    padding: 0.15em 0.25em 0.25em 0.25em;
    border-radius: 5px;
    cursor: help;
}

#infoSheet {
    display: none;
}
.sheetBackground {
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    width: 100%;

    z-index: 1000000;

    overflow-y: scroll;
    overflow-x: hidden;
}

.sheet {
    width: calc(100% - 4em - 2px);
    max-width: 40em;
    min-height: calc(90vh - 4em - 1px);
    padding: 2em;
    margin: 0 auto;
    margin-top: 10vh;

    background: #FFF;
    border: 1px solid #CCC;
    border-bottom: 0;
}
span.formula {
    font-size: "Times New Roman", serif;
    font-style: italic;
}
img.formula {
    position: relative;
    top: 0.2em;
    height: 1.2em;
}

img.singleLineFormula {
    display: block;
    margin: 1em auto;
    height: 1.5em;
}

















