


#userPageMain {width:993px;height:893px; margin:0 auto;border:2px; }
#userPageError { width:100%;height:140px;}
 
	  #userPageOne {width:175px; float:left;margin:5px;margin-left:15px; }
      #userPageTwo {width:500px;float:left;margin:5px;}
	  #userPageThree {
		  height:300px;
		  width:250px;
		  float:left;
		  margin:5px;
		  border-color:#464646;
		  border-style:groove;
		  }
	
.game1 {

    
	display:none;
	  width: 640px; 
      height: 480px;
   
    margin-left: 55px;
    margin-top: 2px;
    border: 1px solid darkblue;
    border-radius: 2px;
     
	background-color: black;
	background-image: url(/images/games/acro.jpg);
    background-size: 100%;
	
	opacity: 1;
    z-index: 103;
    position: absolute;
	
}




.user {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
}

/* Секция противника */
.opponent {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
}



.user-section {
    position: absolute;
    left: 5px;
    top: 45px;
    font-size: 14px;
    font-weight: bold;
}


.oponent-section {
    position: absolute;
    right: 5px;
    top: 45px;
    font-size: 14px;
    font-weight: bold;
}



.userBricks {
    margin-top: 5px;
    width: 75px;
    height: 70px;
    background-color: pink;
}

.uBricks {
 width: 72px; 
 height: 54px;	
 background-image: url(/images/games/bricks.jpg);	
 padding-left: 2px;
}

.usBricks {
    padding-left: 10px;
    padding-top: 37px;
}



.butUserBricks {
	padding-left: 50px;
    margin-top: -18px;
}



.userGems {
    width: 75px;
    height: 70px;
    background-color: blue;
}

.uGems {
 width: 72px; 
 height: 54px;	
 background-image: url(/images/games/gems.jpg);	
 padding-left: 2px;
}
.usGems {
    padding-left: 10px;
    padding-top: 37px;
}

.butUserGems {
	padding-left: 50px;
    margin-top: -18px;
}



.userRecruits {
    width: 75px;
    height: 70px;
    background-color: green;
}

.uRecruits {
 width: 72px; 
 height: 54px;	
 background-image: url(/images/games/recruits.jpg);	
 padding-left: 2px;
}
.usRecruits {
    padding-left: 10px;
    padding-top: 37px;
}

.butUserRecruits {
	padding-left: 50px;
    margin-top: -18px;
}



/* Башни и стены */

.uTower-wrapper {
    position: absolute;
    left: 102px;
    bottom: 170px;
}


.userRoof {
    left: -11px;
    position: relative;
    bottom: 7px;
    width: 68px;
    height: 98px;
    background-image: url(/images/games/userroof.png);
}

.userTower {
    position: relative;
    width: 45px;
    height: 113px;
    margin-top: -8px;
    text-align: center;
    line-height: 150px;
    font-size: 24px;
    color: white;
    background-image: url(/images/games/tower.jpg);
}


.userWall {
    position: absolute;
    width: 24px;
    height: 60px;
    margin: 10px 0;
    left: 180px;
    bottom: 160px;
    text-align: center;
    line-height: 150px;
    font-size: 24px;
    color: white;
    background-image: url(/images/games/Uwall.png);
}


.buttonUserTower {
    color: white;
    position: absolute;
    width: 50px;
    height: 25px;
    left: 99px;
    bottom: 160px;
    text-align: center;
    background-color: black;
}

.buttonUserWall {
    position: absolute;
    width: 40px;
    height: 25px;
    left: 171px;
    bottom: 160px;
    color: white;
    text-align: center;
    background-color: black;
}












.oponentBricks {
    margin-top: 5px;
    width: 75px;
    height: 70px;
    background-color: pink;
}

.oBricks {
 width: 72px; 
 height: 54px;	
 background-image: url(/images/games/bricks.jpg);	
 padding-left: 2px;
}

.opBricks {
    padding-left: 10px;
    padding-top: 37px;
}



