:root {
  --cursor-width: 130px;
}

body, html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;

	font-family: "Orbitron";
}

/* ############################################ */
/* ###############    START    ################ */
/* ############################################ */
#startScreen, #endScreen{
	height: 100%;
	display: flex;
	flex-direction: column;

	header, footer {
		padding: 15px 30px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		/*background: rgba(255, 255, 255, 0.05);*/
		background: #00d4ff;
		color: #fff;
		backdrop-filter: blur(10px);
  }

    header a, footer a {
		color: #fff;
		text-decoration: none;
		margin-right: 15px;
		font-size: 0.9rem;
		transition: color 0.3s;
  }

  header a:hover, footer a:hover {
		color: #ffffff;
  }

  .center {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		color: #fff;
		background: url("../img/start-background.jpg");
		background-size: cover;
		background-position-x: 50%;
  }

  h1 {
		font-size: 3rem;
		margin-bottom: 10px;
		letter-spacing: 2px;
  }

  p {
		margin-bottom: 30px;
		opacity: 0.8;
  }

  .btnStart {
		padding: 15px 40px;
		font-size: 1.2rem;
		border: none;
		border-radius: 50px;
		/*background: linear-gradient(45deg, #ff4e50, #f9d423);*/
		background: linear-gradient(45deg, #00d4ff, #14619a);
		color: #fff;
		transition: transform 0.2s, box-shadow 0.2s;
  }

  .btnStart:not(:disabled):hover {
  	cursor: pointer;
		transform: scale(1.1);
		box-shadow: 0 0 20px rgba(255,255,255,0.5);
  }

  .logo {
		font-weight: bold;
		font-size: 1.2rem;
		color: #fff;
  }
}

/* ############################################ */
/* #################    END    ################ */
/* ############################################ */
#endScreen{

}

/* ############################################ */
/* ################    GAME    ################ */
/* ############################################ */
/* Background content */
.behind {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	background: url('../img/background.jpg') center/cover;
	z-index: 1;

	/*margin: auto;
	text-align: center;
	align-content: center;
	align-items: center;*/
}

/* Covering mask */
.mask {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-color: rgba(0, 0, 0, 1); /* Mask color */
	z-index: 2;
	pointer-events: none; /* Allows interaction behind */

	/* Dynamic Mask Property */
	--x: 50%;
	--y: 50%;
	/*-webkit-mask-image: radial-gradient(circle 100px at var(--x) var(--y), transparent 100%, black 100%);*/
	/*mask-image: radial-gradient(circle 100px at var(--x) var(--y), transparent 100%, black 100%);*/

	-webkit-mask-image: radial-gradient(circle var(--cursor-width) at var(--x) var(--y), transparent 70%, black 115%);
	mask-image: radial-gradient(circle var(--cursor-width) at var(--x) var(--y), transparent 70%, black 115%);
}

#cursor{
	position: fixed;
	top: 50%;
	left: 50%;
	width: calc(var(--cursor-width) * 2);
	z-index: 99;
}

.cursorImg{
	width: 100%;
	height: 100%;
	filter: invert(1) brightness(0.6);
}

.cursorImg, .target{
	transform: translate(-50%, -50%);
}

#pointsPopup{
	position: absolute;
  top: 0;
  left: 0;
  font-size: 48px;
  color: white;
  transform: translate(-61%, -50%);
}

#overlayGestures{
	width: 100%;
	height: 100%;
	position: fixed;
	top:0;
	left: 0;
	z-index: 9999;
}

#overlayGestures, #cursor, #mask{
	pointer-events: none;	
}

.mask:hover, .behind:hover {
	cursor: pointer;
}


#inputVideo{
	width: 300px;
	/*height: 100%;*/
	transform: scaleX(-1);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
}

.handCursor{
	position: absolute;
}

.handCursor.closed{
	border: 2px solid red;
}
.handCursor.open{
	border: 2px solid green;
}

.target{
	position: relative;
	width: 50px;
	height: 50px;
	transition: all 0.5s ease-in;
}

.semi-transparent{
	background-color: rgba(0, 0, 0, 0.85);
}

#score, #timerContainer{
	position: absolute;
	top: 6px;
	
	color: #fff;
	z-index: 999;
	font-size: 40px;
	font-family: "Orbitron", cursive;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
}

#score{
	left: 20px;
}

#timerContainer{

	right: 20px;
}

#timerBonus{
	display: inline-block;
	color: #09b8eb;
}

#timer{
	display: inline-block;
}