:root {
  --bs-secondary-bg-subtle: #e2e3e5;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

div {
  font: 20px;
}

.article__title {
  text-align: center;
  margin: 1rem 0;
}

.article--white {
  background-color: white;
}

/* ALL CLASSES BELOW
   COPIED DIRECTLY FROM CUSTOM.CSS */
/* JUPTER NOTEBOOK CLASSES */
/* 1. Main Container */
.notebook-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  padding: 20px 20px 20px 0px;
  background-color: #fff;
  max-width: 100%; /* Ensures it doesn't exceed screen width */
}

/* 2. The Wrapper that handles the scrollbar */
.table-responsive {
  width: 100%;
  overflow-x: auto; /* Adds horizontal scroll if table is too wide */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  border: 1px solid #eee; /* Optional: subtle border around the scroll area */
}

/* 3. Table Styling */
table.dataframe {
  border-collapse: collapse;
  border: none;
  font-size: 14px;
  line-height: 1.5;
  color: #212529;
  width: 100%; /* Allows it to expand to fill the wrapper */
  min-width: 800px; /* Forces scrolling on very small screens */
}

table.dataframe thead th {
  font-weight: bold;
  text-align: left;
  padding: 8px 16px 8px 8px;
  border-bottom: 2px solid #dee2e6;
  background-color: #fff;
  white-space: nowrap; /* Prevents headers from wrapping weirdly */
}

table.dataframe tbody th {
  font-weight: bold;
  text-align: left;
  padding: 8px;
  border-top: 1px solid #dee2e6;
}

table.dataframe tbody td {
  padding: 8px 16px 8px 8px;
  border-top: 1px solid #dee2e6;
  vertical-align: middle;
  white-space: nowrap; /* Keeps timestamps on one line like the image */
}

table.dataframe tbody tr:nth-child(even) {
  background-color: #f7f7f7;
}

/* --- NEW: Jupyter Code Input Cell Style --- */
.code-cell {
  background-color: #f7f7f7; /* Light gray background */
  border: 1px solid #e0e0e0; /* Subtle border */
  padding: 8px 12px;
  margin-bottom: 10px; /* Spacing between code and output */
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  color: #303030;
  /* white-space: pre-wrap; Preserves spacing */
  border-radius: 2px; /* Slight rounding of corners */
}

.output-text-alt {
  /* This line replaces the <pre> behavior */
  white-space: pre;
  font-family: "Consolas", "Monaco", "Ubuntu Mono", monospace;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #333;
  display: block;
  overflow-x: auto; /* Adds the horizontal scroll for mobile */
  padding: 10px 0;
}

