@font-face {
	font-family: 'Cinzel';
	src: url('cinzel.woff2') format('woff2'),
		 url('cinzel.woff') format('woff'),
		 url('cinzel.ttf') format('truetype');
  }

body {
	margin: 0;
	height: 100vh;
	overflow: hidden;
    margin: auto;
	font-family: 'Cinzel', sans-serif;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.75);
	z-index: 2;
	background: rgba(241, 217, 193, 0.9);
	
}

#c {
	display: block;
	touch-action: none;
	transform: translateZ(0);
}


/*/////////////////////
//        HUD        //
/////////////////////*/


.hud__score,
.pause-btn {
	position: fixed;
	font-size: calc(14px + 2vw + 1vh);
	color: black;
}

.hud__score {
	top: 0.65em;
	left: 0.65em;
	pointer-events: none;
	user-select: none;
	color: black;
}

.cube-count-lbl {
	font-size: 0.46em;
}

.pause-btn {
	position: fixed;
	top: 0;
	right: 0;
	padding: 0.8em 0.65em;
}

.pause-btn > div {
	position: relative;
	width: 0.8em;
	height: 0.8em;
	z-index: 999;
}

.pause-btn > div::before,
.pause-btn > div::after {
	content: '';
	display: block;
	width: 34%;
	height: 100%;
	position: absolute;
    background-color: black;
}

.pause-btn > div::after {
	right: 0;
}

.slowmo {
	position: fixed;
	bottom: 0;
	width: 100%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s;
	will-change: opacity;
}

.slowmo::before {
	content: 'SLOW-MO';
	display: block;
	font-size: calc(8px + 1vw + 0.5vh);
	margin-left: 0.5em;
	margin-bottom: 8px;
}

.slowmo::after {
	content: '';
	display: block;
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 1.5vh;
	background-color: rgba(0, 0, 0, 0.25);
	z-index: -1;
}

.slowmo__bar {
	height: 1.5vh;
	background-color: rgba(255, 255, 255, 0.75);
	transform-origin: 0 0;
}



/*/////////////////////
//       MENUS       //
/////////////////////*/

.menus::before {
	content: '';
	pointer-events: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.2s;
	transition-timing-function: ease-in;
}

.menus.has-active::before {
	opacity: 0.08;
	transition-duration: 0.4s;
	transition-timing-function: ease-out;
}

.menus.interactive-mode::before {
	opacity: 0.02;
}



/* Menu containers */
.menu {
	pointer-events: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	user-select: none;
	text-align: center;
	color: rgba(255, 255, 255, 0.9);
	opacity: 0;
	visibility: hidden;
	transform: translateY(30px);
	transition-property: opacity, visibility, transform;
	transition-duration: 0.2s;
	transition-timing-function: ease-in;
}

.menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-duration: 0.4s;
	transition-timing-function: ease-out;
}

.menus.interactive-mode .menu.active {
	opacity: 0.6;
}

.menus:not(.interactive-mode) .menu.active > * {
	pointer-events: auto;
	margin: 10px;
	
}

.pause{
	font-size: 4rem;
    line-height: 0.95;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    padding: 30px 30px;
    border-radius: 20px;
    height: 300px;
    position: relative;
    top: 220px;
    width: 500px;
    left: 0px;
    color: black;
}




/* Common menu elements */

h1 {
    font-size: 4rem;
    line-height: 0.95;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    padding: 30px 30px;
    border-radius: 20px;
    height: 480px;
    position: relative;
    top: 220px;
    width: 500px;
	left: -5px;
	color: black;
}

h2 {
	font-size: 5vmin;
	line-height: 1;
	text-align: center;
	font-weight: bold;
	margin: -1em 0.65em 1em;
	color: white;
	z-index: 999;
	position: relative;
	top: 5px;
}


.para {
position: absolute;
background: #FFF;
top: 370px;
width: 280px;
border-radius: 5px;
box-shadow: 10px 10px 10px 1px rgba(0, 0, 0, 0.5);
color: #4c4c4c;
font-size: 16px;
text-align: center;
padding: 30px 15px 15px;
margin-top: 50px;
left: 80px;
z-index: -1;
}

strong {
	font-size: 70px;
    margin-bottom: 20px;
    color: #FFDC00;
	position: relative;
    top: -175px;
}

 .strong1{
    position: absolute;
    background: #a2d9eb;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px;
	top: 350px;
    left: 100px;
}

