body {
    font-family: system-ui;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #222;
}
header {
    background-image: url('../media/LandsEndSF_LakeChabot_LandsEndSF.jpg');
    background-size: 100% 100%;
    background-position: 100% 100%;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}
header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
nav {
    background-color: #3d3d3d;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}
section {
    margin-bottom: 2.5rem;
}
footer {
    background-color: #3d3d3d;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}
.GreenLink {
    color: #66a54d;
    text-decoration: none;
}

.GreenLink:hover {
    color: #7fcc61;
    text-decoration: underline;
}

.link-card {
    display: inline-block;
    border: 2px solid #ffffff;        
    border-radius: 12px;              
    text-decoration: none;
    color: #0b66c3;                   
    transition: transform 0.15s ease, 
                box-shadow 0.15s ease;
}

.link-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    background-color: #f0f8ff;
}
.showcase {
    height: 70vh;
    overflow-y: auto;
    margin: 2rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.showcase .card {
    display: block;
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    position: relative;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

/* Subtle readability overlay */
.showcase .card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.00) 0%, rgba(0,0,0,.15) 100%);
    pointer-events: none;
}

/* Title/label on top of image */
.showcase .label {
    position: absolute;
    left: 16px; right: 16px; bottom: 14px;
    font-weight: 700;
    color: #2c0018;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Nice hover effect */
.showcase .card:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.25);
}

/* Optional: slim scrollbars (WebKit) */
.showcase::-webkit-scrollbar { width: 10px; }
.showcase::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15); border-radius: 8px;
}

.breadcrumb {
    text-align: left;
    font-size: 0.9rem;
    margin: 0rem;
    color: #818181;
}

.breadcrumb a {
    color: #66a54d;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #7fcc61;
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
}
.showcase .label {
    position:absolute;
    top: 16px;
    left: 16px;
    right: auto;
    bottom: auto;
    font-weight: 700;
    color: #2c0018;
    font-size: 1.1rem;
    line-height: 1.3;
}
.inlineIMG {
    max-width: 100%;
    height: auto;
    display: block;
}

.card{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;           /* or set a fixed height */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #000;             /* fallback color while loading */
}

/* make the video behave like a background image */
.card__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* like background-size: cover */
  pointer-events: none;         /* keep the <a> fully clickable */
}

/* subtle gradient for text readability */
.card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
}

.card__title{
  position: absolute;
  left: 12px; bottom: 12px;
  font: 600 1rem/1.1 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  z-index: 1;
  color:#000;
}

.cluster_list {
    list-style: none;
    counter-reset: step;
    padding-left: 6.2em;
}
.cluster_list li {
    counter-increment: step;
}
.cluster_list li::marker {
    content: "Cluster " counter(step) ": ";
    font-weight: bold; }

.imputation {
  list-style: none;
  padding-left: 2.5em;
}
.imputation li.LR::before {
  content: "linear regression (LR) imputation: ";
  font-weight: bold;
}
.imputation li.PMM::before {
  content: "predictive mean matching (PMM) imputation: ";
  font-weight: bold;
}

.missing_data{
    list-style: none;
    padding-left: 2.5em;
}
.missing_data li.MCaR::before{
    content: "Missing Completely at Random (MCaR):" ;
    font-weight: bold;
}
.missing_data li.MaR::before{
    content: "Missing at Random (MaR):";
    font-weight: bold;
}
.missing_data li.MNaR::before{
    content: "Missing Not at Random (MNaR):";
    font-weight: bold;
}

#plot {
  width: 100%;
  max-width: 1100px;
  height: 640px;
  margin: 24px auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}