
/* ===== css/pacman.css ===== */
:root {
	--CK-theme-bg: #020408;
	--CK-theme-text: #f7f7f7;
	--CK-theme-accent: #00c59a;
	--CK-theme-accent-soft: #37d7c4;
	--CK-theme-board: #005dcb;
	--CK-theme-board-glow: #1ad7d7;
	--CK-theme-danger: #ff5a7a;
}

html, body {
	background-color: #000;
}

::-webkit-scrollbar { 
	width: 16px;
}
::-webkit-scrollbar-track { 
	background-color: #333;
} 
::-webkit-scrollbar-thumb { 
	background-color: #424e69;
}
::-webkit-scrollbar-thumb:hover { 
	background-color: #8295d5;
}

@font-face { 
	font-family: 'Quadrit'; 
	src: url('../css/Quadrit.ttf'); 
}

#home *, #panel *, #help * { 
	font-family: Quadrit, sans-serif;
	font-size: 20px;
	color: var(--CK-theme-text);
}

#score, #highscore  { 
	position: absolute;
	display: inline;
	top: 0px;
	margin: 0px;
	padding: 0px;
	width: 160px;
}
#highscore { 
	left: 180px;
}
#panel > h1,
#panel > .CK-logoempresa,
#panel > #canvas-panel-title-pacman {
	display: none;
}
#panel #board {
	margin-top: 48px;
}
#score h2, #score span, #highscore h2, #highscore span { 
	display: block;
	text-transform: uppercase;
	font-weight: normal;
	letter-spacing: 2px;
	font-size: 16px;
	height: 21px;
	margin: 0px;
	padding: 0px;
	text-align: right;
	padding-right: 15px;
	color: var(--CK-theme-accent);
	text-shadow: 0 0 6px rgba(0, 197, 154, 0.3);
}
#score span, #highscore span { 
	padding-right: 0px;
}
#highscore span { 
	padding-right: 40px;
}
#message { 
	position: absolute;
	display: inline;
	top: 350px;
	left: 180px;
	margin: 0px;
	padding: 0px;
	width: 210px;
	height: 30px;
	text-transform: uppercase;
	font-weight: normal;
	letter-spacing: 2px;
	font-size: 20px;
	color: var(--CK-theme-accent);
	text-align: center;
}
#message.CK-red { 
	color: var(--CK-theme-danger);
}

#CK-highscore-list {
	position: absolute;
	top: 145px;
	left: 80px;
	width: 390px;
	min-height: 275px;
	padding: 20px 24px;
	box-sizing: border-box;
	background-color: rgba(0, 0, 0, 0.92);
	border: 2px solid var(--CK-theme-accent);
	border-radius: 14px;
	box-shadow: 0 0 24px rgba(0, 197, 154, 0.35);
	display: none;
	z-index: 999999;
}

#CK-highscore-list h2 {
	margin: 0px 0px 16px 0px;
	color: var(--CK-theme-accent);
	font-size: 24px;
	letter-spacing: 3px;
	text-align: center;
	text-transform: uppercase;
}

#CK-highscore-list ol {
	margin: 0px;
	padding: 0px;
	list-style: none;
}

#CK-highscore-list li {
	display: grid;
	grid-template-columns: 42px 1fr 80px;
	gap: 10px;
	margin-bottom: 9px;
	color: var(--CK-theme-text);
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

#CK-highscore-list .CK-score-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#CK-highscore-list .CK-score-points {
	color: var(--CK-theme-accent);
	text-align: right;
}

#CK-highscore-list .CK-highscore-back {
	display: block;
	width: 170px;
	margin: 18px auto 0px auto;
	padding: 10px 14px;
	box-sizing: border-box;
	border: 2px solid var(--CK-theme-accent);
	border-radius: 999px;
	background-color: transparent;
	color: var(--CK-theme-accent);
	font-size: 17px;
	letter-spacing: 2px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: 0 0 14px rgba(0, 197, 154, 0.28);
	transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

#CK-highscore-list .CK-highscore-back:hover,
#CK-highscore-list .CK-highscore-back:focus {
	background-color: var(--CK-theme-accent);
	color: #000;
	box-shadow: 0 0 22px rgba(0, 197, 154, 0.5);
}

span.CK-combo-score, span.CK-fruits-score { 
	position: absolute;
	letter-spacing: 1.5px;
	font-size: 14px;
	color: var(--CK-theme-accent-soft);
	font-weight: normal;
}

