


/* ========================= */
/* Theme Variables */
/* ========================= */

:root {
  --main-bg: #fff6b3;
  --text-color: #000000;
  --accent-bg: rgba(0,0,0,0.15);
  --accent-strong: rgba(0,0,0,0.3);
  --font-scale: 1;
}

/* ========================= */
/* Global */
/* ========================= */

body {
  margin: 0;
  font-family: "Comic Sans MS", cursive;
  background: var(--main-bg);
  color: var(--text-color);
  font-size: calc(16px * var(--font-scale));
  transition: background 0.3s ease, color 0.3s ease;

  /* Disable text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection inside tools panel */
.tools-panel {
  user-select: auto;
}

h3 {
  text-align: center;
  margin: 0.5rem 0;
}

/* ========================= */
/* Header */
/* ========================= */

.top-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--main-bg);
  padding: 0.5rem 0 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.top-tabs {
  display: flex;
  justify-content: center;
}

.top-tab {
  background: var(--accent-bg);
  border: none;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
  margin-left: -10px;
  cursor: pointer;
}

.top-tab:first-child { margin-left: 0; }

.top-tab.active {
  background: var(--accent-strong);
  color: white;
}

/* ========================= */
/* Main Layout */
/* ========================= */

main {
  max-width: 950px;
  margin: 180px auto 140px auto;
  text-align: center;
}

.tab-section { display: none; }
.tab-section.active { display: block; }

.slide {
  display: none;
  padding: 1rem;
  text-align: center;
}

.slide.active { display: block; }

/* ========================= */
/* Natural Width Slide Column */
/* ========================= */

.slide-content {
  display: inline-block;
  max-width: 100%;
  text-align: left;
}

.slide-content p {
  margin: 0.6rem 0;
  line-height: 1.5;
}

.slide-content ul,
.slide-content ol {
  margin: 0.6rem 0;
  padding-left: 1.4rem;
}

.slide-content img {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.slide-counter {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}

/* ========================= */
/* Bottom Controls */
/* ========================= */

.bottom-fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--main-bg);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 2000;
  transition: transform 0.3s ease;
}

button {
  background: var(--accent-bg);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
  color: white;
}

/* ========================= */
/* Accessibility Panel */
/* ========================= */

.access-icon {
  background: var(--accent-bg);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.tools-panel {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-bg);
  padding: 1rem;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 220px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  z-index: 5000;
}

.tools-panel.active { display: flex; }

/* ========================= */
/* Reading Ruler */
/* ========================= */

#readingRuler {
  position: fixed;
  left: 0;
  width: 100%;
  height: 60px;
  top: 200px;
  display: none;
  z-index: 6000;
  cursor: grab;
}

#readingRuler.active { display: block; }
#readingRuler.dragging { cursor: grabbing; }

/* ========================= */
/* Presenter Mode */
/* ========================= */

body.presenter-mode {
  overflow: hidden;
}

