body:after {
    content:
        url('/graph/scanword/ZoomPlus.png')
        url('/graph/scanword/ZoomPlus2.png')
        url('/graph/scanword/ZoomPlus3.png')
        url('/graph/scanword/ZoomMinus.png')
        url('/graph/scanword/ZoomMinus2.png')
        url('/graph/scanword/ZoomMinus3.png')

        url('/graph/scanword/Max.svg')
        url('/graph/scanword/Max2.svg')
        url('/graph/scanword/IconBack.svg')
        url('/graph/scanword/IconBack2.svg')
        url('/graph/scanword/Keyboard.svg')
        url('/graph/scanword/Keyboard2.svg')
        url('/graph/scanword/Clear.svg')
        url('/graph/scanword/Clear2.svg')
        url('/graph/scanword/Next.svg')
        url('/graph/scanword/Next2.svg')
        url('/graph/scanword/Previous.svg')
        url('/graph/scanword/Previous2.svg')
        url('/graph/scanword/Backspace.svg')
        url('/graph/scanword/Backspace2.svg')
        url('/graph/scanword/Scroll.svg')
        url('/graph/scanword/Scroll2.svg')
        url('/graph/scanword/NoScroll.svg')
        url('/graph/scanword/NoScroll2.svg')
        url('/graph/scanword/Timer.svg')
        url('/graph/scanword/Timer2.svg')
        url('/graph/scanword/TimerGlass.svg')
        url('/graph/scanword/TimerGlass2.svg')
        url('/graph/scanword/Probel.svg')
		url('/graph/scanword/Menu.svg')
        url('/graph/scanword/Probel2.svg')
    ;
    display: none;
} 

canvas {
	position: relative;
	margin-top: 0px;
	border:0px solid #ccc;
}

#scanwordfield {
	border:1px solid #ccc;
	margin: 0 auto; 
	position: relative;
   background-color: #fff;
	width : 640px;
	height : 600px;
	overflow-x: scroll;
	overflow-y: scroll;
}

#percent{
    position: absolute;
    left: 7px;
    top: 15px;
    width: 32px;
    height: 5px;
	 text-align: center;
}
#polzunok{
    position: absolute;
  	 border:1px solid #777;
    background-color: #fff;
    left: 18px;
    top: 0px;
    width: 1px;
    height: 16px;
}

a.zoomminus {
   background: url('graph/scanword/ZoomMinus.png') no-repeat;
}

a.zoomminus:hover {
   background: url('graph/scanword/ZoomMinus2.png') no-repeat;
}

a.zoomminus:active {
   background: url('graph/scanword/ZoomMinus3.png') no-repeat;
}

a.zoomplus {
   background: url('graph/scanword/ZoomPlus.png') no-repeat;
}

a.zoomplus:hover {
   background: url('graph/scanword/ZoomPlus2.png') no-repeat;
}

a.zoomplus:active {
    background: url('graph/scanword/ZoomPlus3.png') no-repeat;
}

a.icon {
	width: 100%;
	height: 100%;
	display: inline-block;
	position: relative;
	margin-top: 0px;
	margin-left: 0px;
	margin-bottom: 0px;
	margin-right: 0px;
	padding: 0 0px;
	text-align: center;
	text-decoration: none;
   -webkit-touch-callout: none;
     -webkit-user-select: none;
      -khtml-user-select: none;
        -moz-user-select: none;
         -ms-user-select: none;
          -o-user-select: none;
             user-select: none;
}

