

/* ---------- QUIZ INTRO ---------- */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4em;
  font-family: Arial, sans-serif;
  z-index: 9999;
  opacity: 1;
  transition: opacity 2s ease;
}

#intro.hidden {
  opacity: 0;
  pointer-events: none;
}


/* Dropdown container */
.navbar .dropdown {
  position: relative; /* anchor for submenu */
}

/* Dropdown menu hidden by default */
.navbar .dropdown-menu {
  position: absolute;
  top: 100%; /* directly under Contact button */
  left: 0;
  display: none; /* hidden initially */
  flex-direction: column;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 50px;
  z-index: 2000;
}

/* Remove list bullets */
.navbar .dropdown-menu li {
  list-style: none;
}

/* Links styling */
.navbar .dropdown-menu a {
  padding: 12px 20px;
  display: block;
  color: white;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
}

.navbar .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Show dropdown when hovering Contact or the menu itself */
.navbar .dropdown:hover .dropdown-menu {
  display: flex;
}



/* Laat de rest pas zien als de body de class “loaded” heeft */
body.loaded .navbar,
body.loaded .container,
body.loaded footer {
  opacity: 1;
  transition: opacity 2s ease;
}

.navbar,
.container,
footer {
  opacity: 0;
  transition: opacity 1s ease;
}

/* Navigatiebalk */

/* ---------- NAVBAR ---------- */
.navbar {
  top: 0;
  width: 94.73%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.4); /* slightly darker for contrast */
}

.logo {
  justify-self: start;
  font-size: 20px;
  font-weight: bold;
  color: #fff; /* white for visibility */
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 80px;
  align-items: center;
  font-size: x-large;
}

.navbar a {
  text-decoration: none;
  color: #fff; /* white links for visibility on video */
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

/* Hover underline effect */
.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* Always underline active page */
.navbar a.current-page::after {
  width: 100%;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #bcedf6, #087E8B);
  color: #0f172a;
}

.container {
  max-width: 800px;
  margin: 50px auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

p.lead {
  text-align: center;
  color: #475569;
  margin-bottom: 30px;
}

.q {
  margin: 22px 0;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.choice {
  flex: 1 1 30%;
  padding: 12px 0;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice:hover {
  background: #f0fdfa;
  border-color: #0ea5a4;
}

.choice.selected {
  background: #0ea5a4;
  color: white;
  border-color: transparent;
  font-weight: bold;
}

button {
  display: block;
  margin: 30px auto 10px;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  background: #0ea5a4;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s;
}

button:hover {
  background: #08918f;
}

.results {
  margin-top: 40px;
  border-top: 2px dashed #e2e8f0;
  padding-top: 25px;
}

.house {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.bar {
  height: 16px;
  border-radius: 8px;
  background: #e2e8f0;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.bar > i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #06b6d4, #7c3aed);
  transition: width 0.5s ease;
}

.house-name {
  width: 160px;
}

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #6b7280;
}

.explain {
  margin-top: 16px;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}


a {
  color: #034652;
}