#_dbg { display: none !important; }

/* D3 SVG intro slides — replaced by HTML slides, never shown */
#slide0, #slide1, #slide2 {
  display: none !important;
}
/* svg-wrapper: no z-index needed */
#svg-wrapper {
  overflow-x: hidden;
  overflow-y: auto;
}
#svg-wrapper svg {
  display: block;
}

body {
  padding: 0;
  font: 17px sans-serif;
  font-weight: 100;
  line-height: 1.42857143;
  margin: 0;
  overflow-y: auto;
  position: relative;
}
textarea {
  font: 14px sans-serif;
}
a {
  color: #00B6FF;
}
b {
  font-weight: 600;
}
#moral_obligations {
  position: absolute;
  display: none;
}
#civil_obligations {
  position: absolute;
  display: none;
}

.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
  transition: background-color .3s;
}

/* On mouse-over, add a grey background color */
.radio:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #999;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.container .checkmark:after {
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: gold;
}

 #example_picture {
  position: absolute;
  z-index: 1000;
 }

 #example_net {
  display: none;
  position: absolute;
  z-index: 1000;
 }

#before_pic {
  position: absolute;
  top: 100px;
  left: 40px;
    z-index: 1000;
}

 #after_pic {
  position: absolute;
  top: 400px;
  left: 40px;
    z-index: 1000;

 }
 
g#0 {
  display:none !important;
}

.pic {  
  display: none;
  position: absolute;
  z-index: 1000;
 }

/* .header merged below */

.slideText,
.slideTextAlt,
.slideTextAlt1,
.slideTextAlt2 {
  font-weight: 300;
  font-size: 18px;
  padding-right: 230px;
  padding-top: 60px;
  padding-left: 40px;
}

.hiddenText {
  display: none;
}

.questionText {
  font-weight: 200;
  font-size: 18px;
  vertical-align: middle;
  padding-left: 40px;
}

.node_text {
  font-weight: 250;
  font-size: 16px; 
  stroke: none;
  fill: #111;
}

.node {
  fill: #9CD4D4;
  stroke: #999;
  stroke-width: 2px;
}

.link {
  stroke: #AAA;
  stroke-width: 4px;
}

.you_node {
  background-color: blue;
}

#mf_box {
  fill: none;
  stroke: #999;
}

#male {
  position: absolute;
  display: none;
}

#nederlands {
  position: absolute;
  display: none;
}

#exit {
  position: absolute;
  display: none;
}

#yesOrNo {
  position: absolute;
  display: none;
}

#maleOrFemale {
  position: absolute;
  display: none;
}

#talkFrequency {
  position: absolute;
  display: none;
}

#friendEducation {
  position: absolute;
  display: none;
}

#friendReligion {
  position: absolute;
  display: none;
}

#age {
  position: absolute;
  display: none;
}

#userEd {
  position: absolute;
  display: none;
}

#areHisp {
  position: absolute;
  display: none;
}

#race {
  position: absolute;
  display: none;
}

#friendRace {
  position: absolute;
  display: none;
}

#relat {
  position: absolute;
  display: none;
}
.heeftPrtnr-group {
  max-width:800px;
}

.no-wrap {
  white-space:nowrap;
}

#name_input {
  display: none;
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
}

#heeftPartner {
  position: absolute;
  display: none;
}

#self_strictness {
  position: absolute;
  display: none;
  z-index: 50;
}
#slide14 {
  position: absolute;
  display: none;
}
#slide23_0 {
  position: absolute;
  display: none;
}
#slide23_1 {
  position: absolute;
  display: none;
}
#slide23_2 {
  position: absolute;
  display: none;
}

.radio_slide {
  position: absolute;
  display: none;
  width:70%;
  z-index: 50;
}

#hoelangRelatie {
  position: absolute;
  display: none;
}

#zelfdePartner {
  position: absolute;
  display: none;
}

#wonenPartner {
  position: absolute;
  display: none;
}

#samenLeving {
  position: absolute;
  display: none;
}

#geboortejaarPartner {
  position: absolute;
  display: none;
}

#heeftKinderen {
  position: absolute;
  display: none;
}

#wilKinderen {
  position: absolute;
  display: none;
}

#hoeveelKinderen {
  position: absolute;
  display: none;
}

