/* Custom background styling */
body {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/assets/background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: white !important;
}

/* Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: white;
}

/* Custom button styles */
.download-button {
  display: block;
  width: fit-content;
  margin: 2rem auto;
  background-color: #444;
  color: white;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  text-align: center;
}

/* Custom footer styles */
.wrapper-footer,
.wrapper-footer .container,
.footer {
  background: transparent;
  background-image: none;
}

.wrapper-footer {
  background: inherit;
}

.footer {
  color: white;
}

/* Image styles */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.scaled-img-75 {
  width: 75%;
  height: auto;
}

.scaled-img-50 {
  width: 50%;
  height: auto;
}

.scaled-img-25 {
  width: 25%;
  height: auto;
}

/* Captioning styles */
figure {
  text-align: center;
  margin: 0;
}

figcaption {
  font-size: 1rem;
  color: white;
  margin-top: 10px;
}

/* Navigation styling */
nav a {
  color: rgba(245, 245, 245, 0.856);
  font-weight: bold;
  text-decoration: none;
}

/* Post styling */
.post-card {
  background-color: #444;
  border: 5px solid #1e1e1e;
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 0.25rem;
  color: white;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.post-tags {
  background-color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  color: #ddd;
  font-size: 0.75rem;
}

.post-date {
  background-color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  color: #ccc;
  font-size: 0.75rem;
}

.post-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.post-title a {
  color: white;
  text-decoration: none;
}

.post-title a:hover {
  color: #aaa;
}

.post-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 1rem;
}

/* Centre text styling */
.center-text {
  text-align: center;
}

/* Quote styling */
blockquote {
  font-style: italic;
  margin: 20px 0;
  padding-left: 20px;
  border-left: 4px solid #ccc;
  color: white !important;
  font-size: 0.5rem;
}

/* Codeblock styling */
code {
  background-color: #1e1e1e;
  color: #f8f8f2;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
}

pre,
pre code {
  background-color: #1e1e1e !important;
  color: #f8f8f2 !important;
  font-family: "Courier New", monospace;
  font-size: 0.95em;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
  display: block;
}

/* Hyperlink styling */
a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
}

a:hover {
  opacity: 0.85;
}

/* Table styles */
.markdown-body table {
  border-collapse: collapse;
  margin: 2rem auto;
  width: auto;
  background-color: #222;
  color: white;
  border: 2px solid #555;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #555;
  padding: 0.75rem 1.25rem;
  text-align: left;
}

.markdown-body th {
  background-color: #333;
  font-weight: bold;
}

.markdown-body tr:nth-child(even) {
  background-color: #2a2a2a;
}

table {
  border-collapse: collapse;
  margin: 2rem auto;
  width: auto;
  background-color: #222;
  color: white;
  border: 2px solid #555;
}

th,
td {
  border: 1px solid #555;
  padding: 0.75rem 1.25rem;
  text-align: left;
}

th {
  background-color: #333;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #2a2a2a;
}
