@font-face {
  font-family: Fasthand;
  src: url(../Fasthand/Fasthand-Regular.ttf);
}


.safe_field{
	background:#b2b2b2 !important;
	
}
#msg_container,.msg_container{
	width:340px;
	margin-left:25px;
	float:left;
	position:fixed;
	overflow:hidden;
	background: #fffffff2;
    min-height: 410px;
	
	padding:20px;
	top:70px;
	top:115px;
	border-radius:20px;
	border:5px solid #ccc;
	z-index:100000;
	display:none;
}
#msg,.msg{
	font-family: Arial;
	text-align:center;
}

.sit{
	width: calc(100% - 100px);
    margin-top: 10px;
    font-size: 20px;
    text-align: center;
    padding: 5px;
    background: #9e36ab;
    color: #ccc;
    border-radius: 5px;
    float: right;
    margin-left: 20px;
    margin-right: 20px;
	cursor:pointer;
	letter-spacing: 2px;
	animation: 4s infinite  sithop;
}


.sit{
  border: 1px solid #fff;
  box-shadow: 8px 8px 8px -1px rgba(68, 38, 227, 0.49);
-webkit-box-shadow: 8px 8px 8px -1px rgba(68, 38, 227, 0.49);
}
.sit:hover, .sit:active{
 
  border: 1px solid #8b8b8b;
  box-shadow: none;
-webkit-box-shadow: none;

}


@keyframes sithop {
  0% {
    margin-top: 12px;
    
  }
  5% {
    margin-top: 7px;
    
  }

  10% {
    margin-top: 12px;
    
  }
  100% {
    margin-top: 12px;
    
  }
}


.logo_t {
	
  font-family: Fasthand;
  text-align:center;
  font-size: 34px;
    color: #fb0606;

}

.back{
	position:absolute;
	left:10px;
	top:14px;
	font-family: Fasthand;
	color:#ff0000a6;
	
}


.a_user{
	position:absolute;
	right:10px;
	top:0px;
	font-family: Arial;
	font-size:12px;
	color:#0037ff;
	text-decoration:none;
	
	
}
.a_user .avatar{
	float:right;
	zoom:0.70;
}
.a_user span{
	display: block;
    float: none;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 110px;
	width: 50px;
    overflow: hidden;
    /* height: 80px; */
    /* background: aqua; */
    right: -36px;
    top: 40px;
    position: relative;
    left: initial;
    color: #333;
}

.back img{
	width:40px;
	
}

.ani{
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    -ms-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}


.ani2{
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}


.ani2{
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.ani5{
    -webkit-transition: all 0.05s ease-in-out;
    -moz-transition: all 0.05s ease-in-out;
    -o-transition: all 0.05s ease-in-out;
    -ms-transition: all 0.05s ease-in-out;
    transition: all 0.05s ease-in-out;
}

body {
    padding: 0;
    margin: 0 auto;
	background: #bdbdc0;
	background: #282828;
	
}
*{
	box-sizing:border-box;
}
div#main {
    background-color: floralwhite;
    margin: 5px 0 0 10px;
    width: 950px;
}
 
#ground {
    width: 100%;
    margin:0px;
    padding-bottom: 50px;
	float:left;
}


#board {
    width: 390px;
    
    margin: 0 0 0 0;
    padding: 0;
	float: left;
	background:#ccc;
	position:relative;
	
	/*background: linear-gradient(to right, #ccc0 0px, #cccccc00 8px, #ccc 10px, #ccc 381px,#cccccc00 382px, #ff000000 390px);*/
	
	border-top: 4px solid #ccc;
    border-bottom: 4px solid #ccc;
	
}
#board2 {width: 390px;
    height: 390px;
	float: left;
	background:transparent;
	position:relative;
}

#dice-div {
    width:150px;
    float: right;
}

#dice {
    /*background-color: #4CAF50; /* Green */
    background-image:url('../img/dice.jpeg');
    border: none;
    color: #000000;
    width: 150px;
    height: 110px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.box {
    background-color: white;
    height: 30px;
    width: 30px;
    border: 1px solid chocolate;
    float: left;
    color: darkblue;
    font-size: 10px;
    font-weight: bold;
	border-radius:6px;
	z-index:100;
}

