body {
  background: #f3f4f6;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

#static-content {
  max-width: 794px; /* A4 width in px at 96dpi */
  min-height: 1123px; /* A4 height in px at 96dpi */
  margin: 40px auto;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 48px 40px;
  font-size: 1.1rem;
  color: #222;
  position: relative;
}

#static-content h1, #static-content h2, #static-content h3, #static-content h4 {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: #222;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

#static-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
}

#static-content th, #static-content td {
  border: 1px solid #d1d5db;
  padding: 0.5em 1em;
  text-align: left;
}

#static-content th {
  background: #f3f4f6;
  font-weight: 600;
}

#static-content p {
  margin: 1em 0;
}

#static-content ul, #static-content ol {
  margin: 1em 0 1em 2em;
}

#static-content code, #static-content pre {
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  background: #f9fafb;
  border-radius: 4px;
  padding: 2px 6px;
}

/* --- Navigation Buttons --- */
.workbook-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  outline: none;
  cursor: pointer;
}
.workbook-nav-btn.left {
  left: 24px;
}
.workbook-nav-btn.right {
  right: 24px;
}
.workbook-nav-btn:hover, .workbook-nav-btn:focus {
  background: #334155;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
@media (max-width: 768px) {
  .workbook-nav-btn {
    display: none !important;
  }
  .swipe-hint {
    display: flex !important;
  }
}

/* --- Swipe Hint Animation --- */
.swipe-hint {
  display: none;
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.92);
  color: #fff;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  animation: swipe-hint-fadein 1s 0.5s both;
}
@keyframes swipe-hint-fadein {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- Swipe Arrow Animation --- */
.swipe-arrow {
  width: 32px;
  height: 32px;
  display: inline-block;
  animation: swipe-arrow-move 1.2s infinite alternate;
}
@keyframes swipe-arrow-move {
  0% { transform: translateX(0); opacity: 0.7; }
  100% { transform: translateX(16px); opacity: 1; }
}

@media (max-width: 900px) {
  .workbook-nav-btn { width: 36px; height: 36px; font-size: 1.2rem; }
  .workbook-nav-btn.left { left: -18px; }
  .workbook-nav-btn.right { right: -18px; }
}

.workbook-breadcrumb {
  width: 100vw;
  position: relative;
  left: 0;
  margin: 0;
  top: 0;
  box-sizing: border-box;
  border-top: 1px solid #e0e0e0;  
  border-bottom: 1px solid #e0e0e0;  
  background: #f8f9fa;
  padding: 0.75rem 2vw;
  font-size: 1.05rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  z-index: 10;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.workbook-breadcrumb a {
  padding: 0.2em 0.5em;
  border-radius: 4px;
  transition: background 0.2s;
}
.workbook-breadcrumb a:active {
  background: #e0e0e0;
}
.workbook-breadcrumb a:hover {
  text-decoration: underline;
}
.workbook-breadcrumb .crumb-sep {
  color: #888;
  margin: 0 0.25em;
}
@media (max-width: 600px) {
  .workbook-breadcrumb {
    font-size: 0.95rem;
    padding: 0.5rem 1vw;
    justify-content: flex-start;
    min-height: 40px;
    gap: 0.3em;
  }
  .workbook-breadcrumb a {
    padding: 0.2em 0.3em;
    font-size: 0.95rem;
  }
} 

#static-content.fsi-german-basic-course.page-1,
#static-content.fsi-german-basic-course.page-2 {
  padding: 0;
}

#static-content.fsi-from-spanish-to-portuguese-course.page-1,
#static-content.fsi-from-spanish-to-portuguese-course.page-2 {
  padding: 0;
}

#static-content.fsi-german-basic-course.page-1 p,
#static-content.fsi-german-basic-course.page-2 p{
  margin: 0;
}

#static-content.fsi-from-spanish-to-portuguese-course.page-1 p,
#static-content.fsi-from-spanish-to-portuguese-course.page-2 p{
  margin: 0;
}

html {
  scrollbar-gutter: stable;
}