/* Style for the headline bar */
.headline {
  background-color: rgba(33, 51, 46, 0.98);
  /* Dark background color for the headline bar */
  color: #fff;
  padding: 10px 20px;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style for the text within the headline */
.headline-text {
  flex-grow: 1;
  /* Allow the text to expand and fill the remaining space */
  text-align: left;
  /* Center the text horizontally within the header */
  font-size: 13px;
  /* Adjusted font size */
  text-transform: uppercase;
  /* Convert text to uppercase */
  letter-spacing: 0.5px;
  /* Adjusted letter spacing */
}

/* Style for the second header */
/* Style for the second header */
/* Style for the second header */
.headline-line {
  width: 100%;
  /* Ensure the line spans the entire width of the header */
  height: 1px;
  /* Set the height of the line */
  background-color: #fff;
  /* White color for the line */
}

/* Ensure the body content starts below the fixed headers */
body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  padding-top: 70px;
  /* Adjust based on the combined height of both headers */
}

.menu-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-left: 10px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  font-size: 10.5px;
  font-family: 'Fira Sans', sans-serif;

  line-height: 1;

}

.menu-link:hover {
  text-decoration: none;
  color: #25d96a;
}

.menu-link .icon {
  font-size: 12px;
  /* optional: size the emoji */
  line-height: 1;
}

.menu-link .label {
  margin-top: 4px;
}

.modal-solved {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  color: #333;
  /* Change the font color */
  transition: opacity 0.6s ease;
  /* Smooth transition for opacity */
}




/*This corresponds to the HELP Modal */

.modalhelp {
  display: none;
  position: fixed;

  left: -19px;
  top: 0;
  width: 111%;
  height: 180%;
  overflow: auto;
  color: rgb(0, 0, 0);
  /* Change the font color */
  transition: opacity 0.6s ease;
  /* Smooth transition for opacity */
  border-radius: 5px;
  z-index: 9999;
}

.modalhelp-content {
  background-color: rgba(240, 252, 241, 0.97);
  /* Background color of the textbox */

  padding: 20px;
  /* Adjusted padding to make it taller and wider to the left and enlarge by the bottom */
  border: 2px solid black;
  /* Changed to a thick black border */
  margin: 5% auto;
  border-radius: 5px;
  width: 85%;
  height: 45%;
  font-family: 'Fira Sans Condensed', sans-serif;
  /* Change the font family */
  font-size: 14px;
  /* Change the font size */
  font-weight: normal;
  /* Change the font weight */
  color: rgb(0, 0, 0);
  /* Text color of the textbox */
  max-width: 500px;
  opacity: 0;
  /* Initially hide the modal content */
  transition: opacity 0.3s ease;
  /* Smooth transition for opacity */
}

.modalhelp-content.show {
  opacity: 1;
  /* Show modal content with smooth transition */
}

.modalhelp-content hr {
  border: 1px solid rgb(58, 58, 60);
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* here ends the help modal */


#form-button {


  margin-left: 6px;
  font-family: 'Roboto', sans-serif;
  /* Change the font family */
  font-size: 12px;
  /* Change the font size */
  font-weight: normal;
  /* Change the font weight */
  padding: 2px 4px;
  background-color: rgba(200, 214, 211, 0.857);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#form-button:hover {
  background-color: #f8f8f8;
  /* Light gray on hover */
}



#reset-button {


  margin-left: 10px;
  font-family: 'Roboto', sans-serif;
  /* Change the font family */
  font-size: 12px;
  /* Change the font size */
  font-weight: normal;
  /* Change the font weight */
  padding: 5px 8px;
  background-color: rgb(180, 194, 173);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#reset-button:hover {
  background-color: #f8f8f8;
  /* Light gray on hover */
}




.grid-container {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);

  display: grid;
  grid-template-columns: repeat(4, 80px);
  grid-template-rows: repeat(4, 80px);
  justify-content: center;
  align-content: center;

  background-color: #ffffff;
  border: 1.5px solid #d4d4d4;
  /* gris medio suave para el borde */
  border-radius: 5px;
  /* bordes redondeados */
  padding: 22px;
  /* espaciado interno */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  /* sombra opcional */
}


.grid-playercell {
  cursor: pointer;
  border: 1px solid #ccc;
  /* Softened border */
  border-radius: 10px;
  /* Increased border radius for a smoother look */
  width: 75px;
  /* Slightly increased width for better spacing */
  height: 75px;
  /* Slightly increased height for better spacing */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f8f8;
  /* Light background color */
  font-family: 'Arial', sans-serif;
  /* Arial font for a clean and widely supported typeface */
  font-size: 14px;
  /* Increased font size for better readability */
  color: #333;
  /* Darkened text color for better contrast */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
  transition: all 0.3s ease;
  /* Smooth transition for hover effect */
}

.grid-playercell:hover {
  transform: translateY(-2px);
  /* Lift up slightly on hover for interactive feedback */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Stronger shadow on hover for depth */
}





