body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    background-image: url("../img/checkered-light-emboss.png");
    color: #fff !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
#buttons-container {
    display: flex;
    flex-direction: row;
    gap: 20px; 
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: static;
    z-index: 2;
}

.input-with-button {
  display: flex;
  align-items: center;
}

.input-with-button input {
  border: 1px solid #ccc;
  border-right: none;
  padding: 8px;
  font-size: 1rem;
  border-radius: 6px 0 0 6px;
  outline: none;
}

#flag-button {
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  padding: 0 10px;
  border: 1px solid #ccc;
  margin-left: 8%;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

#flag-button:hover {
  background-color: #222;
}



#stats-button {
  background: transparent;
  color: white;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-family: inherit;
  user-select: none;
  border: none;    
  outline: none;  
}

#main-title-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 15px;
}

.titulo-juego {
  background-color: #14532d;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
}

.animar-celda {
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}


.tabla-superior {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 20px;
  text-align: center;
  font-size: 16px;
}

.tabla-superior div {
  flex: 1;
}

.modal-resultado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content-resultado {
  background-color: #b7b4b4dd;
  background-image: url("../img/circles.png");
  padding: 24px 32px;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  font-family: 'Roboto Slab', serif;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color:rgb(0,0,0);
}
.modal-content-resultado .tabla-superior {
  font-size: 1.4rem;
}


.modal-content-resultado h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 24px;
}

.contenedor-histograma {
  margin-top: 10px;
}

.fila-histograma {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.label-histograma {
  width: 30px;
  text-align: right;
  margin-right: 10px;
  font-weight: bold;
}

.barra-histograma {
  background-color: rgb(12, 111, 44);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: right;
  min-width: 30px;
}

.modal-content-resultado button {
  margin-top: 16px;
  padding: 10px;
  font-size: 16px;
  background-color: rgb(12, 111, 44);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-self: center;
}

.modal-content-resultado button:hover {
  background-color: rgb(12, 111, 44);
}


.header-section {
  display: flex;
  align-items: center;
}

#left-section {
  display: flex;
  align-items: center;
  justify-content: center;
    gap: 10px;
    width: 100%;
}

#center-right-section {
  position: static;
  display: flex;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  transform: none;
  text-align: center;
}
#logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

#logo-img {
  width: 80px;
  height: 0p8x;
  filter: invert(1);
}


#remember-text {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: bold;
  font-family: 'Roboto Slab', serif;
  margin-left: 10px;
  line-height: 1.1;
  color: #f5f5f5;
}

#main-title-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hint-button {
  position: relative; 
}
.hint-bubble {
  position: absolute;
  top: 50%;
  left: 100%; 
  transform: translate(8px, -50%);
  display: none; 
  background: #ffe066;
  color: #222;
  padding: 12px 16px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 1.2rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Roboto', sans-serif;
  width: auto;
}

#hint-button:hover .hint-bubble {
  display: block;
}

.pista-clicable {
  cursor: default;
  background: #000000;
  color: white;
  transition: background 0.3s, color 0.3s;
}

.pista-clicable-activa {
  background: #ffe066 !important;
  color: #222 !important;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.pista-clicable-activa:not(.pista-seleccionada):hover {
  background: #ffe066 !important;
  color: #222 !important;
  cursor: pointer;
}

.pista-seleccionada,
.pista-seleccionada:hover {
  background: #ffe066 !important;
  color: #222 !important;
  font-weight: bold;
  cursor: default;
}
.nacionalidad-celda {
  height: 32px;
  max-height: 32px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  vertical-align: middle;
}
.nacionalidad-celda img {
  max-height: 28px;
  max-width: 38px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

#main-title {
  position: static;
  top: 50%;            
  left: 50%;
  transform: none;  
  margin: 0;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #f5f5f5;
  user-select: none;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}




#stats-button {
  background: transparent;
  color: white;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-family: inherit;
  user-select: none;
  border: none;      
  outline: none;  
}
#info-button {
  background-color: transparent;
  border: 2px solid #f5f5f5;
  color: #f5f5f5;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, color 0.3s;
  margin-left: 20px;
  flex-shrink: 0;
}

#info-button:hover {
  background-color: #f5f5f5;
  color: black;
}

#input-container {
    max-width: 300px; 
    width: 90%;
    margin: 20px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}


#guess-table {
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-collapse: separate;
  border-spacing: 8px;
  width: 100%;
  font-family: 'Roboto Slab', serif;
}


#guess-table th,
#guess-table td {
  padding: 25px 15px;
  text-align: center;
  font-weight: bold;
  white-space: normal;
  overflow-wrap: break-word;
  vertical-align: middle;
  background-color: white;
  border-radius: 10px;
}


#guess-table td:first-child,
#guess-table th:first-child {
  width: 220px; 
  max-width: 220px;
  word-wrap: break-word; 
}

#guess-table td:nth-child(3),
#guess-table th:nth-child(3) {
  width: 140px;
}

#guess-table td:nth-child(5),
#guess-table th:nth-child(5),
#guess-table td:nth-child(6),
#guess-table th:nth-child(6) {
  width: 160px;
}

.modal-resultado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color:#000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}


.modal-content-resultado button {
  margin-top: 20px;
  padding: 8px 16px;
  background-color: rgb(12, 111, 44);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}



.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background:linear-gradient(325deg, black, #2a2a2a);
  background-color: linear-gradient(135deg, black, #2a2a2a);
  margin: 3% auto;
  padding: 40px 35px;
  border-radius: 12px;
  width: 95%;
  max-width: 550px;   
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  max-height: 80vh;   
  overflow-y: auto;
  color: #b38512;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.8;
}


.modal-content h2, 
.modal-content h3 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #b38512;
  text-align: left;
}

.modal-content p,
.modal-content ul {
  margin-bottom: 1em;
  color: #b38512;
  line-height: 1.6;
  font-size: 1.05rem;
  text-align: left;
}

.modal-content ul {
  padding-left: 20px;
}

.modal-content ul li {
  margin-bottom: 0.8em;
  font-weight: 400;
}

.modal-content ul li strong {
  font-weight: 700;
  color: #b38512;
}

.close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #eee;
}


.correct {
  background-color: #6aaa64 !important;
  color: white;
}

.partial {
  background-color: #c9b458 !important;
  color: white;
}

.wrong {
  background-color: #787c7e !important;
  color: white;
}

#restart-btn {
  display: inline-block;
  margin: 0;
  padding: 10px 25px;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1rem;
  background-color: #b38512;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle; 
}

#restart-btn:hover {
  background-color: #b38512;
}

#feedback,
#history {
  max-width: 600px;
  margin: 0 auto 20px auto;
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  text-align: center;
}

#message-box {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #6aaa64;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


#game-area {
    max-width: 100%;
    width: 100%;
    text-align: center;
    position: relative;
}

@media (max-width: 650px) {
  #input-container{
    font-size: 1.3rem !important;
  }

  .suggestions-box {
    font-size: 1.3rem !important;
  }
    #remember-text {
        font-size: 1.5rem;
    }

    #liga2-text {
        font-size: 1.1rem;
        padding: 6px 12px;
    }

    #input-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    #guess-table th,
    #guess-table td {
      font-size: 1.5rem !important;
    }

.hint-bubble {
  position: absolute;
  top: 50%;
  left: 100%; 
  transform: translate(8px, -50%);
  display: none; 
  background: #ffe066;
  color: #222;
  padding: 12px 16px; 
  border-radius: 6px;
  white-space: normal; 
  width: 200px; 
  font-size: 1rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Roboto', sans-serif;
}
#hint-button:hover .hint-bubble {
    display: block;
}


}
