body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
      'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
      sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height:1.5;
  }
  
  #root .App{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    padding-top: 0px;
  }
  
  
  .footer{
    width:500px;
    max-width:100%;
    padding:15px;
    margin:0 auto;
    text-align:center;
    margin-top:20px;
    box-sizing:border-box;
  }
  .contact{
    margin-top:10px;
    font-size:14px;
    color:#786a6a;
    margin-top:30px;
    width:600px;
    max-width:100%;
  }
  
  h1{
    text-align:center;
  }
  .game-header{
    display:flex;
    align-items:center;
    flex-direction: column;
    box-sizing: border-box;
  }
  .game-header h1{
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 0.5em;
  }
  .game-header p{
    font-size: 22px;
      line-height: 34px;
      margin: 0 auto 10px;
      max-width: 100%;
      text-align: center;
      width: 600px;
  }
  

  
  .btn-wrapper{
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-bottom:20px;
    box-sizing: border-box;
    width: 100%;
    padding:0 15px;
  }
  
  .game-btn {
    width: 100%;
    height: 50px;
    border: 1px solid black;
    border-radius: 25px; 
    background-color: transparent;
    color: black;
    font-size: 1em;
    margin: 0.5em 0;
    cursor: pointer;
  }
  
  .submit-btn{
    background:black;
    border:none;
    color:#fff;
  }
  
  
  @media (min-width: 600px) {
    .btn-wrapper{
        flex-direction: row;
        justify-content: space-between;
        max-width: 400px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 0 15px;
        margin-top: 20px;
    }
    .game-btn {
        width: 160px;
    }
  }
  
  @media (max-width: 600px) {
    .game-header{
        max-width:100%;
    }
    .game-container, #root .App{
        padding-left:15px;
        padding-right:15px;
    }
    .game-item{font-size:14px;}
  }
  
  .difficulty-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top:15px;
  }
  
  .difficulty-wrapper label {
    font-size: 20px;
    margin-right: 10px;
  }
  
  .difficulty-wrapper button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ddd;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color:#000;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  .difficulty-wrapper button:hover {
    background-color: #bbb;
  }
  
  .difficulty-wrapper .selected {
    background-color: #aaa;
    color: white;
  }
  
  .disclaimer{
    font-size:14px;
    color:#786a6a;
    margin-top:30px;
    width:600px;
    max-width:100%;
  }
  
  
  .congratulations {
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
  }
  
  .congratulations h2 {
    color: #0047AB;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .congratulations p {
    color: #0047AB;
    font-size: 1.5em;
  }
  
  /* Apply custom font sizes for mobile devices */
  @media only screen and (max-width: 600px) {
    .game-item.size-8 {
      font-size: 13px;
    }
    .game-item.size-more {
      font-size: 12px;
    }
  }
  
  
  .content{
    padding:0 15px;
    margin-top:20px;
    width:100%;
    max-width:600px;
  }
  
  .links{
    text-align:center;
    width:70%;
    margin:0 auto;
    margin-bottom:50px;
  }
  
  h3.for-content{
    margin-top:40px;
  }
  
  .top-g{
    width: 100%;
    max-width: 600px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top:15px;
  }
  
  .top-g .game-time{
    font-weight:700;
  }
  
  .share span{
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
  }
  
  img{
    max-width:100%;
  }
  
  img.ill{
    border: 1px solid #ebebeb;
    box-shadow: 1px 6px 9px rgba(0,0,0,0.1);
  }
  
  code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
      monospace;
  }
  
  .page-content{
    width: 100%;
    background: rgb(215 235 232);
    margin-top:30px;
  }
  
  .inner-wrapper{
    width: 600px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 40px 20px;
  }
  .footer .inner-wrapper{
    padding:20px 0;
  }
  
  @media (max-width:600px){
    .ez-video-container.ez-stuck:not(.raise){
      display:none !important;
      z-index:-999999;
    }
  }
  
  .top-bar{
    border-bottom:1px solid #ebebeb;
  }
  
  .top-bar .container{
    display:flex;
    align-items:center;
    justify-content: space-between;
    width:630px;
    max-width:100%;
    margin:0 auto;
    height:50px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  .element, .element-middle a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color:#000;
    font-size:18px;
  }
  
  #lang-switch, #help-button {
    border: none;
      background: none;
      cursor: pointer;
      background: #d7e8f0;
      font-weight: bold;
      padding: 7px 15px;
      color:#000;
  }
  .element-middle{
    font-weight:bold;
  }
  .element-middle img {
    display: block;
    margin: 0 auto;
    height:30px;
    margin-right:10px;
  }
  
  .download-app{
    margin-top:20px;
  }
  
  .archive-wrapper{
    margin-top:15px;
  }
  
  .archive-wrapper select{
    height:40px;
    padding:0 10px;
  }
  
  .game-header{
    margin-top:30px;
  }
  
  .ad-bar{
    background: #e0dbfe;
    text-align: center;
    padding: 5px 0px;
    font-size: 14px;
  }
  .ad-bar a{
    font-weight:600
  }

  