.grid-cellunsolved {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #660000;
  /* Darker red for text */
  border-radius: 5px;
  background: linear-gradient(45deg, rgb(248, 204, 204), #ffcccc, #ffb8b8, #ffa5a5, #ff9292);
  text-align: center;
  animation: starAnimation 1s forwards;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: line-through;
  border: 2px solid #990000;
  box-shadow: 0 2px 4px #990000;
  margin-left: 3px;
  filter: brightness(0.7);
  /* Darkens the image */
}

.grid-cellunsolved img {
  filter: brightness(0.6);
  /* Darkens the image */
  border-radius: 5px;
  /* Match border radius of cell */
}

.grid-cellsolved {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  font-size: 12px;
  font-weight: bold;
  /* Make the text bolder */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #006600;
  /* Text color */
  border-radius: 5px;
  /* Adjust the value as needed */
  background: linear-gradient(45deg, rgb(220, 246, 218), #a1db9c);
  /* Gradient background transitioning from current color to a lighter shade */

  text-align: center;
  /* Justify text horizontally */
  /* animation: cellFill 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Apply animation */
  animation: starAnimation 1s forwards;
  overflow: hidden;
  /* Hide overflow text */
  text-overflow: ellipsis;
  /* Display ellipsis (...) for overflow text */
  border: 2px solid #006600;
  /* Darker and less intense fluorescent green color */
  box-shadow: 0 2px 4px #006600;
  /* Darker and less intense fluorescent green shadow */
  margin-left: 3px;
  /* Adjust the margin as needed */
}

.grid-cellglobal {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  font-size: 12px;
  font-weight: bold;
  /* Make the text bolder */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #006600;
  /* Text color */
  border-radius: 5px;
  /* Adjust the value as needed */
  background: linear-gradient(45deg, rgb(220, 246, 218), #a1db9c);
  /* Gradient background transitioning from current color to a lighter shade */

  text-align: center;
  /* Justify text horizontally */
  /* animation: cellFill 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Apply animation */
  animation: starAnimation 1s forwards;
  overflow: hidden;
  /* Hide overflow text */
  text-overflow: ellipsis;
  /* Display ellipsis (...) for overflow text */
  border: 2px solid #006600;
  /* Darker and less intense fluorescent green color */
  box-shadow: 0 2px 4px #006600;
  /* Darker and less intense fluorescent green shadow */
  margin-left: 3px;
  /* Adjust the margin as needed */
}


.grid-cellchng {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  font-size: 12px;
  font-weight: bold;
  /* Make the text bolder */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #003d66;
  /* Text color */
  border-radius: 5px;
  /* Adjust the value as needed */
  background: linear-gradient(45deg, rgba(196, 181, 255, 0.6), rgba(188, 178, 233, 0.6));
  /* Gradient background transitioning from current color to a lighter shade */

  text-align: center;
  /* Justify text horizontally */
  /* animation: cellFill 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Apply animation */
  animation: starAnimation 1s forwards;
  overflow: hidden;
  /* Hide overflow text */
  text-overflow: ellipsis;
  /* Display ellipsis (...) for overflow text */
  border: 2px solid rgba(17, 3, 78, 0.6);
  /* azul tenue */
  box-shadow: 0 2px 4px rgba(17, 3, 78, 0.6);
  /* Darker and less intense fluorescent green shadow */
  margin-left: 3px;
  /* Adjust the margin as needed */
}




.grid-cellfod {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b8860b;
  /* Dark goldenrod */
  border-radius: 5px;
  background: linear-gradient(45deg, #ffd700, #ffec8b);
  /* Enhanced gold gradient */
  text-align: center;
  animation: starAnimation 1s forwards;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 2px solid #b8860b;
  /* Dark goldenrod border */
  box-shadow: 0 2px 4px rgba(184, 134, 11, 0.5);
  /* Dark goldenrod shadow */
  margin-left: 3px;
  position: relative;
  /* Required for pseudo-element positioning */
}

/* Optional shimmer effect */
.grid-cellfod::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
  transform: translateX(-100%);
  animation: shimmer 3s;
  animation-iteration-count: 3;
  pointer-events: none;
  /* Ensure it doesn't block clicks */
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}







.grid-cellalreadyused {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  font-size: 12px;
  font-weight: bold;
  /* Make the text bolder */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #424242;
  /* Dark grey text color */
  border-radius: 5px;
  /* Adjust the value as needed */
  background: linear-gradient(45deg, #ececec, #f7f7f7);
  /* Gradient background with greyish colors */
  text-align: center;
  /* Justify text horizontally */
  animation: starAnimation 1s forwards;
  overflow: hidden;
  /* Hide overflow text */
  text-overflow: ellipsis;
  /* Display ellipsis (...) for overflow text */
  border: 2px solid #a5a5a5;
  /* Light grey border */
  box-shadow: 0 2px 4px #b0b0b0;
  /* Light grey shadow */
  margin-left: 3px;
  /* Adjust the margin as needed */
}

@keyframes cellFill {
  0% {
    transform: scale(0.75);
    /* Start with smaller size */
    opacity: 0;
    /* Initially hide the text */
  }

  50% {
    transform: scale(1.1);
    /* Slightly increase size */
    opacity: 1;
    /* Show the text */
  }

  100% {
    transform: scale(1);
    /* Return to normal size */
  }
}

@keyframes cellVibrate {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-2px, -2px);
  }

  50% {
    transform: translate(2px, 2px);
  }

  75% {
    transform: translate(-2px, 2px);
  }

  100% {
    transform: translate(2px, -2px), scale(0.85);
  }
}

@keyframes starAnimation {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(0.92);
  }
}




.grid-puzzlecell {
  border: 0.05px solid black;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Added to center the text horizontally */
  border-radius: 5px;
  /* Adjust the value as needed */

  font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  font-weight: 600;

  font-size: 14px;
  color: #555;
}



.grid-puzzlecell img {
  max-width: 50%;
  max-height: 50%;
  display: block;
  justify-content: center;
  /* horizontally center */
  align-items: center;
  /* vertically center */
  filter: contrast(100%) brightness(90%) blur(0);

}






.coolButton {
  background-color: rgba(5, 44, 31, 0.802);
  /* Green background */
  border: none;
  /* Remove borders */
   font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */

  color: white;
  /* White text */
  padding: 10px 14px;
  /* Padding */
  text-align: center;
  /* Center text */
  text-decoration: none;
  /* Remove underline */
  display: inline-block;
  /* Display as a block element */
  font-size: 12px;
  /* Font size */
  margin: 4px 2px;
  /* Margin */
  cursor: pointer;
  /* Cursor pointer */
  border-radius: 7px;
  /* Rounded corners */
  transition-duration: 0.4s;
  /* Transition duration */
}

.coolButton:hover {
  background-color: #034519;
  /* Darker green on hover */
}


.coolButton2 {
  background-color: rgb(0, 23, 39);
  /* Green background */
  border: 1px solid black;
  /* Black border */
  font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  color: rgb(255, 255, 255);
  /* Black text */
  padding: 6px 10px;
  /* Padding */
  text-align: center;
  /* Center text */
  text-decoration: none;
  /* Remove underline */
  display: inline-block;
  /* Display as a block element */
  font-size: 11px;
  /* Font size */
  margin: 4px 2px;
  /* Margin */
  cursor: pointer;
  /* Cursor pointer */
  border-radius: 8px;
  /* Rounded corners */
  transition-duration: 0.4s;
  /* Transition duration */
}

.coolButton2:hover {
  background-color: #005b90;
  /* Darker green on hover */
  color: rgb(255, 255, 255);
  /* Black text */
}


.coolButton3 {
  background-color: rgb(0, 23, 39);
  /* Darker green on hover */
  ;
  /* Green background */
  border: 1px solid black;
  font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  color: rgb(255, 255, 255);
  /* Black text */
  padding: 4px 8px;
  /* Padding */
  text-align: center;
  /* Center text */
  text-decoration: none;
  /* Remove underline */
  display: inline-block;
  /* Display as a block element */
  font-size: 11px;
  /* Font size */
  margin: 4px 2px;
  /* Margin */
  cursor: pointer;
  /* Cursor pointer */
  border-radius: 8px;
  /* Rounded corners */
  transition-duration: 0.4s;
  /* Transition duration */
}

.coolButton3:hover {
  background-color: #005b90;
  /* Darker green on hover */
  color: rgb(255, 255, 255);
  /* Black text */
}


.coolButton103 {
  background-color: rgb(223, 231, 147);
  /* Darker green on hover */
  ;
  /* Green background */
  border: 1px solid black;
  /* Black border */
  font-family: 'Fira Sans Condensed', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  color: rgb(0, 0, 0);
  /* Black text */
  padding: 4px 8px;
  /* Padding */
  text-align: center;
  /* Center text */
  text-decoration: none;
  /* Remove underline */
  display: inline-block;
  /* Display as a block element */
  font-size: 11px;
  /* Font size */
  margin: 4px 2px;
  /* Margin */
  cursor: pointer;
  /* Cursor pointer */
  border-radius: 8px;
  /* Rounded corners */
  transition-duration: 0.4s;
  /* Transition duration */
}

.coolButton103:hover {
  background-color: #8e9000;
  /* Darker green on hover */
  color: rgb(255, 255, 255);
  /* Black text */
}


.modalq {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-70%, -50%);
  background-color: #f9f9f9;
  padding: 5px 20px 40px;
  /* Adjusted padding to make it taller and wider to the left and enlarge by the bottom */
  border: 1px solid #ccc;
  border-radius: 5px;
  z-index: 9999;
}

