/* ===== GLOBAL LAYOUT ===== */

html, body {
  margin: 0;
  padding-top: 1.7em;
  height: 100%;
  overflow-y: hidden;        /* Keep page fixed */
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

/* ===== MENU COLORS ===== */

.header-menu ul li a {
  color: #fff;
}

.header-menu ul li a:hover {
  color: #007bff;
}

/* ===== LINK COLORS (Wikipedia style) ===== */

.middle-third a {
  color: #0645AD;
  text-decoration: underline;
}

.middle-third a:hover {
  color: #007bff;
}

.middle-third a:visited {
  color: #0645AD;
}

/* ===== MAIN GRID ===== */

.ancestry-container {
  display: flex;
  height: 100vh;             /* Full usable viewport */
}

/* Side images */

.left-third,
.right-third {
  width: 200px;
  position: sticky;
  top: 10px;
  height: calc(100vh - 10px);
}

.left-third {
  flex: 1;
  background: url(../images/ancestry/left-side.jpg) center/cover;
}

.right-third {
  flex: 1;
  background: url(../images/ancestry/right-side.jpg) center/cover;
}

/* ===== MIDDLE COLUMN (SCROLLABLE) ===== */

.middle-third {
  flex: 5;
  overflow-y: auto;           /* Scrollbar stays inside the middle */
  background-color: #f5edc7;
  padding: 20px 0 80px 0;     /* Prevent bottom clipping */
}

/* Prevent margin-collapse inside scroll area */
.middle-content {
  margin: 0;
  padding: 0;
}

/* ===== TYPOGRAPHY ===== */

h1 {
  text-align: center;
  font-size: 24px;
  color: #000;
  margin-bottom: 5px;
}

article {
  max-width: 700px;
  text-align: left;
  margin: 0 auto;
}

article h2 {
  text-align: left;
  font-size: 16px;
  color: #000;
  margin-bottom: 5px;
}

p {
  font-size: 16px;
  color: #000;
  line-height: 1.7;
}

/* ===== ACCORDION ===== */

.accordion {
  background-color: #f5edc7;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.5s;
  max-width: 700px;
  margin: 10px auto;
}

.accordion:after {
  content: '\25BC';
  font-size: 10px;
  color: #000;
  float: left;
  margin-right: 5px;
}

.active:after {
  content: '\25B2';
}

.panel {
  padding: 0 18px;
  background-color: #f5edc7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  max-width: 700px;
  margin: 0 auto;
}