.container {
    display: grid;
    min-height: 100vh;
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "nav"
      "main"
      "footer";
    grid-gap: 0;
    font-weight: 800;
    text-transform: none;
    font-size: 12px;
    color: #000000;
    text-align: center;
  }
  
  .nav {
    grid-area: nav;
    background: #fff;
    border-bottom: 2px solid #e91e63;
    width: 100%;
    box-sizing: border-box;
  }
  
  .navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    box-sizing: border-box;
  }
  
  .navbar-content img[alt="BBlogo"] {
    width: 150px;
    height: 50px;
    object-fit: contain;
  }
  
  .logos {
    display: flex;
    margin-left: auto;
  }
  
  .logos a,
  .logos #statsLogo {
    margin-left: 25px; /* Adjusted from 20px */
    display: inline-block;
    margin-right: 0; /* Removed extra margin */
    position: relative;
    transition: transform 0.3s ease-in-out;
  }
  
  .logos a:hover,
  .logos #statsLogo:hover {
    transform: scale(1.2); /* Adjust the scaling factor as needed */
  }
  
  
  
  
  
   
    
    footer {
      grid-area: footer;
      background: #fff;
      border-top: 1px solid #eee;
      padding: 1.25rem 1.25rem;
      text-align: center;
      width: 100%;
      box-sizing: border-box;
    }

    footer p {
      margin-bottom: 0.5rem;
    }

    footer a {
      display: inline-block;
      margin: 0 0.5rem;
      text-decoration: none;
      color: #13141c;
      font-weight: 700;
      font-size: 0.85rem;
    }

    footer a:hover {
      text-decoration: underline;
    }

    .footer-legal {
      color: #aaa;
      font-size: 0.7rem;
      text-transform: none;
      margin-top: 0.5rem;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }
    
    
  .main-title {
    font-size: 15px;
    font-weight: bold;
    text-transform: capitalize;
    color: #333;
    margin-bottom: 1px;
    }
    
    main {
        background: transparent;
        grid-area: main;
        border-radius: var(--main-radius);
        padding-top: var(--main-padding);
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100px;
      }

      body {
        font-family: Arial, sans-serif;
        background-color: #f4f6fb;
        margin: 0;
        padding: 0;
        width: 100%;
    }
  
  
    
    .grid-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 20px;
      
    }
    
    .header {
        grid-column: span 2;
        display: flex;
        justify-content: center;
        align-items: center;
      background-color: #000;
        padding: 10px;
        width: 100px;
        height: 100px;
    }
    
    .header img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain; /* Ensures the image scales to fit the container */
    }
    
   .merged-cell {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        font-size: 16px;
        
    }
    
    .merged-cell {
        flex-direction: column;
        text-align: center;
        background-color: #f0f0f0;
        height: 80px;
        width: 80px;
        transition: background-color 0.3s;
  
    }
  
  .merged-cell:hover {
      background-color: #d8d7d7; /* Changes background color on hover */
  }
    
  .merged-cell {
    position: relative;
    width: 80px; /* Adjust width as needed */
    height: 80px; /* Adjust height as needed */
    border: 1px solid #000000; /* Adjust border color and size as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #374151; /* Adjust text color as needed */
    font-weight: 600;
    font-size: 1.5rem; /* Adjust font size as needed */
    transition: background-color 0.3s ease;
  }
  
  .merged-cell:hover {
    background-color: #5e5e5e; /* Adjust hover background color as needed */
  }
  
  .merged-cell a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
  }
  
  .year-for-team1 {
    position: absolute;
    top: 5px;
    left: 2px;
    font-size: 8px;
    font-weight: bold;
    color: white;
    background-color: rgb(0, 0, 0); /* Transparent background color */
    z-index: 3;
  }
  
  .year-for-team2 {
    position: absolute;
    top: 5px;
    right: 2px;
    font-size: 8px;
    font-weight: bold;
    color: white;
    background-color: rgb(0, 0, 0); /* Transparent background color */
    z-index: 3;
  }
  
  .merged-cell img.player-picture {
    width: 100%;
    object-fit: cover;  /* Maintain aspect ratio while covering the cell */
  }
  
  .player-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(0, 0, 0); /* Transparent background color */
    color: #ffffff; /* Adjust text color as needed */
    font-size: 0.8rem; /* Adjust font size as needed */
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 1; /* Initially hide the player name */
    transition: opacity 0.3s ease;
  }
  
  /* Responsive design */
  @media (max-width: 700px) {
    .header {
      width: 80px;
      height: 80px;
    }
  
    .merged-cell {
      width: 70px;
      height: 70px;
    }
    .merged-cell img.player-picture {
      width: 110%;
      height: auto;
    }
  }
  
  @media (max-width: 625px) {
    .header {
      width: 70px;
      height: 70px;
    }
  
    .merged-cell {
      width: 55px;
      height: 55px;
    }
    .player-name {
      font-size: 0.5rem;
    }
    .merged-cell img.player-picture {
      width: 115%;
      height: auto;
    }
  }
  
  @media (max-width: 590px) {
    .header {
      width: 60px;
      height: 60px;
    }
  
    .merged-cell {
      width: 40px;
      height: 40px;
    }
    .merged-cell img.player-picture {
      width: 135%;
      height: auto;
    }
  }
  
  @media (max-width: 480px) {
    .header {
      width: 60px;
      height: 60px;
    }
  
    .merged-cell {
      width: 30px;
      height: 30px;
    }
    .merged-cell img.player-picture {
      width: 160%;
      height: auto;
    }
  }
  
  @media (max-width: 420px) {
    .header {
      width: 60px;
      height: 60px;
    }
  
    .merged-cell {
      width: 15px;
      height: 15px;
    }
    .merged-cell img.player-picture {
      width: 250%;
      height: auto;
    }
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
    
    .guess-section {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 20px;
    }
    
    .give-up-btn {
        margin-top: 10px;
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        background-color: red;
        color: white;
        border: none;
        padding: 5px 10px;
        margin: 10px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
    } 
  
  .give-up-btn:hover {
    background-color: #ad0b0b;
  }
  
  .cta-button{
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
  } 
  
  
  
  
    
    
  
    
    .next-in {
      margin-bottom: 10px; /* Margin bottom for next-in */
  }
  
  #countdownAnchorage {
    color: red; /* Red color for countdown */
    font-size: 24px; /* Bigger font size for countdown */
  }
  
  
    
    .search-bar {
      position: fixed;
      top: 50px; /* Position 50px from the top */
      left: 50%; /* Center horizontally */
      transform: translateX(-50%); /* Adjust for centering */
      max-width: 300px;
      width: 100%; /* Ensure it doesn't exceed the screen size */
      height: 50px;
      background-color: white;
      z-index: 9999;
      display: flex;
      align-items: center;
      padding: 0 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      border-radius: 10px; /* Rounded edges */
  }
  
  .search-bar input[type="text"] {
      flex: 1;
      border: none;
      outline: none;
  }
  
  .search-icon {
      fill: #888;
  }
  
  
  .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
      z-index: 9998; /* Ensure overlay is below search bar */
      display: none; /* Initially hidden */
  }
  
  .player-list {
      list-style-type: none;
      margin: 0;
      padding: 0;
      position: absolute;
      top: 50px; /* Adjust to appear below the search bar */
      left: 0;
      width: 100%;
      background: white;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      border-radius: 0 0 10px 10px;
      max-height: 200px;
      overflow-y: auto;
      text-align: left; /* Ensure left alignment */
  }
  
  .player-list li {
      padding: 10px;
      cursor: pointer;
  }
  
  .player-list li:hover {
      background-color: #f6f6f6; /* Light hover effect */
  }
  
  .merged-cell.selected {
      background-color: yellow; /* Highlight selected cell */
  }
  
  
  .loading-indicator {
    display: none;
    margin-left: 10px;
  }
  
  
  
  
  
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
  }
  
  .endgridcontainer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .position, .boxx {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Roboto', sans-serif;
  }
  
  .position {
    font-weight: bold;
    padding: 3px;
    border-radius: 5px;
  }
  
  .boxx {
    width: 80px; /* Current width */
    height: 80px; /* Current height */
    border-radius: 10px;
    margin: 5px;
    border: 1px solid black;
    display: inline-block;
  }
  
  @media (max-width: 588px) {
    .boxx {
      width: 65px; /* Smaller width for small screens */
      height: 65px; /* Smaller height for small screens */
      font-size: small;
      margin: 0px;
    }
  }
  
  @media (max-width: 500px) {
    .boxx {
      width: 55px; /* Smaller width for small screens */
      height: 55px; /* Smaller height for small screens */
      font-size: small;
      margin: 0px;
    }
  }
  
  @media (max-width: 450px) {
    .boxx {
      width: 50px; /* Smaller width for small screens */
      height: 50px; /* Smaller height for small screens */
      font-size: small;
      margin: 0px;
    }
  }
  
  @media (max-width: 400px) {
   .boxx {
      width: 35px; /* Smaller width for small screens */
      height: 35px; /* Smaller height for small screens */
      font-size: x-small;
      margin: 0px;
    }
  }
  .boxes {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin: 5px;
    background-color: #f0f0f0; /* Adjust the color and opacity as needed */
    position: relative;
    
    border: 1px solid black;
    margin: 5px;
    display: inline-block;
    vertical-align: top;
  }
  
  
  
  .green-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4CAF50; /* Adjust the color and opacity as needed */
    z-index: 1;
    border-radius: 10px;
  }
  
  
  
  /* Ensure the images fit within the boxes */
  .player-picture-summary {
    max-width: 95px;
    max-height: 75px;
    object-fit: contain; /* Make sure the image is contained within the box */
  }
  
  
  
  
  
  
  
  
  .dark .box {
    background-color: #444;
  }
  
  .rarity-score-container {
    text-align: center;
    margin-top: 20px;
  }
  .rarity-score-container p {
    margin: 5px 0;
    font-family: 'Roboto', sans-serif;
  }
  .rarity-score-container .score {
    font-size: 20px;
    font-weight: bold;
  }
  .button-copy {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .button-copy.copied {
    background-color: #4CAF50;
    color: white;
  }
  
  .rarity-score-container .button:hover {
    background-color: #0056b3;
  }
  .button-twitter {
    background-color: black;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .button-twitter:hover {
    background-color: #333;
  }
  
  .button-playmore{
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .rarity-score-container .button-.button-playmore {
    background-color: #0056b3;
  }
  
  .yellow-banner {
    background-color: #fff9c4;
    color: #000;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
    border-radius: 5px;
    text-align: center;
    font-weight: normal;
  }
  .yellow-banner a {
    color: #007bff;
    text-decoration: none;
   
  }
  .yellow-banner a:hover {
    text-decoration: underline;
  }
  .green {
    background-color: green;
  }
  
  
  
  .tooltip {
    display: none;
    font-size: xx-small;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    width: 300px; /* Adjust width as needed */
    top: -50px; /* Adjust the distance from the parent element as needed */
    left: 50%;
    transform: translateX(-50%);
  }
  
  .tooltip-container {
    position: relative;
    display: inline-block;
  }
  
  .tooltip-icon {
    width: 20px; /* Adjust size as needed */
    cursor: pointer;
  }
  
  .tooltip-container:hover .tooltip {
    display: block;
  }
  
  
  /* Popup styling */
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }
  
  
  
    
  
  .wrong-selection {
      background-color: #ffcccc; /* Light red background */
      border: 1px solid #ff0000; /* Red border */
    animation: shake 0.2s ease-in-out; /* Example animation for emphasis */
  }
  
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 30%, 45%, 60%, 75% { transform: translateX(-5px); }
    25%, 40%, 55%, 70% { transform: translateX(5px); }
  }
  
  
  #searchBar.wrong-selection {
    border-color: #ff0000; /* Adjust border color for the search bar */
  }
  
  #searchBarInput.wrong-selection {
    border-color: #ff0000; /* Red border for the input field */
    background-color: #ff0000; /* Light red background for the input field */
  }
  
  
  
  body.popup-visible #popup {
    display: block !important;
  }
  
    
  
  
  
  