@font-face {
  font-family: 'Saiyan';
  src: url('fonts/Saiyan-Sans.ttf') format('truetype');
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('/img/fondo1.png');
  background-repeat: no-repeat;
  background-size: cover;
  font-family: Saiyan, sans-serif;
  text-align: center;
  z-index: -1;
}

/* === CANVAS === */
#board {
  background-image: url("../img/flappybirdfound.png");
  background-repeat: no-repeat;
  background-size: cover;
  border: 2px solid #222;
  box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
}

/* === PANTALLA DE SHENLONG === */
#shenlongScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  background-image: url("../img/shenlong.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; /* 🔥 ahora llena toda la pantalla */
  display: none;
  flex-direction: column;
  justify-content: flex-end; /* 🔥 texto y botón abajo */
  align-items: center;
  color: gold;
  font-size: 26px;
  font-family: Saiyan, sans-serif;
  text-shadow: 2px 2px 8px black;
  animation: fadeIn 2s ease-in forwards;
  z-index: 999;
  padding-bottom: 100px; /* 🔧 ajusta la distancia del texto respecto al borde inferior */
}

/* Efecto de aparición suave */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* TEXTO SOBRE SHENLONG */
.shenlong-text {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid gold;
  border-radius: 12px;
  padding: 20px 30px;
  margin-top: 40px;
  max-width: 80%;
  line-height: 1.4em;
  color: #ffeb3b;
}

/* BOTÓN DE REINICIO */
#restartBtn {
  background: linear-gradient(180deg, gold, orange);
  color: black;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #ff9800;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s;
  box-shadow: 0px 0px 10px rgba(255,215,0,0.6);
}

#restartBtn:hover {
  background: linear-gradient(180deg, #ffca28, #ff9800);
  transform: scale(1.05);
  box-shadow: 0px 0px 20px rgba(255,215,0,1);
}
