html body {
    background-color: #ededf8a8;
    color: #333;
    margin: 0;
    height: 100vh;
}

@keyframes sparkle {
    0%, 100% {
 
    }
    50% {
        text-shadow: 
            0 0 5px gold, 
            0 0 10px gold, 
            0 0 15px #FFD700, 
            0 0 20px #FFD700;
    }
}

.sparkle {
    animation: sparkle 1.5s forwards; /* Use forwards to maintain the final state */
}



.headline {
    background-color: rgb(2, 2, 32);
    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);
}

.headline-text {
    flex-grow: 1;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.headline-line {
    width: 100%;
    height: 1px;
    background-color: #fff;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    margin: 0;
    position: relative;
    background-color: #f5f5f5;
}

.modal-solved {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    color: #333;
    transition: opacity 0.6s ease;
}

.format10 {
    font-weight: bolder;
    font-family: 'Fira sans condensed', sans-serif;
    font-size: 16px;
    color: #07015e;
    padding: 6px;
    margin-bottom: 20px;
    background-color: rgba(7, 1, 94, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.formatzero {
    font-weight: bold;
         font-family: 'Fira sans condensed', sans-serif; /* Use Roboto font for the text */
    font-size: 12px;
     color: rgb(0, 0, 0);
}

.format12 {
    font-weight: 1000;
         font-family: 'Fira sans condensed', sans-serif; /* Use Roboto font for the text */
    font-size: 15px;
    
    
}

.format1 {
    font-weight: bold;
    font-family: 'Fira sans condensed', sans-serif;
    font-size: 14px;
}

.format2 {
    font-family: 'Fira sans condensed', sans-serif;
    font-weight: bolder;
    font-size: 14px;
}

.format3 {
    font-size: 18px;
    text-transform: uppercase;
}

.format4 {
    color: green;
    font-weight: bolder;
    font-family: 'Fira sans condensed', sans-serif;
    font-size: 14px;
}

.format5 {
    font-weight: bold;
    font-family: 'Fira sans condensed', sans-serif;
    font-size: 14px;
    color: #411d1d;
}

.modalhelp {
    display: none;
    position: fixed;
    left: -15px;
    top: 0;
    width: 110%;
    height: 140%;
    overflow: auto;
    color: rgb(0, 0, 0);
    transition: opacity 0.6s ease;
    border-radius: 5px;
    z-index: 9999;
}

.modalhelp-content {
    background-color: rgba(218, 232, 252, 0.98);
    padding: 20px;
    border: 2px solid black;
    margin: 5% auto;
    border-radius: 5px;
    width: 80%;
    font-family: 'Fira sans condensed', sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: rgb(10, 0, 37);
    max-width: 500px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modalhelp-content.show {
    opacity: 1;
}

.modalhelp-content hr {
    border: 1px solid rgb(58, 58, 60);
}

.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;
}


#random-button {


    margin-left: 5px;
    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(188, 186, 192); 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#random-button:hover {
    background-color: #f8f8f8; /* Light gray on hover */
}


#archive-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(195, 196, 221); 
    color: rgb(138, 45, 45);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#form-button:hover {
    background-color: #f8f8f8; /* Light gray on hover */
}


#form-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(195, 196, 221); 
    color: rgb(138, 45, 45);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#archive-button:hover {
    background-color: #f8f8f8; /* Light gray on hover */
}




#help-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(195, 196, 221); 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#help-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(188, 186, 192); 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#reset-button:hover {
    background-color: #f8f8f8; /* Light gray on hover */
}

#twitter-button {


    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(188, 186, 192); 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#twitter-button:hover {
    background-color: #f8f8f8; /* Light gray on hover */
}



.grid-container {
  position: absolute;
  top: calc(15%); /* Adjust this value as needed */
  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;
}

.grid-playercell {
  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: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555151;
  border-radius: 5px;
  background: linear-gradient(45deg, rgb(204, 199, 199),rgb(196, 192, 192), rgb(201, 199, 199));
  text-align: center;
  animation: starAnimation 1s forwards;
  overflow: hidden;
  text-overflow: ellipsis;
 
  border: 2px solid #4e4c4c;
  box-shadow: 0 2px 4px #3f3e3e;
  margin-left: 3px;
    filter: brightness(0.5); /* Darkens the image */
}

.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: 11px;
  font-weight: bold; /* Make the text bolder */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000a66; /* Text color */
  border-radius: 5px; /* Adjust the value as needed */
  background: linear-gradient(45deg, rgb(218, 231, 246), #9cb9db); /* 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 #1f0066; /* Darker and less intense fluorescent green color */
  box-shadow: 0 2px 4px #020066; /* Darker and less intense fluorescent green shadow */
  margin-left: 3px; /* Adjust the margin as needed */
}


.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: 11px;
  font-weight: bold; /* Make the text bolder */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #665300; /* Text color */
  border-radius: 5px; /* Adjust the value as needed */
  background: linear-gradient(45deg, rgb(220, 246, 218), #dbcf9c); /* 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 #775820; /* Darker and less intense fluorescent green color */
  box-shadow: 0 2px 4px #867a0f; /* Darker and less intense fluorescent green 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: 1px solid rgba(0, 0, 255, 0.2); /* Light blue border */
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 20px; /* More pronounced rounding */
  font-family: 'Fira sans condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8em;

}



.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: rgb(4, 2, 32); /* 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: 8px; /* Rounded corners */
    transition-duration: 0.4s; /* Transition duration */
}

.coolButton:hover {
    background-color: #3b367c; /* Darker green on hover */
}