.article-card {
  background-color: #f5f7fa; /* soft light gray-blue */
  border: 1px solid #c8d2dc; /* more visible, complementary neutral-blue */
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); /* subtle lift */
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* If the text column is the only column in the row, force it to take full width */
.card .row > .content-col:only-child {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

/* correlation_r */
/* Container styling */
.stats-article {
  line-height: 1.6;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: black;
  text-transform: uppercase;
}

/* Lists and Text */
.list-container {
  padding-left: 20px;
  margin-bottom: 20px;
}

.figure-caption {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  font-style: italic;
  margin-top: -10px;
}

.img-fluid {
  width: 100%;
  height: auto;
}

.c_f {
  max-height: 400px;
}

.reference {
  max-width: 100%;
}

/* Database Article Styles */
.database-article__section {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: #ffffff;
  border-radius: 8px;
}
.database-article__title {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-top: 0.5rem; /* Reduced from 1.5rem */
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}
.database-article__text {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.database-article__list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.database-article__list--bullets {
  list-style-type: disc;
  padding-left: 1.5rem;
}
.database-article__list-item {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: #f9f9f9;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.database-article__list-item--horizontal {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.database-article__list-item--simple {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0.5rem;
  display: list-item; /* Ensure bullets show if parent has them */
  border-radius: 0;
}
.database-article__logo {
  height: 50px; /* Increased from 40px */
  width: 50px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.database-article__image-container {
  text-align: center;
  margin: 1.5rem 0;
}
.database-article__image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.database-article__image--large {
  width: 100%;
  max-width: 800px;
}
.database-article__image--logo {
  width: 55px; /* Bigger and consistent */
  height: 55px;
  object-fit: contain;
  margin-right: 15px;
  vertical-align: middle;
  flex-shrink: 0; /* Prevent squeezing */
  box-shadow: none; /* Logos usually don't need shadow */
}
.database-article__label {
  font-weight: bold;
  color: #555;
}
.database-article__code {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-x: auto;
  color: #333;
}
.database-article__code-keyword {
  color: #d73a49;
  font-weight: bold;
}
.database-article__code-column {
  color: #005cc5;
}
.database-article__code-string {
  color: #22863a;
}
.database-article__code-number {
  color: #e36209;
}
.database-article__subtitle {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: #333;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.article-container {
  min-height: 100vh;
  background-color: var(--bs-secondary-bg-subtle);
}

.parallax-section {
  height: 100vh;
  background-image: var(--home-bg);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-box {
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  position: absolute;
  top: 17%; /* Adjust this value as needed */
  left: 50%;
  transform: translate(-50%, -50%);
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 768px) {
  .overlay-box {
    top: 35%;
  }
}
@media (min-width: 768px) {
  .overlay-box {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .overlay-box {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .overlay-box {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .overlay-box {
    max-width: 1320px;
  }
}

.overlay-box__text {
  color: white;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  .overlay-box__text {
    font-size: 2rem;
  }
}

.result-box {
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  min-height: 220px;
  max-height: 350px;
  overflow: auto;
  margin-top: 7px;
  margin-bottom: 12px;
}
@media screen and (max-width: 1199.98px) {
  .result-box {
    min-height: 120px;
    height: 120px;
  }
  .result-box--has-results {
    height: 300px;
    max-height: 300px;
  }
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table__header {
  padding: 6px 10px;
  border: 1px solid #ccc;
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: #e9ecef;
  z-index: 2;
  /* Remove the standard top border and replace with a shadow */
  border-top: none;
  box-shadow: inset 0 1px 0 #ccc, inset 0 -1px 0 #ccc; /* Bottom border */
}

.result-table__rows {
  padding: 6px 10px;
  border: 1px solid #ccc;
  white-space: nowrap;
}

.result-table__rows--empty {
  text-align: center;
  color: #777;
}

/* Layout for the practice page */
@media (min-width: 1200px) {
  .sql-practice-layout {
    flex-wrap: nowrap !important;
  }
}
@media (max-width: 1199.98px) {
  .sql-practice-layout {
    flex-wrap: wrap !important;
  }
}
@media (min-width: 1200px) {
  .sql-practice-layout__task-column {
    width: 450px !important;
    max-width: 500px !important;
    flex: 0 0 auto !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .sql-practice-layout__task-column {
    flex: 0 0 auto !important;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }
}
@media (max-width: 767.98px) {
  .sql-practice-layout__task-column {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
  }
}
.sql-practice-layout__task-list, .sql-practice-layout__schema-list {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  /* Optional: custom scrollbar for better look */
}
.sql-practice-layout__task-list::-webkit-scrollbar, .sql-practice-layout__schema-list::-webkit-scrollbar {
  width: 6px;
}
.sql-practice-layout__task-list::-webkit-scrollbar-track, .sql-practice-layout__schema-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.sql-practice-layout__task-list::-webkit-scrollbar-thumb, .sql-practice-layout__schema-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.sql-practice-layout__task-list::-webkit-scrollbar-thumb:hover, .sql-practice-layout__schema-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
.sql-practice-layout__main-column {
  min-width: 0;
}
@media (min-width: 1200px) {
  .sql-practice-layout__main-column {
    flex: 1 1 auto !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .sql-practice-layout__main-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    border-right: none !important;
  }
}
@media (max-width: 1199.98px) {
  .sql-practice-layout__main-column {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
  }
}
@media (min-width: 1200px) {
  .sql-practice-layout__schema-column {
    width: 320px !important;
    max-width: 350px !important;
    flex: 0 0 auto !important;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .sql-practice-layout__schema-column {
    flex: 0 0 auto !important;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }
}

.task-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.task-item__title {
  color: #0d6efd;
  margin-bottom: 0;
}
.task-item__answer-toggle {
  font-size: 0.8rem;
  color: #6c757d;
  cursor: pointer;
  text-decoration: underline;
  user-select: none;
}
.task-item__answer-toggle:hover {
  color: #0d6efd;
}
.task-item__answer-content {
  margin-top: 10px;
  padding: 8px;
  background-color: #f8f9fa;
  border-left: 3px solid #198754;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

/* Sub-category styling */
.sub-category-details {
  margin-left: 15px;
  border-left: 2px solid #e9ecef;
  margin-bottom: 5px;
}
.sub-category-details__summary {
  padding: 8px 12px !important;
  background-color: #ffffff !important;
  font-size: 0.95rem;
  color: #495057;
  border-bottom: 1px solid #f8f9fa !important;
}
.sub-category-details__summary:hover {
  background-color: #f8f9fa !important;
}
.sub-category-details__content {
  padding-left: 5px;
}

.custom-btn {
  padding: 8px 16px;
  background-color: #212529;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.custom-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

.custom-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  max-width: 100vw;
  height: 100vh;
  background-color: white;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1045;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.sidebar-body {
  overflow-y: auto;
}

.custom-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.custom-sidebar.is-open {
  transform: translateX(0);
}

/* Styling for the native HTML accordion */
details summary {
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
} /* Hides default arrow in Safari/Chrome */
.task-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  font-size: 0.9em;
  background-color: #fff;
}

/*# sourceMappingURL=custom.css.map */
