body {
	margin: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
	background-image: url('images/backg.jpg');
	background-size: cover;
	color: white;
	font-family: "Roboto",sans-serif;
}

button {
	font-size: 1em;
	padding: 8px 16px;
	border: none;
	border-radius: 8px;
	background: #2ecc71;
	color: white;
	cursor: pointer;
}

canvas#overlay {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	transform: scaleX(-1);
}

#container {
	position: relative;
	width: 75vw;
	max-width: 960px;
	aspect-ratio: 16/9;
	background: #000;
	overflow: hidden;
	border:2px solid #ffffff;
	border-radius: 10px;
}

#controls {
	margin-top: 15px;
}

#controlArea {
	display: block;
	padding:5px;
	height:36px;
	max-height:36px;
	text-align:center;
	font-size: 18px;
	margin-top:10px;
	background:#000000;
	border-radius:10px;
	border:2px solid #ffffff;
	width:75vw;
	max-width: 960px;
}

#foodZoom {
  position: fixed !important;
  right: 5px !important;
  top: 50% !important;           /* vertically centered */
  transform: translateY(-50%) !important;
  height: 45vh;
	max-height: 450px;
	aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 11;
}

#foodZoom img {
	max-width: 85%;
	max-height: 85%;
  display: block;
  transform: scale(1);
  transition: transform 0.3s ease;
}

#gameOver {
	display: none;
  position: fixed;
  inset: 0; /* shorthand untuk top: 0; right: 0; bottom: 0; left: 0 */
  z-index: 10;
  width: 100vw;
  height: 100vh;
  background-image: url('images/over.png');
  background-size: cover;
  background-position: center center;
	background-repeat: no-repeat;
  justify-content: center;
  align-items: flex-start;
  padding-top: 200px;
  pointer-events: none; /* opsional: agar tidak mengganggu klik di bawahnya */
}

#gameOverScore {
	display: block;
	position: absolute;
	text-align: center;
	width: 100%;
	padding: 0;
	top:70vh;
	color: #0094ff;
	font-size: 5vw;
	font-weight: bold;
}

img#faceImage {
	position: absolute;
	transform: translate(-50%, -50%) scaleX(-1);
	width: 7.4vw;
	max-width: 140px;
	pointer-events: none;
	display: none;
}

.object {
	position: absolute;
	width: 5vw;
	pointer-events: none;
	transform-origin: center center;
}

#score {
	font-color: #0094ff;
	font-weight: bold;
}

#scoreAdd {
	padding-left: 5px;
}

#scoreArea {
	margin-top: 20px;
	font-size: 1.2em;
}

#startBtn {
	margin-left: 20px;
}

#timer {
	display: none;
	color: #ffffff;
	font-weight: bold;
	padding-left: 20px;
}

video#video {
	width: 100%;
	height: 100%;
	display: block;
	transform: scaleX(-1);
	object-fit: cover;
}