@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

body {
  background: #0b0f10;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

main {
  width: 90%;
  max-width: 750px;
  background: #0d1315;
  padding: 2rem;
  margin: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 255, 128, 0.08);
}

h1, h2, h3 {
  font-size: 1.0em;
  color: #91bda2;
  font-weight: 400;
}

h1 {
  font-size: 1.8em;
}
h2 {
  font-size: 1.3em;
  color: #80ffb3;
}

.nick {
  color: #6fffe9;
}

.meta {
  color: #a0bfb5;
  font-size: 0.9em;
}
.meta a {
  color: #6fffe9;
  text-decoration: none;
}
.meta a:hover {
  text-decoration: underline;
}

section {
  margin-top: 1.5rem;
}

ul {
  list-style: disc;
}
ul li {
  margin-bottom: 0.3rem;
}

hr {
  border: none;
  border-top: 1px solid #6fffe926;
  margin: 1rem 0;
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: #88b69b;
}

button {
  background: transparent;
  color: #6fffe9;
  border: 1px solid #6fffe9;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
}
button:hover {
  background: rgba(111,255,233,0.1);
}

.credit span {
  color: #6fffe9;
}

@media print {
  body {
    background: white;
    color: black;
  }
  main {
    box-shadow: none;
    background: white;
  }
  button {
    display: none;
  }
}



/* --- Theme Toggle --- */
body.light-theme {
  background: #fafafa;
  color: #222;
}
body.light-theme main {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
body.light-theme h1, body.light-theme h2, body.light-theme h3 {
  color: #007f5f;
}
body.light-theme a {
  color: #007f5f;
}
body.light-theme button {
  border-color: #007f5f;
  color: #007f5f;
}
body.light-theme button:hover {
  background: rgba(0,127,95,0.1);
}

/* --- Persian Mode --- */
body.persian {
  font-family: 'Vazirmatn', sans-serif;
  text-align: right;
}
body.persian main {
  direction: rtl;
}