.box-hide {
    background-color:transparent;
	height: 30px;
    width: 30px;
	float: left;


}


.box-path {
    background-color:#e3c592;
	background-color:#dfb062;
	background-color:#b1a186;
	background-color:#fbf4e7;
	
	
    height: 30px;
    width: 30px;
    border: 1px solid #e3c592;
    float: left;
    color:#ffffff;
    font-size: 10px;
	border-radius:30px;
}


.box-red {
    background-color:#f16464;
    height: 30px;
    width: 30px;
    border: 1px solid red;
    float: left;
    color:#ffffff;
    font-size: 10px;
}

.box-blue {
    background-color:#4aa2db;
    height: 30px;
    width: 30px;
    border: 1px solid blue;
	border: 1px solid #3781bd;
    float: left;
    color:#ffffff;
    font-size: 10px;
}

.box-yellow {
    background-color:#ffff3e;
	background-color:#e5e56b;
	background-color:#efef79;
	
	
    height: 30px;
    width: 30px;
    border: 1px solid #abab2d;
	border: 1px solid #ffff92;
    float: left;
    color:#444444;
    font-size: 10px;
}

.box-green {
    background-color:#56ad56;
    height: 30px;
    width: 30px;
    border: 1px solid green;
    float: left;
    color:#ffffff;
    font-size: 10px;
}

ul {
   font-size: 12px;
    color: blue;
    list-style-type: none;
    width:200px;
}

#dice-result {
    margin-top: 10px;
    font-weight: bold;
    font-size: 20px;
    color: red;
}

#all-stick-positions {
    width: 390px;
    margin-left: 600px;
}

#positions {
    border:1px solid #000000;
    font-size: 12px;
    color: blue;
    float: right;
    margin-left: 5%;
    width: 40%;
    height:auto;
}

.stick_position {
    width:40px;
    height:20px;
    border:.5px solid #000000;
    color:#000000;
}

#move_result {
    font-size: 10px;
    color: red;
    /*animation: blinker 1s linear infinite;*/
}
@keyframes blinker {
    50% { opacity: 0; }
}

#refresh {
    color: red;
    margin:10px 0 0 12%;
}

.disabledbutton {
    pointer-events: none;
    opacity: 0.4;
}

.home {
    width: 480px;
    height: 30px;
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
}

#red-home {
    float: left;
    background-color: red;
    padding: 5px;
}

#green-home {
    float: right;
    background-color: green;
    padding: 5px;
}

#blue-home {
    float: left;
    background-color: blue;
    padding: 5px;
}

#yellow-home {
    float: right;
    background-color: yellow;
    padding: 5px;
}




#ludo{
	width:390px;
	float:left;
	position:relative;
	overflow:hidden;
	
    height: 100vh;
	background: url(../img/bg4.png);
	background: url(../img/bg5.png);
	background: url(../img/bg6.png);
    background-size: cover;
    height: 710px;
	height: 100vh;
    padding-left: 0px;
}
#game_if{
	height: 100vh;
}

#m_h{
	display:none;
	position:fixed;
	top:0px;
	left:0px;
	width:100vw;
	height:100vh;
	background:yellow;
	background: url(../img/bg6.png);
	background-attachment: fixed;
    background-size: cover;
	color:#000;
	font-size:48px;
	
	z-index: 1000000;
	padding:20px;
	text-align:center;
	font-family: Fasthand;
}
.players{
	width:100%;
	float:left;
	/*
	margin-top:2px;
	margin-bottom:2px;
	*/
}
.player_container{
	width:50%;
	height:60px;
	float:left;
	border:0px solid #333;
	
}
.autoplay .avatar::before, .autoplay .avatarR::before{
	content: 'auto';
    width: 40px;
    height: 40px;
    background: #0000ddbd;
    border-radius: 50px;
    font-family: Fasthand;
    display: block;
    position: absolute;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    margin-left: 5px;
    margin-top: 5px;
    font-size: 20px;
	cursor:pointer;
	z-index:99;
	
}