#wilHoeveelKinderen {
  position: absolute;
  display: none;
}

#zekerHoeveelKinderen {
  position: absolute;
  display: none;
}

#hoesnelKinderen {
  position: absolute;
  display: none;
}

#zekerHoesnelKinderen {
  position: absolute;
  display: none;
}

#geschiktAantalKinderen {
  position: absolute;
  display: none;
}

#gesprekPartner {
  position: absolute;
  display: none;
}

#geslachtPartner {
  position: absolute;
  display: none;
}

#verschilPartner {
  position: absolute;
  display: none;
}

#bioOuder {
  position: absolute;
  display: none;
}

#stiefKinderen {
  position: absolute;
  display: none;
}

#kinderenLevensgeluk {
  position: absolute;
  display: none;
}

#leeftijdAlter {
  position: absolute;
  display: none;
}

#leeftijdAltr {
  -webkit-column-count: 4; /* Chrome, Safari, Opera */
  -moz-column-count: 4; /* Firefox */
  column-count: 4;
}

#relatieAlter {
  position: absolute;
  display: none;
}

#relatieAlter input {
  margin-top:5px;
}

#kinderenAlter {
  position: absolute;
  display: none;
}

#leeftijdKindAlter {
  position: absolute;
  display: none;
}

#levensplezierAlter {
  position: absolute;
  display: none;
}

#kinderenLevensgeluk {
  position: absolute;
  display: none;
}

#kinderenMakenGeluk {
  position: absolute;
  display: none;
}

#stellingenMeerKids {
  position: absolute;
  display: none;
}

#stellingenOuders {
  margin-top:25px;
}

#bronnen {
  position: absolute;
  display: none;
}

#opmerkingen {
  position: absolute;
  display: none;
}

#afsluiting {
  position: absolute;
  display: none;
}

.slider {
  width:400px;
}

.slider-label {
  text-align:center;
}

.slider-left {
  float:left;
}

.slider-right {
  float:right;
}

.d3-slider-handle {
  background: linear-gradient(to bottom, #CCC 0%, #DDD 100%) repeat scroll 0% 0% transparent !important;
}

.degrees {
  font-family: 'monospace';
}

#timeBar {
  z-index: 10;
}

.bar_target {
  fill: #E8F4F4;
  stroke: #589191;
  stroke-width: 2px;
  opacity: 1;
}

.bar_label {
  fill: #D4ECEC;
  stroke: #589191;
  stroke-width: 1px;
  opacity: 1;
}

.bar_text {
  stroke: none;
  fill: #555;
  font-size: 15px;
  font-weight: 200;
}

#fiveBar {
  display:none;
}

.backdrop {
  fill: #E6E6E6;
  stroke: #999;
  stroke-width: 1px;
  opacity: .7;
}

#qbox {
  position: absolute;
}

.q_window {
  stroke: #999;
  stroke-width: 2px;
  fill: none;
  z-index: 100;
}

#nextDiv, #submitForm {
  position: absolute;
  left: 1250px;
  top: 1000px;
}

#nonresponse_box {
  display: none;
    position: absolute;
    top: 0;
    left: 0;
    height:100%;
    width: 100%;
    cursor: pointer;
    z-index: 1000; /* high z-index */
    background: #000; /* fallback */
    background: rgba(0,0,0,0.25);
}

#onlyone_box {
  display: none;
    position: absolute;
    top: 0;
    left: 0;
    height:100%;
    width: 100%;
    cursor: pointer;
    z-index: 1000; /* high z-index */
    background: #000; /* fallback */
    background: rgba(0,0,0,0.25);
}

#fewAlters_box {
  display: none;
    position: absolute;
    top: 0;
    left: 0;
    height:100%;
    width: 100%;
    cursor: pointer;
    z-index: 1000; /* high z-index */
    background: #000; /* fallback */
    background: rgba(0,0,0,0.25);
}

#reminderAlters_box {
  display: none;
    position: absolute;
    top: 0;
    left: 0;
    height:100%;
    width: 100%;
    cursor: pointer;
    z-index: 1000; /* high z-index */
    background: #000; /* fallback */
    background: rgba(0,0,0,0.25);
}

