body {
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(to right, #4facfe, #00f2fe);
}

.container {
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}
.type-container {
  text-align: center;
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  animation: fadeIn 1s ease-in-out;
}

h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #fff;
}

#timer {
  font-size: 20px;
  color: #ffffff;
  background-color: #383838;
  border: none;
  padding: 10px;
  margin-left: 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
}

#text-container {
  width: 100%;
  height: auto; /* Batasi tinggi untuk menampilkan hanya dua baris kata */
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  line-height: 20px;
  border-radius: 5px;
  padding: 5px;
  background-color: #b8b8b8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.word {
  padding: 5px;
  margin: 5px;
  font-size: 20px;
}

.word-current {
  background-color: yellow;
  border-radius: 5px;
}

.correct {
  color: green;
}

.incorrect {
  color: red;
}

.letter-correct {
  color: #4caf50;
}

.letter-incorrect {
  color: #f44336;
}

#input-container {
  display: flex;
  align-items: center;
}

#input-text {
  flex: 1;
  padding: 10px;
  font-size: 16px;
}

#result {
  font-size: 18px;
  color: #333;
}

#restart-btn {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 10px;
  margin-left: 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
}

#restart-btn:hover::after {
  content: "Restart";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
}

#restart-btn:focus {
  outline: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#language-selection {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 5px;
}

#language-select {
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  background-color: #4caf50;
  color: white;
}
.label-lang-select {
  font-size: 14px;
  font-weight: 100;
}