.autoplay .avatarR::before{
	
	
}




#specials_c{
	width:100%;
	display:block;
	float:left;
	border:0px solid #333;
}
#specials{
	border:0px solid #333;
	margin-left:auto;
	margin-right:auto;
	width:300px;
	height:60px;
}
.specials_c{
	width:100%;
	display:block;
	float:none;
	border:0px solid #333;
}
.specials{
	border:0px solid #333;
	margin-left:auto;
	margin-right:auto;
	width:300px;
	height:60px;
}
.cone{
	position:absolute;
	top:183px;
	left:183px;
	width:25px;
	height:25px;
	background:#000;
	z-index:4;
}
.centerludo{
	width:90px;
	height:90px;
	display:block;
	background:url(../img/centerludo.png);
	position:absolute;
	left:150px;
	top:150px;
	z-index:2;
	
}
.backholder{
	height:0px;
	float:left;
	z-index:5;
}
#back_01{
	
	width:150px;
	height:150px;
	background:red;
	z-index:10;
	opacity:0.4;
	opacity:0.8;
	float:left;
	display:block;
	background: linear-gradient(to left, #ff0000 0%, #f00 10%, #f00 90%, #ff000000 100%);
	background: linear-gradient(to right, #ff000000 0px, #ff000000 8px, #ff0000ff 8px, #ff0000ff 100%);
	background:#e86361;
	border-bottom-right-radius:10px;
}




#back_02{
	
	width:150px;
	height:150px;
	background:green;
	z-index:10;
	opacity:0.4;
	opacity:0.8;
	margin-left:90px;
	float:left;
	display:block;
	
	background: linear-gradient(to right, #61ad51 0%, #61ad51 10%, #61ad51 80%, #ff000000 100%);
	border-bottom-left-radius:10px;
	background:#61ad51;
}
#back_03{
	
	width:150px;
	height:150px;
	background:blue;
	z-index:10;
	opacity:0.4;
	opacity:0.8;
	margin-top:90px;
	float:left;
	display:block;
	
	
	
	background: linear-gradient(to left, #00f 0%, #00f 10%, #00f 95%, #ff000000 100%);
	
	
	border-top-right-radius:10px;
	
	background: #59a3dd;
}
#back_04{
	
	width:150px;
	height:150px;
	background:yellow;
	z-index:10;
	opacity:0.4;
	opacity:0.8;
	margin-top:90px;
	margin-left:90px;
	float:left;
	display:block;
	
	background: linear-gradient(to right, #ff0 0%, #ff0 10%, #ff0 80%, #ff000000 100%);
	
	border-top-left-radius:10px;
	background:#e4e562;
	background:#f0f266;
	
}

#back2_01,#back2_02,#back2_03,#back2_04{
	
	width:110px;
	height:110px;
	background:red;
	z-index:10;
	opacity:0.4;
	opacity:1;
	float:left;
	display:block;
	background:#e22b28;
	border-radius:10px;
	margin-left:20px;
	margin-top:20px;
}

#back2_02{
	background:#429d2f;
}

#back2_03{
	background:#2980d1;
}
#back2_04{
	background:#e7d931;
}



.back_C_1{
	background:#e86361 !important;
}

.back_C_2{
	background:#61ad51 !important;
}

.back_C_3{
	background: #59a3dd !important;
}
.back_C_4{
	background:#f0f266 !important;
}





.back_C2_1{
	background:#ef110d !important;
	background:#e22b28 !important;
}

.back_C2_2{
	background:#429d2f !important;
}

.back_C2_3{
	background:#2980d1 !important;
}
.back_C2_4{
	background:#e7d931 !important;
}




