/* === GENERAL PAGE STYLING === */
@font-face {
    font-family: 'Compacta';
    src: url('../IMAGES/Compacta-Bold.woff2') format('woff2'),
         url('../IMAGES/Compacta-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {
    margin-left: 20px;
    margin-right: 20px;
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    font-family: 'Compacta', sans-serif; /* Default font */
    background: url('../IMAGES/BACKGROUNDFINAL.png') no-repeat center center fixed;
    background-size: cover; /* Ensures it covers the whole screen */
    background-attachment: fixed; /* Keeps the background from moving when scrolling */
    text-align: center;
    margin: 0;
    padding: 0;
    color: white; /* Makes text white by default */
    overflow: auto; /* Makes the entire page scrollable */
    text-shadow:rgba(0, 0, 0, 0.5)
}

/* === Apply Text Stroke (Black Outline Around Letters) === */
h1, h2, h3, p, .indicator-label, button {
    text-shadow: 
        -1px -1px 0 black, 
         1px -1px 0 black, 
        -1px  1px 0 black, 
         1px  1px 0 black; /* Creates a bold black outline */
    color: white; /* Text remains white */
}

/* === MAIN CONTAINER === */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Adjusts dynamically based on content */
    padding-bottom: 50px; /* Adds space at the bottom for long scrolling */
}

/* === LOGO === */
.logo {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;  /* Center vertically */
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Ensure the image resizes properly */
.logo img {
    width: 380px;  /* Adjust width */
    height: auto;  /* Maintain aspect ratio */
    max-width: 100%;  /* Ensure it remains responsive */
}

/* Game mode Selector */
.mode-bar-wrapper {
    margin-top: 0px;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .mode-bar {
    display: flex;
    gap: 18px;
    align-items: center;
    background: none;
  }
  
  .mode-icon {
    width: 70px;
    height: 70PX;
    background-color: #1e1e1e;
    border: 3px solid #888;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
  }
  
  .mode-icon img {
    width: 50px;
    height: 50px;
    pointer-events: none;
  }
  
  .mode-icon:hover {
    border-color: gold;
    transform: scale(1.07);
  }

  .mode-icon:hover .mode-label {
    opacity: 1;
    transform: translateY(0);
  }
  
  .mode-icon.active {
    border-color: orange;
    box-shadow: 0 0 10px rgba(255,165,0,0.6);
  }
  .mode-label {
    position: absolute;
    top: 65px;
    color: white;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black,
                 -1px 1px 0 black, 1px 1px 0 black;
  }
  
  .check {
    position: absolute;
    bottom: -8px;
    right: -6px;
    background: #2ecc71;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: bold;
  }

/* INFO CONTAINER */

.info-container {
    display: flex;
    justify-content: center;
    background: #333232; /* Light grey background */
    padding: 10px;
    margin-bottom: 8px;
    gap: 20px;
    border-radius: 8px;
    /*border: 2px solid black; /* Added black border */
    border: 2px solid #b6a232; /* Gold Border */ 
}

/*MODAL BOX STARTS*/

/* === Fighter Roster Modal === */
.fighter-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 500px;
    background-color: #1E1E1E;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 2px solid #C4A26A; /* Gold border */
}

/* Modal Header */
.fighter-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    border-bottom: 2px solid #C4A26A;
    padding-bottom: 10px;
}

/* Close Button */
.close-fighter {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background-color: #C4A26A;
    border-radius: 50%;
    padding: 5px 10px;
    text-align: center;
}

.close-fighter:hover {
    background-color: red;
}

/* Scrollable Fighter List Container */
.fighter-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: #2B2B2B;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    text-align: left;
    color: white;
}

/* Individual Fighter Name */
.fighter-container div {
    background-color: #3B3B3B;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: white;
    text-align: left;
    font-size: 14px;
}

/* Fighter Name Styling */
.fighter-container div strong {
    color: white;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}


/* Patch Notes Image Button */
/* Patch Notes Modal */
.patch-modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 500px;
    background-color: #1E1E1E;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 2px solid #C4A26A; /* Gold border */
}