body.presenter-mode main {
  margin: 40px auto 0 auto;
  max-width: 95%;
  height: calc(100vh - 100px);
  overflow-y: auto;
  padding-bottom: 140px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.presenter-mode main::-webkit-scrollbar {
  display: none;
}

body.presenter-mode .slide {
  font-size: calc(24px * var(--font-scale));
}

body.presenter-mode h3 {
  display: none;
}

body.presenter-mode.hide-controls .bottom-fixed {
  transform: translateY(100%);
}

body.presenter-mode.hide-controls .top-fixed {
  transform: translateY(-120%);
}

.presenter-toggle-btn {
  display: none;
}

body.presenter-mode .presenter-toggle-btn {
  display: block;
  position: fixed;
  bottom: 10px;
  left: 15px;
  z-index: 4000;
}

img{
      border-radius: 8px;
}

pre{
  user-select:text;
  max-width:800px;
  width: 100%;
  background-color:black;
  color:white;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding:5px;
  border-radius:5px;
}


summary{
border: 1px dotted black; 
background-color:black; 
cursor:pointer; 
border-radius:5px;
padding:2px;
color:white;
}

.extension-summary{
    border: 1px dotted black; 
background-color:black; 
cursor:pointer; 
border-radius:5px;
padding:2px;
color:pink;
font-weight:bold;
}


.inline-code
{
font-family: Courier; 
font-weight:bold; 
color:white; 
background-color:black;
padding:3px;
border-radius:2px;
}

ul li{
    margin-bottom:10px;
}



/* ===== Wrapper ===== */
.fib-wrapper {
  max-width: 750px;
  margin: 40px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
}

/* ===== Title ===== */
.fib-wrapper h2 {
  margin-bottom: 25px;
}

/* ===== Passage ===== */
.fib-passage {
  font-size: 18px;
  line-height: 2.2;
  color: #1f2937;
}

/* ===== Input Boxes ===== */
.fib-passage input {
  padding: 10px 12px;
  margin: 6px 6px;
  min-width: 140px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid #d1d5db;
  background: #ffffff;
  box-sizing: border-box;
  vertical-align: middle;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* IMPORTANT: More specific selectors so they override base input */
.fib-passage input.fib-correct {
  border-color: #16a34a !important;
  background-color: #dcfce7 !important;
}

.fib-passage input.fib-incorrect {
  border-color: #dc2626 !important;
  background-color: #fee2e2 !important;
}

/* ===== Word Bank Container ===== */
.fib-wordbank {
  margin-top: 35px;
  padding: 25px;
  background: #f3f4f6;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

/* Word Bank Title (optional if you add one) */
.fib-wordbank::before {
  content: "Word Bank";
  display: block;
  font-weight: 600;
  margin-bottom: 15px;
  color: #374151;
}

/* ===== Word Items ===== */
.fib-word {
  display: inline-block;
  padding: 10px 16px;
  margin: 8px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px; /* pill style */
  font-weight: 500;
  color: #111827;

  /* Non-interactive */
  pointer-events: none;
  user-select: none;
  cursor: default;
}

/* ===== Screenshot Button ===== */
.fib-button {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  cursor: pointer;
  margin-top: 30px;
  font-size: 15px;
  font-weight: 500;
  transition: 0.2s ease;
}

.fib-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(79,70,229,0.3);
}








/* ========================= */
/* Theme Variables */
/* ========================= */

:root {
  --main-bg: #fff6b3;
  --text-color: #000000;
  --accent-bg: rgba(0,0,0,0.15);
  --accent-strong: rgba(0,0,0,0.3);
  --font-scale: 1;
}

/* ========================= */
/* Global */
/* ========================= */

body {
  margin: 0;
  font-family: "Comic Sans MS", cursive;
  background: var(--main-bg);
  color: var(--text-color);
  font-size: calc(16px * var(--font-scale));
  transition: background 0.3s ease, color 0.3s ease;

  /* Disable text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection inside tools panel */
.tools-panel {
  user-select: auto;
}

h3 {
  text-align: center;
  margin: 0.5rem 0;
}

/* ========================= */
/* Header */
/* ========================= */

.top-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--main-bg);
  padding: 0.5rem 0 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.top-tabs {
  display: flex;
  justify-content: center;
}

.top-tab {
  background: var(--accent-bg);
  border: none;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
  margin-left: -10px;
  cursor: pointer;
}

.top-tab:first-child { margin-left: 0; }

.top-tab.active {
  background: var(--accent-strong);
  color: white;
}

/* ========================= */
/* Main Layout */
/* ========================= */

main {
  max-width: 950px;
  margin: 180px auto 140px auto;
  text-align: center;
}

.tab-section { display: none; }
.tab-section.active { display: block; }

.slide {
  display: none;
  padding: 1rem;
  text-align: center;
}

.slide.active { display: block; }

/* ========================= */
/* Natural Width Slide Column */
/* ========================= */

.slide-content {
  display: inline-block;
  max-width: 100%;
  text-align: left;
}

.slide-content p {
  margin: 0.6rem 0;
  line-height: 1.5;
}

.slide-content ul,
.slide-content ol {
  margin: 0.6rem 0;
  padding-left: 1.4rem;
}

.slide-content img {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.slide-counter {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}

/* ========================= */
/* Bottom Controls */
/* ========================= */

.bottom-fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--main-bg);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 2000;
  transition: transform 0.3s ease;
}

button {
  background: var(--accent-bg);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
  color: white;
}

/* ========================= */
/* Accessibility Panel */
/* ========================= */

.access-icon {
  background: var(--accent-bg);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.tools-panel {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-bg);
  padding: 1rem;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 220px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  z-index: 5000;
}

.tools-panel.active { display: flex; }

/* ========================= */
/* Reading Ruler */
/* ========================= */

#readingRuler {
  position: fixed;
  left: 0;
  width: 100%;
  height: 60px;
  top: 200px;
  display: none;
  z-index: 6000;
  cursor: grab;
}

#readingRuler.active { display: block; }
#readingRuler.dragging { cursor: grabbing; }

/* ========================= */
/* Presenter Mode */
/* ========================= */

body.presenter-mode {
  overflow: hidden;
}

body.presenter-mode main {
  margin: 40px auto 0 auto;
  max-width: 95%;
  height: calc(100vh - 100px);
  overflow-y: auto;
  padding-bottom: 140px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.presenter-mode main::-webkit-scrollbar {
  display: none;
}

body.presenter-mode .slide {
  font-size: calc(24px * var(--font-scale));
}

body.presenter-mode h3 {
  display: none;
}

body.presenter-mode.hide-controls .bottom-fixed {
  transform: translateY(100%);
}

body.presenter-mode.hide-controls .top-fixed {
  transform: translateY(-120%);
}

.presenter-toggle-btn {
  display: none;
}

body.presenter-mode .presenter-toggle-btn {
  display: block;
  position: fixed;
  bottom: 10px;
  left: 15px;
  z-index: 4000;
}

img{
      border-radius: 8px;
}

pre{
  user-select:text;
  max-width:800px;
  width: 100%;
  background-color:black;
  color:white;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding:5px;
  border-radius:5px;
}


summary{
border: 1px dotted black; 
background-color:black; 
cursor:pointer; 
border-radius:5px;
padding:2px;
color:white;
}

.extension-summary{
    border: 1px dotted black; 
background-color:black; 
cursor:pointer; 
border-radius:5px;
padding:2px;
color:pink;
font-weight:bold;
}


.inline-code
{
font-family: Courier; 
font-weight:bold; 
color:white; 
background-color:black;
padding:3px;
border-radius:2px;
}

ul li{
    margin-bottom:10px;
}