body {
  margin: 0;
  background: #f5f5f5;
  color: #222;
  font-family:
    "Mangal",
    "Noto Sans Devanagari",
    Arial,
    sans-serif;
}

.site-header {
  background: #0b74de;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.site-header nav a {
  color: #fff;
  margin: 0 8px;
  text-decoration: none;
}

.hero {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #0b74de;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.ad-box {
  text-align: center;
  margin: 20px;
  padding: 10px;
  background: #eaeaea;
  color: #666;
}

.site-footer {
  background: #222;
  color: #fff;
  padding: 15px;
  text-align: center;
}

.site-footer a {
  color: #fff;
  margin: 0 5px;
}

.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 20px auto;
}

.ebook-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.price {
  font-weight: bold;
  margin-top: 10px;
}

.note {
  font-size: 14px;
  color: #555;
}
.instructions {
  background:#f9fafb;
  border-left:4px solid #0b74de;
  padding:12px;
  margin-bottom:15px;
  font-size:15px;
}
.instructions h3 {
  margin-top:0;
}

.strict-mode {
  display:block;
  margin:10px 0;
  font-size:14px;
}

.results {
  display:none;
  background:#eef6ff;
  border:2px solid #0b74de;
  border-radius:8px;
  padding:15px;
  margin-top:20px;
  text-align:center;
}

.result-actions {
  margin-top:15px;
  display:flex;
  justify-content:center;
  gap:10px;
}
/* ===== Typing Page UI ===== */

.container,
.typing-container {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.text-display {
  border: 1px solid #ccc;
  padding: 15px;
  min-height: 120px;
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.6;
  background: #fafafa;
}

.input-box {
  width: 100%;
  height: 120px;
  padding: 12px;
  font-size: 18px;
  border-radius: 6px;
  border: 1px solid #aaa;
}

.stats {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  font-weight: bold;
}

.practice-buttons {
  margin-top: 15px;
}

.practice-buttons button {
  padding: 10px 16px;
  margin-right: 10px;
  border-radius: 6px;
  border: none;
  background: #0b74de;
  color: #fff;
  cursor: pointer;
}

.practice-buttons button:hover {
  background: #095bb5;
}

#originalText {
  font-size: 20px;
  font-weight: 500;
  color: #222;
  margin-bottom: 10px;
}

#originalText {
  font-size: 20px;
  font-weight: 600;
  color: #111;
}

#typedText span {
  font-weight: 600;
}

.results {
  margin-top: 20px;
  background: #f1f8ff;
  border: 2px solid #0b74de;
  padding: 15px;
  border-radius: 8px;
}
#originalText,
#typedText,
.input-box {
  font-family: "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
  font-size: 20px;
}



/* ===== Language Selection ===== */

.lang-switch {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.lang-switch .btn {
  font-size: 18px;
  padding: 14px 22px;
}

.hint {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

.day-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.day-list .btn {
  min-width: 90px;
  text-align: center;
}

.instructions {
  margin-top: 25px;
  background: #f8f9ff;
  border-left: 4px solid #0b74de;
  padding: 15px;
  border-radius: 6px;
}

.instructions h3 {
  margin-bottom: 10px;
}

.instructions ul {
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 6px;
  font-size: 15px;
}
.mode-switch {
  margin: 15px 0;
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.correct { color: #2ecc71; }
.wrong { color: #e74c3c; text-decoration: underline; }
.pending { color: #999; }

