

:root {
  --bg: #0b0b0b;
  --card: #111;
  --text: #eee;
  --accent: #6be6ff;
}

body.light {
  --bg: #f5f5f5;
  --card: #fff;
  --text: #111;
}

body {
  margin: 0;
  font-family: var(--font, Inter, sans-serif);
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: var(--card);
  /* position: sticky; */
  top: 0;
  z-index: 9999;
}

input {
  flex: 1;
  padding: 10px;
  border: none;
  background: #222;
  color: white;
  border-radius: 6px;
}

body.light input {
  background: #eee;
  color: #111;
}

button {
  padding: 10px;
  border: none;
  background: var(--accent);
  cursor: pointer;
  border-radius: 6px;
}
#reader * {
  visibility: visible !important;
  opacity: 1 !important;
}
#reader {
  transition: all 0.25s ease;
  visibility: visible !important;
  margin: 40px auto;
  padding: 20px;
  background: var(--card);
  border-radius: 10px;
  line-height: 1.7;
}

#reader [style*="display:none"] {
  display: block !important;
}
#reader [hidden] {
  display: block !important;
}
#reader .hidden,
#reader .hide {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#reader img {
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 100%;
  border-radius: 8px;
}

#reader img.visible {
  opacity: 1;
}

.controls {
  display: flex;
  gap: 10px;
}
#reader * {
  position: static !important;
  z-index: auto !important;
}