.modalq-content {
  width: 100%;
  height: 100%;
  padding: 20px 50px 50px;
  /* Adjusted padding to make it taller and wider to the left and enlarge by the bottom */

  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}




.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-70%, -50%);
  background-color: #f9f9f9;
  padding: 5px 20px 40px;
  /* Adjusted padding to make it taller and wider to the left and enlarge by the bottom */
  border: 1px solid #ccc;
  border-radius: 5px;
  z-index: 9999;
}

.modal-content {
  width: 100%;
  height: 100%;
  padding: 20px 50px 50px;
  /* Adjusted padding to make it taller and wider to the left and enlarge by the bottom */

  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}



.modal input[type="text"] {
  width: 85%;
  padding: 10px;
  margin-bottom: 10px;
  border: 2px solid #ccc;
  border-radius: 3px;

  font-family: "roboto", sans-serif;
}

/* Style for the suggestion list */
#nameList,
#nameElement {
  list-style-type: none;
  padding: 0px;
  margin: 0;
  /* Add this line to remove default margin */
  max-height: 230px;
  /* Adjust the maximum height as needed */
  overflow-y: auto;
  /* Add vertical scroll when content overflows */
  background-color: white;
  /* Background color change on hover */
}

/* Style for each suggestion item */
#nameList li,
#nameElement li {

  padding: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Roboto', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  /* Text color */
  border-bottom: 1px solid #ccc;
  /* Add a fine line below each item */
}