/* Game CSS */
.game-container{
    width:100%;
    max-width:324px;
    margin:0 auto;
    margin-top:20px;
}

.message{
    margin:0 auto;
    display:block;
    width:100%;
    text-align:center;
    margin-bottom:10px;
    font-size:24px;
    font-weight:bold;
    height:30px;
    line-height:30px;
}



.game-grid{
    grid-template-rows: repeat(8,1fr);
    grid-template-columns: repeat(6,1fr);
    gap: 10px;
    width: 324px;
    display: grid;
    position:relative;
}

.grid-cell{
    text-align:center;
    width: -moz-fit-content;
    width: fit-content;
    height: -moz-fit-content;
    height: fit-content;
    width:44px;
    height:44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    cursor:pointer
}

.grid-cell button{
    border: none;
    padding:0;
    margin:0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: none;
    box-shadow: none;
    border-radius: 50%;
    height: 44px;
    width: 44px;
    font-size:inherit;
    font-weight:inherit;
    color:#000;
}

.grid-cell.selected button{
    background:darkseagreen
}

.grid-cell.found button{
    background:#90b6fd
}

.last-selected button{
    outline:2px solid darkseagreen;
    border:4px solid #fff;
}

.word-count{
    margin-top:20px;
    text-align:center;
}


.progress-indicator {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    width: 144px;
    flex-wrap: wrap;/* Provide some space above and below the indicator */
  }
  
  .progress-square {
    width: 20px; /* Width of each square */
    height: 20px; /* Height of each square */
    margin: 2px; /* Space between squares */
  }
  
  .progress-type-0 {
    background-color: #eb6868; /* Red for incorrect guesses */
  }
  
  .progress-type-1 {
    background-color: #90b6fd; /* Green for correct guesses */
  }
  
  /* Add more classes for different progress types if necessary */


  .topic{
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    border: 1px solid #000;
    /* padding-bottom: 10px; */
    margin-bottom: 10px;
    border-top: 3px solid #90b6fd;
}

  .game-container.loading{
    opacity:0.2
  }

  .hint{
    position:relative;
  }

  .ReactModal__Content{
    max-width:80%
  }

  .hint span{
    position: absolute;
    right: 12px;
    background: #000;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    padding: 5px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    top: 12px;
  }

  .hint-c{
    outline:2px solid darkseagreen
  }
@media (max-width:600px){
  .btn-wrapper{
    flex-direction: row;
  }
  .game-btn{
    margin: 0 10px;
  }

  .message{
    height: 20px;
    line-height: 20px;
    font-size:16px;
  }

  .topic{
    font-size:16px;
    margin-bottom:0px;
  }
  .game-container{
    margin-top:5px;
  }
}








.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;
      margin-bottom:10px;
  }

  .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; }
}