/* Base styles */
body {
    font-family: Calibri, sans-serif;
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: Calibri, sans-serif;
    margin: 0.5em 0;
}

/* Paragraph styles */
p {
    margin: 0.5em 0;
}

/* List styles */
ol, ul {
    padding-left: 2em;
    margin-bottom: 2em;
    font-family: Calibri, sans-serif;
    font-size: 1.1em;
}

ol li, ul li {
    margin-bottom: 0.5em;
}

/* Custom horizontal rule */
.custom-hr {
    height: 1px;
    background-color: rgb(125, 125, 125);
    border: none;
    width: 50%;
    margin: 1em 0;
}

/* Details and summary styles */
details {
    margin-top: 5px;
    margin-bottom: 10px;
}

details > summary {
    list-style: none;
    color: var(--blue);
    font-size: 1.2em;
    text-decoration: none;
    text-transform: capitalize;
    padding: 12px 15px 10px 15px;
    margin-bottom: 0px;
    background-color: var(--platinum);
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

summary:hover {
    color: var(--white);
    background-color: var(--blue);
}

summary > open {
    color: var(--black);
    background-color: var(--blue);
}

summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

details[open] > summary::before {
    transform: rotate(90deg);
}

/* Optional: remove default marker in some browsers */
summary::-webkit-details-marker {
    display: none;
}

details > div {
    border: 1px solid #f3f3f3;
    border-radius: 4px;
    margin-top: 0;
    padding: 1rem;
    animation: fadeIn 0.5s;
}
main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

header, footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
}

code {
  display: block;
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 1em;
  margin-top: 0.5em;
  border-radius: 5px;
  font-family: Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

pre code {
  font-family: Consolas, monospace;
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 1em;
  margin-top: 0.5em;
  border-radius: 5px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #121212;
    --text: #e0e0e0;
    --blue: #1e90ff;
    --platinum: #3a3a3a;
    --white: #ffffff;
    --black: #000000;
    --code-bg: #1e1e1e;
    --code-text: #e0e0e0;
  }
}

/* Light mode support */
@media (prefers-color-scheme: light) {
  :root {
    --background: #ffffff;
    --text: #000000;
    --blue: #1e90ff;
    --platinum: #e5e5e5;
    --white: #ffffff;
    --black: #000000;
    --code-bg: #eee;
    --code-text: #000;
  }
}

/* Responsive layout helpers */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.flex-item {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background-color: var(--platinum);
    border-radius: 4px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.grid-item {
    padding: 1rem;
    background-color: var(--platinum);
    border-radius: 4px;
}

/* Tickable checklist with numbering */
ol.checklist.numbered {
  counter-reset: checklist-counter;
  list-style: none;
  padding-left: 0;
}

ol.checklist.numbered li {
  counter-increment: checklist-counter;
  margin-bottom: 1em;
  position: relative;
  padding-left: 2.5em;
}

ol.checklist.numbered li::before {
  content: counter(checklist-counter) ".";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-weight: bold;
  color: var(--text);
}

ol.checklist.numbered input[type="checkbox"] {
  margin-right: 0.75em;
  transform: scale(1.2);
  accent-color: var(--blue);
  cursor: pointer;
}

ol.checklist.numbered label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
} 