/* Modal Header */
.patch-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    border-bottom: 2px solid #C4A26A;
    padding-bottom: 10px;
}

/* Close Button */
.close-patch-notes {
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background-color: #C4A26A;
    border-radius: 50%;
    padding: 5px 10px;
    text-align: center;
    position: absolute;
    top: 10px;
    right: 10px;
}

.close-patch-notes:hover {
    background-color: red;
}

/* Scrollable Patch Notes Container */
.patch-notes-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: #2B2B2B;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    text-align: left;
}

/* Individual Patch Note Entry */
.patch-notes-container div {
    background-color: #3B3B3B;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: white;
    text-align: left;
    font-size: 14px;
}

/* Date Formatting */
.patch-notes-container div strong {
    color: #C4A26A;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

/* Patch Notes Text */
.patch-notes-container div span {
    color: #B3B3B3;
    font-style: italic;
}

/* Tooltip Styling */
/* Ensure the image size stays small */



/* STREAK COUNTER STYLE */

.fire-gif {
    position: relative;
    cursor: pointer;
    width: 50px;  /* Adjust based on your desired size */
    height: 40px; /* Maintain aspect ratio */
    display: inline-block; /* Ensures it doesn't stretch */
}

#streakContainer {
    position: relative;
    display: inline-block;
  }
  
  
  #streakOverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    pointer-events: none;
    color: white; /* or whatever base text color */
    text-shadow:
        -1px -1px 0 black,
         1px -1px 0 black,
         -1px  1px 0 black,
         1px  1px 0 black;
  }

  

.tooltip-hover {
    position: relative;
    cursor: pointer;
    width: 40px;  /* Adjust based on your desired size */
    height: auto; /* Maintain aspect ratio */
    display: inline-block; /* Ensures it doesn't stretch */
}

/* Tooltip Styling */
.tooltip-hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Show Tooltip on Hover */
.tooltip-hover:hover::after {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* === CONTACT POPUP (Same Style as Patch Notes) === */
/* === CONTACT MODAL (Styled Identical to Patch Notes) === */
.contact-modal {
    display: none;
    position: fixed; /* Ensure it's positioned relative to the viewport */
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 500px;
    background-color: #1E1E1E;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 2px solid #C4A26A;
}

/* Modal Content */
.contact-modal-content {
    position: relative;
}

/* Modal Header */
.contact-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    border-bottom: 2px solid #C4A26A;
    padding-bottom: 10px;
}

/* Close Button */
.close-contact {
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background-color: #C4A26A;
    border-radius: 50%;
    padding: 5px 10px;
    text-align: center;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2000;
}

.close-contact:hover {
    background-color: red;
}

/* Ensure no inherited styles affect positioning */
.close-contact a {
    text-decoration: none;
    color: inherit;
}

/* Scrollable Contact Container */
.contact-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: #2B2B2B;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    text-align: left;
}

/* Individual Contact Entry */
.contact-entry {
    background-color: #3B3B3B;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: white;
    text-align: left;
    font-size: 14px;
}

/* Contact Entry Labels */
.contact-entry strong {
    color: #C4A26A;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

/* Contact Links */
.contact-entry span a {
    color: #B3B3B3;
    text-decoration: none;
    font-style: italic;
}

.contact-entry span a:hover {
    color: #ffffff;
}

/* MODAL ENDS */

/* === COLOR INDICATORS HEADER === */
.color-indicators-header {
    font-size: 18px;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
}

/* === FEEDBACK INDICATORS CONTAINER (Now with Black Border) === */
.feedback-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #333232; /* Light grey background */
    padding: 15px;
    padding-bottom: 10px;
    margin-top: 10px;
    gap: 8px;
    border-radius: 8px;
    /*border: 2px solid black; /* Added black border */
    border: 2px solid #b6a232; /* Gold Border */
}

/* Feedback images */
.feedback-item {
    width: 50px;
    height: 50px;
    object-fit: contain; /* Ensures images fit properly */
}

.feedback-container-div {
    display: flex;
    flex-direction: row;
    gap: 20px;

}

/* Labels under each indicator */
.indicator-label {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
}

