*{
	margin: 0;
	padding: 0;
}

body {
	font-family: sans-serif;
	letter-spacing: 1px;
	color: #2480f1;
	height: 100vh;
	/*display: block;
	overflow: hidden;*/
}

.wrapper {
	max-width: 50vw;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 0;
}

h1 {
	font-size: 65px;
	
}

.wrapper > h2 {
	font-size: 45px;
	margin: 20px 0;
	
}

article {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 50px;
}


.slideRules {
	background: #2480f1;
	color: white;
	font-size: 30px;
	padding: 10px 20px;
	border-top-right-radius: 10px;
	border-top-left-radius: 10px;
}

.slideRules:hover {
	cursor: pointer;
}

#rules{
	display: none;
	padding: 20px;
	font-size: 25px;
	border-radius-bottom: 10px;
	background: rgba(0,0,0,0.5);
	color: white;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
	display: none;
}

.taskProgress {
	position: fixed;
	top: 60vh;
	left: 1vw;
	padding: 2.5vh;
}

.taskProgress p {
	text-align: center;
	font-size: 40px;
	margin-bottom: 10px;
}

.timeProgress {
	position: fixed;
	top: 1vh;
	left: 1vw;
	padding: 2.5vh;
}

.timeProgress p {
	text-align: center;
	font-size: 40px;
	margin-bottom: 10px;
}

canvas {
	width: 20vw;
	/*max-width: 20vw;*/
}




.bcImage{
	z-index: -1;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}



.sect{
	padding: 50px 20px;
	width: 100vw;
	min-height: 100vh;
	background: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
}


#nextTask{
	position: fixed;
	right: 1vw;
	bottom: 45vh;
	width: 250px;
	height: 70px;
	justify-content: center;
	align-items: center;
	margin: 50px auto;
	display: none;
}
#start{
	position: relative;
	/*left: 45vw;
	top: 57vh;*/
	width: 150px;
	height: 35px;
	justify-content: center;
	align-items: center;
	margin: 20px auto;
}

#nextTask, #start {
	cursor: pointer;
	border-radius: 70px;
	box-shadow: 0 10px 10px rgba(140,140,140,0.3);
	background: black;
}

#nextTask::before,
#nextTask::after,
#start::before,
#start::after{
	content: '';
	position: absolute;
	left: 50%;
	width: 80px;
	height: 20px;
	border-radius: 10px;
	transform: translateX(-50%);
	transition: 0.5s;
	background: #2480f1;
	box-shadow: 
		0 0 5px #2480f1,
		0 0 15px #2480f1 ,
		0 0 30px #2480f1 ,
		0 0 60px #2480f1 ;

}
#nextTask::before,
#start::before{
	bottom: -10px;
}

#nextTask::after,
#start::after{
	top: -10px;
}

#nextTask:hover::before,
#nextTask:hover::after,
#start:hover::before,
#start:hover::after{
	height: 50%;
	width: 80%;
	border-radius: 70px;
}
#nextTask:hover::before,
#start:hover::before{
	bottom: 0px;
}

#nextTask:hover::after,
#start:hover::after{
	top: 0px;
}	

#nextTask span,
#start span{
	background: rgba(255,255,255,0.05);
	width: 100%;
	height: 100%;
	color: #fff;
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 10px;
	padding: 0 0 0 10px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-top: 3px solid rgba(255,255,255,0.1);
	border-bottom: 3px solid rgba(255,255,255,0.1);
	border-radius: 70px;
	backdrop-filter:blur(15px);
	overflow: hidden;
	transition: 0.5s;
	text-align: center;
}

#nextTask span::before,
#start span::before{
	content: '';
	background: linear-gradient(to left, rgba(255,255,255,0.15),transparent );
	width: 50%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	transform: skewX(45deg) translate(0);
	transition: 0.5s;

}
#nextTask:hover span::before,
#start:hover span::before{
	transform: skewX(45deg) translate(300px);
}


.gameBoard{
	display: none;
	gap: 5px;  /*Установите зазор между строками и столбцами на 50 пикселей:*/
	width: 100%;
	grid-template-columns: repeat(6,1fr );
	grid-template-rows: repeat(4,100px);

}

.card{
	background-color: rgba(0,0,0,0.5);
	border-radius: 5%;
	text-align: center;
	line-height: 100px;
	cursor: pointer;
	transition: all 0.5s;
	transform-style: preserve-3d; 
		padding: 0 55px;


}
.back, .front{
	backface-visibility: hidden;  /*определяет, должна ли быть видна обратная сторона элемента, если смотреть на пользователя.*/
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.front{
font-weight: bold;
	}
.back{
	transform: rotateY(180deg);
}

.card img{
	max-width: 100%;
	display: block;
	margin: 0 auto;
	max-height: 100%;


}
.flip{
	transform: rotateY(180deg);
}