
html {
    scroll-behavior: smooth;
  }

@font-face {
    font-family: playy;
    font-style: normal;
    font-weight: bolder;
    src: url(/Fonts/FunnelDisplay-VariableFont_wght.ttf);
  }

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px;
    background-image: url(../Assets/img/bgWS.png);
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    overflow: hidden;
    
}

#title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 2px 2px 8px #000;
    margin: 20px 0;
    padding-top: 40px;
    animation: transformText 2s ease-in-out, glowText 1.5s infinite alternate;
}

@keyframes transformText {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8) rotate(-10deg);
    }

    50% {
        opacity: 0.8;
        transform: translateY(10px) scale(1.1) rotate(5deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

.grid {
    display: grid;
    justify-content: center;
    gap: 10px;
    color: black;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.cell {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #000;
    background-color: #9ea1ac;
    opacity: 0;
    user-select: none;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.cell.visible {
    opacity: 1;
    transform: scale(1.1);
}

.cell.selected {
    background-color: #87cefa;
}

.cell.marked {
    color: rgb(252, 250, 250);
}

/* #message {
    margin: 20px 0;
    font-size: 18px;
} */

#wordList {
    list-style-type: none;
    padding: 0;
    display: none;
}

#hintList {
    margin-top: 20px;
    font-size: 18px;
    border-radius: 5px;
    border: solid 1px ;
    padding: 3px 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



#completedMessage {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 2px 2px 5px #000;
    animation: glow 2s infinite alternate;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.parents {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    
    color: #ffffff;
    text-shadow: 2px 2px 8px #000;
    text-align: left;
}

#message {
    margin: 20px 0;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    color: white;
    font-family: play,sans-serif;
}

#rub {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #f29b34;
    box-shadow: 1px 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}
/* @media screen and (max-width: 600px) {
    .c
  } */

  @media (max-width: 1900px)
  {
      body {
          overflow: auto;
         }
  }
  @media (max-height: 700px)
  {
      body {
          overflow: auto;
         }
  }
  

  @media (max-width: 600px) {
    .cell {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .grid{
        /* gap: 5px; */
        grid-template-columns: repeat(8, 40px) !important;
    }
    body {
        overflow: auto;
       }
}


@media (max-width: 450px) {
    .cell {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .grid{
        /* gap: 5px; */
        grid-template-columns: repeat(8, 35px) !important;
    }
}

 @media (orientation: landscape) {


    @media (max-width: 850px)
    {
        body {
            overflow: auto;
           }
    }
    
  }


/*   
@media (orientation: portrait) {
    body {
     overflow: auto;
    }
  } */


  @supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */

    html {
        scroll-behavior: smooth;
      }


    body {
        overflow: auto;
       }
  }
  #scorePanel {
    /* position: fixed !important; */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Ans, sans-serif;
    font-size: 20px;
    background-color: #312122;
    border-radius: 8px;
    padding: 10px;
    color: #fff;
  }
  #reset{
    visibility: hidden;
  }

  #stBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: playy, sans-serif;
    font-size: 40px;

    background-color: #00ff00;
  }