.menu {
  justify-content: center;
  padding-top: 100px;
}

.opera {
  &::after {
    background: url("../img/background_opera.webp") center / cover no-repeat;
    filter: brightness(0.6);
  }

  & .menu__logo {
    background: url(/img/logo_opera.png) 100% / contain;
    aspect-ratio: 725 / 246;
  }
}

.menu__logo {
  background: url(/img/logo_white.png) 100% / contain;
  width: 230px;
  aspect-ratio: 619 / 190;
  position: absolute;
  top: 24px;
}

.menu__buttonsWrapper {
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  padding: 0 8px;
  gap: 24px;
}

.menu__langPicker .btn {
  width: 100%;
}

.menu__buttonsWrapper[hidden] {
  display: none !important;
}

button.btn {
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}

.menu__backBtn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-align: left;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.menu__backBtn:hover {
  color: rgba(255, 255, 255, 0.9);
}

#pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
}

#pdf-overlay[hidden] {
  display: none !important;
}

#pdf-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#pdf-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

#pdf-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 60px;
}

#pdf-pages {
  display: flex;
  flex-direction: column;
}

#pdf-pages canvas {
  max-width: 100%;
}

#pdf-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 0.1em;
  pointer-events: none;
}