#nameList li:last-child,
#nameElement li:last-child {
  border-bottom: none;
  /* Remove the border from the last item */
}

#nameList li:hover,
#nameElement li:hover {
  background-color: #f0f0f0;
  /* Background color change on hover */
}

#nameElement {
  list-style-type: none;
  padding: 0;
  max-height: 280px;
  /* Adjust the maximum height as needed */
  overflow-y: auto;
  /* Add vertical scroll when content overflows */
}

/* Style for each suggestion item */
#nameElement li {
  list-style-type: none;
  /* Remove default bullet points */
  padding: 9px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Roboto', sans-serif;
  /* You can replace 'Roboto' with your preferred font */
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  /* Text color */
  border-bottom: 1px solid #ccc;
  /* Add a fine line below each item */
}

#nameList li:last-child {
  border-bottom: none;
  /* Remove the border from the last item */
}











.modalarchive {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-60%, -50%);
  /* Adjust the first value (-60%) to move it more to the left */
  background-color: #f9f9f9;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  z-index: 9999;
}

.modalarchive li {
  list-style-type: none;
  /* Remove default bullet points */
}

.dateItem {
  cursor: pointer;
  padding: 10px 16px;
  border-bottom: 1px solid #ccc;
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  min-width: 300px;
  /* Minimum width (adjust as needed) */
  box-sizing: border-box;
  /* Ensure padding is included in width */
}

.dateItem:hover {
  background-color: #f0f0f0;
  /* Change background color on hover */
}

.grid-cellnumber {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Fira Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: black;
  background-color: rgba(200, 214, 211, 0.857);

  /* Apply shake effect every 5 seconds */
  animation: shake 0s ease-in-out 0s 1 alternate;
  animation-duration: 0.5s;
}

/* Define shake animation */
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}


.fluorescent-border {
  border: 2px solid #7fff7f;
  /* Lighter green color */
  box-shadow: 0 0 10px #7fff7f;
  /* Lighter green shadow */
  transition: border-color 1.3s, box-shadow 1.3s;
}

.unfluorescent-border {
  border: 2px solid #006600;
  /* Darker and less intense fluorescent green color */

  box-shadow: 0 0 10px #7fff7f;
  /* Lighter green shadow */
  transition: border-color 1.3s, box-shadow 1.3s;
}

.fluorescent-border2 {
  border: 2px solid #990000;
  /* Darker and less fluorescent red color */
  box-shadow: 0 0 10px #990000;
  /* Darker and less fluorescent red shadow */
}



#spotify-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  /* Optional background color */
  z-index: 1000;
  /* Ensure it stays on top of other elements */
  display: flex;
  justify-content: center;
  align-items: center;
}

#toaster {
  font-family: 'Fira Sans Condensed', sans-serif;
  visibility: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #272d33;
  color: white;
  padding: 80px 26px;
  /* 👈 menos altura, más horizontal */
  border-radius: 8px;
  font-size: 16px;
  z-index: 999999999999;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s;
  width: 500px;
  /* 👈 ancho fijo más alargado */
  max-width: 90%;
  /* 👈 evita que se salga en móviles */
  text-align: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

#toaster.show {
  visibility: visible;
  opacity: 1;
}



#toaster button {
  font-family: 'Fira Sans Condensed', sans-serif;
  padding: 7px 54px;
  background-color: rgb(94, 76, 175);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#toaster button:hover {
  background-color: #4583a0;
}

.grid-container-highlight {
  background-color: rgb(234, 240, 247);
  /* lightsteelblue muy tenue */
}

.grid-container-bordered {
  border: 2px solid rgba(17, 3, 78, 0.6);
  /* azul tenue */
}

.grid-cellnumber-colored {
  background-color: rgba(77, 53, 185, 0.1);
  /* tono sutil */
  color: #1a1a3d;
  /* opcional: azul oscuro para contraste */
}


#background-dimmer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.04;
  z-index: 999;
  /* debajo del modal */
  display: none;
}

body.dimmed {
  filter: brightness(0.4);
}

.hover-row {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  height: 22.25px;
  border-style: solid;
  border-width: 10px;
  transition: background-color 0.1s ease;
}

.hover-row:hover {
  background-color: #e0f0ff;
  /* color al pasar el ratón */
  cursor: pointer;
}


.puzzle-giveup-btn {
  position: fixed;
  bottom: -16%;
  right: 1vw;
  margin-right: 2px;
}