a.keyb {
   background: url('graph/scanword/Keyboard.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.menu {
	background: url('graph/scanword/Menu.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.keyb:hover {
   background: url('graph/scanword/Keyboard2.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.keyb:active {
   background: url('graph/scanword/Keyboard2.svg') no-repeat;
	top: 5%; left: 5%; background-size: 90% 90%;
}

a.clear {
   background: url('graph/scanword/Clear.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.clear:hover {
   background: url('graph/scanword/Clear2.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.clear:active {
   background: url('graph/scanword/Clear2.svg') no-repeat;
	top: 5%; left: 5%; background-size: 90% 90%;
}

a.scroll {
   background: url('graph/scanword/Scroll.svg') no-repeat;
	top: 0%; left: 0%; background-size: 100% 100%;
}

a.scroll:hover {
   background: url('graph/scanword/Scroll2.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.scroll:active {
   background: url('graph/scanword/Scroll2.svg') no-repeat;
	top: 5%;	left: 5%; background-size: 90% 90%;
}

a.noscroll {
   background: url('graph/scanword/NoScroll.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.noscroll:hover {
   background: url('graph/scanword/NoScroll2.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.noscroll:active {
   background: url('graph/scanword/NoScroll2.svg') no-repeat;
	top: 5%; left: 5%; background-size: 90% 90%;
}

a.timer {
   background: url('graph/scanword/Timer.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.timer:hover {
   background: url('graph/scanword/Timer2.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.timer:active {
   background: url('graph/scanword/Timer2.svg') no-repeat;
	top: 5%;	left: 5%; background-size: 90% 90%;
}

a.timerglass {
   background: url('graph/scanword/TimerGlass.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.timerglass:hover {
   background: url('graph/scanword/TimerGlass2.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.timerglass:active {
   background: url('graph/scanword/TimerGlass2.svg') no-repeat;
	top: 5%;	left: 5%; background-size: 90% 90%;
}

a.toMax {
   background: url('graph/scanword/Max.svg') no-repeat;
	top: 4%; left: 4%; background-size: 92% 92%;
}

a.toMax:hover {
   background: url('graph/scanword/Max2.svg') no-repeat;
	top: 0%; left: 0%; background-size: 100% 100%;
}

a.toMax:active {
   background: url('graph/scanword/Max.svg') no-repeat;
	top: 7%; left: 7%;	background-size: 86% 86%;
}

a.toMin {
   background: url('graph/scanword/IconBack.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.toMin:hover {
   background: url('graph/scanword/IconBack2.svg') no-repeat;
	top: 0%;	left: 0%; background-size: 100% 100%;
}

a.toMin:active {
   background: url('graph/scanword/IconBack.svg') no-repeat;
	top: 5%;	left: 5%; background-size: 90% 90%;
}

a:active {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a.button {
	width: 40px;
	height: 32px;
	display: inline-block;
	position: relative;
	margin-top: 0px;
	margin-left: 0px;
	margin-bottom: 0px;
	margin-right: 0px;
	padding: 0 0px;
	text-align: center;
	text-decoration: none;
	text-shadow: 1px 1px 1px #ffffff; 
	font: bold 20px/30px Trebuchet MS, sans-serif;
   border: 1px solid #ccc; 

   -webkit-touch-callout: none;
     -webkit-user-select: none;
      -khtml-user-select: none;
        -moz-user-select: none;
         -ms-user-select: none;
          -o-user-select: none;
             user-select: none;

   color:#3d3d3d; 
   background-color:#ffffff; 
   background-image: -moz-linear-gradient(top, #ffffff 0%, #e3e3e3 100%); 
   background-image: -webkit-linear-gradient(top, #ffffff 0%, #e3e3e3 100%); 
   background-image: -o-linear-gradient(top, #ffffff 0%, #e3e3e3 100%); 
   background-image: -ms-linear-gradient(top, #ffffff 0% ,#e3e3e3 100%); 
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e3e3e3', endColorstr='#e3e3e3',GradientType=0 ); 
   background-image: linear-gradient(top, #ffffff 0% ,#e3e3e3 100%);   

   -webkit-box-shadow:0px 0px 2px #9c9c9c, inset 0px 0px 1px #ffffff; 
   -moz-box-shadow: 0px 0px 2px #9c9c9c,  inset 0px 0px 1px #ffffff;  
   box-shadow:0px 0px 1px #9c9c9c, inset 0px 0px 1px #ffffff;  

	filter: dropshadow(color=#ffffff, offx=1, offy=1);  
}

a.button:hover {
   background-image: -moz-linear-gradient(top, #f2f2f2 0%, #c9c9c9 100%); 
   background-image: -webkit-linear-gradient(top, #f2f2f2 0%, #c9c9c9 100%); 
   background-image: -o-linear-gradient(top, #f2f2f2 0%, #c9c9c9 100%); 
   background-image: -ms-linear-gradient(top, #f2f2f2 0% ,#c9c9c9 100%); 
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9c9c9', endColorstr='#c9c9c9',GradientType=0 ); 
   background-image: linear-gradient(top, #f2f2f2 0% ,#c9c9c9 100%);   
   border: 1px solid #666; 
	-webkit-box-shadow: inset 0px 0px 0px #fff;
	-moz-box-shadow: inset 0px 0px 0px #fff;
	box-shadow: inset 0px 0px 0px #fff;

}

a.button:active {
	margin-top: 0px;
	margin-left: 0px;
	margin-bottom: 0px;
	margin-right: 0px;
	font: bold 18px/30px Trebuchet MS, sans-serif;

	-webkit-box-shadow: inset 0px 0px 3px rgba(0,0,0, .5);
	-moz-box-shadow: inset 0px 0px 3px rgba(0,0,0, .5);
	box-shadow: inset 0px 0px 3px rgba(0,0,0, .5);
}

a.backspace {
	background:	url('graph/scanword/Backspace.svg') no-repeat center, -moz-linear-gradient(top,  #fff 0%, #e3e3e3 100%);
	background: url('graph/scanword/Backspace.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#e3e3e3));
	background: url('graph/scanword/Backspace.svg') no-repeat center, -webkit-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Backspace.svg') no-repeat center, -o-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Backspace.svg') no-repeat center, -ms-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Backspace.svg') no-repeat center, linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.backspace:hover {
	background:	url('graph/scanword/Backspace.svg') no-repeat center, -moz-linear-gradient(top,  #f2f2f2 0%, #c9c9c9 100%);
	background: url('graph/scanword/Backspace.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#c9c9c9));
	background: url('graph/scanword/Backspace.svg') no-repeat center, -webkit-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Backspace.svg') no-repeat center, -o-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Backspace.svg') no-repeat center, -ms-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Backspace.svg') no-repeat center, linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.backspace:active {
	background:	url('graph/scanword/Backspace2.svg') no-repeat center, -moz-linear-gradient(top,  #f2f2f2 0%, #c9c9c9 100%);
	background: url('graph/scanword/Backspace2.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#c9c9c9));
	background: url('graph/scanword/Backspace2.svg') no-repeat center, -webkit-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Backspace2.svg') no-repeat center, -o-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Backspace2.svg') no-repeat center, -ms-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Backspace2.svg') no-repeat center, linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.next {
	background:	url('graph/scanword/Next.svg') no-repeat center, -moz-linear-gradient(top,  #fff 0%, #e3e3e3 100%);
	background: url('graph/scanword/Next.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#e3e3e3));
	background: url('graph/scanword/Next.svg') no-repeat center, -webkit-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Next.svg') no-repeat center, -o-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Next.svg') no-repeat center, -ms-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Next.svg') no-repeat center, linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.next:hover {
	background:	url('graph/scanword/Next.svg') no-repeat center, -moz-linear-gradient(top,  #f2f2f2 0%, #c9c9c9 100%);
	background: url('graph/scanword/Next.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#c9c9c9));
	background: url('graph/scanword/Next.svg') no-repeat center, -webkit-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Next.svg') no-repeat center, -o-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Next.svg') no-repeat center, -ms-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Next.svg') no-repeat center, linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.next:active {
	background:	url('graph/scanword/Next2.svg') no-repeat center, -moz-linear-gradient(top,  #f2f2f2 0%, #c9c9c9 100%);
	background: url('graph/scanword/Next2.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#c9c9c9));
	background: url('graph/scanword/Next2.svg') no-repeat center, -webkit-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Next2.svg') no-repeat center, -o-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Next2.svg') no-repeat center, -ms-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Next2.svg') no-repeat center, linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.previous {
	background:	url('graph/scanword/Previous.svg') no-repeat center, -moz-linear-gradient(top,  #fff 0%, #e3e3e3 100%);
	background: url('graph/scanword/Previous.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#e3e3e3));
	background: url('graph/scanword/Previous.svg') no-repeat center, -webkit-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Previous.svg') no-repeat center, -o-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Previous.svg') no-repeat center, -ms-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Previous.svg') no-repeat center, linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.previous:hover {
	background:	url('graph/scanword/Previous.svg') no-repeat center, -moz-linear-gradient(top,  #f2f2f2 0%, #c9c9c9 100%);
	background: url('graph/scanword/Previous.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#c9c9c9));
	background: url('graph/scanword/Previous.svg') no-repeat center, -webkit-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Previous.svg') no-repeat center, -o-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Previous.svg') no-repeat center, -ms-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Previous.svg') no-repeat center, linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.previous:active {
	background:	url('graph/scanword/Previous2.svg') no-repeat center, -moz-linear-gradient(top,  #f2f2f2 0%, #c9c9c9 100%);
	background: url('graph/scanword/Previous2.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#c9c9c9));
	background: url('graph/scanword/Previous2.svg') no-repeat center, -webkit-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Previous2.svg') no-repeat center, -o-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Previous2.svg') no-repeat center, -ms-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Previous2.svg') no-repeat center, linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.probel {
	background:	url('graph/scanword/Probel.svg') no-repeat center, -moz-linear-gradient(top,  #fff 0%, #e3e3e3 100%);
	background: url('graph/scanword/Probel.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#e3e3e3));
	background: url('graph/scanword/Probel.svg') no-repeat center, -webkit-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Probel.svg') no-repeat center, -o-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Probel.svg') no-repeat center, -ms-linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	background: url('graph/scanword/Probel.svg') no-repeat center, linear-gradient(top,  #fff 0%,#e3e3e3 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.probel:hover {
	background:	url('graph/scanword/Probel.svg') no-repeat center, -moz-linear-gradient(top,  #f2f2f2 0%, #c9c9c9 100%);
	background: url('graph/scanword/Probel.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#c9c9c9));
	background: url('graph/scanword/Probel.svg') no-repeat center, -webkit-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Probel.svg') no-repeat center, -o-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Probel.svg') no-repeat center, -ms-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Probel.svg') no-repeat center, linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.probel:active {
	background:	url('graph/scanword/Probel2.svg') no-repeat center, -moz-linear-gradient(top,  #f2f2f2 0%, #c9c9c9 100%);
	background: url('graph/scanword/Probel2.svg') no-repeat center, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#c9c9c9));
	background: url('graph/scanword/Probel2.svg') no-repeat center, -webkit-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Probel2.svg') no-repeat center, -o-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Probel2.svg') no-repeat center, -ms-linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	background: url('graph/scanword/Probel2.svg') no-repeat center, linear-gradient(top,  #f2f2f2 0%,#c9c9c9 100%);
	top: 0%;
	left: 0%;
	background-size: 100% 100%;
}

a.iconback {
	vertical-align: middle;
	display: inline-block; 
	height:30px;
	width:31px;
	background-image: url(graph/iconback.jpg);
}

a.iconback:hover {
	background-image: url(graph/iconback2.jpg);
}

a.iconforward {
	vertical-align: middle;
	display: inline-block; 
	height:30px;
	width:31px;
	background-image: url(graph/iconforward.jpg);
}

a.iconforward:hover {
	background-image: url(graph/iconforward2.jpg);
}

a.number {
	text-decoration: none;
	font: bold 18px Helvetica, sans-serif;
	vertical-align: middle;
	margin: 5px;
}
a:link.number {color:#000055;}
a:hover.number {text-decoration:none; color:#000055;}
a:active.number {color:#000055; text-decoration:none;}
a:visited.number {color#000055;}                                                          

#maxdef {
	font: 16px/18px Arial;
	vertical-align: middle;
	background: #cce7f2;
	width:100px;
	height:100px;
	border: solid 1px black;
	margin:0 auto;
	display: table-cell;
}

#keyboard {
	border-top: 5px solid #fff;
	margin: 0 auto; 
	position: relative;
	background: #eee;
	width : 630px;
	height : 102px;
	text-align:center;
	vertical-align: middle;
	font-size:0;
	display : none;
}

#keyboarddef {
	width: 102px;
	display: none;
	padding-left: 10px;
}

#keyboardcell {
	vertical-align: middle;
}

#IconBar {
	height: 32px;
}

td.IconCell {
	width: 32px;
	outline: none;
	vertical-align:center;
}

td.Probel {
	width: 18px;
}

#test {
	border: solid 10px black;
	background: #eee;
}

#ScaleTable {
	height: 100%;
	border: 0px;
	padding: 0px;
}

.room-list-title {
	font-weight: bolder;
	font-size: 1.2em;
	margin-bottom: 2vh;
}

.room-item {
	background-color:#fbc88d;
	width: 400px;
}

.room-title {
	font-weight: bold;
	margin: 0.4em;
}

.room-players-count {
	margin-right: 1em;
}

.menu-bg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	background-color: rgba(168, 148, 148, 0.47);
}

.menu-modal {
	display: block; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.menu-content {
	background-color: #fefefe;
	padding: 20px;
	border: 1px solid #888;
	width: min-content; /* Could be more or less, depending on screen size */
}
#chat {
	height: 456px;
	width: 456px;
	position: fixed;
	right: 2vw;
	bottom: 3vh;
}
@media only screen and (max-width: 768px) {
	/* For mobile phones: */
	#chat {
		height: 50vh;
		width: 50vw;
		position: fixed;
		right: 1vw;
		top: 5vh;
		}
	}
#chat-list {
	float: left;
	overflow-y: auto;
	overflow-x: hidden;
	height: 400px;
	font-size: 1.15em;
	word-break: break-word;
	width: 400px;
}
#chat-users {
	float: right;
}
#chat-input {
	float: left;
	border: 1px solid #a4a4a4;
	margin: -1px 0 0 0;
	padding: 5px;
	font-family: arial;
	width: 90%;
	-moz-box-shadow: inset 0 0 3px #ccc;
	box-shadow: inset 0 0 3px #ccc;
}
.chat-message {
	word-wrap: break-word;
	position: relative;
	margin: 2px 0;
	padding-left: 10px;
	text-align: left;
}
.chat-message-user {
	margin-right: 7px;
	margin-left: -10px;
	font-weight: bold;
}
.chat-message-content {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
}
.chat-message-action {
	font-style: italic;
	color: #666;
	margin-left: -10px;
	margin-right: 7px;
}
.chat-word-fix {
	margin-left: -10px;
	margin-right: 7px;
}
#user-settings {
	margin: 20px;
	font-size: 1.1em;
	display: flex;
	align-items: flex-end;
}
#name-input {
	font-size: 1.2em;
	text-align: center;
}
.name-settings {
	font-size: 1.2em;
	position : relative;
}
#settings-error {
	position: absolute;
	top: 100%;
	left: 25%;
}
#color-input {
	width: 50px;
	height: 35px;
	padding: 0 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	box-sizing: border-box;
}

.word-fix {
	font-weight: bold;
}
#create-room-list {
	width: max-content;
	}

.square .clr-field button,
.circle .clr-field button {
	width: 22px;
	height: 22px;
	left: 5px;
	right: auto;
	border-radius: 5px;
	}
.color-settings .clr-field button {
	width: 100%;
	height: 100%;
	border-radius: 5px;
}
.new-game-menu {
	margin-top: 5%;
}

.difficulty {
	float: left;
	height: 20px;
	padding: 0 10px;
	}
.difficulty:not(:checked) > input {
	position:absolute;
	top:-9999px;
	}
.difficulty:not(:checked) > label {
	float:right;
	width:1em;
	overflow:hidden;
	white-space:nowrap;
	cursor:pointer;
	font-size:30px;
	color:#ccc;
	}
.difficulty:not(:checked) > label:before {
	content: '★ ';
	}
.difficulty > input:checked ~ label {
	color: #ffc700;
	}
.difficulty:not(:checked) > label:hover,
.difficulty:not(:checked) > label:hover ~ label {
	color: #deb217;
	}
.difficulty > input:checked + label:hover,
.difficulty > input:checked + label:hover ~ label,
.difficulty > input:checked ~ label:hover,
.difficulty > input:checked ~ label:hover ~ label,
.difficulty > label:hover ~ input:checked ~ label {
	color: #c59b08;
	}

.error-modal {
	margin-top: 20%;
}
#kick-message {
	margin: 20px;
}