/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* Fullscreen backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Top “h01d” spread evenly */
.title {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.1em;
  color: black;
  font-size: 40px;
}

/* Bottom left and right buttons */
.bottom-left,
.bottom-right {
  position: fixed;
  bottom: 20px;
  font-size: 30px;
  color: black;
}

.bottom-left {
  left: 20px;
}

.bottom-right {
  right: 20px;
}

.btn {
  cursor: pointer;
  user-select: none;
}

/* Panels (appear over page) */
.panel {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
}

.panel-content {
  text-align: center;
  color: black;
  font-size: 20px;
  line-height: 1.7;
  position: relative;
}

.close {
  margin-top: 20px;
  display: inline-block;
  cursor: pointer;
  font-size: 20px;
}

#panel-right .panel-content {
  font-size: 16px;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  #panel-right .panel-content {
    font-size: 6px;
  }
}