.player_container.box-blue{
	/*background: linear-gradient(to left, #00f 0%, #00f 10%, #00f 95%, #ff000000 100%);
	background: linear-gradient(to right, #4aa2db 0px, #4aa2db 10px, #4aa2db00 11px, #ff000000 100%);
	background: linear-gradient(to right, #4aa2db00 0px, #4aa2db00 8px, #4aa2dbff 8px, #4aa2dbff 100%);
	
	
	background: linear-gradient(to right, #4aa2db00 0px, #4aa2db00 8px, #4aa2dbff 9px, #4aa2dbff 100%);
	*/
	
}


.same_1{
	margin-left:-7px;
	
}
.same_2{
	margin-left:-2px;
	
}
.same_3{
	margin-left:2px;
	
}
.same_4{
	margin-left:7px;
	
}
.same_5{
	margin-left:-13px;
	
}
.same_6{
	margin-left:13px;
	
}
.same_7{
	margin-left:-16px;
	
}
.same_7{
	margin-left:16px;
	
}





.pin-red{
	width:21px;
	height:36px;
	background:url("../img/pin-red.png");
	background-size:cover;
}
.pin-green{
	width:21px;
	height:36px;
	background:url("../img/pin-green.png");
	background-size:cover;
}
.pin-yellow{
	width:21px;
	height:36px;
	background:url("../img/pin-yellow.png");
	background-size:cover;
}
.pin-blue{
	width:21px;
	height:36px;
	background:url("../img/pin-blue.png");
	background-size:cover;
	
	
}

#ludo.sm-pins .pin-red,
#ludo.sm-pins .pin-green,
#ludo.sm-pins .pin-yellow,
#ludo.sm-pins .pin-blue{
	background-size: 70% 70%;
	background-repeat: no-repeat;
	background-position:bottom;
}

.avatar,.avatarR{
	width:50px;
	height:50px;
	float:left;
	border-radius:50%;
	margin:5px;
}
.avatarR{
	float:right;
}
.pl_name,.pl_nameR{
	font-family: arial;
    float: left;
    margin-left: 5px;
    margin-top: 35px;
    font-size: 14px;
	overflow: hidden;
    text-overflow: ellipsis;
	white-space: nowrap;
	max-width:100px;
}
.tablelist .pl_name,.tablelist .pl_nameR{
		max-width:80px;
}
.pl_nameR{
	float:right;
}


.avatar_1{
	background:url(../img/avatar50.png);
	background-position:0px 0px;
}
.avatar_2{
	background:url(../img/avatar50.png);
	background-position:-51px 0px;
}

.avatar_3{
	background:url(../img/avatar50.png);
	background-position:-102px 0px;
}
.avatar_4{
	background:url(../img/avatar50.png);
	background-position:-153px 0px;
}



.avatar_5{
	background:url(../img/avatar50.png);
	background-position:0px -51px;
}
.avatar_6{
	background:url(../img/avatar50.png);
	background-position:-51px -51px;
}

.avatar_7{
	background:url(../img/avatar50.png);
	background-position:-102px -51px;
}
.avatar_8{
	background:url(../img/avatar50.png);
	background-position:-153px -51px;
}


.avatar_9{
	background:url(../img/avatar50.png);
	background-position:0px -102px;
}
.avatar_10{
	background:url(../img/avatar50.png);
	background-position:-51px -102px;
}

.avatar_11{
	background:url(../img/avatar50.png);
	background-position:-102px -102px;
}
.avatar_12{
	background:url(../img/avatar50.png);
	background-position:-153px -102px;
}



.avatar_13{
	background:url(../img/avatar50.png);
	background-position:0px -153px;
}
.avatar_14{
	background:url(../img/avatar50.png);
	background-position:-51px -153px;
}

.avatar_15{
	background:url(../img/avatar50.png);
	background-position:-102px -153px;
}
.avatar_16{
	background:url(../img/avatar50.png);
	background-position:-153px -153px;
}











