/* Base reset and layout */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #222;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Headings */
h1, h2, h3 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

h1 {
  font-size: 2rem;
}

p {
  margin: 1rem 0;
}

.home-list li {
    margin-bottom: 1rem;
}

.home-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
}

.project-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1em;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ccc;
    padding: 1em;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

/* This targets the text container inside the card */
.project-card div {
    font-size: 0.9em;      /* or use px like 14px if preferred */
    line-height: 1.4;
}

.project-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.project-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

/* Responsive grid for wider screens */
@media (min-width: 700px) {
    .home-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .home-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Navigation */
nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
}

nav a:hover {
  color: #000;
}

/* Links in content */
a {
  color: #3366cc;
}

a:hover {
  text-decoration: underline;
}

/* Optional: center images */
img {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
}

/* Section wrapper (optional utility class) */
.section {
  padding: 2rem 0;
}

/* Tables row formatting */
.accuracy-table td {
  padding: 12px;
  border-bottom: 1px solid #ccc;
}



/* Cool before and after slider */
/* Container */
.compare-box {
  position: relative;
  max-width: 800px;           /* adjust as needed */
  width: 100%;
  overflow: hidden;
}

/* Both images fill the box */
.compare-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;          /* prevents image drag ghost */
  pointer-events: none;       /* let mouse go to handle */
}

/* Top image starts half‑revealed */
.compare-img--top {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 75% 0 0);   /* 50 % clipped from the RIGHT side */
}

.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;        /*  ←  show 75 % of the TRAINED image */
  height: 100%;
  overflow: hidden;
}


/* Divider handle */
.compare-handle {
  position: absolute;
  top: 0;
  left: 25%;
  width: 4px;
  height: 100%;
  background: #fff;
  border: 1px solid #333;
  cursor: ew-resize;
  z-index: 10;
  transition: background 0.2s;
}


.compare-box, .compare-handle {
    touch-action: pan-y;   /* Only allow vertical scroll, block horizontal swipe */
}

.compare-handle:hover {
  background: #ff33cc;
}

.compare-box,
.compare-box * {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.compare-img--top {
  will-change: clip-path;
  transform: translateZ(0);
}

.compare-handle {
  outline: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}



