* {
  transition: all 0.5s;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

#tablero {
  flex: 1;
  margin-top: 15px;
}

div {
  display: inline-block;
}

.contenedor-botones {
  display: flex;
  justify-content: center; /* Centra los botones horizontalmente */
  align-items: center; /* Centra los botones verticalmente si hay más espacio */
  margin-top: 20px; /* Espacio adicional desde el contenido superior */
  gap: 10px; /* Espacio entre los botones */
}

.area-tarjeta,
.tarjeta,
.cara {
  cursor: pointer;
  width: var(--w);
  min-width: 100px;
  height: var(--h);
}

.cara {
  position: absolute;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 5px #ff7200;
  font-size: 500%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trasera {
  box-shadow: inset 0 0 0 5px #493367;
  background-color: white;
  transform: rotateY(180deg);
}

.superior {
  background-image: url("../../img/tarjetas/Nguru.jpg");
  background-size: var(--w);
}

.nuevo-juego {
  cursor: pointer;
  background: linear-gradient(orange, darkorange);
  padding: 20px;
  border-radius: 50px;
  border: white 5px solid;
  font-size: 130%;
}

.volver-inicio {
  margin-left: 15px;
  cursor: pointer;
  background: linear-gradient(orange, darkorange);
  padding: 20px;
  border-radius: 50px;
  border: white 5px solid;
  font-size: 130%;
}

.imgSize {
  height: var(--sizeImg);
}

@keyframes iniciar {
  20%,
  90% {
    transform: rotateY(180deg);
  }

  0%,
  100% {
    transform: rotateY(0deg);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#contenedor {
  margin: 10px auto;
}
.reloj {
  float: left;
  font-size: 40px;
  font-family: Courier, sans-serif;
  color: #363431;
  background-color: white;
  padding: 5px;
}

footer {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: space-between;
  background-color: #2d636b;
  margin-top: 10px;
  color: white;
}
