* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #a0895f;
	text-align: center;
	/*Centraliza o texto, mas também, como neste caso centralizará a imagem do modal*/
	height: 100dvh;
}

#cabecalho {
	display: grid;
	grid-template-columns: 1fr 1fr 3fr;
	grid-template-rows: 70% 30%;
	width: 800px;
	max-width: 96vw;
	height: 200px;
	margin: 0 auto;
}

#titulo {
	margin-top: 2%;
	width: 90%;
	max-width: 800px;
	grid-area: 1 / 1 / span 1 / span 3;
}

#titulo-media {
	display: none;
}
/* 
#informacoes {
	grid-area: 2 / 1 / span 1 / span 3;
	width: 800px;
	max-width: 96vw;
	height: 55px;
	display: grid;
	grid-template-columns: 13% 13% auto;
	position: relative;
	z-index: 3;
	margin: 0 auto;
} */

#score {
	grid-area: 2 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

h5 {
	font-size: 0.6rem;
}

#placar {
	font-size: clamp(1rem, 4.5vw, 2rem);
}

p {
	font-size: 1rem;
	padding-left: 1%;
}

#marcatempo {
	grid-area: 2 / 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#cronometro {
	font-size: clamp(1rem, 4.5vw, 2rem);
}

#caixa-dialogo {
	grid-area: 2 / 3;
	text-align: left;
	font-size: 1.2rem;
	display: none;
	align-items: center;
	background-color: #f4f0d8;
	color: #1f1f1f;
	animation: piscar-caixa-dialogo 1.4s ease-in-out infinite;
}

#caixa-dialogo p {
	margin: 0 auto 0 0;
	display: flex;
	align-items: center;
}

@keyframes piscar-caixa-dialogo {

	0%,
	100% {
		background-color: #f4f0d8;
	}

	50% {
		background-color: #c7c0b3;
	}
}

.botao {
	padding: 2%;
	margin: 5px;
	border: none;
	border-radius: 5px;
	background-color: #333;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin: 2% 1%;
}

#botao-sim {
	margin-left: auto;
}

#botao-nao {
	margin-right: 2%;
}

#stage {
	position: relative;
	width: 1000px;
	max-width: 100%;
	margin: 0 auto;
	overflow: visible;
	height: auto;
	max-height: none;
}

#container {
	width: 1000px;
	border: 1px solid #111;
	position: relative;
	margin: auto;
	border-radius: 10px;
	background-color: #5E4A16;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(3, auto);
	gap: 5px;
	place-content: center;
	padding: 10px;
}

.card {
	width: 100%;
	/* altura será determinada pela proporção (largura / altura) para manter cartões proporcionais */
	aspect-ratio: 2 / 3;
	/* ajuste se quiser cartas mais 'altas' ou 'baixas' */
	border-radius: 10px;
	perspective: 600px;
	/* para criar o efeito 3D de virar as cartas */
	padding: 2%;
	box-sizing: border-box;
	position: relative;
	/* torna as .face absolutas relativas a cada card */
}

.face {
	width: 100%;
	height: 100%;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 10px;
	transition: all 1s;
	backface-visibility: hidden;
}

.back {
	background: url("../img/verso.jpg");
}

.back.flipped {
	transform: rotateY(180deg);
}

.front {
	transform: rotateY(-180deg);
}

.front.flipped {
	transform: rotateY(0deg);
}

.card:hover {
	box-shadow: 0 0 10px #aaa;
}

.face.flipped.match {
	box-shadow: 0 0 10px #0f0;
}

#modalGameOver {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

#imgGameOver {
	width: 70%;
}

#imgMatchSign {
	position: absolute;
	transition-property: top, opacity;
	transition-duration: 0.6s;
	opacity: 0;
	z-index: -1;
	pointer-events: none;
	width: 70%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

img {
	width: 100%;
}

#landscape-warning {
	display: none;
}