/* styles.css */

html {
  font-size: 18px;
  letter-spacing: 0.02rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Times New Roman", Times, serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: Martel, serif;
}

.roboto {
  font-family: roboto-mono, monospace;
}

/* Smooth opacity transition for fade-in effects */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.6s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.post_markdown {
  counter-reset: h1; /* Initializes the counter */
}

.post_markdown h1 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 900;
  font-family: "Times New Roman", Times, serif;
  color: rgb(16, 185, 129) !important;
  counter-increment: h1;
}

.post_markdown h1::before {
  content: counter(h1);
  color: rgb(16, 185, 129);
  display: inline-block;
  width: 1.5em;
  font-size: 1rem;
  margin-left: -1.5em;
  font-weight: 400;
}

.post_markdown h2 {
  margin-top: 25px;
  margin-bottom: -5px;
  font-size: 1.1rem;
  font-weight: 900;
  font-family: "Times New Roman", Times, serif;
}

.post_markdown h3 {
  margin-top: 15px;
  margin-bottom: -5px;
  font-size: 1rem;
  font-weight: 900;
}

.post_markdown p {
  margin-top: 1.2rem;
  text-align: justify;
}

.post_markdown img:not(.download-btn-img) {
  display: block;
  margin: 15px auto;
  background-color: rgb(243, 244, 246);
  border: 1px solid rgb(16, 185, 129);
  border-radius: 4px;
  padding: 15px;
}

.post_markdown img {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.post_markdown img:hover {
  opacity: 0.9;
}

.post_markdown .tip_box {
  margin: 20px 0;
  border: 2px dotted rgb(16, 185, 129);
  padding: 10px 20px;
  background: white;
}

.post_markdown ul {
  margin-top: 1rem;
  list-style: disc inside !important;
}

.post_markdown li::marker {
  color: rgb(16, 185, 129) !important;
}

.post_markdown table {
  margin-top: 1rem;
}

.post_markdown iframe {
  display: block;
  margin: 0 auto;
  border: 1px solid gray;
  width: 100% !important;
}

.post_markdown a {
  text-decoration: underline;
}

.file-download-link .no-underline {
  text-decoration: none !important;
}

.file-download-link {
  text-decoration: none !important; /* Remove underline from entire <a> */
}

.post_markdown blockquote {
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

table,
th,
td {
  border: 1px solid #ccc;
}

th,
td {
  padding: 7px 10px; /* Makes cells spacious */
  text-align: left;
}

.post_markdown code {
  font-family: "Courier New";
  background-color: #1f2937; /* Equivalent to bg-gray-200 */
  color: #f5f5f5;
  font-size: 0.75rem !important;
  padding: 0.75rem;
  width: 100%;
  display: block;
  border-radius: 2px;
  margin: 1rem 0;
}

p:has(> code) {
  /* Your styles here */
  margin: 1rem 0;
  width: 100%;
}

/* Download button */

/* View Post */
.tags_list > button:first-child {
  background-color: #10b981 !important;
}
