:root{
  --bg:#0b0f12;
  --card:#111823;
  --text:#f2f5f7;
  --muted:#b9c2c9;
  --accent:#2BB7B8;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% 0%, rgba(43,183,184,.18), transparent 60%), var(--bg);
  color:var(--text);
}

.container{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

header{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 18px 0 6px;
  font-weight:800;
  letter-spacing:.5px;
  font-size: 40px;
}

.card{
  margin-top: 18px;
  background: rgba(17,24,35,.88);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

h2{
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--text);
}

label{display:block; margin: 12px 0 8px; color: var(--muted)}
textarea{
  width:100%;
  min-height: 120px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding: 12px 12px;
  font-size: 16px;
  outline: none;
}
input[type="file"]{
  width:100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  color: var(--muted);
}

button{
  margin-top: 14px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(43,183,184,1), rgba(43,183,184,.75));
  color: #001213;
}

.small{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.success{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(43,183,184,.12);
  border: 1px solid rgba(43,183,184,.35);
  color: var(--text);
}

.error{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,80,80,.12);
  border: 1px solid rgba(255,80,80,.35);
  color: var(--text);
}

/* Intro overlay */
#introOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  z-index: 9999;
}

.introBox{
  width: min(980px, 96vw);
  background: rgba(17,24,35,.9);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

.introTop{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-weight: 600;
}
.introClose{
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  width: auto;
  padding: 8px 10px;
  border-radius: 12px;
}
video{width:100%; height:auto; display:block}

/* Slideshow */
.slideshowWrap{
  display:grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
  padding: 24px 0;
}

.mediaBox{
  width: min(1200px, 96vw);
  aspect-ratio: 16/9;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.mediaBox img, .mediaBox video{
  width:100%;
  height:100%;
  object-fit: contain;
  background: rgba(0,0,0,.45);
}

.caption{
  width: min(1200px, 96vw);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.subCaption{
  width: min(1200px, 96vw);
  text-align:center;
  color: var(--muted);
}

/* Intro: video mag niet te hoog worden */
#introOverlay .introBox{
  max-height: 92vh;
}

#introOverlay video{
  max-height: 80vh;      /* zorg dat topbar + padding altijd in beeld blijft */
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Zet de topbar bovenop de video (altijd zichtbaar) */
#introOverlay .introBox{
  position: relative;
}

#introOverlay .introTop{
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  border-bottom: 0;
  background: rgba(17,24,35,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
}

#introOverlay .introClose{
  width: auto;
}
