@import url('../../fonts/stylesheet.css');

*, *::before, *::after {
	box-sizing: border-box;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #0A1E42;
}

body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #1d274a;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	opacity: 1;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	display: block;
	max-width: 100%;
	border: 0;
}

#wrapper {
	position: relative;
	width: 56.25vh;
	height: 100vh;
	margin: 0 auto;
	overflow: hidden;
	background-position: center top;
	background-size: cover;
	background-repeat: no-repeat;
}

.bg-inicio {
	background-image: url('../../im/bg-inicio.jpg');
}

.inicio-hero-link {
	position: absolute;
	display: block;
	width: 80%;
	top: 6vh;
	left: 50%;
	z-index: 2;
	transform: translateX(-50%) translateY(-120%);
	animation: inicioEntrada 1s cubic-bezier(0.25, 0.01, 0.1, 1) 0.15s forwards;
}

.inicio-hero {
	width: 100%;
}

.perdedor-hero-link {
	position: absolute;
	display: block;
	width: 80%;
	top: 25vh;
	left: 50%;
	z-index: 2;
	transform: translateX(-50%) translateY(-120%);
	animation: inicioEntrada 1s cubic-bezier(0.25, 0.01, 0.1, 1) 0.15s forwards;
}

.perdedor-hero {
	width: 100%;
}

.ganador-hero-link {
	position: absolute;
	display: block;
	width: 80%;
	top: 24vh;
	left: 50%;
	z-index: 2;
	transform: translateX(-50%) translateY(-120%);
	animation: inicioEntrada 1s cubic-bezier(0.25, 0.01, 0.1, 1) 0.15s forwards;
}

.ganador-hero {
	width: 100%;
}

@keyframes inicioEntrada {
	from {
		transform: translateX(-50%) translateY(-120%);
	}
	to {
		transform: translateX(-50%) translateY(0);
	}
}

.bg-interior {
	background-image: url('../../im/bg-interior.png');
}

.bg-interior2 {
	background-image: url('../../im/bg-interior2.png');
}

