﻿
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* ---- END RESET ----- */

html, body {
    height: 100%;
    direction: rtl;
    font-family: Arial, Tahoma;
}

h1 {
    font-weight: bold;
    font-size: 4em;
    padding: 0.5em;
    color: #ee6d00;
    text-align: center;
}

.layout {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

    .layout.manager {
        flex: 1;
    }

        .layout.manager .row {
            display: flex;
            flex-wrap: wrap;
            height: 100%;
        }

            .layout.manager .row .cell {
                width: 33%;
                height: 42%;
                padding-top: 4%;
            }

    .layout .half-screen {
        flex: 1;
        text-align: center;
        max-height: 50%;
    }

        .layout .half-screen .row {
            display: flex;
            flex-direction: row;
            justify-content: center;
        }

            .layout .half-screen .row .cell {
                flex: 1;
            }

                .layout .half-screen .row .cell label {
                    color: #4f7dc2;
                    font-size: 11em;
                }

canvas {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    max-height: 100%;
    margin: auto;
}

.legend {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

    .legend .item {
        padding: 0 5px;
        font-size: 12px;
        color: #777;
    }

        .legend .item > div {
            width: 40px;
            height: 10px;
            float: left;
            margin-right: 5px;
        }

@media only screen and (max-width: 768px) {
    .layout.manager .row .cell {
        width: 100%;
    }

    h1 {
        font-size: 2.5em;
    }
}

@media only screen and (min-width: 768px) {

    .layout.manager .row .cell:nth-child(n+7) {
        display: none;
    }
}