/* === INPUT BOX (Now with Black Border) === */
.input-box {
    display: flex;
    align-items: center;
    background: #333232;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    border: 2px solid #b6a232; /* Gold Border */
}

input {
    width: 250px;
    padding: 10px;
    font-size: 16px;
    border: none;
    outline: none;
}

button {
    padding: 10px 15px;
    background: red;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.input-box button {
    margin-left: 10px;
}

#resetGame {
    margin-top: 20px; /* Separate spacing for reset button */
}

button:hover {
    background: darkred;
}

/* === PREVIOUS GUESSES CONTAINER (Now Centered) === */
.previous-guesses-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;  /* Centers all content inside */
    justify-content: center;
    width: 90%;
    max-width: 900px;
}

/* === WRAPPER TO CENTER HEADER AND GUESSES === */
.guess-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the table */
    justify-content: center;
    width: fit-content; /* Ensures it only takes up necessary space */
    margin: auto; /* Ensures it is centered */
}

/* === HEADER ROW (Now 50x50px and Centered) === */
/* === HEADER ROW (Transparent, Lower Text, and Underline) === */
.guess-header {
    display: grid;
    grid-template-columns: repeat(8, 80px);
    font-weight: bold;
    color: white;
    text-align: center;
    height: 80px;
    align-items: flex-end; /* Moves text towards the bottom */
    font-size: 12px;
    gap: 12px;
    justify-content: center;
    background-color: transparent; /* Makes background transparent */
    margin-bottom: 5px; /* Optional slight gap */
    gap: 10px
}

.guess-header div {
    display: flex;
    align-items: flex-end; /* Moves text towards the bottom */
    justify-content: center;
    height: 30px; /* Lower the text height area */
    padding-bottom: 5px; /* Gives a bit of space to lower the text visually */
    font-size: 14px;
    text-align: center;
    border-bottom: 2px solid white; /* Underline */
    background-color: transparent; /* No background color */
}

/* === PREVIOUS GUESSES LIST (Rows Now Centered) === */
.guess-row {
    display: grid;
    grid-template-columns: repeat(8, 80px);
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
}

/* === HINT BOXES (Now Perfectly Square at 50x50px & Centered) === */
/* === HINT BOXES (Now with Border and Inner Shadow) === */
/* === HINT BOXES (Flip Animation + Style) === */
.hint-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    background-size: cover;
    background-position: center;
    border-radius: 0px;
    border: 1px solid white;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    text-align: center;
    word-wrap: break-word;
    padding: 5px;
    box-sizing: border-box;
    line-height: 1.1;
    transform: rotateY(90deg); /* Hidden initially */
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    backface-visibility: hidden; /* Stops flickering */
    overflow: hidden;
    gap: 10px;
    text-shadow: 1px 1px 2px rgba(1, 1, 1, 1);
}

/* === FORCE LONG TEXT TO WRAP INSIDE THE HINT BOX === */
.hint-box span {
    display: block;
    word-wrap: break-word;
    font-size: 10px; /* Adjust this if needed */
    line-height: 1.2;
}

/* === Flip Animation Delays === */
.guess-row .hint-box:nth-child(2) { transition-delay: 0.1s; }
.guess-row .hint-box:nth-child(3) { transition-delay: 0.2s; }
.guess-row .hint-box:nth-child(4) { transition-delay: 0.3s; }
.guess-row .hint-box:nth-child(5) { transition-delay: 0.4s; }
.guess-row .hint-box:nth-child(6) { transition-delay: 0.5s; }
.guess-row .hint-box:nth-child(7) { transition-delay: 0.6s; }
.guess-row .hint-box:nth-child(8) { transition-delay: 0.7s; }

/* === Trigger Flip Animation After Being Added === */
.hint-box.revealed {
    transform: rotateY(0deg);
    opacity: 1;
}


/* === Background Images for Different Hints === */
.hint-correct { background-image: url("../IMAGES/RIGHT.png"); }
.hint-wrong { background-image: url("../IMAGES/WRONG.png"); }
.hint-partial { background-image: url("../IMAGES/PARTIAL.png"); }
.hint-higher { background-image: url("../IMAGES/MORE.png"); }
.hint-lower { background-image: url("../IMAGES/LESS.png"); }

