/* Loading Screen Styles AI*/
#loadingScreen {
    direction: ltr;
    position: fixed;
    top: 50;
    left: 50;
    margin: 0 auto ;
	position: relative;
	background-size: 100% 100%;
    width: 100%;
    height: 100%;
    background-image: url('../../../tools/game/gallery/loading.jpg'); /* تصویر مورد نظر شما */
    background-size:cover; /* تصویر کل صفحه را بپوشاند */
    background-position: center; /* تصویر در وسط قرار گیرد */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.7s ease-out; /* انیمیشن محو شدن */
}

#loadingText {
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(150, 255, 0, 0.8);/* efect gelo */
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite; /* pals animation -bozorg kochik */
}

#loading {
    width: 300px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    z-index: 10000;
}

#loader {
    width:60%; /* شروع از صفر */
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71 );/* molti color */
    border-radius: 5px;
    z-index: 10001;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


#board {
	/*border: 1px solid black;*/
	width:800px;
	height: 450px;
	margin: 0 auto ;
	position: relative;
	background-size: 100% 100%;
	background-image: url('../../../tools/game/gallery/bg.png');
 	overflow: hidden;
}
#object{
 	/*border: 1px solid black;*/
	width: 7%;
	height: 13%;
	background-image: url('../../../tools/game/gallery/runer.gif');
	background-size: auto 110%;
	background-position: top center;
	position: relative;
	position: absolute;
	left: 12%;
	bottom: 13%;
	/*bottom: 23%;*/
 	/*display: none;*/
	z-index: 10;

}
.objectWidth{
	/*border: 1px solid black;*/
	width: 70%;
	height: 80%;
	position: absolute;
	z-index: 10;
	top: 50%;/*baraye inke fagat mikham translateY biyad vasat*/
    left: 50%;
    transform: translate(-50%,-45%);
}

/*.objectDown{
 	border: 1px solid black;
	width: 4%;
	height: 6%;
	background-image: url('../../../gallery/runer.gif');
	background-size: auto 110%;
	background-position: top center;
	position: absolute;
	left: 12%;
	bottom: 11%;
 	display: none;
	z-index: 10;
}
*/
#lock{
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 99999999;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
}
#lock ,#start{
	font-size: 3rem;
	cursor: pointer;
}

#lock ,#start:hover{
	font-size: 3.2rem;
	text-shadow: 0px 0px 10px rgba(150, 255, 0, 1.0);
}

/*#end{
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 99999999;
	background-color: rgb(175.31, 175.31, 175.31, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
}*/

@keyframes bgPlay {
	from {

	}
	to {
		background-position: -3000px 0px;
	}
}

#board{
	animation:bgPlay 20s infinite linear ;
}

@keyframes obsPlay {
	to {
		left: -10%;
	}

}
.obs{
 	/*border: 1px solid black;*/
	position: relative;
	width: 6%;
	height: 12%;
	background-image: url('../../../tools/game/gallery/anamyDownn.gif');
	background-size: auto 110%;
	position:absolute;
	left: 110%;

	bottom: 13%;
	animation: obsPlay 5s linear forwards;
	z-index: 1;
}
.obsWith{
	/*border: 1px solid black;*/
	width: 70%;
	height: 85%;
	position:absolute;
	top: 60%;/*baraye inke fagat mikham translateY biyad vasat*/
    left: 50%;
    transform: translate(-50%,-50%);
	z-index: 1;
}
.obsUp{
 	/*border: 1px solid black;*/
	position: relative;
	width: 6%;
	height: 8%;
	background-image: url('../../../tools/game/gallery/anamyBered.gif');
	background-size: 100% 100%;
	position:absolute;
	left: 110%;
	bottom: 23%;
	animation: obsPlay 5s linear forwards;
	z-index: 1;
}
.obsUpWith{
	/*border: 1px solid black;*/
	width: 100%;
	height: 100%;
	position:absolute;
	z-index: 1;
}

@keyframes gun{
	from{
	}
	to{
		left:110%;
	}
}
.gun{
	border: 1px solid red;
	background-color:red;
	width: 10px;
	height:10px;
	position: absolute;
	/*bottom: 16%;*/
	/*left: 19%;*/
	border-radius:50%;
	animation: gun 4s linear forwards;
}
.hidde{
	position: absolute;
	border: 1px solid #8f8f8f;
	background-color: rgb(111.56, 111.56, 111.56,0.3);
	border-radius: 50%;
	width:130%;
	height:130%;
	top: 50%;
    left: 50%;
    transform: translate(-50%,-45%);
     /*display: none;*/
}

/*#timerHidde {
    position: absolute;
    top: 2%;
    left: 2%;
    font-size:20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
}
#gunNumber{
	position: absolute;
    top: 2%;
    left: 20%;
    font-size:20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
}
#privilege{
	position: absolute;
    top: 2%;
    left: 60%;
    font-size:20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
}*/
/* Improved HUD Styles */
#timerHidde, #gunNumber, #privilege {
    position: absolute;
    top: 2%;
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.7), rgba(46, 204, 113, 0.7));
    border-radius: 8px;
    padding: 8px 12px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#timerHidde {
    left: 2%;
}

#gunNumber {
	left: 2%;
    top: 14%;

}

#privilege {
    right: 2%;
}

#timerHidde:hover, #gunNumber:hover, #privilege:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(150, 255, 0, 0.8);
}



#gameOverScreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: none;
    z-index: 1000; /* بالای همه عناصر */
}
#gameOverScreen h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
#gameOverScreen p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
#gameOverScreen button {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#gameOverScreen button:hover {
    background-color: #45a049;
}