.puzzle-modal-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  /* clave: ocupa toda la pantalla */
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  font-family: 'Fira Sans Condensed', sans-serif;
}

.puzzle-modal-dialog {

  transform: translate(0%, -45%);
  /* 40% en vez de 50% para subirlo un poco */
  position: relative;
  background-color: #eeeeee;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  width: 80%;
  text-align: left;
  font-family: 'Fira Sans Condensed', sans-serif;
}

.puzzle-modal-close {
  color: #aaa;
  float: right;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
}

.puzzle-option-btn {
  text-align: left;
  font-family: 'Fira Sans Condensed', sans-serif;
  display: block;
  margin: 10px 0;
  padding: 10px 20px;
  border: 1px solid black;
  border-radius: 6px;
  background-color: white;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: calc(80% - 20px);
  transition: all 0.2s;
}

.puzzle-option-btn:hover {
  background-color: #e0f0e0;
  border-color: #45a049;
  color: #45a049;
}

.puzzle-modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #0f3b21;
  margin-bottom: 10px;
  text-align: left;
}





#modalsolved {
  position: fixed;
  top: 64%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  min-height: 450px;
  height: 120%;
  background-color: #f4faf7;
  border: 1px solid #b4d3c2;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
  overflow: auto;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.65s;
}

#modalsolved span,
#modalsolved a,
#modalsolved button {
  margin-left: 15px;
  font-family: 'Fira Sans Condensed', sans-serif;
}

#modalsolved img {
  display: block;
  margin: 10px auto;
  height: 70px;
  border: 1px solid black;
  border-radius: 5px;
}

.coolButton31 {
  background-color: white;
  color: black;
  font-size: 10px;
  margin: 5px 6px 5px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.coolButton31:hover {
  background-color: lightgray;
}










#close-solved {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease;
}

#close-solved:hover {
  color: #d33;
}


.rating-container {
  margin-left: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: left;
  /* ← alineación a la izquierda */
  font-size: 0;
  /* ← elimina espacio entre elementos inline */
}

.stars {
  display: inline;
  font-size: 16px;
  cursor: pointer;
  color: #aaa;
  user-select: none;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
}

.stars.selected {
  color: gold;
}

#rating-comment {
  width: 90%;
  font-size: 12px;
  font-family: inherit;
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 4px;
  resize: vertical;
}

#rating-submit {
  font-size: 10px;
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
}

#rating-submit:hover {
  background-color: lightgray;
}

.fshare-block {
  text-align: center;
  margin: 10px 0;
}


.flag-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 5px;
  justify-content: start;
}

.flag-cell {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f0f0f0;
  border: 1px solid #ccc;
}

.header-cell {
  font-weight: bold;
  background-color: #ddd;
}

.no-data {
  color: gray;
  font-size: 12px;
}


.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.loader {
  font-size: 1em;
  color: #555;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}


.highlighted-answer {
  background-color: rgba(255, 183, 77, 0.25); /* naranja claro */
  border-radius: 6px;
  position: relative;
  margin-right: -6px;           /* ← hace que visualmente sea más estrecho */
  max-width: 310px;             /* ← puedes ajustar esto a tu gusto */
  display: inline-block;        /* para que el max-width tenga efecto */
}



/* Modal */
.h5modal {
  position: fixed;
  top: 80px;
  /* ⬅️ Desplazar debajo de la barra .headline */
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  padding: 12px;
  z-index: 1001;
  width: 90vw;
  max-width: 350px;
  max-height: 480px;
  overflow-y: auto;
  /* ⬅️ permite hacer scroll dentro */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  font-family: 'Fira Sans Condensed', sans-serif;
  /* ← aquí */
}

.h5format,
.rating span,
.rating a {
  font-family: 'Helvetica', sans-serif;
}

.h5-card-title,
.h5-challenge-title {
  font-family: 'Fira Sans Condensed', sans-serif;
}



.h5-challenge-subtitle {
  font-family: 'Fira Sans Condensed', sans-serif;
  /* ← aquí */
}

/* Overlay */
.h5-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Botón cerrar */
.h5-close-button {
  position: sticky;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  float: right;
}

/* Título resumen */
.h5title {
  font-weight: bold;
  font-size: 20px;
}

.h5puzzlenum {
  font-weight: normal;
  font-size: 18px;
}

/* Contenedor de cartas */
.h5-card-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  /* separa las dos cartas entre sí */
  margin-top: 16px;
}

.h5-card {
  flex: 1;
  /* que ambas crezcan igual */
  min-width: 0;
  /* importante para evitar desbordes */
  padding: 8px 6px;
  /* ajusta el interior */

  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  /* borde gris claro */
  border-radius: 10px;
  /* bordes redondeados */
  background-color: #fff;
  /* fondo blanco */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  /* sombra sutil */
}

/* Título de la carta */
.h5-card-title {
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 14px;
}

.h5-card {

  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 130px;
  width: 100%;
  max-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.h5-card-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 8px;
  text-align: center;
}

.h5-card-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  margin-bottom: 6px;
  height: 70px;
  /* misma altura para ambas */
}
.completed-success {
  background-color: #e3f9e5; /* verde claro */
}

