/* === 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 */
.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 */

/* === INPUT BOX (Now with Black Border) === */
.input-box {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    background: #333232;
    padding: 10px;
    margin-top: 0px;
    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;
}

/* Dropdown box */

/* Dropdown Image Frame */
.dropdown-image-frame {
    width: 60px;
    height: 45px;
    background-color: #222;
    border: 2px solid #b6a232; /* gold frame */
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-face-icon {
    color: black;
    width: 60px;
    height: 45px;
    margin-right: 10px;
    border-radius: 0px;
    object-fit: cover;
}

/* Dropdown Container */
.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;
    border-radius: 6px;
}

/* Each Option */
.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;
}

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


/*RESET BUTTON*/

.reset-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #b6a232; /* Gold */
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    text-shadow: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.reset-button:hover {
    background-color: #d4bb44;
}

/* Emoji Clue Display */

.emoji-unit {
    display: inline-block;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
    margin: 0 5px;
  }
  
  .pop-emoji {
    animation: popIn 0.3s ease forwards;
  }
  
  @keyframes popIn {
    0% {
      transform: scale(0.6);
      opacity: 0.2;
    }
    60% {
      transform: scale(1.2);
      opacity: 1;
    }
    100% {
      transform: scale(1);
    }
  }
  
  /* Previous Guesses Style */

  .previous-guesses-section {
    align-self: center;
    margin-top: 20px; 
    width: 100%;
    min-width: 430px;
  }
  
  .guesses-header {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;  }
  
  .guesses-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .guess-box {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    border: 1px solid rgb(221, 218, 218); /* ✅ This adds the white outline */
    text-shadow: 
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
  }
  
  
  .guess-box img {
    background-color: black;
    width: 70px;
    height: 70px;
    border-radius: 50%; /* ✅ makes it a perfect circle */
    border: 1px solid white; /* ✅ adds the white border */
    object-fit: cover; /* ✅ keeps it cropped nicely */
    margin-right: 12px;
  }
  
  .guess-correct {
    background-color: rgba(59, 188, 11, 0.822);; /* green */
  }
  
  .guess-incorrect {
    background-color: #aa3e3e; /* red */
  }

  /* Victory Card */
  
  .victory-card {
    margin-top: 40px;
    background-color: rgba(59, 188, 11, 0.822);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    max-width: 400px;
    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-heading {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
  }
  
  .victory-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  
  .victory-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    background-color: black;
  }
  
  .victory-name {
    font-size: 1.4rem;
    color: white;
    font-weight: bold;
    margin: 0;
  }
  
  .victory-tries {
    margin-top: 10px;
    color: #fff;
    font-style: italic;
  }
  
  .victory-quotes {
    font-size: 2rem;
    margin-top: 15px;
  }

  .next-game-timer {
    margin-top: 15px;
    color: white;
    font-size: 0.95rem;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black,
                 -1px 1px 0 black, 1px 1px 0 black;
    font-style: italic;
  }

  /* 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);
  }

   /* 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;
  }
  
/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) { 

  * {
    box-sizing: border-box;
  }  

body, html {
  width: 100%;
  margin: 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: 0;
  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;
}

.input-box {
  align-self: center;
  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;

}

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

}

   /* 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
  } 

  @keyframes pop-in {
    0% {
      transform: scale(0.7);
      opacity: 0;
    }
    80% {
      transform: scale(1.1);
      opacity: 1;
    }
    100% {
      transform: scale(1);
    }
  }
  
  .guess-box.pop-animation {
    animation: pop-in 0.25s ease-out;
  }
  

  /* Initial state: black and white and blurred */
/* Default grayscale and blur */
.blurred.grayscale {
    filter: grayscale(100%) blur(8px);
    transition: filter 0.3s ease;
  }
  
  /* Only blurred (color revealed) */
  .blurred.color {
    filter: grayscale(0%) blur(8px);
  }

  /* HINTS CSS STYLING */
  .blurred.grayscale {
    filter: grayscale(100%) blur(8px);
    transition: filter 0.3s ease;
  }
  
  .blurred.color {
    filter: grayscale(0%) blur(8px);
  }

  .fighter-image-container {
    display: flex;
    flex-direction: column;
    gap: 30px
  }

  .hint-button {
    width: 80px;
    height: auto;
    filter: grayscale(100%) brightness(50%);
    pointer-events: none;
    opacity: 0.5;
    transition: all 0.3s ease;
  }
  
  #hintSection.hint-unlocked .hint-button {
    filter: none;
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
  }  
  
  .hint-button.unlocked {
    cursor: pointer;
    filter: none;
    opacity: 1;
  }
  
  .hint-button:hover {
    transform: scale(1.1);
  }

  .whatufctext {
    margin-bottom: -20px
  }