#panel, #home { 
	width: 550px;
	height: 690px;
	margin: auto;
	margin-top: 0px;
	left: 0px;
	right: 0px;
	top: 0px;
	position: absolute;
	padding: 0px;
	background-color: #000;
	
}			
#board, #canvas-board, #canvas-paths, #canvas-fruits, #canvas-pacman, #canvas-bubbles, #canvas-ghost-blinky, #canvas-ghost-pinky, #canvas-ghost-inky, #canvas-ghost-clyde { 
	width: 550px;
	height: 550px;
	position: absolute;
}
#canvas-paths { 
	display: none;
}
#board {  
	position: relative;
	background-color: #000;
}

#canvas-lifes, #canvas-level-fruits { 
	height: 30px;
	top: 622px;
	position: absolute;
	z-index: 111111;
}
#canvas-lifes { 
	width: 120px;
	left: 50px;
}
#canvas-level-fruits { 
	width: 265px;
	right: 50px;
}

#control { 
	position: absolute;
	margin: auto;
	left: 0px;
	right: 0px;
	bottom: -145px;
	width: 550px;
	height: 140px;
	background-color: #666;
	opacity: 0.7;
	display: none;
}
#control-up, #control-down, #control-up-second, #control-down-second, #control-left, #control-right, #control-up-big, #control-down-big, #control-left-big, #control-right-big { 
	position: absolute;
	margin: auto;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: 64px;
	cursor: pointer;
	width: 64px;
	height: 64px;
	padding: 5px;
}
#control-up { 
	top: 0px;
	left: 70px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-up.png');
}
#control-down { 
	bottom: 0px;
	right: 70px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-down.png');
}
#control-up-second { 
	top: 0px;
	right: 70px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-up.png');
}
#control-down-second{ 
	bottom: 0px;
	left: 70px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-down.png');
}
#control-left { 
	bottom: 0px;
	top: 0px;
	left: 0px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-left.png');
}
#control-right { 
	bottom: 0px;
	top: 0px;
	right: 0px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-right.png');
}

#control-up-big, #control-down-big, #control-left-big, #control-right-big { 
	position: absolute;
	opacity: 0.1;
	margin: auto;
	padding: 0px;
	display: inline;
	background-size: 98px;
	z-index: 999999;
	transform: translate(-190px, -220px);
}
#control-up-big { 
	bottom: 10px;
	left: 0px;
	right: 0px;
	width: 125px;
	height: 125px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-up-big.png');
}
#control-down-big { 
	bottom: -120px;
	left: 0px;
	right: 0px;
	width: 125px;
	height: 125px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-down-big.png');
}
#control-left-big { 
	left: 80px;
	bottom: -90px;
	width: 125px;
	height: 175px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-left-big.png');
}
#control-right-big { 
	right: 80px;
	bottom: -90px;
	width: 125px;
	height: 175px;
	background-image: url('https://www.mvdigital.com.co/CK/pacman-game/img/move-right-big.png');
}



#home h1, #panel h1 { 
	margin: 0px 0px 74px 0px;
	padding: 0px;
	font-size: 24px;
	letter-spacing: 3px;
	color: var(--CK-theme-text);
	text-transform: uppercase;
	font-style: normal;
}
#home h3, #panel h3 { 
	margin: 0px;
	padding: 0px;
	font-size: 20px;
	letter-spacing: 2px;
	color: #fff;
	text-transform: uppercase;
	font-style: normal;
}

.CK-sound { 
	position: absolute;
}
.CK-sound img { 
	height: 28px;
}
#home .CK-sound { 
	bottom: 0px;
	right: 5px;
}
#panel .CK-sound { 
	top: 12px;
	right: 5px;
}

.CK-github { 
	position: absolute;
	bottom: 0px;
	left: 5px;
}

.CK-logoempresa { 
	position: absolute;
	top: 350px;
	left: 130px;
	background-color: #000000;
	padding: 10px 25px 40px 95px;
	text-transform: uppercase;
}
#home .CK-logoempresa {
	top: 460px;
}
.CK-logoempresa img { 
	position: absolute; 
	bottom: -5px;
	left: 0px;
}
#panel .CK-logoempresa { 
	top: 0px;
	right: 5px;	
	left: auto;
	font-size: 16px;
	padding: 10px 25px 30px 65px;
}

.CK-help-button { 
	position: absolute;
	text-align: center;
	bottom: 8px;
	right: 55px;
	margin: auto;
	font-size: 14px;
	font-weight: bold;
	text-transform: lowercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	color: var(--CK-theme-board-glow);
	transition: color 1.5s;
}
.CK-help-button.CK-blink { 
	color: #333;
}
#panel .CK-help-button { 
	display: none;
}