.completed-fail {
  background-color: #ffe5e5; /* rojo claro */
}
.h5-card-info {
  font-size: 14px;
  margin-bottom: 8px;
  min-height: 20px;
  text-align: center;
}

.h5-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #0047ff;
  font-size: 14px;
  margin-top: 2px;
}











/* Grid de banderas */
.h5-flag-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  width: 60px;
  /* ancho fijo igual que la imagen aprox */
  height: 60px;
  /* mismo alto que .h5-flag-img */
}

.h5-flag-grid span {
  font-size: 14px;
  margin: 2px;
  width: 16px;
  height: 16px;
  text-align: center;
}

.h5-completed-count,
.h5-flag-name {
  font-weight: normal;
  /* Quita negrita */
  font-size: 14px;
  margin-bottom: 6px;
  text-align: center;
}

/* Enlaces */
.h5-share-link,
.h5-flag-details {
  display: inline-block;
  margin-top: 10px;
  color: #0047ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.h5-share-link i,
.h5-flag-details i {
  font-size: 16px;
}

/* Imagen de bandera */
.h5-flag-img {

  height: 50px;
  border: 1px solid black;
  border-radius: 5px;

  max-height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto;

}

/* Nombre de país */
.h5-flag-name {
  margin-bottom: 8px;
  font-weight: normal;
  font-size: 15px;
}

.h5-challenge-box {
  background: #f3f5f9;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  text-align: left;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  /* sombra sutil */
}

.h5-challenge-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}

.h5-challenge-subtitle {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.h5-challenge-button {
  background-color: #0d1e30;
  color: white;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
      font-family: 'Fira Sans Condensed', sans-serif;
}

.h5-challenge-button:hover {
  background-color: #142e4a;
}
.h5-challenge-button.play {
  background-color: #0d1e30; /* mismo azul por defecto */
}

.h5-challenge-button.play:hover {
  background-color: #142e4a;
}

.h5-challenge-button.done {
  background-color: #3d2a91; /* verde completado */
}



.h5-rating {
  text-align: left;
  font-size: 14px;
  margin: 2px 0 10px 0;
  /* menos espacio arriba y abajo */
  color: #444;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  /* ← más espacio arriba */
}

.h5-stars i {
  color: #f5c518;
  font-size: 11.25px;
  margin-right: 2px;
  vertical-align: middle;
}

.h5-score {
  font-size: 13px;
  color: #444;
  margin-left: 4px;
}

.h5-global-box {
  padding: 10px;
  margin: 10px auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid #ddd;
  /* borde gris claro */
  border-radius: 10px;
  /* bordes redondeados */
  background-color: #fff;
  /* fondo blanco */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  /* sombra sutil */
}

.h5-global-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
  text-align: left;
}

.h5-global-subtitle {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  text-align: left;
}

.h5-global-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px;
  margin-top: -10px;
  /* súbelo hacia arriba */
}

/* Celdas internas del grid */
.h5-global-grid>div {
  width: 60px;
  height: 60px;
  font-size: 12px;
  padding: 3px;
  border-radius: 5px;
  position: relative;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-weight: 600;
  /* o 400 si 300 no está disponible */
}

/* Porcentaje sobre bandera */
.h5-global-grid .percentage-label {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  bottom: 2px;
  right: 4px;
}


.h5-global-header {
  font-weight: bold;
  font-size: 13px;
  background: #fff;
  border-radius: 6px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid #ccc;
}

.h5-global-cell {
  background: #fff;
  border: 2px solid #2ecc71;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: bold;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner {
  background: transparent;
  border: none;
}

/* Bloques de RATE y STATS */
.h5-rate-box {
  background: #f9f9f9;
  padding: 16px;
  margin-top: 16px;
  font-family: sans-serif;
  font-size: 14px;
  border: 1px solid #ddd;
  /* borde gris claro */
  border-radius: 10px;
  /* bordes redondeados */
  background-color: #fff;
  /* fondo blanco */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  /* sombra sutil */
}

/* Títulos */
.h5-rate-title,
.h5-stats-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.h5-rate-box {
  margin-top: 16px;
  padding: 16px;
  background-color: #f9f9f9;
  border-radius: 10px;
  font-family: 'Fira Sans Condensed', sans-serif;
}



.h5-rate-subtitle {
  font-size: 14px;
  margin-bottom: 8px;
  color: #444;
}


.h5-rating-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px; /* Bajamos el espacio hacia el comentario */
  margin-top: 4px; /* Un poco de separación desde el subtítulo */
}

.h5-rating-stars i {
  font-size: 22px;
  cursor: pointer; /* ← esto activa el puntero de mano */
  margin: 0 3px;
  transition: color 0.2s;
  color: gold;
}
.h5-rating-stars i.hovered,
.h5-rating-stars i.selected {
  color: gold;
}
.h5-rate-comment {
    font-size: 16.1px;
  margin-top: 2px;  /* Más espacio desde las estrellas */
  margin-bottom: 2px;
}


.h5-score {
  font-size: 14px;
  color: #444;
}