.autocomplete-dropdown {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    border: 1px solid white;
    max-height: 150px;
    overflow-y: auto;
    width: 250px;
    z-index: 10;
    display: none;
}

.dropdown-option {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.8);
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left; /* Make sure text is left-aligned */
}

.dropdown-option:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
    transition: transform 0.2s ease;
}


/* === RESULT MESSAGE (FOR WIN/LOSS) === */
#resultMessage {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* === RESET BUTTON === */
#resetGame {
    padding: 10px 15px;
    background: black;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
    display: none;
}

#resetGame:hover {
    background: darkgray;
}

.fighter-name-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 0px;
    border: 1px solid white;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    background-color: #000;
    box-sizing: border-box;
    overflow: hidden; /* Ensures image doesn't overflow */
    padding: 0; /* Remove any padding */
}

/* Dropdown Face Icon */
.dropdown-face-icon {
    width: 60px;
    height: 45px;
    margin-right: 10px;
    border-radius: 10px;
}


/* Fighter Face Icon in Previous Guesses */
.fighter-face-icon {
    max-height: 100%;
    object-fit: contain;
    border-radius: 0px;
    border: 1px solid white;
}
.victory-card {
    background-color: rgba(59, 188, 11, 0.822);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 400px;
    max-width: 400px;
    margin: 40px auto;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    text-shadow: 
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
  }
.victory-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.victory-card-img {
    background-color: black;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid white;
    margin: 10px 0;
    object-fit: contain;

}

/* Victory Card Buttons */
.victory-next-button {
    margin-top: 20px;
    text-align: center;
    border-radius: 8px;
  }
  
  .victory-next-button img {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 400px;
    max-width: 400px;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  }

  .victory-next-button img:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1.0));
    transform: scale(1.05);
  }
  
/* HINTS SECTION */

/* === HINTS AREA === */
.hints-container {
    background: #333232;
    padding: 4px;
    border-radius: 8px;
    border: 2px solid #b6a232; /* Gold Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    margin-top: 18px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.hints-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: none;
    text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

.hints-buttons {
    display: flex;
    flex-direction: row; /* This is the key line */
    justify-content: center;
    align-items: flex-start;
    gap: 30px; /* Space between the two hints */
}

.hint-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hint-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.3s ease;
    border-radius: 50%;
}

.hint-image:hover:not(.disabled-hint) {
    transform: scale(1.1);
}

.disabled-hint {
    opacity: 0.4;
    cursor: not-allowed;
}

.enabled-hint {
    opacity: 1;
    cursor: pointer;
}

.hint-countdown {
    margin-top: 5px;
    font-size: 12px;
    color: white;
    font-family: 'Compacta', sans-serif;
    text-align: center;
    text-shadow:
        -1px -1px 0 black,
         1px -1px 0 black,
        -1px  1px 0 black,
         1px  1px 0 black;
    width: 100px
}

.hint-popdown {
    width: 250px;
    background-color: rgba(0, 0, 0, 0.95); /* Keeps your dark background */
    color: rgb(255, 255, 255);
    text-shadow:
        -1px -1px 0 black,
         1px -1px 0 black,
        -1px  1px 0 black,
         1px  1px 0 black;
    border: 2px solid #b6a232; /* Fixed the border */
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-family: 'Compacta', sans-serif;
    display: none;
    margin-top: 5px;
    box-shadow: 0 0 12px rgba(182, 162, 50, 0.7); /* Optional soft gold glow */
}

/* VICTORY SCREEN */
.victory-card {
    background-color: rgba(34, 139, 34, 0.9); /* Forest green */
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Compacta', sans-serif;
}

.victory-card h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: -2px -2px 0 black, 2px -2px 0 black, -2px 2px 0 black, 2px 2px 0 black;
}

.victory-fighter-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.victory-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.victory-play-again {
    background-color: black;
    color: white;
    border: 1px solid white;
    padding: 10px 15px;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Compacta', sans-serif;
}

.victory-play-again:hover {
    background-color: darkgray;
}