#help h2 { 
	margin: 0px 0px 10px 0px;
	color: var(--CK-theme-danger);
	text-transform: uppercase;
	font-weight: bold;
	font-size: 26px;
}
#help { 
	position: absolute;
	width: 420px;
	height: 265px;
	top: 290px;
	left: 0px;
	right: 0px;
	margin: auto;
	padding-top: 15px;
	text-align: center;
	z-index: 999999;
	background-color: rgba(5, 15, 24, 0.96);
	border: solid 1px var(--CK-theme-board);
	text-transform: uppercase;
	opacity: 0.9;
	display: none;
	cursor: pointer;
}
#help  table  tr  td { 
	font-size: 16px;
	letter-spacing: 1px;
}
#help  table  tr  td:first-child { 
	color: var(--CK-theme-accent);
	font-weight: bold;
	text-align: right;
}
#help  table  tr  td:last-child { 
	text-align: left;
}

#sound { 
	position: absolute;
}

.ui-mobile {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

.ui-loader {
	display: none !important;
}



@media screen and (min-height:1200px), screen and (min-device-height : 1200px) { 
}

@media screen and (max-width:1024px), screen and (min-device-width : 768px) and (max-device-width : 1024px) { 
	#home .CK-help-button, #panel .CK-help-button, #home .CK-github, #sound, .CK-sound { 
		display: none;
	}
	#control-up-big, #control-down-big, #control-left-big, #control-right-big { 
		display: inline; 
	} 

}
@media screen and (max-height:640px), screen and (min-device-height : 480px) and (max-device-height : 640px) and (-webkit-device-pixel-ratio: 3) { 
	#control-up-big, #control-down-big, #control-left-big, #control-right-big { 
		display: inline; 
	} 
	#home .CK-help-button, #panel .CK-help-button, #home .CK-github, #sound, .CK-sound { 
		display: none;
	}
	#home h1, #panel h1, #canvas-panel-title-pacman { 
		visibility: hidden;
	}
}
@media screen and (max-height:480px), screen and (min-device-height : 320px) and (max-device-height : 480px) { 
	#control-up-big, #control-down-big, #control-left-big, #control-right-big { 
		display: inline; 
	} 
	#home h1, #panel h1, #canvas-panel-title-pacman, #control-up-second, #control-down-second, #home .CK-help-button, #panel .CK-help-button, #home .CK-github, #sound, .CK-sound { 
		display: none;
	}
	#score, #highscore { 
		top: 0px;
	}
	#panel { 
		padding-top: 0px;
	}
	#canvas-lifes, #canvas-level-fruits { 
		top: 607px;
	}
	#control { 
		bottom: 50px;
		width: 550px;
		height: 55px;
	}
	#control-up, #control-down, #control-left, #control-right { 
		top: 0px;
		bottom: 0px;
		background-size: 48px;
		width: 48px;
		height: 48px;
		padding: 5px;
	}
	#message { 
		top: 347px;
	}
}

/* ===== css/pacman-home.css ===== */
#home h1 { 
	text-align: center;
	font-size: 78px;
}
#home h3 { 
	position: absolute;
	margin: auto;
	left: 0px;
	right: 0px;
	bottom: 15px;
	text-align: center;
}
#home h3 em { 
	font-size: inherit;
	font-style: inherit;
	color: #fff200;
}
#canvas-home-title-pacman { 
	/*background-color: #000;*/
	position: absolute;
	top: 10px;
	left: 182px;
	height: 100px;
	width: 118px;
}
#canvas-panel-title-pacman { 
	/*background-color: #000;*/
	position: absolute;
	top: 6px;
	left: 47px;
	height: 32px;
	width: 38px;
}

.CK-play-button {
	position: absolute;
	margin: auto;
	left: 0px;
	right: 0px;
	top: 250px;
	width: 245px;
	height: 76px;
	border: 2px solid #00c59a;
	border-radius: 18px;
	background: rgba(0, 197, 154, 0.08);
	box-shadow: 0 0 18px rgba(0, 197, 154, 0.45), inset 0 0 18px rgba(0, 197, 154, 0.2);
	color: #00c59a;
	cursor: pointer;
	font-family: Quadrit, sans-serif;
	font-size: 34px;
	letter-spacing: 6px;
	text-transform: uppercase;
	animation: CK-play-pulse 1s ease-in-out infinite;
}

.CK-play-button:hover,
.CK-play-button:focus {
	background: rgba(0, 197, 154, 0.18);
	outline: none;
}

@keyframes CK-play-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.45;
		transform: scale(1.06);
	}
}

@media screen and (min-height:1200px), screen and (min-device-height : 1200px) { 

}

@media screen and (max-width:1024px), screen and (min-device-width : 768px) and (max-device-width : 1024px) { 

	
	#canvas-panel-title-pacman { 
		left: 49px;
		width: 42px;
	}
}

@media screen and (max-height:640px), screen and (min-device-height : 480px) and (max-device-height : 640px) and (-webkit-device-pixel-ratio: 3) { 

}
@media screen and (max-height:480px), screen and (min-device-height : 320px) and (max-device-height : 480px) { 

}
