/*HTML*/
/*
* {
    background-color: black;
    color: white;
    font-family: 'Courier New', Courier, monospace;
}
*/
:root {
    --menuW: 0rem;
    --bg: rgb(62, 43, 90);
}

* {
    user-select: none;
}

body {
    margin: 0px;
    padding: 0px;
    width: 100vw;
    height: 100vh;
    overflow-anchor: none;
    background-color: var(--bg);
}

@media (orientation: landscape) {
    #frm {
        width: calc(100vw - var(--menuW));
        height: 100vh;
        transform: none;
    }

    .dialog {
        width: calc(100vw - var(--menuW));
        height: 100vh;
    }

    #leftMenu {
        bottom: 0;
        left: 0;
        top: 0;
    }
}

@media (orientation: portrait) {
    #frm {
        width: calc(100vh - var(--menuW));
        height: 100vw;
        transform: rotate(90deg) translate(-100vw);
    }

    .dialog {
        width: calc(100vh - var(--menuW));
        height: 100vw;
    }

    #leftMenu {
        right: 0;
        left: 0;
        top: 0;
    }
}

#frm {
    background-color: var(--bg);
    transform-origin: bottom left;
    position: fixed;
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
    padding-left: var(--menuW);
}

.dialog {
    position: relative;
    display: none;
    background-color: rgb(4, 168, 141);
}

#scrollArea {
    background-color: var(--bg);
    color: rgb(214, 214, 214);
    left: var(--menuW);
    top: 0;
    height: 100vw;
    overflow-y: scroll;
    overflow-x: hidden;
}

td {
    width: 40px;
    height: 40px;
}



/*SVG*/

#svgCanvas {
    background-color: var(--bg);
}

.ruleText {
    fill: white;
    text-anchor: middle;
}

.cell {
    stroke: none;

}

@keyframes selection {
    0% {
        stroke-dasharray: 10, 10;
    }

    50% {
        stroke-dasharray: 5, 15;
    }

    100% {
        stroke-dasharray: 10, 10;
    }
}

.cellSel {
    stroke: white;
    stroke-width: 4;
    stroke-dasharray: 10, 10;
    animation-name: selection;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.btnOff {
    opacity: 0.5;
}

.btnOn {
    opacity: 1;
}

.centerH {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    height: 100%;
}

.centerV {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

/* html */

.todo {
    background-color: blue;
}

.ok {
    background-color: green;
}