/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {

    * {
        box-sizing: border-box;
      }      
    

    body, html {
        width: 100%;
        margin-bottom: 0;
        padding: 0;
        overflow-x: hidden; /* Prevents horizontal scrolling */
    }

    body {
        background: url('../IMAGES/BACKGROUNDFINAL.png') no-repeat center center fixed;
        background-size: cover; /* Ensures it covers the whole screen */
        background-position: center; /* Centers the background */
        background-attachment: fixed; /* Prevents scrolling issues */
        width: 100%;
        margin: 0;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-x: hidden; /* Prevents scrolling to the right */
    }

    .container {
        width: 100%;
        padding:  15px; /* Adds safe spacing */
    }

    .logo {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: 80%; /* Full width to ensure centering */
    height: 80%;
    max-width: 400px; /* Adjust if needed */
    margin: 0 auto; /* Centers the logo */
    text-align: center;
    padding: 10px 0;
    }

    .logo img {
        display: block;
        margin: 0 auto; /* Ensures the image itself is centered */
        max-width: 100%; /* Prevents it from overflowing */
        height: auto;
    }

    .feedback-box {
        flex-wrap: wrap;
        gap: 10px;
        max-width: 95%;
    }

    .feedback-container-div {
        display: flex;
        flex-direction: row;
        gap: 5px;  
        font-size:x-small  
    }

    .input-box {
        max-width: 100%;
        display: flex;
        flex-direction: column; /* Stack input & button on smaller screens */
        justify-content: center;
        align-items: center;
    }

    input {
        width: 85%;
        text-align: center;
    }

    button {
        width: 85%;
        margin-top: 5px;

    }

    .previous-guesses-container {
        overflow-x: auto;
        display: block;
        width: 100%;
    }

    .guess-wrapper {
        overflow-x: auto;
        white-space: nowrap;
        min-width: 800px;
    }

    .headerRowContainer {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        min-width: 800px;
    }

    .guess-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        min-width: 800px;
    }

    .hint-box {
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 12px;
        background-size: cover;
        background-position: center;
        border-radius: 0px;
        border: 1px solid white;
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
        text-align: center;
        word-wrap: break-word;
        padding: 5px;
        box-sizing: border-box;
        line-height: 1.1;
        transform: rotateY(90deg); /* Hidden initially */
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;
        backface-visibility: hidden; /* Stops flickering */
        overflow: hidden;
        gap: 10px;
        text-shadow: 1px 1px 2px rgba(1, 1, 1, 1);
        white-space: normal; /* Ensures text wraps */

    }

    .hints-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hint-image {
        width: 60px;
        height: 60px;
    }

    .victory-card {
        margin-top: 20px;
        margin-bottom: 20px;
        display: block;
        max-width: 90%;
        width:90%;
        margin: 0 auto;
    }

    .victory-next-button img {
        max-width: 100%;
        height: auto;
        display: block;
      }
      
}

/* Checkmark CSS */
.checkmark {
    display: none;
    position: absolute;
    bottom: -8px;
    right: -6px;
    background: #2ecc71;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: bold;
    pointer-events: none;
  }

  /* Footer Section */
  .footer {
    height: 200px;
    max-height: 200px;
    color: #ffffff;
    text-align: center;
    padding: 0px;
    padding-bottom: 150px;
  }
  
  .footer-container {
    max-width: 1200px;
    padding: 0 15px;
  }
  
  .social-links {
    margin-bottom: 10px;
  }
  
  .social-links a {
    margin: 0 8px;
    display: inline-block;
    transition: transform 0.3s ease;
  }
  
  .social-links a:hover {
    transform: scale(1.1);
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  @media (max-width: 600px) {
    .social-icon {
      width: 30px;
      height: 30px;
    }
  }

  .copyright {
    font-size: small;
    color: #888;
  }
  
  .socials-text {
    font-size:medium;
    color: white;
    margin-top: -10px
  }

  .checkmark {
    display: none;
    position: absolute;
    bottom: -8px;
    right: -6px;
    background: #2ecc71;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: bold;
    pointer-events: none;
  }

  .check {
    position: absolute;
    bottom: -8px;
    right: -6px;
    background: #2ecc71;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: bold;
  }
  