/* Ngăn chặn việc di chuyển hình ảnh */
/* Ngăn chặn việc chọn nội dung */
#game-container *{
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
    user-drag: none; /* Tất cả các trình duyệt, ngoại trừ IE và Edge */
    -webkit-user-drag: none; /* Safari */
}
.explosion {
  position: fixed;
  width: 100px; /* Điều chỉnh kích thước hiệu ứng nổ */
  height: 100px;
  z-index: 10;
  pointer-events: none; /* Loại bỏ sự kiện click từ hiệu ứng */
  background-image: url('explosion.png'); /* Hình ảnh cho hiệu ứng nổ */
  background-size: 100% 100%;
  animation: explode 0.5s ease-in-out; /* Thời gian và kiểu hiệu ứng */
}

@keyframes explode {
  0% {
	transform: scale(0);
  }
  100% {
	transform: scale(1);
	opacity: 0; /* Phai dần đi */
  }
}

#hammer-cursor {
	position: absolute;
	display: none;
	pointer-events: none;
	outline:none;
	pointer:none;
	z-index:100;
	width:85px;
}
@media(min-width:768px){
	body.mole-game-active .game-container-wp,
	body.mole-game-active .game-container-wp * {
		cursor: none;
	}
	body.mole-game-active .infor-btn,
	body.mole-game-active .infor-btn * {
		cursor: pointer;
	}
}
@media(max-width:767px){
	#hammer-cursor{display:none !important;}
}
::selection {
  color: #000;
  background: transparent;
}
.activeok{
pointer-events: none;
}
body{overflow-x:hidden;}
div#game-container {
	--gridRows: 4;
	--gridColumns: 4;
	--cellSize: 100px;
	display: grid;
	grid-template-columns: repeat(var(--gridColumns), var(--cellSize));
	grid-template-rows: repeat(var(--gridRows), var(--cellSize));
	gap: 0;
	margin-inline: auto;
	justify-content:center;
}
.mole-hole {
	width: 80px;
	height: 80px;
	margin: 10px;
	display: inline-flex;
	cursor: pointer;
	border-radius: 50%;
	background: #f1f1f1;
	align-items: center;
	justify-content: center;
		transition: all 0.3s;
		overflow:hidden;
}
@media(max-width:992px){
	
}
@media(max-width:767px){
	div#game-container {
		--cellSize: 90px;
	}
	.mole-hole {
		width: 70px;
		height: 70px;
		margin: 10px;
	}
}
@media(max-width:360px){
	div#game-container {
		--cellSize: 75px;
	}
	.mole-hole{width:65px; height:65px;margin: 4px;}
}
@media(max-width:320px){
	div#game-container {
		--cellSize: 73px;
	}
	.mole-hole{width:63px; height:63px;margin: 4px;}
}
.mole-hole img {
	max-width: 100%;
	max-height: 100%;
	display:none;
	 transform: translateY(44px);
	transition: all 0.3s;
}
.mole-hole.active img {
	transform: translateY(44px);
	transition: all 0.3s;
	/* animation: upDown 0.8s; */
}
.mole-hole img.noneActive {
	display: block;
}
.mole-hole.bomb {
	background-color: #f1f1f1; /* Màu sắc của ô bom */
}

.mole-hole.active {
	background-color: #FF5733; /* Màu sắc khi lỗ chuột hiện lên */
}
.mole-hole.active img.noneActive {
	display: block;
	transition: all 0.3s;
	transform: translateY(0);
	/* animation: downUp 0.8s; */
}

.mole-hole.active.activeok img.noneActive {
	display: none;
	transition: all 0.3s;
	transform: translateY(0);
}
.mole-hole.active.activeok img.active {
	display: block;
	transition: all 0.3s;
	transform: translateY(0);
}
.mole-hole.active.activeok img{
	display:block;
}

.mole-hole.active.bomb.activeok{
	background:transparent;
}
.mole-hole.active.bomb.activeok img.active{
	display:block;
}
.mole-hole.active.bomb.activeok img.noneActive{
	display: none;
}
 @keyframes downUp{
	   0% {
		transform: translateY(44px);
	}
	50% {
		transform: translateY(0); /* Điều chỉnh giá trị theo chiều lên */
	}
	100% {
		transform: translateY(44px);
	}
}
@keyframes upDown{
	 0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(44px); /* Điều chỉnh giá trị theo chiều lên */
	}
	100% {
		transform: translateY(0);
	}
}
#score {
    font-size: 24px;
    margin-top: 20px;
    color: #ffc404;
    /* text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 3px 3px 5px #333; */
    font-weight: bold;
}
#timer {
    font-size: 24px;
    margin-top: 0;
    color: #ffffff;
    /* text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 3px 3px 5px #333; */
    font-weight: bold;
    display: inline-block;
}

#restart-button {
	padding: 10px;
	cursor: pointer;
	background-color: #0d6efd;
	border-color: #0d6efd;
	color: #fff;
	pointer-events: auto;
}
#restart-button {
	position: absolute;
	top: 0;
	right: 0;
	padding: 4px 8px;
	margin-top: 0;
	font-size: 12px;
	line-height: 1.2;
}
#game-over {
	display: none;
	font-size: 24px;
	margin-top: 20px;
	color: red;
}
.game-tap,
.game-container-wp {
	width: 420px;
	max-width: 100%;
	margin: 0 auto;
}
.text-center{text-align:center;}
.infor-btn {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: 100%;
	min-height: 28px;
	margin-bottom: 8px;
	padding-left: 0;
	padding-right: 0;
}
.infor-time {
	display: flex;
	align-items: center;
	white-space: nowrap;
}
.game-container-wp > .button-wp {
	display: flex;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin-top: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 0.9);
	pointer-events: auto;
	border-radius: 15px;
}
body .bom {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: rgb(235 0 0 / 50%);
	color: #fff;
	font-size: 40px;
	padding: 15px;
}
body .bom .info {
	background: #fff;
    color: #000;
    padding: 30px;
    font-size: 20px;
    line-height: 1.3em;
}
.game-tap {
    position: relative;
}
@media(max-width:767px){
	.game-tap,
	.game-container-wp {
		width: 360px;
		max-width: 100%;
		margin: 0 auto;
	}
	body .bom.text-center .info{
		font-size: 20px;
	}
	.infor-btn { font-size: 12px; }
	#timer,#score{font-size:18px;}
}
