/* src/Grid.css */
body {
  margin: 0;
  font-family: 'Kdam Thmor Pro', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height:1.5;
}


#pmLink {
    visibility: hidden;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

   #pmLink:hover {
        visibility: visible;
        color: grey;
    }


@font-face {
  font-family: 'ZenDots';
  src: url('/fonts/ZenDots-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.ill{
  max-width: 100%;
  box-shadow: 0px 8px 19px rgba(0,0,0,0.1);
}

.grid-container{
  margin:0 auto;
    width:800px;
    max-width:100%;
  padding:15px;
  box-sizing: border-box;
  min-height:470px;
}
.grid-loading{
  display: flex;
    align-items: center;
    height: 440px;
    width: 100%;
    justify-content: center;
    text-align: center;
}
.main-app{
  margin:0 auto;
  width:800px;
  max-width:100%;
}
.attempts{
  text-align: center;
}
.grid-top-row{
  display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
}

.grid-content{
  display:flex;
}

.grid-left-column{
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right:10px;
}
.grid-cell{
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content: center;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
  }
  .grid-row{
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap:10px;
    margin-bottom:10px;
  }
  .grid-item {
    background: #eee;
    min-height:100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor:pointer;
  }
  .grid-item .name{
    position: absolute;
    background: #000;
    color: #fff;
    width: 100%;
    text-align: center;
    font-size: 12px;
    bottom: 0;
    left: 0px;
    text-transform: uppercase;
  }
  .grid-item .percentage{
    position: absolute;
    top: 0;
    right: 4px;
    font-size: 13px;
    font-weight: bold;
  }
  .uniq-score{
    text-align:center;
  }
  .grid-header img{
    max-height:76px;
    max-width:76px;
    display:block;
  }
  .grid-header{
    min-height:100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  .grid-header h2{
    padding:0;
    margin:0;
    margin-top:10px;
    text-transform: uppercase;
  }

  .grid-header p{
    font-family: 'ZenDots';
  }
  .grid-item:hover{
    background:rgba(0,0,0,0.4)
  }
  
  .grid-item img {
    width: 100%;
    height: auto;
  }

  .extra{
    font-size:12px;
    text-align:center;
    font-weight:normal;
  }

  @media (max-width:600px){
    .grid-row{
      grid-template-columns: repeat(4, 1fr);
    }
    .grid-header:nth-child(5){
      display:none;
    }
  }

  .other-games {
    max-width: 800px;
    text-align: center;
    width: 100%;
    padding: 20px;
    margin: 20px auto;
    box-sizing: border-box;
    line-height: 1.5;
  }

  .other-games h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
  }

  .other-games .game-links {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .other-games .game-item {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    padding: 20px;
    width: 250px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: inline-block;
  }
  
  .other-games .game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }
  
  .other-games .game-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007bff'%3E%3Cpath d='M12 2L2 9.1h2V20h16V9.1h2L12 2zm0 2l6 4.1h-1.2l-.8-1v-.3c0-1.2-.9-2.1-2-2.1s-2 .9-2 2.1V7l-.8 1H10L12 4zm4 6v8h-2v-5h-4v5H8v-8h8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .other-games .game-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    color: #007bff;
  }
  
  .other-games .game-desc {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
  }

  .header{
    max-width:800px;
    text-align:center;
    width:100%;
    padding:20px;
    margin:0 auto;
    box-sizing: border-box;
    line-height:1.5;
  }

  .header h1{
    font-size:42px;
  }

  

  .main-top-p{
    font-size:18px;
    margin-bottom:50px;
  }

  

  .page-content{
    width: 100%;
    background: #f3eff9;
  }
  
  .inner-wrapper{
    width: 600px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 40px 20px;
  }
  .footer .inner-wrapper{
    padding:20px 0;
  }

  .disclaimer{
    font-size:14px;
    color:#786a6a;
    margin-top:30px;
    width:600px;
    max-width:100%;
  }

  p.h{
    font-size:16px;
    font-weight:bold;
    text-transform: uppercase;
  }

  .autocomplete{
    width:100%;
    background:#f1f1f1;
    height:40px;
    border:none;
    box-shadow:none;
    padding-left:20px;
    box-sizing: border-box;
    margin-bottom:20px;
    
  }
  .list-pokemon{
    overflow-y:auto;
    height:300px;
  }
  .list-pokemon > div{
    cursor: pointer;
    /* padding-bottom: 5px; */
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ebebeb;
  }
  .list-pokemon .sprite-img{
    width:48px;
    height:48px;
  }
  .list-pokemon img{
    max-width:100%;
  }

  .list-pokemon .pokemon-name{
    padding-left:10px;
  }

  .list-add-pokemon > div{
    cursor: pointer;
    /* padding-bottom: 5px; */
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ebebeb;
    justify-content: space-between;
  }
  .list-add-pokemon .sprite-img{
    width:48px;
    height:48px;
  }
  .list-add-pokemon img{
    max-width:100%;
  }

  .list-add-pokemon .pokemon-name{
    padding-left:10px;
    text-transform: uppercase;
  }

  .ReactModal__Content{
    max-width:80%;
  }

  .players_table {
      width: 100%;
      border-collapse: collapse;
    }
    
    .players_table th {
      background-color: #f8f8f8;
      text-align: center;
      padding: 10px;
    }
    
    .players_table td {
      text-align: center;
      padding: 10px;
    }
    
    .players_table img {
      width: 50px; /* Adjust as needed */
      height: auto;
    }
    
    .players_table .player-name {
      font-weight: bold;
    }
    
    .players_table tr:nth-child(even) {
      background-color: #f2f2f2;
    }
    .related{
      margin-top:50px;
    }
    @media (min-width:767px){
      .related{
          display:flex;
          justify-content: space-between;
      }
   }

    .page-content-2 .inner-wrapper{
      width:1100px;
    }


    .list-teams > div{
      display:flex;
      flex-wrap:wrap;
      margin-bottom:50px;
    }
    .list-teams > div .team-block{
      width:13%;
      cursor:pointer;
      border:3px solid rgba(0,0,0,0);

      display:flex;
      align-items:center;
      justify-content: center;
      flex-direction: column;
    }
    @media (max-width:767px){
      .list-teams > div .team-block{
          width:20%;
      }
      p.h{
        font-size:11px;
      }
    }
    .list-teams > div .team-block.selected{
      border:3px solid rgba(0,0,0,1);
      background:#f1f1f1
    }
    .list-teams > div .team-block img{
      max-width:100%;
      width:64px;
    }

    .list-teams button{
      height:60px;
      width:100%;
      background:#000;
      color:#fff;
      font-size:24px;
      cursor:pointer;
      border:none;
      box-shadow:none;
      margin-top:50px;
    }

    

    .team-related ul{
      list-style:none;
      margin:0;
      padding:0;
    }

    .team-related ul li{
      padding-bottom:15px;
    }


    .banner-ad{
      display:flex;
      width:1100px;
      max-width:100%;
      padding:15px;
      margin:0 auto;
      justify-content: center;
      box-sizing: border-box;
    }

    .banner-ad img{
      max-width:100%
    }
    .btns{
      display:flex;
      align-items:center;
      justify-content: center;
    }
    .btns button{
      padding:12px 18px;
      border-radius:20px;
      background:#fff;
      border:1px solid #000;
      cursor:pointer;
      font-size:16px;
    }
    .btns button:first-child{
      background:#000;
      color:#fff;
      margin-right:20px;
    }

    #root-game.loading{
      opacity:0.2;
      pointer-events: none;
    }

    .footer .links{
      margin-top:10px;
    }

    .download-app{
      margin: 0 auto;
  margin-top: 40px;
  text-align: center;
    }


    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    /* Define the loader class */
    .loading-percent::after {
      content: '';
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid #f3f3f3; /* Light grey */
      border-top: 3px solid #3498db; /* Blue */
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    .final-result{
      text-align: center;
    }


    .header-input{
      background: #f5f5f5;
      border: none;
      box-shadow: 1px 2px 1px rgba(0,0,0,0.2);
      border-radius: 14px;
      height: 40px;
      font-family: 'ZenDots';
      text-transform: uppercase;
      padding:10px;
      box-sizing: border-box;
      width:100%;
    }

    .top-header-ads{
      max-width: 972px;
      margin: 0 auto;
    }


    @media (min-width:1180px){
      .right-wrapper{
        padding-top: 54px;
        width: 336px;
        position: relative;
        left: -120px;
        border-left: 1px solid #e1e1e1;
        padding-left: 0px;
      }

      .main-app{
        width: 1140px;
        display:flex;
        position:relative;
        top:-20px;
      }

      .with-sidebar{
        display:flex;
      }
      .with-sidebar .content-part{
        width: 100%;
        background: #f5f5f5;
        padding: 10px;
        max-width:70%;
      }
      .with-sidebar .sidebar{
        width: 50%;
        padding-top: 25px;
        padding-left: 20px;
        position:relative;

      }
    }

    .ads-right-wrapper{
      margin-top:15px;
    }

    .sidebar-ad{
      width:336px;
      margin-bottom:20px;
    }

    .sidebar-ad-sticky{
      width:336px;
      position:sticky;
      top:0px;
    }




 



    /* Navigation styles */
    /* Main navigation styles */
.top-nav {
  height: 50px;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.top-nav .container-nav {
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav .logo {
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
}

.top-nav a {
  text-decoration: none;
  color: #000;
}

.top-nav a:hover {
  color: #786a6a;
}

.top-nav .nav {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.top-nav .nav li {
  padding: 0 15px;
}

/* Burger menu styles */
.burger-icon {
  display: none;
  width: 25px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.burger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 3px;
  opacity: 1;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 8px; }
.burger-icon span:nth-child(3) { top: 16px; }

.menu-toggle {
  display: none;
}

/* Mobile styles */
@media (max-width: 991px) {
  .top-nav {
    height: auto;
    min-height: 40px;
    margin-bottom:0px;
  }

  .top-nav .container-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 0;
    position: relative;
  }

  .menu {
    width: 100%;
    position: relative;
  }

  .burger-icon {
    display: block;
    position: absolute;
    right: 15px;
    top: -23px;
  }

  .top-nav .nav {
    display: none;  /* Hide by default */
    flex-direction: column;
    width: 100%;
  }

  .nav li {
    padding: 15px 0 !important;
    border-bottom: 1px solid #e1e1e1;
  }

  .nav li:last-child {
    border-bottom: none;
  }

  /* Only show menu when checkbox is checked */
  .menu-toggle:checked ~ .nav {
    display: flex;
  }

  /* Burger icon animation */
  .menu-toggle:checked ~ .burger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
  }

  .menu-toggle:checked ~ .burger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .menu-toggle:checked ~ .burger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
  }
}

/* Additional responsive adjustments */
@media (max-width: 400px) {
  .top-nav .logo {
    font-size: 16px;
    padding-right: 40px;
  }

  .burger-icon {
    right: 10px;
  }
}

p.attempts{
  padding:0px;
  margin:0px;
}

.game-statdata{
  display: flex;
      justify-content: space-evenly;
      margin-bottom: 15px;
}








.word-games-app {
  .word-games-container {
      background: #fff;
      font-family: system-ui, -apple-system, sans-serif;
      padding: 20px;
  }

  .games-header {
      text-align: center;
      font-size: 18px;
      margin-bottom: 20px;
  }

  .highlight {
      background: #e6eeff;
      padding: 4px 8px;
      border-radius: 4px;
  }

  .games-wrapper {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
  }

  .games-row {
      display: flex;
      gap: 16px;
      justify-content: center;
  }

  .game-item {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 24px;
      width: 200px;
      text-decoration: none;
      color: inherit;
  }

  .game-icon {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .word-grid { background: #8e9eff; }
  .word-chase { background: #ffd666; }
  .flipple { background: #ff9ebd; }
  .categories { background: #90eaa3; }
}