h1 {
  text-align: center;
}

h3 {
  text-align: center;
}

p {
  text-align: center;
}

#shareContainer {
  margin-top: 10px;
}

#whatsappShare {
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  padding: 20px;
  background: rgb(206, 195, 195);
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}


body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: rgb(206, 195, 195);
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}


input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 10px;
  box-sizing: border-box;
}


button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

#result {
  margin-top: 15px;
  font-weight: bold;
}

.letter-values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.letter-tile {
  min-width: 70px;
  min-height: 70px;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 6px;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.subtitle {
  color: #666;
  margin-bottom: 1.5rem;
}

.used-letter {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
}

#gameStatus {
  margin-bottom: 1rem;
  font-weight: bold;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================
   Mobile responsiveness
   ========================= */
@media (max-width: 600px) {

  /* Center header content */
  header {
    text-align: center;
    padding: 0 1rem;
  }

  /* Make title more readable on mobile */
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  /* Ensure main container aligns with header */
  .container {
    width: 100%;
    max-width: none;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  /* Improve input & button sizing for touch */
#wordInput {
  width: 100%;
  font-size: 3rem;
  font-weight: 1200;     /* BOLD */
  height: 4.5rem;
  line-height: 4.5rem;  /* key part */
  padding: 0 0.75rem;
  text-align: center;
  box-sizing: border-box;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}






  #submitBtn {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.1rem;
  }
}
