/* @font-face {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
} */

.light-theme {
    --primary-text: black;
    --text-color: rgb(51, 65, 85);
    --border-color: rgb(211, 214, 218);
    --background: white;
    --hover-background: rgb(192, 132, 252);
    --color-correct: rgb(106, 170, 100);
    --color-present: rgb(201, 180, 88);
    --color-absent: rgb(120, 124, 126);
}

.dark-theme {
    --primary-text: white;
    --text-color: white;
    --border-color: rgb(58, 58, 60);
    --background: rgb(18, 18, 19);
    --hover-background: rgb(226, 232, 240);
    --color-correct: rgb(83, 141, 78);
    --color-present: rgb(181, 159, 59);
    --color-absent: rgb(58, 58, 60);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

.faq {
  display: none;
}

.animate-pop {
    animation-name: pop;
    animation-duration: 100ms;
}

.animate-shake {
    animation-name: shake;
    animation-duration: 600ms;
}

.animate-shake > div {
    border-color: rgb(254, 202, 202) !important;
}

.animate-bounce {
    animation-name: bounce !important;
    animation-duration: 1000ms !important;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    height: 80vh;
    transition: background-color 0.4s ease;
}

.targets-container {
    display: flex;
    justify-content: space-around;
    padding: 10px;
  }

.word-box {
  width: 75px;
  height: 30px;
  background-color: #f0f0f0;
  border: 1px solid #000;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.header {
    height: 50px;
    color: var(--primary-text);
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
}

.header svg {
    fill: var(--primary-text);
}

.header h4 {
    all: unset;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 37px;
    margin-left: 2.3em;
}

.header > div {
    all: unset;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme > h5 {
    all: unset;
    font-size: 12px;
    font-weight: 500;
}

.theme-switch {
    position: relative;
    cursor: pointer;
    background-color: rgb(135, 138, 140);
    width: 32px;
    height: 20px;
    border-radius: 16px;
}

.knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 50%;
    height: calc(100% - 4px);
    background-color: white;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.theme-switch.checked {
    background-color: var(--color-correct);
}

.theme-switch.checked .knob {
    transform: translateX(calc(100% - 4px));
}

#message {
    position: absolute;
    bottom: 60px;
    left: 40%;
    opacity: 0;
    padding: 15px 25px;
    color: var(--text-color);
    font-size: 12px;
    background-color: var(--background);
    border-radius: 4px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    transition: opacity 300ms ease;
}

.grid {
  margin: 15px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.grid > div {
    display: flex;
    gap: 5px;
}

.grid > div div {
/*     height: 9vh;
    width: 9vh; */
    height: 7vh;
    width: 7vh;
    border: 2px solid var(--border-color);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4.5vh;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    background-color: var(--background);
}

.dashed-box {
    border-color: #a5b4fc !important;
}

.complete-row div {
    color: var(--background) !important;
    border: 2px solid #c084fc !important;
    background-color: #a855f7 !important;
}

.green-card {
    color: white !important;
    border: 2px solid var(--color-correct) !important;
    background-color: var(--color-correct) !important;
    animation: 500ms flip ease-in;
}

.yellow-card {
    color: white !important;
    border: 2px solid var(--color-present) !important;
    background-color: var(--color-present) !important;
    animation: 500ms flip ease-in;
}

.grey-card {
    color: white !important;
    border: 2px solid var(--color-absent) !important;
    background-color: var(--color-absent) !important;
    animation: 500ms flip ease-in;
}

.round {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 4vh;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--text-color);
}

.timer {
  padding-top: 4px;
  padding-bottom: 4px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 2.5vh;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: var(--text-color);
}



.first-round {
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
  white-space: pre-wrap;
}

.second-round {
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.third-round {
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.copy-results-button {
  /* height: 10vh;
  width: 20vh; */
  height: 50px;
  width: 100px;
  background-color: var(--background);
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 0.8em;
  color: var(--text-color);
  border-radius: 4px;
  border: 3px solid transparent;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  touch-action: manipulation;
  cursor: pointer;
  margin-top: 10px;
}

.stats-box {
  display: flex;
}

.stats-copy-img {
  height: 20px;
  width: 20px;
  margin-top: 25px;
  margin-left: 10px;
  touch-action: manipulation;
  cursor: pointer;
}

.copy-stats-button {
  /* height: 10vh;
  width: 20vh; */
  height: 30px;
  width: 80px;
  background-color: var(--background);
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 0.6em;
  color: var(--text-color);
  border-radius: 4px;
  border: 3px solid transparent;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  touch-action: manipulation;
  cursor: pointer;
  margin-top: 10px;
  margin-left: 10px;
}

.play {
  height: 5vh;
  width: 100%;
  background-color: var(--hover-background);
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  color: var(--background);
  border-radius: 4px;
  border: 3px solid transparent;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  touch-action: manipulation;
  cursor: pointer;
}

.play-main {
  height: 45px;
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: white;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  touch-action: manipulation;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 16px 0 12px 0;
}

.play-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.faq-btn {
  height: 32px;
  width: 80px;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #667eea;
  background-color: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  box-shadow: none;
  touch-action: manipulation;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.faq-btn:hover {
  background-color: rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.copy-icon {
  width: 8px;
  height: 8px;
  margin-left: 2px;
}

.keyboard {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin-inline: auto;
  margin-top: 50px;
}

.keyboard button {
    all: unset;
    box-sizing: border-box;
    padding: 8px 14px;
    min-width: 45px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: var(--text-color);
    border-radius: 4px;
    border: 3px solid transparent;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    touch-action: manipulation;
}

.keyboard button:hover {
    color: var(--background);
    background-color: var(--hover-background);
    border: 3px solid var(--hover-background);
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.keyboard button:nth-child(11) {
    margin-left: 55px;
}

.keyboard button:nth-child(19) {
    margin-right: 55px;
}

/* .keyboard button:nth-child(20) {
  
}
 */
.keyboard > button.animate-click {
    background-color: #a5b4fc;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    animation: 200ms click;
}

.copy-results-button.animate-click {
    background-color: #a5b4fc;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    animation: 200ms click;
}

.copy-stats-button.animate-click {
    background-color: #a5b4fc;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    animation: 200ms click;
}

.keyboard-grey {
    color: var(--background) !important;
    background-color: var(--color-absent) !important;
}

.keyboard-yellow {
    color: var(--background) !important;
    background-color: var(--color-present) !important;
}

.keyboard-green {
    color: var(--background) !important;
    background-color: var(--color-correct) !important;
}

.splash-screen {
    position: absolute;
    top: 0px;
    left: 0px;
    background: linear-gradient(135deg, #00c9a7 0%, #3a47d5 100%);
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.instructions {
    position: relative;
    padding: 20px;
    font-size: 14px;
    border-radius: 16px;
    border: none;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    max-height: 85vh;
    box-sizing: border-box;
    overflow-y: auto;
    margin: 10px;
}

.endgame {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: rgba(255, 255, 255, 0.5);
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  display: none;
}

.gameover {
    position: relative;
    padding: 16px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid rgb(246, 247, 248);
    color: var(--primary-text);
    background-color: var(--background);
    box-shadow: 0 4px 23px 0 rgb(0 0 0 / 20%);
    min-width: 300px;
    max-width: 500px;
    max-height: 90%;
    box-sizing: border-box;
    overflow-y: auto;
}

.youLose {
    position: relative;
    padding: 16px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid rgb(246, 247, 248);
    color: var(--primary-text);
    background-color: var(--background);
    box-shadow: 0 4px 23px 0 rgb(0 0 0 / 20%);
    min-width: 300px;
    max-width: 500px;
    max-height: 90%;
    box-sizing: border-box;
    overflow-y: auto;
}

.instructions .close-icon {
    position: absolute;
    top: 15px;
    right: 40px;
    user-select: none;
    cursor: pointer;
}

.close-icon svg {
    fill: var(--primary-text);
    position: fixed;
}

.instructions .examples {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.examples .example {
    margin: 24px 0px;
}

.example-row {
    display: flex;
    gap: 4px;
}

.example-row > div {
    width: 40px;
    height: 40px;
    font-size: calc(10px + 1.5vh);
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgb(135, 138, 140);
    box-sizing: border-box;
    user-select: none;
}

.example-row .example-correct {
    color: var(--background);
    border-color: var(--color-correct);
    background-color: var(--color-correct);
    animation: 500ms flip ease-in;
}

.example-row .example-present {
    color: var(--background);
    border-color: var(--color-present);
    background-color: var(--color-present);
    animation: 500ms flip ease-in;
}

.example-row .example-absent {
    color: var(--background);
    border-color: var(--color-absent);
    background-color: var(--color-absent);
    animation: 500ms flip ease-in;
}

.stats-total-plays {
  font-size: 2.5em;
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 0;
}

.box-container {
  display: flex;
  justify-content: space-around;
}

.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  /* border: 1px solid black; */
  box-sizing: border-box;
}

.number {
  font-size: 2em;
}

.text {
  font-size: 1em;
}

.stats-label {
  margin-bottom: 0;
}

/* Logo and branding styles */
.logo-container {
  text-align: center;
  margin-bottom: 16px;
}

.logo {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-title {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-name {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* App promo styles */
.app-promo {
  background: rgba(102, 126, 234, 0.08);
  padding: 10px 12px;
  margin: 12px 0;
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.promo-text {
  margin: 0;
  font-size: 13px;
  color: #333;
  flex: 1;
}

.download-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.download-btn:hover {
  transform: translateY(-1px);
}

/* Game rules styles */
.game-rules {
  margin: 16px 0;
  text-align: center;
}

.rules-summary {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.rules-detail {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

/* Daily info styles */
.daily-info {
  text-align: center;
  margin: 12px 0;
  padding: 8px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
}

.daily-text {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* .update-message {
  font-size: 1px;
} */

/* .updates {
  word-wrap: break-word;
} */

@media only screen and (max-width: 480px) {
    .container {
        justify-content: space-between;
    }

    .theme > h5 {
        display: none;
    }

    .header h4 {
      margin-left: 0px;
    }

    .grid > div div {
        height: 4.4vh;
        width: 4.4vh;
    }

    .instructions {
      max-width: 95%;
      padding: 16px;
      margin: 5px;
    }
    
    .logo {
      width: 50px;
      height: 50px;
    }
    
    .welcome-title {
      font-size: 18px;
    }
    
    .rules-summary {
      font-size: 12px;
    }
    
    .rules-detail {
      font-size: 11px;
    }
    
    .play-main {
      height: 40px;
      font-size: 14px;
    }
    
    .faq-btn {
      height: 28px;
      width: 70px;
      font-size: 11px;
    }

    .gameover {
      max-width: 85%;
      padding-right: 42px;
    }

  .copy-results-button {
    height: 8vh;
    width: 16vh;
  }

  .copy-stats-button {
    height: 8vh;
    width: 16vh;
  }

  .stats-copy-img {
    height: 3vh;
    width: 3vh;
    margin-top: 25px;
    margin-left: 10px;
  }

/*     .keyboard {
        max-width: 300px;
        gap: 2px;
        margin-bottom: 10vh;
    }

    .keyboard button {
        padding: 2px 6px;
        margin-top: 5px;
        min-width: 7.7vw;
        min-height: 8.7vw;
        box-shadow: none;
        border: 1px solid var(--text-color);
        user-select: none;
    } */


/*     .keyboard button:nth-child(11) {
      margin-left: 0px;
    } 
  
    .keyboard button:nth-child(12) {
        margin-left: 0px;
    }

    .keyboard button:nth-child(19) {
      margin-right: 0px;
    }

  .keyboard button:nth-child(20) {
      margin-left: 0px;
      font-size: 8px;
    }

  .keyboard button:nth-child(28) {
      margin-right: 0px;
      font-size: 8px;
    } */



/*     .keyboard button:hover{
        color: var(--text-color);
        background-color: var(--background);
        border: 1px solid var(--text-color);
        box-shadow: none;
    }

    .keyboard button:active {
        background-color: var(--hover-background);
    } */
}

@media only screen and (max-width: 700px) {
    .container {
        justify-content: space-between;
    }

    .copy-results-button {
      height: 8vh;
      width: 16vh;
    }

  .copy-stats-button {
      height: 6vh;
      width: 12vh;
    }

    .theme > h5 {
        display: none;
    }

    .header h4 {
      margin-left: 0px;
    }

    .grid > div div {
        height: 5vh;
        width: 5vh;
      font-size: 3vh;
    }
    
    .instructions {
      max-width: 90%;
      padding: 18px;
      margin: 8px;
    }
    
    .logo {
      width: 55px;
      height: 55px;
    }
    
    .welcome-title {
      font-size: 19px;
    }
    
    .play-main {
      height: 42px;
      font-size: 15px;
    }

    .keyboard {
/*         width: 100vw; */
        max-width: 95%;
        gap: 1.5vw;
        margin-bottom: 15vh;
      margin-top: 20px;
    }

    .keyboard button {
        padding: 2px 6px;
        margin-top: 2vw;
        min-width: 7.7vw;
        min-height: 9.7vw;
        box-shadow: none;
        border: 1px solid var(--text-color);
        user-select: none;
    }


    .keyboard button:nth-child(11) {
      margin-left: 3%;
    } 
  
    .keyboard button:nth-child(12) {
        margin-left: 0px;
    }

    .keyboard button:nth-child(19) {
/*       margin-right: 20px; */
      margin-right: 3%;
    }

  .keyboard button:nth-child(20) {
      margin-left: 1%;
      font-size: 12px;
    }

  .keyboard button:nth-child(28) {
      margin-right: 1%;
      font-size: 12px;
    }



    .keyboard button:hover{
        color: var(--text-color);
        background-color: var(--background);
        border: 1px solid var(--text-color);
        box-shadow: none;
    }

    .keyboard button:active {
        background-color: var(--hover-background);
    }
}

@keyframes pop {
    from {
      transform: scale(0.8);
      opacity: 0;
    }

    40% {
      transform: scale(1.1);
      opacity: 1;
    }
}

@keyframes click {
    to {
        transform: scale(0.95);
    }
}

@keyframes flip {
    0% {
      transform: rotateX(0);
    }
    50% {
      transform: rotateX(-90deg);
    }
    100% {
      transform: rotateX(0);
    }
}

@keyframes bounce {
    0%, 20% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    50% {
        transform: translateY(5px);
    }
    60% {
        transform: translateY(-15px);
    }
    80% {
        transform: translateY(2px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-1px);
    }

    20%, 80% {
        transform: translateX(2px);
    }

    30%, 50%, 70% {
        transform: translateX(-4px);
    }

    40%, 60% {
        transform: translateX(4px);
    }
}