/* ================== GLOBAL ================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  text-align: center;
}

/* Contenedor principal que empuja el footer */
.container {
  flex: 1; /* Esto hace que el footer quede abajo si el contenido es corto */
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  padding-top: 40px;
}

/* ================== NAV ================== */
nav {
  background-color: #06141b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Brand a la derecha */
.brand {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-right: 20px;
}
.brand span.yellow { color: #f9a825; }
.brand span.blue { color: #00bfff; }
.brand span.white { color: #ffffff; }

/* Links de contacto */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links li a:hover { color: #00bfff; }

/* Íconos redes a la izquierda */
.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px;
}
.nav-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s;
}
.nav-icon:hover { transform: scale(1.2); }

/* ================== BOTONES ================== */
button {
  margin: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  background: #1e90ff;
  color: #fff;
  transition: transform 0.2s, background 0.3s;
}
button:hover { 
  background: #4682b4; 
  transform: scale(1.05);
}

/* BOTÓN VOLVER ROJO */
#backBtn {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 10px;
  background-color: #06141b;
  border: 1px solid #00bfff;
  color: #00bfff;
  cursor: pointer;
  border-radius: 5px;
}

#backBtn:hover {
  background-color: #00bfff;
  color: #06141b;
}


/* ================== PLAYER CONTAINER ================== */
#playerContainer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin: 20px auto;
  flex-wrap: wrap;
}

/* Columna izquierda */
#leftPanel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#clubsList { 
  display: flex; 
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#clubsList img { 
  height: 100px; 
  width: auto; 
  border-radius: 0;
  border: none;
  background: none;
  display: block;
  transition: transform 0.2s;
}
#clubsList img:hover { transform: scale(1.05); }

/* Botón pista debajo de los escudos */
#hintBtn {
  padding: 8px 14px;
  background: #1e90ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
#hintBtn:hover {
  background: #4682b4;
  transform: scale(1.05);
}

/* Columna derecha */
#inputPanel {
  display: flex;
  flex-direction: column;
  gap: 15px; 
  justify-content: center; 
}

/* Fila input + enviar + skip */
#inputRow {
  display: flex;
  gap: 5px;
  align-items: center;
}

#inputPanel input[type=text] {
  padding: 8px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  width: 180px;
}

/* Botones enviar / skip */
#submitBtn {
  background: #00c853;
  color: #fff;
}
#submitBtn:hover { background: #00e676; transform: scale(1.05); }

#skipBtn {
  background: #1e90ff;
  color: #fff;
}
#skipBtn:hover { background: #4682b4; transform: scale(1.05); }

#message { font-size: 1.3rem; margin-top: 10px; min-height: 28px; font-weight: bold; }

#score {
  font-size: 1.2rem;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(0,0,0,0.4);
  display: inline-block;
  font-weight: bold;
}
#score.correct { background: #00ff99; color: #06141b; transform: scale(1.2); }
#score.incorrect { background: #ff4444; color: #fff; transform: scale(1.2); }

input[type=text] {
  padding: 8px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  margin-right: 8px;
  width: 140px;
}

/* ================== TIMER ================== */
#timerContainer {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  display: flex;
  flex-direction: column; /* coloca el contador encima de la barra */
  align-items: center;    /* centra horizontalmente */
  gap: 8px;               /* espacio entre contador y barra */
  font-family: 'Poppins', sans-serif;
}

#timerCount {
  font-weight: 700;
  font-size: 1.3rem;
  color: #00ff99;
  text-align: center;
}

#timerBar {
  width: 100%;
  height: 18px;
  background: rgba(255,255,255,0.2);
  border-radius: 9px;
  overflow: hidden;
}

#timerProgress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00ff99, #00bfff);
  transition: width 1s linear;
  border-radius: 9px;
}


/* MODAL */
#configModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#configContent {
  background-color: #06141b;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #fff;
}

.time-btn, .difficulty-btn, #startGameBtn {
  padding: 8px 15px;
  margin: 10px;
  border: 1px solid #00bfff;
  background-color: #06141b;
  color: #00bfff;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
#startGameBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.time-btn.selected, .difficulty-btn.selected {
  background-color: #00bfff;
  color: #06141b;
}

.time-btn:hover, .difficulty-btn:hover, #startGameBtn:hover {
  background-color: #00bfff;
  color: #06141b;
}


/* ================== FOOTER ================== */
footer {
  background-color: #06141b;
  padding: 10px 10%;
  color: #fff;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-left a {
  color: #00bfff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-left a:hover {
  color: #f9a825;
}

.footer-right .footer-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s;
}

.footer-right .footer-icon:hover {
  transform: scale(1.2);
}
