@charset "utf-8";
/* CSS Document */
#game-container {
  width: 1080px;
  height: 1920px;
  position: relative;
  overflow: hidden;
}

#goal {
  width: 300px;
  height: 100px;
  background-color: white;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid #333;
}

#goalkeeper {
	position: absolute;
	width: 122px;
	height: 305px;
	left: 465px;
	top: 682px;
	z-index: 3;
	background-image: url("images/Ggoalkeper_01.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: block;
}

#goalkeeperLeft {
	position: absolute;
	width: 379px;
	height: 183px;
	left: 277px;
	top: 828px;
	z-index: 3;
	background-image: url("images/Ggoalkeper_L.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}


#goalkeeperRight {
	position: absolute;
	width: 379px;
	height: 183px;
	left: 444px;
	top: 828px;
	z-index: 3;
	background-image: url("images/Ggoalkeper_R.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}

#goalkeeperLeftB {
	position: absolute;
	width: 379px;
	height: 183px;
	left: 277px;
	top: 828px;
	z-index: 3;
	background-image: url("images/Ggoalkeper_L.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}


#goalkeeperRightB {
	position: absolute;
	width: 379px;
	height: 183px;
	left: 444px;
	top: 828px;
	z-index: 3;
	background-image: url("images/Ggoalkeper_R.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}

#goalkeeperJumpRight {
	position: absolute;
	width: 237px;
	height: 324px;
	left: 520px;
	top: 692px;
	z-index: 3;
	background-image: url("images/Ggoalkeper_RT.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}

#goalkeeperJumpLeft {
	position: absolute;
	width: 237px;
	height: 324px;
	left: 337px;
	top: 692px;
	z-index: 3;
	background-image: url("images/Ggoalkeper_LT.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}


#ball {
	position: absolute;
	width: 156px;
	height: 156px;
	left: 461px;
	top: 1093px;
	z-index: 1;
	background-image: url("images/ball.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
}

#ballLeft {
	position: absolute;
	width: 85px;
	height: 85px;
	left: 288px;
	top: 692px;
	z-index: 2;
	background-image: url("images/ball.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}

#ballRight {
	position: absolute;
	width: 85px;
	height: 85px;
	left: 711px;
	top: 692px;
	z-index: 2;
	background-image: url("images/ball.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}



#soccer {
	position: absolute;
	width: 303px;
	height: 770px;
	left: 0px;
	top: 779px;
	z-index: 3;
	background-image: url("images/Rplayer_01.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: block;
}

#soccerMove {
	position: absolute;
	width: 416px;
	height: 631px;
	left: 118px;
	top: 701px;
	z-index: 3;
	background-image: url("images/Rplayer_02.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}

#soccerLooseL {
	position: absolute;
	width: 256px;
	height: 647px;
	left: 273px;
	top: 737px;
	z-index: 3;
	background-image: url("images/Rplayer_01.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}

#soccerLooseR {
	position: absolute;
	width: 256px;
	height: 647px;
	left: 607px;
	top: 737px;
	z-index: 3;
	background-image: url("images/Rplayer_03.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}

#soccerWin {
	position: absolute;
	width: 347px;
	height: 693px;
	left: 370px;
	top: 765px;
	z-index: 3;
	background-image: url("images/Rplayer_goal.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
	display: none;
}

.direction-btn {
	position: absolute;
	width: 100px;
	height: 100px;
	background-image: url("images/corner.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% 100%;	
}

.tl{
	left: 0px;
	top: 0px;
}
.tr{
	top: 0px;
	right: 0px;
}
.bl{
	bottom: 0px;
	left: 0px;
}
.br{
	bottom: 0px;
	right: 0px;
}


#controls {
  margin-top: 20px;
}
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}




#scoreboard {
	position: absolute;
	width: 690px;
	height: 168px;
	left: 42px;
	top: 140px;
	z-index: 3;
	
}

.score {
	position: absolute;
	width: 206px;
	height: 179px;
	top: 0px;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
    left: 0px;
	background-image: url("images/score.png");

}
.scoreNum{
	position: absolute;
	width: 206px;
	height: 179px;
	top: 0px;
	font-size: 140px;
	line-height: 179px;
	font-weight: 400;
	color: #fff;
	direction: rtl;
	text-align: center;
	font-family: "Jersey 10", sans-serif;
    left: 0px;
}
.scL{
	
}
.scR{
	right: 0px;
	background-image: url("images/score_right.png");
}
#player1-score{
	left: 0px;
}

#player2-score{
	right: 0px;
}

.hidden {
  display: none !important;
}


#login-form {
  margin: 20px auto;
  max-width: 400px;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


#login-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#login-button:hover {
  background-color: #218838;
}

#player-info {
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}


/* שעון חירום מהבהב */
#timer {
	position: absolute;
	width: 432px;
	height: 186px;
	right: 34px;
	top: 140px;
	z-index: 5;
	font-size: 140px;
	line-height: 186px;
	font-weight: 400;
	color: #000;
	font-family: "Jersey 10", sans-serif;
	text-align: center;
	direction: rtl;
	background-image: url("images/timer2.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% 100%;	
}


#timer.danger-flash {
  /*background-color: #FF0!important;
  border: 3px solid #F00!important;*/
  color: #C00!important;
  animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.5);
  }
}


/* friend request */



/*
#find-game {
  padding: 15px 30px;
  font-size: 18px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

#find-game:hover {
  background-color: #218838;
}
*/

#friend-game-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 20px auto;
}

.option-box {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#join-room-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#room-code-input {
  padding: 10px;
  font-size: 18px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#game-with-friend-status {
  background-color: #ffeb3b;
  color: #333;
  padding: 10px;
  margin: 15px auto;
  border-radius: 5px;
  max-width: 80%;
  font-weight: bold;
}

#share-link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 15px auto;
  max-width: 80%;
}