.butOpoBricks {
	padding-left: 50px;
    margin-top: -18px;
}




.oponentGems {
    width: 75px;
    height: 70px;
    background-color: blue;
}

.oGems {
 width: 72px; 
 height: 54px;	
 background-image: url(/images/games/gems.jpg);	
 padding-left: 2px;
}
.opGems {
    padding-left: 10px;
    padding-top: 37px;
}

.butOpoGems {
	padding-left: 50px;
    margin-top: -18px;
}





.oponentRecruits {
    width: 75px;
    height: 70px;
    background-color: green;
}

.oRecruits {
 width: 72px; 
 height: 54px;	
 background-image: url(/images/games/recruits.jpg);	
 padding-left: 2px;
}
.opRecruits {
    padding-left: 10px;
    padding-top: 37px;
}

.butOpoRecruits {
	padding-left: 50px;
    margin-top: -18px;
}




/* Башни и стены */

.oTower-wrapper {
    position: absolute;
    right: 102px;
    bottom: 170px;
}


.oponentRoof {
    right: -11px;
    position: relative;
    bottom: 7px;
    width: 68px;
    height: 98px;
    background-image: url(/images/games/oporoof.png);
}

.oponentTower {
    left: 22px;
    position: relative;
    width: 45px;
    height: 104px;
    margin-top: -7px;
    text-align: center;
    line-height: 150px;
    font-size: 24px;
    color: white;
    background-image: url(/images/games/tower.jpg);
}


.damage {
    top: 160px;
    right: 30px;
    width: 200px;
    height: 200px;
    display: none;
    position: absolute;
    z-index: 99;
}

.healf{
    top: 160px;
    left: 30px;
    width: 200px;
    height: 200px;
    display: none;
    position: absolute;
    z-index: 99;	
}

.resursUp{
    top: 160px;
    left: 30px;
    width: 200px;
    height: 200px;
    display: none;
    position: absolute;
    z-index: 99;	
}

.resursMin{
    top: 160px;
    right: 30px;
    width: 200px;
    height: 200px;
    display: none;
    position: absolute;
    z-index: 99;	
}



.oponentWall{
    position: absolute;
    width: 24px;
    height: 60px;
    margin: 10px 0;
    right: 180px;
    bottom: 160px;
    text-align: center;
    line-height: 150px;
    font-size: 24px;
    color: white;
    background-image: url(/images/games/Owall.png);
}





.buttonOponentTower {
    color: white;
    position: absolute;
    width: 50px;
    height: 25px;
    right: 100px;
    bottom: 160px;
    text-align: center;
    background-color: black;
}



.buttonOponentWall {
    position: absolute;
    width: 40px;
    height: 25px;
    right: 174px;
    bottom: 160px;
    color: white;
	text-align: center;
    background-color: black;
}










/* Карты */
.cards {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    width: 90%;
}

.card {
    background-color: rgba(255, 255, 255, 0.9);
    width: 90px;
    height: 125px;
    border: 2px solid #000;
    text-align: center;
    line-height: 150px;
    transition: transform 0.2s ease;
    position: relative;
}

.card:hover {
    transform: scale(1.1);
    cursor: pointer;
	
}


 /* CSS код для анимации */

.move-to-center {
    animation: myAnimation 2s ease-in-out forwards;
	z-index: 1;
}


@keyframes myAnimation {
    0% { top: 0; left: 0; }
   
    100% { top: -200px; left: calc(60% - var(--offset)) }
   
   
}


.card.final-position {
  top: -200px;
  left: calc(60% - var(--offset));
}


.lastCard {
	display: none;
	left: 275px;
    top: 140px;
    background-color: rgba(255, 255, 255, 0.9);
    width: 90px;
    height: 125px;
    border: 2px solid #000;
    text-align: center;
    line-height: 150px;
    transition: transform 0.2s ease;
    position: absolute;
	opacity: 0.8;
	z-index: -2;
}