.logo {
	position: absolute;
	width: 38%;
	top: 3%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.hero {
	position: absolute;
	width: 88%;
	top: 18%;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: #fff;
	z-index: 2;
}

.hero h1 {
	margin: 0 0 2vh;
	font-size: 7.5vh;
	line-height: 1.05;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.hero h1 .accent {
	color: #2DB3C0;
}

.hero h1 .white {
	color: #fff;
}

.hero .subtitle {
	margin: 0 0 4vh;
	font-size: 2.2vh;
	line-height: 1.35;
	font-weight: normal;
}

.btn-primary {
	display: inline-block;
	min-width: 62%;
	padding: 1.8vh 4vh;
	background: #2DB3C0;
	color: #fff;
	font-size: 2.4vh;
	font-weight: bold;
	text-transform: uppercase;
	border: 0;
	border-radius: 0.4vh;
	cursor: pointer;
	text-align: center;
}

.btn-primary img {
	margin: 0 auto;
}

.form-title {
	margin: 0 0 3vh;
	font-size: 2vh;
	line-height: 1.35;
	text-transform: uppercase;
	color: #fff;
	text-align: center;
	font-weight: 700;
}

.registro-form {
	position: absolute;
	width: 84%;
	top: 13%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	margin-top: 8vh;
}

.registro-form input,
.registro-form select {
	width: 100%;
	margin-bottom: 1.6vh;
	padding: 2vh 1.6vh;
	border: 0;
	border-radius: 0;
	font-size: 1.55vh;
	font-weight: 700;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	color: #1d274a;
	background: #fff;
	text-transform: uppercase;
}

.registro-form input::placeholder {
	color: #1d274a;
	opacity: 1;
	text-transform: uppercase;
	font-weight: 700;
}

.registro-form select {
	appearance: none;
	background-color: #fff;
	background-image: linear-gradient(45deg, transparent 50%, #1d274a 50%), linear-gradient(135deg, #1d274a 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	color: #1d274a;
}

.registro-form .btn-primary {
	width: 100%;
	margin-top: 1.5vh;
	padding: 2.2vh 4vh;
	font-size: 2.2vh;
	font-weight: 800;
	border-radius: 0;
}

.error-msg {
	margin-bottom: 1.5vh;
	padding: 1.2vh;
	background: rgba(255, 80, 80, 0.9);
	color: #fff;
	font-size: 1.6vh;
	text-align: center;
}

.result-screen {
	position: absolute;
	width: 88%;
	top: 16%;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: #fff;
	z-index: 2;
}

.result-screen .win-title {
	margin: 0 0 2vh;
	font-size: 8vh;
	line-height: 1;
	color: #2DB3C0;
	text-transform: uppercase;
}

.result-screen .lose-line {
	margin: 0;
	font-size: 6vh;
	line-height: 1.05;
	text-transform: uppercase;
}

.result-screen .subtitle {
	margin: 2vh 0 4vh;
	font-size: 2.2vh;
	line-height: 1.35;
}

.result-image {
	position: absolute;
	width: 78%;
	top: 42%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

.result-screen + .result-image,
.result-image-link {
	display: block;
}

.timer-circle-wrap {
	position: absolute;
	top: 2.8%;
	right: 4.5%;
	width: 11.5vh;
	height: 11.5vh;
	border-radius: 50%;
	background: #131f45;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 4;
}

.timer-circle-wrap .timer-text {
	position: static;
	transform: none;
	font-size: 4.8vh;
	line-height: 1;
	font-weight: 800;
	color: #fff;
}

.instruccion {
	position: absolute;
	width: 86%;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: #fff;
	font-size: 2vh;
	line-height: 1.3;
	z-index: 2;
}

.instruccion-juego {
	top: 13.5%;
	font-size: 2.2vh;
	font-weight: 700;
	line-height: 1.25;
	display: none;
}

.instruccion-footer {
	bottom: 8%;
	color: #1d274a;
	font-size: 2vh;
	font-weight: 700;
	line-height: 1.25;
	display: none;
}

.juego {
	--card-gap: 0.55vh;
	--card-size: calc((48vh - 3 * var(--card-gap)) / 4);
	display: none;
	position: absolute;
	top: 23.5%;
	left: 50%;
	transform: translateX(-50%);
	width: calc(3 * var(--card-size) + 2 * var(--card-gap));
	height: calc(4 * var(--card-size) + 3 * var(--card-gap));
	grid-template-columns: repeat(3, var(--card-size));
	grid-template-rows: repeat(4, var(--card-size));
	gap: var(--card-gap);
	z-index: 2;
}

.card {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.45s;
	cursor: pointer;
}

.front,
.back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 0.6vh;
}

.front {
	background: url('../../im/reverso.png') center / 100% 100% no-repeat;
	z-index: 2;
}

.back {
	transform: rotateY(180deg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
}

.back1 { background-image: url('../../im/cuadro1.png'); }
.back2 { background-image: url('../../im/cuadro2.png'); }
.back3 { background-image: url('../../im/cuadro3.png'); }
.back4 { background-image: url('../../im/cuadro4.png'); }
.back5 { background-image: url('../../im/cuadro5.png'); }
.back6 { background-image: url('../../im/cuadro6.png'); }

.card_selected {
	transform: rotateY(180deg);
}

.card_disabled {
	opacity: 0.5;
	pointer-events: none;
}

.card_disabled .front {
	display: none;
}

.card_disabled .back {
	backface-visibility: inherit;
}

#countdown-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	color: #fff;
	background: transparent;
	pointer-events: none;
}

.countdown-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 22vh;
}

#countdown-overlay .countdown-title {
	margin: 0 0 4vh;
	font-size: 4.08vh;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
}

#countdown-circle {
	width: 22vh;
	height: 22vh;
	border-radius: 50%;
	background: #2DB3C0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#countdown {
	font-size: 11vh;
	line-height: 1;
	font-weight: 800;
}

.countdown-footer {
	position: absolute;
	bottom: 7.5%;
	left: 50%;
	transform: translateX(-50%);
	width: 86%;
	margin: 0;
	color: #1d274a;
	font-size: 2.35vh;
	line-height: 1.25;
	font-weight: 700;
	text-align: center;
}

#bloqueo {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 20;
	background: transparent;
}

#contador {
	display: none;
}