.para2 {
	position: absolute;
	background: #FFF;
	top: 600px;
	width: 280px;
	border-radius: 5px;
	box-shadow: 10px 10px 10px 1px rgba(0, 0, 0, 0.5);
	color: #4c4c4c;
	font-size: 16px;
	text-align: center;
	padding: 30px 15px 15px;
	margin-top: 50px;
	left: 80px;
	z-index: -1;
	}
	
	 .strong2{
		position: absolute;
		background: #a2d9eb;
		border-radius: 5px;
		color: #fff;
		text-transform: uppercase;
		font-weight: bold;
		padding: 10px;
		top: 580px;
		left: 100px;
	}

	.para3 {
		position: absolute;
		top: 500px;
		color: #4c4c4c;
		width: 25%;
		z-index: 20;
	}
	

.final-score-lbl {
	font-size: 5rem;
	margin: -0.2em 0 0;
	color: white; 
	z-index: 999;
	position: relative;
	top: 5px;
}

.high-score-lbl {
	padding: 0px 30px;
    z-index: 999;
    font-size: 5vmin;
    line-height: 1em;
    margin-left: auto;
    position: fixed;
    margin-right: auto;
    color: white;
    display: flex;
    align-items: center;
    flex-direction: column;

}

button {
	display: block;
	width: 220px;
	outline: none;
	user-select: none;
	font-family: 'Cinzel';
	font-size: 1.4rem;
	margin-bottom: 10px;
	min-height: 50px;
	color: #fff;
	font-weight: bold;
	text-transform: uppercase;
	padding: 5px 20px;
	cursor: pointer;
	transition: background 300ms;
	position: relative;
	border-top: 2px solid #dae4f5;
	border-left: 4px solid #dae4f5;
	border-right: 4px solid #dae4f5;
	border-bottom: 6px solid #a9bae1;
	box-shadow: 0 2px #7385c1;
	border-radius: 30px 20px 25px 20px;
	transform: perspective(1em) rotateX(1deg) rotateY(-1deg);
	background-image: linear-gradient(0deg, #fdc519 10%, #f49a19 90%);

}

.button:hover {
	top: 221px;
  }


button::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(255, 255, 255, 0.15);
	transform: scale(0, 0);
	opacity: 0;
	transition: opacity 0.3s, transform 0.3s;
}

/* No `:focus` styles because this is a mouse/touch game! */
button:active {
	opacity: 1;
}

button:active::before {
	transform: scale(1, 1);
	opacity: 1;
}

.play-normal-btn {
 position:relative;
 color: white;
}

.play-normal-btn:hover {
	top: 1px;
  }

.play-casual-btn {
	position:relative;
	color: white;
}

.play-casual-btn:hover {
	top: 1px;
  }

.play-again-btn {
	position:relative;
	top: 100px;
	color: white;
	z-index: 999;
}

.play-again-btn:hover {
	top: 101px;
	z-index: 999;
  }

  .menu-btn--score {
	position:relative;
	top: 100px;
	z-index: 999;

}

.menu-btn--score:hover {
	opacity: 80%;
	top: 101px;
	z-index: 999;
  }

  .menu-btn--pause{
	position:relative;
    top: 1px;
  }

  .menu-btn--pause:hover {
	top: 2px;
  }

  .resume-btn {
	position:relative;
    top: 1px;
  }

  .resume-btn:hover {
	top: 2px;
  }

.credits {
	position: fixed;
	width: 100%;
	left: 0;
	bottom: 20px;
}

a {
	color: white;
}

.overlay {
	position: fixed;
    width: 100%;
    height: calc(100vh + 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    background: rgba(0, 0, 0, 0.8);
    top: -10px;
    color: white;
  }



.overlay .success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 35px;
    text-shadow: 0 0 10px #000;
    margin: 0;
    z-index:999;
    position: relative;
    left: -30px;
    width: 100%;
    height: 107%;
  }

	
@media (max-width: 479px) {
	.logo {
			width: 300px;
			left: 18%;
			top: 70px;
		}

	h1 {
			font-size: 2rem;
			height: 400px;
			width: 390px;
			left: 0px;
		}

	.para {
			width: 350px;
		}

	.pause {
		font-size: 3rem;
		height: 240px;
		width: 390px;
		left: 0px;
	
	}
	.resume-btn {
		position: relative;
		top: 20px;
	}
	.resume-btn:hover {
		position: relative;
		top: 21px;
	}
	.menu-btn--pause {
		position: relative;
		top: 20px;
	}
	.menu-btn--pause:hover {
		position: relative;
		top: 21px;
	}
}

	@media (min-width: 480px) and (max-width: 768px) {

}
	