.OlastCard {
    display: none; /* Элемент скрыт изначально */
    position: absolute;
    top: 0; /* Верхний правый угол */
    left: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    width: 90px;
    height: 125px;
    border: 2px solid #000;
    text-align: center;
    line-height: 150px;
    opacity: 0.8;
    z-index: -1; /* Поверх всех элементов */
}



/* Анимация перемещения */
.Omove-to-center {
    animation: moveFromTopRight 2s ease-in-out forwards;
}

/* Анимация движения из правого верхнего угла в центр */
@keyframes moveFromTopRight {
    0% {
        top: 0; /* Начальная позиция (верхний правый угол) */
        right: 0;
    }
    100% {
        top: 205px; /* Центр по вертикали */
        left:320px; /* Центр по горизонтали */
        transform: translate(-50%, -50%); /* Центрирование элемента */
    }
}


/* Для фиксации карты после анимации 
.card.Ofinal-position {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


*/








.card-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачная маска */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: not-allowed;
   z-index: 10;
    pointer-events: all; /* Маска перехватывает клики */
}

 



.card-button-sb {
    background-color: #ffccff;
    color: #660033;
    border: 2px solid #cc99cc;
    font-size: 12px;
    font-weight: bold;
    border-radius: 38px;
    cursor: pointer;
    
    position: absolute;  /* Позиционирование кнопки относительно родителя (карты) */
    bottom: 0px;        /* Отступ от нижнего края карты */
    right: 0px;         /* Отступ от правого края карты */
}



.card-button-sg{
	
 background-color: #99ccff; /* Голубой цвет */
    color: #003366;           /* Тёмно-синий текст */
    border: 2px solid #6699cc; /* Граница с голубым оттенком */
    font-size: 12px;
    font-weight: bold;
    border-radius: 38px;
    cursor: pointer;
	position: absolute;  /* Позиционирование кнопки относительно родителя (карты) */
    bottom: 0px;        /* Отступ от нижнего края карты */
    right: 0px;         /* Отступ от правого края карты */
	
}

.card-button-sr{

 background-color: #99ff99; /* Салатовый цвет */
    color: #003300;           /* Тёмно-зелёный текст */
    border: 2px solid #66cc66; /* Граница с зелёным оттенком */
    font-size: 12px;
    font-weight: bold;
    border-radius: 38px;
    cursor: pointer;
	position: absolute;  /* Позиционирование кнопки относительно родителя (карты) */
    bottom: 0px;        /* Отступ от нижнего края карты */
    right: 0px;         /* Отступ от правого края карты */
	
}




/* Маска */

   .mask {
    position: absolute;
    width: 640px;
    height: 140px;
    bottom: 0px;
    
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
     display: none;
}
   
.game1Win {
    position: absolute;
    width: 400px;
    height: 500px;
    bottom: 10px;
   
     background-image: url(/images/games/win.png);
     display: none;
	 
	  opacity: 0;
     visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
	
	 
}


.game1WinVisible {
	
	 position: absolute;
    width: 500px;
    height: 400px;
    bottom: 10px;
    background-image: url(/images/games/win.png);
     display: show;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0.5s;
	z-index: 999;
}







	
.statsUserGame1{

    
	display:none;
	width: 450px; 
    height: 350px;
   
    margin-left: 55px;
    margin-top: 2px;
    border: 1px solid darkblue;
    border-radius: 2px;
     
	background-color: black;
	background-image: url(/images/games/aboutGame1.jpg);
    background-size: 100%;
	
	opacity: 0.8;
    z-index: 103;
    position: absolute;
	
}

 
.lis{

    width: 40px;  
    height: 30px;
    float: right;
    margin-right: 5px;
    margin-top: 5px;
  
 
background:transparent;
  background-image: url(/images/chat/list.jpg);
   background-position: 0px 0px; 
    background-repeat: no-repeat;
   border-color:red;	
 
}
 
