html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #12093b;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

.cover-outer {
  min-height: 100vh;
  width: 100vw;
  background: #1b1242;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding-bottom: 3em;
}

.cover-image-container {
  position: relative;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.cover-img {
  max-width: 370px;
  width: 94vw;
  margin-bottom: 2em;
  display: block;
  border-radius: 1.2em;
  box-shadow: 0 8px 32px 0 rgba(17, 8, 32, 0.23);
  position: relative;
}

.cover-btn-in-img {
  position: absolute;
  left: 50%;
  top: calc(80% + 3.5em);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: max-content;
  min-width: 120px;
}

.cover-wrapper {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3em;
}

.main-btn {
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 1em;
  padding: 1.2em 3em;
  font-size: 1.2em;
  font-weight: 600;
  margin: 0.7em 0;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(17, 8, 32, 0.10);
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
.main-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.main-btn:hover, .main-btn:focus {
  background: #1976d2;
}

.fullscreen-bg {
  position: absolute;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 0;
  background-color: #12093b;
}

/* FIX: ABSOLUTE LAYER for quiz blocks */
.page-content {
  position: absolute; /* CHANGED from relative to absolute */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none; /* So buttons below work; you can override per block */
}

.content-inner {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-sizing: border-box;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

/* Make quiz blocks respect pointer events and render as overlay */
.block-title,
.block-desc,
.block-question,
.block-answer,
.block-result {
  position: absolute;
  box-sizing: border-box;
  pointer-events: auto;
  background: none;
  border: none;
  /* font and color are set via inline style from JS */
  overflow: hidden;
  white-space: pre-line;
  word-break: break-word;
}

.block-title { font-weight: bold; }
.block-desc { font-style: normal; }
.block-question { }
.block-answer { cursor: pointer; }
.block-result { font-weight: bold; }

/* .result-vertical etc... remains unchanged */
.result-vertical {
  position: absolute;
  left: 0; right: 0;
  top: 20vh;
  width: 100vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.result-text {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 2.1em;
  text-align: center;
  max-width: 90vw;
  pointer-events: auto;
  text-shadow: 0 4px 16px rgba(0,0,0,0.32), 0 2px 8px rgba(0,0,0,0.27);
}

.fullscreen-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 3.5em;
  width: 100vw;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

.cover-btn-outer {
  position: absolute;
  left: 0; right: 0; bottom: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
}
.cover-btn-outer > div {
  height: 3em;
}
.cover-btn {
  margin: 0 auto;
  display: block;
}

.back-arrow-btn {
  background: none;
  border: none;
  font-size: 2.2em;
  color: #fff;
  position: absolute;
  left: 24px;
  bottom: 0;
  cursor: pointer;
  z-index: 22;
  padding: 0 0.2em;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.back-arrow-btn:hover, .back-arrow-btn:focus {
  opacity: 1;
  color: #fff;
}

.back-btn.bottom {
  position: absolute;
  left: 1.8em;
  bottom: 1.8em;
  top: unset;
  z-index: 10;
  background: rgba(24, 44, 111, 0.67);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.55em 1.1em;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 9px 0 rgba(17, 8, 32, 0.10);
  transition: background 0.14s, color 0.14s, transform 0.10s;
  opacity: 0.83;
}
.back-btn.bottom:hover, .back-btn.bottom:focus {
  background: #1976d2;
  opacity: 1;
}

@media (max-width: 600px) {
  .cover-img {
    max-width: 98vw;
  }
  .main-btn {
    font-size: 1em;
    padding: 1em 1.1em;
  }
  .fullscreen-bottom {
    bottom: 1.2em;
  }
  .cover-btn-in-img {
    top: calc(80% + 3.5em);
  }
  .result-vertical {
    top: 14vh;
  }
  .back-btn.bottom {
    left: 0.7em;
    bottom: 0.7em;
    padding: 0.38em 0.9em;
    font-size: 1em;
  }
  .back-arrow-btn { font-size: 1.7em; left: 10px; }
}
