body {
    margin: 0;
    overflow: hidden;
    font-family: 'Spartan', sans-serif;


    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}
#canvas {
    touch-action: manipulation;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#blocker {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(127,127,127,0.2);
}

#blocker a {
    color: #fff;
    text-decoration: none;
}

#blocker img {
    height: 30px;
    margin: 0 20px 0 0;

}

.wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
/*
.insbg {
    padding: 3vh;
    background-color: #fff;
}

 */

.wrap p {
}

#instructions {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;

    /*
    display: -webkit-box;
    display: -moz-box;
    display: box;


    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;

    -webkit-box-pack: center;
    -moz-box-pack: center;
    box-pack: center;

    -webkit-box-align: center;
    -moz-box-align: center;
    box-align: center;
     */

    color: #ffffff;
    text-align: center;
    line-height: 24px;

    z-index: 1;
    pointer-events: none;
    cursor: default;
}


#instructions p {
    font-size: 2vh;
    padding: 0;
    cursor: pointer;
    color: black;
    margin: 1vh 0;
}


#mobilecontrols {
    touch-action: manipulation;
    position: absolute;
    bottom: 20px;
    right: 20px;

    display: none;
    justify-content: flex-end;
    align-items: center;

    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

#mobilecontrols button {
    padding: 0;
    border: none;
    background-color: transparent;
    color: #fff;
    font-size: 80px;
    height: 20vw;
    width: 20vw;
    background-size: cover;
    opacity: 0.5;
    transition: 0.45s ease-in;

    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}
/*
#mobilecontrols button:active {
    opacity: 1;
}

 */

#mobilecontrols img {
    height: 20vw;
    width: auto;
    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

/*
#fw {
    margin: 0 0 7px 0;
    padding: 10px 12px !important;
}

#bw {
    padding: 10px 12px !important;
}

 */


.container {
    text-align: center;
}



.controlbutton {
    touch-action: manipulation;

    display: flex;
    justify-content: center;
    align-content: center;
    margin: 20px;
    background-color: #000;
    height: 100px;
    width: 100px;
    border: 1px solid white;
}



#loading-screen {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 300;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #8d8d8d;
    opacity: 0.99;
    transition: 1s opacity;
}

#loading-screen.fade-out {
    opacity: 0;
}

#loader {
    /*
    position: absolute;
    top: 45%;
    display: flex;
    justify-content: center;
    align-content: center;
    */

}

#loader p {
    color: white;
}

#ts {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;

    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

#ts button {
    background: #7f7f7f;
    border: none;
    color: #fff;
    padding: 18vh 12vh;
    font-size: 2vh;
    z-index: 200;
}

#startButton{
}
/*
@media screen and (max-width: 829px, min-width: 420px) {
    #ts button {
        font-size: 2em;
    }
}
 */

#desktopctrl {
    position: absolute;
    display: none;
    justify-content: center;
    align-items: center;
    bottom: 3vh;
    width: 100vw;
    height: 40px;
    mix-blend-mode: difference;
    pointer-events: none;
}

#desktopctrl p {
    color: white;
}

#desktopctrl img {
    height: 30px;
    margin: 0 20px 0 40px;
}

.menu {
    mix-blend-mode: difference;
    z-index: 400;
}

.menu a {
    font-size: 2vh;
}

.t {
    position: fixed;
    top: 3vh;
    left: 3vh;
    z-index: 400;
}

.b {
    position: fixed;
    bottom: 3vh;
    right: 3vh;
    z-index: 400;
}

.r {
    position: fixed;
    top: 3vh;
    right: 3vh;
    z-index: 400;
}

.l {
    position: fixed;
    bottom: 3vh;
    left: 3vh;
    z-index: 400;
}



#momenu {
    mix-blend-mode: difference;
    z-index: 400;
    display: none;
}

#momenu a {
    font-size: 2vh;
    color: #fff;
    text-decoration: none;
}

.mt {
    position: fixed;
    top: 3vh;
    left: 3vh;
}

.mb {
    position: fixed;
    top: 7vh;
    right: 3vh;
}

.mr {
    position: fixed;
    top: 3vh;
    right: 3vh;
}

.ml {
    position: fixed;
    top: 7vh;
    left: 3vh;
}



#fadeblocker {
    pointer-events: none;
    position: absolute;
    z-index: 999;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: #7f7f7f;
    -moz-animation: fadein 8s ease-in-out; /* Firefox */
    -webkit-animation: fadein 8s ease-in-out; /* Safari and Chrome */
    -o-animation: fadein 8s ease-in-out; /* Opera */
}


@keyframes fadein {
    from {
        opacity:1;
    }
    to {
        opacity:0;
    }
}
@-moz-keyframes fadein { /* Firefox */
    from {
        opacity:1;
    }
    to {
        opacity:0;
    }
}
@-webkit-keyframes fadein { /* Safari and Chrome */
    from {
        opacity:1;
    }
    to {
        opacity:0;
    }
}
@-o-keyframes fadein { /* Opera */
    from {
        opacity:1;
    }
    to {
        opacity: 0;
    }
}