* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200vh;
  background-color: #f0f0f0;
 
}

.container {
  text-align: center;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(172, 171, 171, 0.1);
  
}

h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.sentence-container {
  margin-bottom: 20px;
  margin-top: 25%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding-top: 80px;
}

.letter-box {
  display: inline-block;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 22px;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  
}

.correct {
  background-color: #28a745; /* Green for correct */
  color: white;
}

.wrong {
  background-color: #dc3545; /* Red for wrong */
  color: white;
}

textarea {
  width: 100%;
  height: 150px;
  font-size: 22px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats p {
  font-size: 20px;
}

/* Button */

button {
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}


    .button-container {
      float: left;
      align-items: center;
      text-align: center;
   

    }

    .serial-button {
      padding: 10px 20px;
      margin: 5px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
 
    }

    .serial-button:hover {
      background-color: #45a049;
   
    }


    /* game */
        body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.game-container {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  width: 1280px;
  text-align: center;
}

h1 {
  margin-bottom: 10px;
}

.instructions {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

#word-display {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  min-height: 30px;
}

#typed-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 16px;
}

button#start-button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button#start-button:hover {
  background: #45a049;
}


/* button  */
button {
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}


    .button-container {
      float: left;
      align-items: center;
      text-align: center;
      /* margin-left: 500px; */

    }

    .serial-button {
      padding: 10px 20px;
      margin: 5px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
 
    }

    .serial-button:hover {
      background-color: #45a049;
   
    }