.h5-rate-comment {
  width: 90%;
  max-width: 300px;
  height: 60px;
  resize: vertical;
  font-family: inherit;
  font-size: 13px;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.h5-rate-submit {
  padding: 6px 12px;
  font-size: 13px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
    margin-bottom: 2px;
      font-family: 'Reddit Sans Condensed', sans-serif;
}

.h5-rate-submit.loading {
  position: relative;
  color: transparent;
}
.h5-rate-submit.loading {
  position: relative;
  color: transparent; /* Oculta texto sin cambiar tamaño del botón */
  pointer-events: none;
}

.h5-rate-submit.loading::after {
  content: '· · ·';
  font-size: 32px;
  color: #555;
  display: inline-block;
  animation: glowDots 1.2s infinite ease-in-out;
  letter-spacing: 4px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes glowDots {
  0%   { opacity: 0.2; color: #999; }
  50%  { opacity: 1; color: #fff; text-shadow: 0 0 8px #aaa; }
  100% { opacity: 0.2; color: #999; }
}

.h5-difficulty-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-family: inherit;
}

.h5-difficulty-label {
  font-weight: bold;
  font-size: 0.95em;
  color: #333;
}

.h5-difficulty-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95em;
  background-color: #fff;
  color: #333;
  transition: border 0.3s ease;
}

.h5-difficulty-select:focus {
  outline: none;
  border-color: #666;
}

.h5-comments-preview {
  margin-top: 12px;
  font-family: 'Fira Sans Condensed', sans-serif;
}

.h5-comments-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.h5-comment-bubble {
  background-color: #eef3f8;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  max-width: 100%;
  position: relative;
  border-left: 4px solid #ccddee;
}
.h5-link {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
}
.h5-stats-box {
  padding: 10px;
  background: #fff;

  margin: 12px auto;
  font-family: 'Fira Sans Condensed', sans-serif;

  border: 1px solid #ddd;
  /* borde gris claro */
  border-radius: 10px;
  /* bordes redondeados */
  background-color: #fff;
  /* fondo blanco */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  /* sombra sutil */
}

.h5-stats-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 6px;
}

.h5-stats-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  font-size: 14px;
}

.h5-stats-grid div:last-child {
  text-align: right;
  white-space: nowrap;
}

.h5-link {
  display: inline-block;
  margin-top: 10px;
  color: #0047ff;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.h5-stats-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
}

.h5-stats-list>div:nth-child(odd) {
  text-align: left;
}

.h5-stats-list>div:nth-child(even) {
  text-align: right;
  min-width: 80px;
}
.h5-admin-reply {
  margin-left: 2em;
  background-color: #e0f0ff; /* azul cielo */
  border-left: 4px solid #3399ff; /* azul moderado */
  font-size: 0.95em;
  padding: 0.5em;
  border-radius: 4px;
}
.h5-loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  height: 80px;
  background: linear-gradient(90deg, #f0f0f0, #fafafa);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.h5loader {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  
  position: relative;
  display: inline-block;
  padding-left: 24px;
}

.h5loader::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 3px solid #1e88e5;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.h5-challenge-msg {
  background-color: #eef3f8;
  color: #333;
  padding: 14px 16px;
  margin-top: 12px;
  border-left: 4px solid #4a90e2;
  border-radius: 6px;
  font-size: 14px;
}

.h5-challenge-msg .h5-challenge-text {
  margin-bottom: 12px;
  white-space: pre-line;
}

.h5-challenge-go {
  padding: 6px 20px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.challenge-go:hover {
  background-color: #3a7ac8;
}





.flag-details-list {
  list-style: none;
  padding: 0;
  margin-left: 15px;
}

.flag-details-list li {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 12px;
  margin-bottom: 5px;
}



#flagOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

#flagModal {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  padding: 20px;
  z-index: 9999;
  width: 90vw;
  max-width: 350px;
  max-height: 480px;
  min-height: 480px;
  overflow-y: auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  font-family: 'Fira Sans Condensed', sans-serif;
  text-align: center;
}



.flag-title {
  margin-top: 0;
  font-size: 18px;
  font-weight: bold;
}

.flag-image {
  width: 240px;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 7px;
  border: 2px solid black;
  cursor: pointer;
}

.flag-details-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  text-align: left;
}

.flag-details-list li {

  margin-bottom: 1px;          /* ← Antes era 5px */
  line-height: 1.2;            /* ← Más compacto */
    font-size: 12px;
  color: rgb(56, 56, 56);

  text-align: left;
}
.flag-close-btn {
  margin-top: 12px;
  padding: 6px 14px;
  background-color: #004a35;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.flag-close-btn:hover {
  background-color: #00664e;
}
.flag-description {
  font-size: 80;
  text-align: justify; /* ← This justifies the text */
  line-height: 1.3;
  margin-bottom: 10px;
}