#badYear_box {
  display: none;
    position: absolute;
    top: 0;
    left: 0;
    height:100%;
    width: 100%;
    cursor: pointer;
    z-index: 1000; /* high z-index */
    background: #000; /* fallback */
    background: rgba(0,0,0,0.25);
}

#fewDragged_box {
  display: none;
    position: absolute;
    top: 0;
    left: 0;
    height:100%;
    width: 100%;
    cursor: pointer;
    z-index: 1000; /* high z-index */
    background: #000; /* fallback */
    background: rgba(0,0,0,0.25);
}

#popup {
  display: none;
  background: #fff;
  padding: 1%;
  width: 40%;
  position: absolute;
  top: 25%;
  left: 50%;
  margin: 0 0 0 -20%; /* add negative left margin for half the width to center the div */
  cursor: default;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,0,0,0.9);
}

#onlyOnePopup {
  display: none;
  background: #fff;
  padding: 1%;
  width: 40%;
  position: absolute;
  top: 25%;
  left: 50%;
  margin: 0 0 0 -20%; /* add negative left margin for half the width to center the div */
  cursor: default;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,0,0,0.9);
}

#yearPopup {
  display: none;
  background: #fff;
  padding: 1%;
  width: 40%;
  position: absolute;
  top: 25%;
  left: 50%;
  margin: 0 0 0 -20%; /* add negative left margin for half the width to center the div */
  cursor: default;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,0,0,0.9);
}

#alterPopup {
  display: none;
  background: #fff;
  padding: 1%;
  width: 40%;
  position: absolute;
  top: 25%;
  left: 50%;
  margin: 0 0 0 -20%; /* add negative left margin for half the width to center the div */
  cursor: default;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,0,0,0.9);
}

#reminderPopup {
  display: none;
  background: #fff;
  padding: 1%;
  width: 40%;
  position: absolute;
  top: 25%;
  left: 50%;
  margin: 0 0 0 -20%; /* add negative left margin for half the width to center the div */
  cursor: default;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,0,0,0.9);
}

#dragPopup {
  display: none;
  background: #fff;
  padding: 1%;
  width: 40%;
  position: absolute;
  top: 25%;
  left: 50%;
  margin: 0 0 0 -20%; /* add negative left margin for half the width to center the div */
  cursor: default;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,0,0,0.9);
}


 .close-btn {
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    }
    .close-btn:hover {
      background: #05abe0;
    }


.popup_text {
  color: black;
  font-weight: 400;
}

.questionTable {
  width: 800px;
}

th {
  margin-top: 0px;
  text-align: left;
}
tr.radio {
  transition: background-color .3s;
  
}
tr.radio:hover {
  padding: 0px;
  background-color: rgb(236, 236, 236);
  
}
.logo {
  padding-left: 10px;
  padding-top:10px;
  height:80px;
  width:300px;
}
.radio {
  width: 60%;
  transition: background-color .3s;
}
.radio:hover {
  padding: 0px;
  background-color: rgb(236, 236, 236);
}
.tableHeaderValues {
  text-align: center;
}
.tableHeaderCol {
  margin-top: 0px;
  position:relative;
  top: 0px;
  font-weight: 200;
  width: 200px;
  height: 100px;
}
.tableCell {
  
  margin-top:50%;
  margin-left:34%;
  width: 100px;
  height: 85px;
  /* text-align: center; */
}

#Next {
  display: inline-block;
  position: fixed;
  bottom: 180px;
  right: 24px;
  width: auto;
  min-width: 90px;
  max-width: 140px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  background: #589191;
  color: #fff !important;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(88,145,145,0.3);
  cursor: pointer;
  white-space: nowrap;
  overflow-y: auto;
  text-overflow: ellipsis;
  z-index: 100000;
}

#Ja {
  display: none;
  position: fixed;
  bottom: 22px;
  left: 30%;
  z-index: 500;
}
#Nee {
  display: none;
  position: fixed;
  bottom: 22px;
  left: 55%;
  z-index: 500;
}

#Next:disabled {
  opacity:.33;
}

#submitForm {
  width:100%;
  height:100%;
  position:fixed;
  top:0px;
  left:0px;
  display:none
}

#submitForm form {
  height:100%;
}

#submitForm input.btn {
  position: absolute;
  top: 480px;
  left: 90%;
}


.moral_obligations_list {
    display:table;
    padding-left:0px;
}

