
html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    outline: none;
    white-space: nowrap;
    background-color: #000000;
    -webkit-text-size-adjust: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#main_content {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    top: 0;
    height: 100%;
}

#plancia-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}

#plancia {
    position: relative;
    display: block;
    margin: 0 auto;
    height: 100%;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
}

#btn-btnClosePanel {
    z-index: 4;
}

.disabledbutton {
    pointer-events: none !important;
    opacity: 0.4;
}

.invisible {
    visibility: hidden !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.totalHidden {
    visibility: hidden !important;
    z-index: -1 !important;
}

#panelMenu {
    top: 0;
}

canvas {
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: absolute;
    z-index: -1;
}

#b2w-mask {
    width: 100%;
    height: 100%;
    position: absolute;
}

.width-100 {
    width: 100% !important;
}

.width-50 {
    width: 50% !important;
}


.margin-0 {
    margin: 0 !important;
}

.multiline {
    white-space: normal;
}

.error-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #e52d27; /* fallback for old browsers */
    background: -webkit-linear-gradient(to top, #b31217, #e52d27); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #b31217, #e52d27); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    font-family: Montserrat-Medium, serif;
    color: rgba(0, 0, 0, .5);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 2rem;
    display: none;
    z-index: 99999;
}

.error-timeout-wrap {
    background: #485563; /* fallback for old browsers */
    background: -webkit-linear-gradient(to top, #29323c, #485563); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #29323c, #485563); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: rgba(37, 255, 155, .6);
}

.error-wrap.show {
    display: flex;
}

.error-wrap h1 {
    font-family: Montserrat-Light, serif;
    color: white;
}

.error-wrap img {
    width: 10vw;
    max-width: 50px;
    margin: 2vw;
}

.error-wrap .error-info-wrapper {
    font-family: Montserrat-Light, serif;
    color: white;
    font-size: 1rem;
    position: absolute;
    bottom: 15%;
    max-width: 85%;
    white-space: normal;
    text-align: center;
}

.error-wrap .error-code {
    bottom: 15%;
}

@keyframes show-global-flash {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.global-flash-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    user-select: none;
}

.global-flash-wrap.show {
    animation-name: show-global-flash;
    animation-duration: 0.2s;
    animation-timing-function: ease-out;
    animation-fill-mode: backwards;
}


.shakeCanvas {
    animation: shake 0.5s;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0) rotate(-0.3deg);
    }

    15%, 85% {
        transform: translate3d(1px, 0, 0) rotate(0.3deg);
    }

    20%, 80% {
        transform: translate3d(-2px, 2px, 0) rotate(-0.3deg);
    }

    30%, 50%, 70% {
        transform: translate3d(4px, 0, 0) rotate(0.3deg);
    }

    40%, 60% {
        transform: translate3d(-4px, 4px, 0) rotate(-0.3deg);
    }
}

@media only screen and (max-width: 600px) {
    .error-wrap h1 {
        font-size: 5vw;
    }

    .error-wrap h5 {
        font-size: 3vw;
    }

    .error-wrap .error-info-wrapper {
        font-size: 2.5vw;
    }
}