.coolButtonScore {
    background-color: rgba(4, 2, 32, 0); /* Green background */
    border: none; /* Remove borders */
    font-family: 'Fira sans condensed', sans-serif; /* You can replace 'Roboto' with your preferred font */

    color: rgb(10, 0, 26); /* 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: 11px; /* Font size */
    margin: 4px 2px; /* Margin */
    cursor: pointer; /* Cursor pointer */
    border-radius: 8px; /* Rounded corners */
    transition-duration: 0.4s; /* Transition duration */
}

.coolButtonScore:hover {
    background-color: #d6d4ee; /* Darker green on hover */
}


.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: 8px;
  margin-bottom: 10px;
  border: 5px solid #ccc;
  border-radius: 3px;
  font-family: "Inter", sans-serif;
}
/* Style for the suggestion list */
#nameList,
#nameElement {
  list-style-type: none;
  padding: 0;
  margin: 0; /* Add this line to remove default margin */
  max-height: 160px; /* Adjust the maximum height as needed */
  overflow-y: auto; /* Add vertical scroll when content overflows */
}

/* Style for each suggestion item */
#nameList li,
#nameElement li {
  
  padding: 7px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Roboto', sans-serif; /* You can replace 'Roboto' with your preferred font */
  font-size: 10px;
  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: 200px; /* 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: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Roboto', sans-serif; /* You can replace 'Roboto' with your preferred font */
  font-size: 10.25px;
  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 */
}


/* Más alta cada línea */
#nameList li,
#nameElement li {
  padding: 10px 8px !important;    /* más espacio arriba y abajo */
  line-height: 1.8 !important;     /* altura de línea mayor */
  min-height: 10px !important;     /* garantiza más altura */
  font-size: 12px !important;      /* texto un pelín más grande */
    font-family: 'Fira Sans', sans-serif !important; /* fuente Fira Sans */
}

/* Lista más larga antes de scroll */
#nameList,
#nameElement {
  max-height: 200px !important;    /* más espacio para mostrar resultados */
  overflow-y: auto;
}

.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;
}








.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: 10px ; 
  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; /* Use a cool font */
    font-size: 12px; /* Adjust font size */

}

.dateItem:hover {
    background-color: #f0f0f0; /* Change background color on hover */
}



.grid-cellnumber {
  width: 50px; /* Increased width for better readability */
  height: 50px; /* Increased height for better spacing */
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  font-size: 15px; /* Increased font size for better legibility */
  font-weight: 700; /* Added font weight for a more professional look */
  text-align: center;
  border-radius: 4px; /* Increased border radius for smoother edges */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Enhanced shadow effect for depth */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
  background-color: #d2d4d8c4;
  color: black;
}


.fluorescent-border {
    border: 2px solid #7fe5ff; /* Lighter green color */
    box-shadow: 0 0 10px #7ff0ff; /* Lighter green shadow */
    transition: border-color 1.3s, box-shadow 1.3s;
}

.unfluorescent-border {
  border: 2px solid #00665e; /* Darker and less intense fluorescent green color */

    box-shadow: 0 0 10px #7ffff4; /* 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 */
}



.coolButton2 {
    background-color: rgb(11, 1, 58); /* 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 */
}


.coolButton33 {
    background-color: rgb(81, 74, 0); /* 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 */
}

.coolButton33:hover {
    background-color: #005b90; /* Darker green on hover */
     color: rgb(255, 255, 255); /* Black text */
}

#save-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(195, 196, 221); 
    color: rgb(138, 45, 45);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#save-button:hover {
    background-color: #f8f8f8; /* Light gray on hover */
}


.coolButton3 {
background-color:  rgb(0, 23, 39); /* 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(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 */
}
#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;
}























/* 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: 14.75px;
  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;
}







htop-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.htop-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.htop-toggle-switch {
  display: inline-flex;
  border: 1px solid #90caf9;
  border-radius: 999px;
  overflow: hidden;
  font-family: 'Fira Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  background-color: #e3f2fd;
  line-height: 1;
  height: 22px;
  gap: 0px;
}

.htop-toggle-option {
  padding: 2px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}



.htop-cell {
  opacity: 0;
  transition: opacity 0.5s;
  position: relative;
}

.htop-cell-label {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 1.1em;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 6px;
  border-radius: 4px;
}

.htop-modal {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  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, 0.3);
  text-align: left;
  font-family: 'Fira Sans Condensed', sans-serif;
}

.htop-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.htop-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

.htop-modal-headline {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 13px;
  margin-top: 10px;
  font-weight: 500;
}

.htop-flag-list {
  list-style: none;
  padding: 0;
}

.htop-subtitle {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: bold;
  font-family: 'Fira Sans Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.htop-rarity-label {
  font-size: 12px;
  font-weight: bold;
  margin: 8px 0 4px;
}

.htop-flag-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  gap: 10px;
  cursor: pointer;
}

.htop-flag-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.htop-flag-name {
  min-width: 160px;
  max-width: 160px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  flex-shrink: 0;
}

.htop-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.htop-bar-container {
  width: 100px;
  height: 14px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.htop-bar-fill {
  height: 100%;
}

.htop-percent-label {
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

.htop-divider {
  width: 100%;
  border-top: 1px solid #ccc;
  margin: 10px 0 6px;
}

.htop-separator {
  width: 100%;
  border-top: 1px solid #ccc;
  margin: 12px 0;
}






.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;
}




.highlighted-answer {
  background-color: rgba(255, 183, 77, 0.25); /* naranja claro */
  border-radius: 6px;
  
}



.grid-puzzlecell img.flag-3c {
  width: 34px !important;
  height: 23.8px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill;
  border-radius: 10%;
  display: block;
  margin: 0 auto;
 
}