.pin-active,.dice-active{
	
	/*animation: 0.5s infinite  pinhop;*/
	z-index:100 !important;
}
.pin-active::before{
	content: '';
    width: 25px;
    height: 25px;
    opacity: 0.8;
    background: #b53838;
	background: url('../img/hand.png');
	background-size:cover;
    display: block;
    animation: 1s infinite pinhop;
    position: relative;
    top: -22px;
    left: 3px;
	
	z-index:15;
	
}
.dice-active::before{
	content: '';
    width: 50px;
    height: 50px;
	margin-bottom:-50px;
    opacity: 1;
    background: #b53838;
	background: url('../img/hand.png');
	background-size:cover;
    display: block;
    animation: 1s infinite padhop;
    position: relative;
    top: -50px;
    left: -0px;
	
}
.pin-active2{
	animation: 0.2s infinite  pinhop;
	z-index:100 !important;
}




.pin-move{
	animation: 0.5s infinite  pinhop;
	z-index:100 !important;
}
.pin-move2{
	animation: 0.2s infinite  pinhop;
	z-index:100 !important;
}




@keyframes pinhop {
  0% {
    margin-top: 0px;
    
  }
  50% {
    margin-top: -10px;
    
  }

  100% {
    margin-top: 0%;
    
  }
}


@keyframes padhop {
  0% {
    margin-top: -0px;
	margin-bottom: -50px;
    
  }
  50% {
    margin-top: -10px;
    margin-bottom: -40px;
  }

  100% {
    margin-top: 0px;
	margin-bottom: -50px;
    
  }
}



















.bg-active{
	animation: 0.5s infinite  bg_opac;
}

@keyframes bg_opac {
  0% {
    opacity: 0.4;
    
  }
  50% {
    opacity: 0.9;
    
  }

  100% {
    opacity: 0.4;
    
  }
}

/*@media  screen and (min-width: 768px) and (min-height: 1000px) { */
@media  screen and (min-width: 550px) and (min-height: 1000px) { 
	body{
	margin-left: calc(50% - 190px);
		/* margin-top: 200px; */
		zoom: 1.38;
		background: #585858;
		background:#000;
	}
	#m_h{
		height:calc(100vh / 1.38) ;
		width :calc(100vw / 1.38) ;
	}
	#ludo{
		height:calc(100vh / 1.38) ;
	}
	#game_if{
		height:calc(100vh / 1.38) !important;
	}
}



@media  screen and (max-width: 340px) {
	body{
	zoom: 0.822;
	}
	#m_h{
		height:calc(100vh / 0.822) ;
		width :calc(100vw / 0.822) ;
	}
	#ludo{
		height:calc(100vh / 0.822) ;
	}
	#game_if{
		height:calc(100vh / 0.822) !important;
	}
}



@media  screen and (width: 360px) {
	body{
	zoom: 0.922;
	}
	#m_h{
		height:calc(100vh / 0.922) ;
		width :calc(100vw / 0.922) ;
	}
	#ludo{
		height:calc(100vh / 0.922) ;
	}
	#game_if{
		height:calc(100vh / 0.922) !important;
	}
}

@media  screen and (width: 375px) {
	body{
	zoom: 0.96;
	}
	#m_h{
		height:calc(100vh / 0.96) ;
		width :calc(100vw / 0.96) ;
	}
	#ludo{
		height:calc(100vh / 0.96) ;
	}
	#game_if{
		height:calc(100vh / 0.96) !important;
	}
}

