﻿body.mask {
    overflow: hidden;
}

workspace {
    flex: 1 1 auto;
    display: flex;
    flex-flow: row nowrap;
    height: calc(100% - 64px)
}

button {
    line-height: 0;
    user-select: none;
    cursor: pointer;
}

layout#main {
    display: flex;
    flex-flow: column nowrap;
    height: 100vh;
}


layout#init {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 91;
}

layout#await {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 91;
}

layout#init span, #await span {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background: #68f;
    transform: scaleX(0);
    transform-origin: 0 0;
    animation: layout-init-animation 1s infinite;
    animation-timing-function: cubic-bezier(.4, 0, 1, 1);
    animation-delay: .1s
}



@keyframes layout-init-animation {
    0% {
        transform: scaleX(0)
    }

    50% {
        transform: scaleX(5)
    }

    to {
        transform: scaleX(5) translateX(100%)
    }
}

layout#mask {
    background: rgba(0, 0, 0, .5);
    align-items: center;
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 93;
}

    layout#mask.show {
        display: flex;
    }

    layout#mask section.spinner {
        display: flex;
        justify-content: center;
        width: 100%;
        width: 100%;
    }

        layout#mask section.spinner circle {
            stroke: #aaa;
        }

layout#notification {
    display: none;
    border-radius: 4px;
    background-color: #323232;
    bottom: 10px;
    box-shadow: 0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2);
    color: #fff;
    left: 70px;
    margin: 0 auto;
    max-width: 600px;
    padding: 12px;
    position: fixed;
    right: 10px;
    z-index: 92;
}

    layout#notification div.container {
        display: flex;
        align-items: flex-start;
        width: 100%;
    }

    layout#notification div.content {
        flex: 1 1 auto;
        margin: 6px 12px 2px 10px;
        display: flex;
        flex-flow: column nowrap;
    }

    layout#notification a:link,
    layout#notification a:visited {
        font-weight: 500;
        text-decoration: none;
        color: #5999ff;
        word-break: keep-all;
        font-size: .9rem;
        letter-spacing: -.6px;
        background-color: #323232;
        border-radius: 4px;
        padding: 6px 8px;
        margin: 0 3px 2px 3px;
        display: inline-block;
    }

    layout#notification a:hover,
    layout#notification a:focus,
    layout#notification a:active {
        background-color: rgb(138,180,248,.2)
    }

    layout#notification button.close {
        border: 0;
        cursor: pointer;
        background-color: #323232;
        padding: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 0 0 auto;
        color: #bbb
    }

        layout#notification button.close:active,
        layout#notification button.close:hover,
        layout#notification button.close:focus {
            color: #ddd;
            background-color: #444;
            border-radius: 20px;
            outline: 0
        }

        layout#notification button.close i {
            font-size: 18px;
            color: #fff;
        }


main {
    flex: 1 1 auto;
    background-color: #f0f4f9;
    display: flex;
    flex-flow: row nowrap;
    padding-bottom: 10px;
    overflow: hidden;
}

workspace.simply nav {
    flex: 0 0 0;
}