.wiki-link-btn {
  background-color: #0366d6;
  color: white;
  font-size: 12px;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.wiki-link-btn:hover {
  background-color: #024fa2;
}
.flag-close-x {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}

.flag-close-x:hover {
  color: #000;
}
.flag-color-toast {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 13.5px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
    font-family: 'Fira Sans Condensed', sans-serif;
}



.low-special-message {
  color: darkblue;
  font-size: 11px;
  user-select: none; /* opcional, para evitar selección */
  font-family: 'Fira Sans Condensed', sans-serif;
background-color: rgba(173, 216, 230, 0.6);
}


.common-disclaimer {
  color: #2f3a42;
  font-size: 13px;
   font-family: 'Fira Sans Condensed', sans-serif;
}

.common-disclaimer-link {
  color: #2f3a42;
  text-decoration: none;
}

.common-disclaimer-link:hover {
  text-decoration: underline;
}

.icon-spacing {
  margin-right: 10px;
}


.loading-container {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Posición más alta */
  height: 80vh;
  padding-top: 25vh; /* Ajusta la altura desde arriba */
}

.loading-dot {
  font-size: 20px;
  opacity: 0.3;
  transition: opacity 0.5s;
}

.loading-dot.active {
  opacity: 1;
}



/* === Global Grid === */
.h5-global-grid{
  background:#fff; display:grid; grid-template-columns:repeat(4,1fr);
  grid-template-rows:repeat(4,1fr); gap:4px; padding:10px; border-radius:10px;
}
.h5-cell{ position:relative; opacity:0; transition:opacity .5s; }
.h5-cell--show{ opacity:1; }
.h5-cell--header{ padding-left:8px; text-align:center; }

/* Etiqueta % dentro de cada celda */
.cell-label{
  position:absolute; bottom:4px; right:6px; font-size:1.1em; font-weight:700;
  background:rgba(255,255,255,.7); padding:3px 6px; border-radius:4px;
}

/* === Modal flotante de respuestas === */
.fg-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:999; display:block;
}
.fg-modal{
  position:fixed; top:80px; left:50%; transform:translateX(-50%);
  background:#fff; border-radius:12px; padding:20px; z-index:2000;
  width:90vw; max-width:350px; max-height:480px; min-height:480px;
  overflow-y:auto; box-shadow:0 0 15px rgba(0,0,0,.3);
  text-align:left; font-family:'Fira Sans Condensed',sans-serif;
}
.fg-header{
  position:sticky; top:0; background:#fff; z-index:1001;
  display:flex; justify-content:space-between; align-items:center;
  padding:4px 8px;
}
.fg-close{
  font-size:18px; background:none; border:none; cursor:pointer; line-height:1; height:20px;
}

/* Lista interna */
.fg-list{
  list-style:none; padding:0 16px 0 0;  /* padding-right separa del scroll */
  margin:0; max-height:400px; overflow-y:auto; box-sizing:border-box;
}
.fg-subtitle{
  margin:0 0 6px; font-size:13px; font-weight:700;
  font-family:'Fira Sans Condensed',sans-serif; text-transform:uppercase; letter-spacing:.5px;
  text-align:center;
}
.fg-subtitle--regionals{ margin:16px 0 14px; }
.fg-sep{ width:100%; border-top:1px solid #ccc; margin:12px 0; }

/* Fila */
.fg-li{
  display:flex; align-items:center; gap:10px; margin-bottom:8px; cursor:pointer;
  font-family:Roboto,sans-serif; font-size:13px;
  flex-wrap:nowrap; white-space:nowrap; overflow:hidden;
}
.fg-li.highlighted-answer{ outline:1px dashed #8bc34a; outline-offset:2px; }

/* Bandera + nombre */
.fg-flag{ width:24px; height:17px; border-radius:4px; border:1px solid #ccc; flex-shrink:0; }
.fg-name{
  min-width:0; max-width:140px; flex:0 1 140px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; text-align:left;
}

/* Barra + porcentaje */
.fg-barwrap{ display:flex; align-items:center; gap:6px; flex:1 1 auto; min-width:0; }
.fg-barbox{ width:100%; min-width:80px; height:14px; background:#eee; border-radius:4px; overflow:hidden; }
.fg-bar{ height:100%; }
.fg-pct{ font-size:11px; font-weight:700; flex-shrink:0; white-space:nowrap; }

/* Colores por rareza */
.fg-unique{ color:#D81B60; }
.fg-rare{ color:#ff7f0e; }
.fg-frequent{ color:#1B5E20; }
.fg-regionals{ color:#555; }
:root {
  --bar-w: 110px; /* ancho fijo de todas las barras */
}


.flag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  cursor: pointer;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  padding-right: 12px; /* menos separación */
}

.flag-item img {
  width: 24px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

.flag-item .flag-name {
  flex: 0 1 110px;
  min-width: 0;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.flag-item .bar-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;              /* poco espacio entre barra y % */
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  margin-left: 8px;
  padding-right: 8px;    /* más cerca del margen derecho */
}

.flag-item .bar-container {
  flex: 0 0 var(--bar-w); /* ancho fijo */
  width: var(--bar-w);
  height: 14px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.flag-item .bar {
  height: 100%;
  transition: width 0.2s ease; /* animación suave opcional */
}

.flag-item .percent-label {
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  white-space: nowrap;
}

.flag-list {
  padding-right: 12px; /* igual que el li */
  overflow-x: hidden;
}