@media  screen and (min-width: 390px) and (max-width: 395px) {
	body{
	zoom: 1.010;
	}
	#m_h{
		height:calc(100vh / 1.01) ;
		width :calc(100vw / 1.01) ;
	}
	#ludo{
		height:calc(100vh / 1.01) ;
	}
	#game_if{
		height:calc(100vh / 1.01) !important;
	}
}
@media  screen and (width: 395px) {
	body{
	zoom: 1.008;
	}
	#m_h{
		height:calc(100vh / 1.008) ;
		width :calc(100vw / 1.008) ;
	}
	#ludo{
		height:calc(100vh / 1.008) ;
	}
	#game_if{
		height:calc(100vh / 1.008) !important;
	}
}
@media  screen and (width: 412px) {
	body{
	zoom: 1.057;
	}
	#m_h{
		height:calc(100vh / 1.057) ;
		width :calc(100vw / 1.057) ;
	}
	#ludo{
		height:calc(100vh / 1.057) ;
	}
	#game_if{
		height:calc(100vh / 1.057) !important;
	}
}
@media  screen and (width: 414px) {
	body{
	zoom: 1.061;
	}
	#m_h{
		height:calc(100vh / 1.061) ;
		width :calc(100vw / 1.061) ;
	}
	#ludo{
		height:calc(100vh / 1.061) ;
	}
	#game_if{
		height:calc(100vh / 1.061) !important;
	}
}
@media  screen and (width: 800px) and (min-height: 1000px) {
	body{
	zoom: 2.0;
	}
	#m_h{
		height:calc(100vh / 2.0) ;
		width :calc(100vw / 2.0) ;
	}
	#ludo{
		height:calc(100vh / 2.0) ;
	}
	#game_if{
		height:calc(100vh / 2.0) !important;
	}
}

/*@media  screen and (min-width: 500px) and ((max-width: 767px)  or (max-height: 999px)){ */
@media  screen and (min-width: 500px) and ((max-width: 549px)  or (max-height: 999px)){
body{
	margin-left: calc(50% - 190px);
	background:#000;
	}
}



#ludo.ingame .players .player_container.box-red{
	background: #ff1d1400;
    color: #f00;
}

#ludo.ingame .players .player_container.box-green {
	background: #68a64600;
    color: #50783a;
}



#ludo.ingame .players .player_container.box-blue {
	background: #68a64600;
    color: #3c42ed;
}
#ludo.ingame .players .player_container.box-yellow {
	background: #68a64600;
    color: #e19c00;
	color:#9b311e;
}

.coin{
	width:20px;
	height:20px;
	background-image:url('../img/coin.png');
	background-size:cover;
	display:inline-block;
	margin:5px;
	position: relative;
    top: 8px;
}
.diamond{
	width:20px;
	height:20px;
	background-image:url('../img/diamond.png');
	background-size:cover;
	display:inline-block;
	margin:5px;
	position: relative;
    top: 9px;
}


.coin{
	width:20px;
	height:20px;
	background-image:url('../img/coin.png');
	background-size:cover;
	display:inline-block;
	margin:5px;
	position: relative;
    top: 8px;
}
.star{
	width:20px;
	height:20px;
	background-image:url('../img/star.png');
	background-size:cover;
	display:inline-block;
	margin:5px;
	position: relative;
    top: 9px;
}

.tblist_head .coin,.tblist_head .diamond{
	position: absolute;
	top:initial;
	margin:0px;
	margin-top:-2px;
	margin-left:3px;
}

.level{
	width: 80px;
    height: 100px;
    text-align: center;
    font-size: 10px;
    color: #fff;
    background: #f00;
    background: url(../img/sh.png);
    background-size: 100% 100%;
    /* border: 1px solid #faa; */
    padding-top: 25px;
    float: left;
    margin-right: 20px;
    border-radius: 20px;
    padding-left: 10px;
	
}
.level span{
	font-size:48px;
	color:#f6e65c;
	margin-top: -15px;
    margin-left: 10px;
	
}
.level span, .level b{
	
	transform-style: preserve-3d;
    transform: translateZ(-100px) rotateY(-45deg) rotateX(-45deg) rotateY(-45deg);
	transform: translateZ(10px) rotateY(20deg) rotateX(20deg) rotateY(330deg);
    display: block;
	
}
.profile_user{
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	width:calc( 100% - 100px);
}
.spinner{
	background:url("../img/boxo.png");
	animation: 0.5s infinite  spin;
	z-index:100 !important;
	width:83px;
	height:100px;
	background-size:cover;
	margin-left:auto;
	margin-right:auto;
	margin-top:calc(50% - 50px);
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
    
  }
  25% {
    transform: rotate(180deg);
    
  }
  75% {
    transform: rotate(270deg);
    
  }

  99% {
    
	transform: rotate(360deg);
    
  }
  100% {
    
	transform: rotate(0deg);
    
  }
}