.closebtnPriv {
   margin: 5px;
   font-size: 20px;
      color:#565656;
}	
.closebtnPriv:hover {
	
    margin: 5px;
    color: red;
    font-size: 20px;
   
}
.speers {
    color: #007eff;	
	
}

.speers:hover {
    color: #00fff3;	
	
}

 .lisOFF{
     width: 40px;  
     height: 30px; 
    float: right;
    margin-right: 5px;
     margin-top: 5px; 
	
 
background:transparent;
  background-image: url(/images/chat/listOff.jpg);
   background-position: 0px 0px; 
    background-repeat: no-repeat;
border-color:darkgrey;
	
 
}


.playUserGame1off{
	
	
}

.playUserGame1on{
	
	
}




.tableMess{

 width: 240px;  
 height: 225px; 
 margin-left: 2px; 
 margin-top: 2px;
  display: block;	 
  
    overflow-x:scroll;
     overflow-y: scroll;
      background-color: black;
   
   
	font-size: 13px;
  
	
    border: 3px solid darkblue;
    border-radius: 3px;
    opacity: 0.8;
    z-index: 103;
  color:darkgreen;
	 
 } 



.me {

}




.userChat{


width: 110px;
    height: 200px;
    margin-left: 116px;
    margin-top: 2px;
    display: block;
    overflow-x: scroll;
    overflow-y: scroll;
    background-color: black;
    transition-property: height;
    transition-duration: 1.3s;
    font-size: 12px;
    border: 3px solid darkblue;
    border-radius: 3px;
    opacity: 0.8;
    z-index: 103;
    position: absolute;

	 
 } 

.sendMess {
  
    width: 45px;
	height: 35px;
    float:left;

	background:transparent;
    background-image: url(/images/chat/send.jpg);
    background-position: 0px 0px; 
    background-repeat: no-repeat;
	
}
 

 
 .clearMess{
	
    width: 45px;
	height: 35px;
 	float:left;
	margin-left:2px;

	  
	background:transparent;
    background-image: url(/images/chat/clear.jpg);
    background-position: 0px 0px; 
    background-repeat: no-repeat;
	
}
 
 
 #mess {

    width: 150px;
	height: 28px;
    float:left;
}


 


/* width */
::-webkit-scrollbar {
    width: 10px;
	height:10px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 2px;
}
::-webkit-scrollbar-corner{
 width: 10px;
	height:10px;
	color:#3b7b869e;
} 
 
/* Handle */
::-webkit-scrollbar-thumb {
    background: #3b7b869e; 
    border-radius: 2px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #3b5986f7; 
}



.modalDialog {
		position: fixed;
		font-family: Arial, Helvetica, sans-serif;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: rgba(0,0,0,0.8);
		z-index: 99999;
		-webkit-transition: opacity 400ms ease-in;
		-moz-transition: opacity 400ms ease-in;
		transition: opacity 400ms ease-in;
		display: none;
		
	}

	.modalDialog:target {
		display: block;
		
	}

	.modalDialog > div {
		width: 400px;
		position: relative;
		margin: 10% auto;
		padding: 5px 20px 13px 20px;
		border-radius: 10px;
		background: #fff;
		background: -moz-linear-gradient(#fff, #999);
		background: -webkit-linear-gradient(#fff, #999);
		background: -o-linear-gradient(#fff, #999);
	}

	.close {
		background: #606061;
		color: #FFFFFF;
		line-height: 25px;
		position: absolute;
		right: 12px;
		text-align: center;
		top: 10px;
		width: 24px;
		text-decoration: none;
		font-weight: bold;
		-webkit-border-radius: 2px;
		-moz-border-radius: 2px;
		border-radius: 2px;
		-moz-box-shadow: 1px 1px 3px #000;
		-webkit-box-shadow: 1px 1px 3px #000;
		box-shadow: 1px 1px 3px #000;
	}

	.close:hover { background: #00d990; }

 