.moral_obligations_list li {
    
    display: table-cell;
    list-style-type: none;
}

.moral_obligations_label {
    line-height:50px;
    padding:0px 10px;
}

.moral_obligations_label:first-child {
    text-align:right;
}

.moral_obligations_row {
    display: table-row;
    padding-left:0px;
}

.moral_obligations_button {
    border: 1px solid darkgrey;
    border-left: 0px;
    padding: 10px;
}

.moral_obligations_button:first-child {
    border-left: 1px solid darkgrey;
}

label {
  margin-left:5px;
  margin-bottom:4px !important;
  line-height:11px;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}
.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid #ccc;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* === GENSI Desktop App additions === */
.app-title {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #589191;
  letter-spacing: 2px;
}

.completion-message {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ── Ego demographics slide ── */
#slide_ego {
  position: absolute;
  background: #fff;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  max-width: 92vw;
  padding: 28px 32px 22px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  z-index: 100;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}
.ego-field {
  margin-bottom: 18px;
}
.ego-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}
.ego-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.ego-input:focus { border-color: #589191; }
.ego-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ego-radio-btn {
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 13px;
  background: #f7f7f7;
  transition: all 0.15s;
  user-select: none;
}
.ego-radio-btn:hover { border-color: #589191; background: #e8f4f4; }
.ego-radio-btn.selected { background: #589191; color: #fff; border-color: #589191; }

/* ── Free Sociogram slide ── */
/* #socio_canvas sizing handled by JS */
.socio-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.socio-btn {
  padding: 6px 16px;
  border: 2px solid #589191;
  border-radius: 20px;
  background: #fff;
  color: #589191;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.socio-btn.active {
  background: #589191;
  color: #fff;
}
.socio-btn:hover:not(.active) {
  background: #e8f4f4;
}
.socio-hint {
  font-size: 12px;
  color: #888;
  margin-left: 8px;
}
.socio-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
}
.leg-line {
  display: inline-block;
  width: 32px;
  vertical-align: middle;
}

/* ── Sociogram instruction panel ── */
.si-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.si-num {
  flex: 0 0 26px;
  height: 26px;
  background: #589191;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.si-heading {
  font-size: 17px;
  color: #2c3e50;
  display: block;
  margin-bottom: 3px;
}
.si-body {
  margin: 0;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

/* Sociogram slide — must sit above the D3 SVG */
#slide_sociogram {
  z-index: 200;
}
#socio_wrap {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 60px;
  overflow-y: auto;
}
#socio_canvas {
  display: block;
  /* actual px set by JS — no CSS width:100% which causes double-scaling */
}

/* D3 SVG — explicit layer so overlays can sit above it */
body > svg {
  position: relative;
  z-index: 1;
  display: block;
}

/* ── All survey HTML panels must sit above the D3 SVG (z-index:1) ── */
.input-group,
.radio_slide,
#self_strictness,
#name_input,
#slide3,
#slide4,
#qbox,
#nextDiv,
#submitForm,
#popup, #onlyOnePopup, #yearPopup, #alterPopup, #reminderPopup, #dragPopup,
#moral_obligations, #civil_obligations,
#male, #age, #userEd, #relat, #exit,
#heeftPartner, #hoelangRelatie, #zelfdePartner,
#leeftijdAlter, #relatieAlter {
  z-index: 50;
}

/* ── Language switcher ───────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background-color: gold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 9999;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  box-sizing: border-box;
}

.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-btn {
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.6);
  color: #2c3e50;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: .5px;
  transition: background .15s;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.6);
}

.lang-btn.active {
  background: rgba(255,255,255,0.85);
  color: #589191;
}

.lead {
  font-size: 26px;
  font-weight: 500;
}

/* sociogram-active marker class (used for JS checks) */
body.sociogram-active { /* no overflow restriction */ }

@keyframes pulse-hint {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(88,145,145,0.7); }
  50%  { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(88,145,145,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(88,145,145,0); }
}

/* Mobile touch-action */
#svg-wrapper {
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
#svg-wrapper svg {
  touch-action: pan-x pan-y pinch-zoom;
}

/* Prevent pull-to-refresh on mobile during drag */
body {
  overscroll-behavior-y: contain;
  overscroll-behavior-x: contain;
}
