/* Disable user selection to avoid strange bug in Chrome on Windows:
* Selecting a text outside the canvas, then clicking+draging would
* drag the selected text but block mouse down/up events to the engine.
*/
body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

/* DEF-3413
* The Facebook container will be populated with the Facebook SDK content
* when a Facebook App Id is provided in game.project.
* This caused problems with selections in Chrome on Windows, just like
* above. Explicitly disabling selection on the root div fixes the issue.
*/
.fb-root {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.mothergameholder{background: rgb(55,120,74);}
.canvas-app-container {
background: rgb(55,120,74);
position: relative;
text-align:center;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}


.canvas-app-container:-webkit-full-screen {
/* Auto width and height in Safari/Chrome fullscreen. */
width: auto;
height: auto;
}

.canvas-app-canvas {
max-height: 100vh;
max-width: 100%;
vertical-align:top;
}

.canvas-app-progress {
position: absolute;
background-color: rgb(245, 245, 245);
height: 20px;
/* Progress same width as canvas. */
width: 1280px;
bottom: 0px;
}

.canvas-app-progress-bar {
font-size: 12px;
height: 20px;
color: rgb(255, 255, 255);
background-color: rgb(30, 100, 234);
text-align: center;
line-height: 20px;
}

.button {
color: #fff;
background-color: #1e64ea;
border-color: transparent;
padding: 10px 20px;
}


#ctrl-1,#ctrl-2,#ctrl-3{height:5%;left: 50%;transform: translateX(-50%);position:absolute;width:20%;opacity:0;z-index:3;display:block;}
#ctrl-1{background:red;bottom:24.4%;}
#ctrl-2{background:green;bottom:19.5%;}
#ctrl-3{background:blue;bottom:14.5%;}


.customButtons{position:absolute;left:0;top:0px;width:100%;height:100%;z-index:3;user-select:none;display:none}
.cmnButton{position:absolute;width:75px;height:55px;line-height:55px;text-align:center;background:rgba(46,69,121,0.6);border:solid 2px rgba(255,255,255,0.3);cursor:pointer;box-sizing:unset}
.cmnButton:before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(/games/block-party-directembedcode/textures/arr.png);background-repeat:no-repeat;background-position:center center}
#ctrl-x:before{background-image:none}
#ctrl-q:before{background-image:none}
#ctrl-space:before{background-image:none}
#ctrl-space{right:20px;bottom:120px;color:white;width:100px}
#ctrl-left{left:20px;bottom:20px}
#ctrl-right{left:110px;bottom:20px}
#ctrl-down{right:110px;bottom:20px}
#ctrl-up{right:20px;bottom:20px}
#ctrl-x{right:20px;bottom:100px;width:140px;color:white}
#ctrl-q{right:20px;top:20px;width:55px;color:white;position:absolute;height:30px;line-height: 32px;}
.activeBG{background:#9600e7}
#ctrl-left:before{transform:rotate(180deg)}
#ctrl-down:before{transform:rotate(90deg)}
#ctrl-up:before{transform: rotate(-90deg);}
#ctrl-x:before{transform:rotate(-90deg)}

@media(max-width:460px){
.cmnButton{width:50px;height:50px}
/*#ctrl-down{left:100px;top:0}
#ctrl-up{right:100px;top:0}*/
}

@media (hover:none) and (pointer:coarse){
.customButtons{display:block}
.clickcommon{display:block}
}