:root {
  --violet: rgb(109, 109, 212);
  --violet-transparent: rgba(109, 109, 212, 0.9);
  --violet-light-transparent: rgba(233, 233, 249);
  --dark-gray: #525252;
  --devdraw: #0b2b53;
}

@font-face {
  font-family: "ahamono";
  src: url("/fonts/ahamono.woff2") format("woff2");
}

* {
  -webkit-tap-highlight-color: transparent;
}
/* minimalna baza, resztę zrobisz sobie w CSS */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: ahamono;
}
h1 {
  text-transform: uppercase;
  font-size: 1.1rem;
  padding: 0.3rem;
  text-align: center;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em;
  background: #fafafa;
  height: 70px;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em;
  background: #fafafa;
  height: 110px;
}
.title h2 {
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
}
.player {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em;
  background: #fafafa;
  height: 70px;
}
.arrow_left {
  transform: rotate(90deg);
}
main {
  display: flex;
  width: 100%;
  position: absolute;
  top: 70px;
  bottom: 3em;
  left: 0;
  right: 0;
}
.view {
  width: 100%;
  height: calc(100dvh - 180px);
  display: none;
  position: relative;
}
.view.active {
  display: block;
}
#dowloadMap {
  position: absolute;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--violet);
  z-index: 9999;
}
#map {
  display: flex;
  width: 100%;
  height: calc(100dvh - 180px);
}
#photosView {
  overflow-x: auto;
  white-space: nowrap;
}
#photosView img {
  display: inline-block;
  max-height: 100%;
  margin: 0.5em;
}
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.controls {
  display: flex;
  align-items: center;
  gap: 1em;
}
button {
  background: transparent;
  border: none;
  height: 44px;
  padding: 0;
  margin: 0;
}
#playBtn {
  height: 64px;
}
#nextBtn {
  transform: rotate(180deg);
}
button > img {
  margin: 0;
}
.modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal.active {
  display: flex;
}
.modal ul {
  background: rgba(255, 255, 255, 0.9);
  padding: 1em;
  border-radius: 2px;
  height: 90dvh;
  overflow-y: auto;
  width: 90%;
}
.modal li {
  padding: 0.5em;
  cursor: pointer;
  border-bottom: 2px dotted var(--violet);
}
.modal li:hover {
  background: #eee;
}

#timeDisplay {
  color: var(--violet);
  width: 44px;
}

.custom-div-icon .marker-number {
  background: var(--violet);
  color: #fff;
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  transform: translateY(20px);
}

#textContent {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease-in-out;
}

#textContent p {
  text-align: center;
  padding: 1rem;
  font-style: italic;
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
  color: var(--dark-gray);
  font-size: 1.2rem;
  max-width: 500px;
}

.fade-out {
  opacity: 0 !important;
}

.fade-in {
  opacity: 1 !important;
}

#segList li.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* PAYWALL MODAL */
.paywall-modal {
  position: fixed;
  inset: 0;
  display: none; /* domyślnie ukryty */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: inherit;
}

.paywall-modal.active {
  display: flex;
}

.paywall-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.paywall-box {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  padding: 24px 20px 28px;
  max-width: 280px;
  width: 80%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  z-index: 1;
}

.paywall-lock {
  margin-bottom: 16px;
}

.paywall-lock img {
  display: block;
  margin: 0 auto;
}

.paywall-text {
  margin: 0 0 20px;
  padding: 0 0.5rem;
  font-size: 15px;
  line-height: 1.4;
  color: #555;
}

.paywall-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #6d6dd4; /* Twój fiolet */
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.paywall-btn:active {
  transform: translateY(1px);
}

.btn-download {
  font-size: 1.2rem;
  background: var(--violet);
  color: #fff;
  text-decoration: none;
  /* font-size: 0.8rem; */
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-family: "ahamono", monospace;
  transition: 0.2s ease;
  max-width: 200px;
  text-align: center;
}

.mark-symbol {
    font-size: 1.6em;
    letter-spacing: 0;
    margin-left:2px;
}

.hidden {
  display: none !important;
}
