/* ./memorama/styles.css*/
body{
margin:0;
font-family:Arial, sans-serif;
background:#111;
color:white;
text-align:center;
min-height:100vh;
}
#ranking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  min-height: 100vh;

  background: #111;
  color: white;

  padding: 20px;
}

#ranking-content {
  width: 90%;
  max-width: 500px;
  text-align: left;
}

#ranking h2 {
  margin-top: 20px;
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}

#ranking ol {
  padding-left: 20px;
}

#ranking li {
  margin: 5px 0;
}

/*	ESTILOS DE TOPS RANKINGS:	*/
.top1 {
	color: gold;
	font-weight: bold;
	font-size: 1.3em;
	text-shadow: 0 0 8px regba(255, 215, 0, 0.7);
}
.top2 {
	color: silver;
	font-weight: bold;
	font-size: 1.15em;
}
.top3 {
	color: #cd7f32;
	font-weight: bold;
	font-size: 1.05em;
}

/* MENÚ */

#menu{
padding-top:60px;
}

.menu-step{
margin-top:30px;
}

button{
padding:12px 25px;
font-size:18px;
margin:10px;
cursor:pointer;
border:none;
border-radius:8px;
}

/* OPCIONES */

.options{
margin-top:20px;
}

/* JUEGO */

#game{
width:100%;
min-height:100vh;
display:flex;
flex-direction:column;
align-items:center;
justify-content:flex-start;
padding-top:30px;
}

/* SCORE */

#score{
margin-bottom:20px;
padding:10px;
}

#bonus-tiempo{
margin-left:10px;
color:#00ff88;
font-weight:bold;
opacity:0;
transition:opacity 0.4s;
}

/* TABLERO */

#game-board{

height:65vh;
max-height:650px;
width:min(90vw,65vh);
display:grid;
grid-template-columns:repeat(4,1fr);
gap:10px;

}

#menu-extra{
margin-top:40px;
}

#menu-extra button{
background:#444;
color:white;
}


/* CARTA */

.card{

position:relative;

width:100%;
height:100%;

transform-style:preserve-3d;
transition:transform 0.5s;

cursor:pointer;

}

.card.flip{
transform:rotateY(180deg);
}

/* CARAS */

.card-face{

position:absolute;
width:100%;
height:100%;

border-radius:10px;

display:flex;
align-items:center;
justify-content:center;

font-size:2rem;

backface-visibility:hidden;

}

/* PARTE TRASERA */

.card-back{

background-image:url("assets/images/card-back.png");
background-size:100% 100%;
background-position:center;
background-repeat:no-repeat;

background-color:#444;

border-radius:10px;
overflow:hidden;
}

/* PARTE DELANTERA */

.card-front{

background:white;
color:black;

transform:rotateY(180deg);

}

/* BOTON VOLVER */

#volver-menu{

margin-top:20px;
font-size:16px;
padding:10px 20px;

}

.hidden{
display:none !important;
}
#victory{

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:#111;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;

gap:20px;

z-index:100;

}
@media (max-width:600px){
#score{
font-size:18px;
padding:15px;
margin-top:10px;
}
}
