@font-face {
  font-family: WVL;
  src: url("fonts/iedereen-wvl.ttf");
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: WVL, sans-serif;
  background: #0f0f0f;
  color: white;
  overflow: hidden;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #444;
  color: white;
  z-index: 1000;
  padding: 0 15px;
  font-weight: bold;
}

.back {
  position: absolute;
  left: 15px;
  font-size: 15px;
  font-weight: normal;
  cursor: pointer;
  text-transform: none;
}

.title-text {
  font-weight: bold;
  text-align: center;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.topbar-with-action {
  position: absolute;
  right: 15px;
  display: flex;
  align-items: center;
}

.delete-fav-topbtn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #ff2222;
  padding: 4px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  filter: hue-rotate(0deg);
}

/* ===== SUB BAR ===== */
.subbar {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: black;
  text-align: center;
  padding: 8px 10px;
  font-weight: bold;
  z-index: 19;
  border-bottom: 1px solid #333;
}

/* ===== BOTTOM BAR ===== */
.bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2e2e2e;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 80px;
  border-top: 1px solid #444;
  padding-bottom: env(safe-area-inset-bottom, 20px);
  height: calc(80px + env(safe-area-inset-bottom, 20px));
}

.bottombar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  color: #888;
  font-family: WVL, sans-serif;
  font-size: 13px;
  padding: 5px 0;
  width: 25%;
  height: 100%;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottombar-btn:active {
  opacity: 0.7;
}

.bottombar-btn.active {
  color: white;
}

.bottombar-btn svg {
  width: 32px;
  height: 32px;
}

.bottombar-btn .tab-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.bottombar-btn.active .tab-logo {
  opacity: 1;
}

/* ===== CONTENT AREA ===== */
#content {
  position: fixed;
  top: 120px;
  bottom: calc(80px + env(safe-area-inset-bottom, 20px));
  left: 0;
  right: 0;
  overflow-y: auto;
  background: black;
}

#content-inner {
  max-width: 700px;
  margin: 0 auto;
}

#content-inner .item:first-child {
  margin-top: 6px;
}

/* ===== ITEMS ===== */
.item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #666;
  cursor: pointer;
  width: 100%;
}

.item .label {
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  text-align: left;
  padding-right: 10px;
  word-spacing: normal;
  overflow-wrap: break-word;
  transition: color 0.2s ease;
}

.item .label.showing-dialect {
  color: #f0a500;
}

.item:active {
  background: #1f1f1f;
  transform: scale(0.99);
  transition: background 0.1s ease, transform 0.1s ease;
}

.item .fav,
.item .arrow {
  flex-grow: 0;
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  text-align: right;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}

.heart-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* Quiz modus badge */
.quiz-badge {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 20px));
  left: 0;
  right: 0;
  text-align: center;
  background: #5a3e00;
  color: #f0a500;
  font-size: 13px;
  padding: 8px;
  z-index: 20;
  border-top: 1px solid #f0a500;
}

#content.quiz-active {
  bottom: calc(108px + env(safe-area-inset-bottom, 20px));
}

/* Submenu stijl */
.submenu-header {
  padding: 12px 15px 6px;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #333;
}

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-box {
  background: #333;
  border-radius: 12px;
  padding: 30px 25px;
  max-width: 320px;
  width: 90%;
  text-align: center;
}

.popup-box p {
  font-size: 18px;
  margin: 0 0 24px 0;
  font-weight: bold;
}

.popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.popup-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-family: WVL, sans-serif;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

.popup-actions .btn-cancel {
  background: #555;
  color: white;
}

.popup-actions .btn-confirm {
  background: #ff6b6b;
  color: white;
}

/* ===== INFO PAGINA ===== */
.info-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 25px 20px 40px;
}

.info-section-title {
  color: #cc2200;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 14px;
}

.info-intro {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  line-height: 1.6;
  margin: 0 0 18px;
}

.info-body {
  font-size: 15px;
  text-align: center;
  line-height: 1.7;
  color: #ccc;
  margin: 0 0 30px;
}

.info-wvl-logo {
  display: flex;
  justify-content: flex-end;
  margin: -10px 0 30px;
}

.info-wvl-logo img {
  height: 80px;
  width: auto;
}

.info-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 10px 0 28px;
}
.info-link {
  display: block;
  text-align: center;
  color: #4a9eff;
  text-decoration: none;
  font-size: 16px;
  padding: 14px;
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 12px;
}

.info-link:active {
  background: #1a1a1a;
}

.info-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  background: #333;
  color: #ccc;
  font-family: WVL, sans-serif;
  font-size: 16px;
  padding: 14px;
  border: 1px solid #444;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}

.info-share-btn:active {
  background: #444;
}
/* ===== LOGO IEDEREEN WEStvlAMS ===== */
.logo {
  height: 42px;
  max-height: 100%;
  max-width: 80vw;
  object-fit: contain;
}

/* ===== STARTSCREEN ===== */
#startscreen {
  position: fixed;
  inset: 0;
  background: #0f0f0f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#start-logo {
  width: 60%;
  max-width: 300px;
  height: auto;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  #content-inner { max-width: 100%; }
  .title-text { font-size: 26px; }
  .item { padding: 14px 15px; }
  .item .label, .item .fav, .item .arrow { font-size: 18px; }
  .topbar, .subbar { font-size: 18px; }
    #hoehel-input, #wiki-input {
    font-size: 14px;
    padding: 10px 12px;
}
@media all and (display-mode: standalone) {
  .bottombar {
    padding-bottom: max(env(safe-area-inset-bottom), 34px);
    height: calc(80px + max(env(safe-area-inset-bottom), 34px));
  }

  #content {
    bottom: calc(80px + max(env(safe-area-inset-bottom), 34px));
  }

  .quiz-badge {
    bottom: calc(80px + max(env(safe-area-inset-bottom), 34px));
  }

  #content.quiz-active {
    bottom: calc(108px + max(env(safe-area-inset-bottom), 34px));
  }
}
