:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --blockquote-border: #999;
  --blockquote-text: #444;
  --details-bg: #f9f9f9;
  --details-border: #ccc;
}

body.dark-mode {
  --bg-color: #111111;
  --text-color: #dddddd;
  --blockquote-border: #555;
  --blockquote-text: #bbbbbb;
  --details-bg: #1e1e1e;
  --details-border: #444;
}

body {
  font-family: Georgia, serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 2em;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.placeholder {
  color: #0066cc;
  text-decoration: none;
}
a.placeholder:hover {
  text-decoration: underline;
}

blockquote {
  border-left: 2px solid var(--blockquote-border);
  padding-left: 1em;
  margin: 0;
  color: var(--blockquote-text);
  font-style: italic;
  background: none;
}

.custom-details summary {
  cursor: pointer;
  font-weight: normal;
  display: inline-block;
  padding: 5px 15px;
  border: 2px dotted black;
  border-radius: 20px;
  text-align: center;
  transition: color 0.3s ease-in-out;
}
.custom-details summary:hover {
  color: lightgray;
}
.custom-details summary::-webkit-details-marker {
  display: none;
}

details.custom-details {
  margin-bottom: 1.5em;
  border: 1px solid var(--details-border);
  border-radius: 8px;
  padding: 1em;
  background: var(--details-bg);
}



#headerIcon {
  position: fixed;
  top: 16px;
  left: 40px; /* bring closer to center */
  height: 48px; /* was 36px */
  width: 48px;
  z-index: 1000;
}

#modeToggle {
  position: fixed;
  top: 16px;
  right: 40px; /* match left */
  padding: 8px 16px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #ccc;
  color: #000;
  z-index: 1000;
}

.responsive-iframe {
  position: relative;
  width: 100%;
  height: 80vh; /* Change this if you want more or less vertical space */
  overflow: hidden;
  border-radius: 8px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
}


#headerIcon {
  position: fixed;
  top: 16px;
  left: 40px;
  height: 48px;
  width: 48px;
  z-index: 1000;
  transition: filter 0.3s ease;
}

body.dark-mode #headerIcon {
  filter: invert(1) brightness(1.2);
}

.custom-details a {
  color: inherit;
  text-decoration: underline dotted;
  font-weight: bold;
}

.custom-details a:hover {
  color: #2196F3;
}
