* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
}
.typing-tool {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.typing-tool h1 {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 10px;
}

.typing-tool .description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

.typing-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

#text-display {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #444;
}

#input-text {
  width: 100%;
  height: 120px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
  resize: none;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1rem;
}

.typing-box button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.typing-box button:hover {
  background: #1e40af;
}

.seo-article {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.seo-article h2, .seo-article h3 {
  color: #2563eb;
}

.seo-article p, .seo-article ul {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

.seo-article ul {
  padding-left: 20px;
}
.typing-tool {
    max-width: 720px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f9f9fc;
    border-radius: 16px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
  }

  .tool-heading {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 0.5rem;
  }

  .tool-subheading {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
  }

  .level-selector {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    max-width: 320px;
  }

  .level-selector label {
    font-weight: 600;
    color: #007bff;
  }

  .custom-select-wrapper select {
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background-color: #007bff;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='white' points='70,100 100,40 40,40'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 0.9rem;
    appearance: none;
  }

  .custom-select-wrapper select:hover {
    background: linear-gradient(to right, #0056b3, #0099ff);
  }

  .typing-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  }

  .typing-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 500;
  }

  #input-text {
    width: 100%;
    height: 100px;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #007bff;
    border-radius: 8px;
    resize: none;
    margin-bottom: 1rem;
  }

  .stats {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
  }

  .restart-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .restart-btn:hover {
    background: #0056b3;
  }
   .result-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  .popup-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
/* Responsive */
@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: 10px;
  }

  .typing-tool h1 {
    font-size: 2rem;
  }

  #input-text {
    height: 100px;
  }
}