#room-link {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

.share-hint {
  font-size: 14px;
  color: #666;
}


/* אינדיקטור טעינה - ספינר */
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #28a745;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loading-indicator {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  max-width: 300px;
  margin: 20px auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#loading-indicator p {
  margin-top: 10px;
  font-size: 18px;
  color: #495057;
}

#waiting-time {
  font-size: 14px;
  color: #6c757d;
  margin-top: 5px;
}
.danger-btn{
	background-color:#dc3545;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 10px 20px;
	margin: 15px auto;
	display: block;
	cursor: pointer;
}


#shooter-controls, #goalkeeper-controls{
	position: absolute;
	width: 582px;
	height: 288px;
	left: 253px;
	top: 690px;
	z-index: 25;
}

.goalMess{
	position: absolute;
	width: 1080px;
	height: 414px;
	left: 0px;
	bottom: 30px;
	z-index: 1;
	background-image: url("images/result_mess.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;	
	display: none;
}

.userMess{
	position: absolute;
	width: 1080px;
	height: 298px;
	left: 0px;
	bottom: 0px;
	z-index: 4;
	background-image: url("images/mess_holder.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;	
}
.tecoMess{
	position: absolute;
	width: 1080px;
	height: 668px;
	left: 0px;
	top: 550px;
	z-index: 50;
	background-image: url("images/teco_mess.png");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;	
	display: none;
}


#message{
	position: absolute;
	width: 100%;
	height: auto;
	left: 0px;
	top: 75px;
	z-index:15;
	font-size: 100px;
	line-height: 0.7;
	font-weight: 700;
	color: #000;
	text-align: center;
	direction: rtl;
}
#winText{
	position: absolute;
	width: 928px;
	height: auto;
	left: 76px;
	top: 90px;
	font-size: 130px;
	line-height: 0.8;
	font-weight: 700;
	color: #000;
	text-align: center;
	direction: rtl;

}
#tecoText{
	position: absolute;
	width: 928px;
	height: auto;
	left: 76px;
	top: 51px;
	font-size: 100px;
	line-height: 1;
	font-weight: 400;
	color: #000;
	text-align: center;
	direction: rtl;

}
#tecoText strong{
	font-size: 120px;
}

#musicIcon{
	position: absolute;
	width: 127px;
	height: 100px;
	top: 25px;
	left: 25px;
	z-index: 100;
	display: none;
}