body, html {
  margin: 0;
  padding: 0;
  font-family: 'Patrick Hand', cursive;
  overflow-x: hidden;
}
.bg {
  background: url('../images/paper_texture.png');
  background-size: 100px 100px;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.mockup-container {
  position: relative;
  width: 90vh;
  height: 90vh;
  max-width: 100%;
  margin: 5vh auto;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.mockup-container.home {
  background-image: url('../images/landing.png');
}
.mockup-container.error {
  background-image: url('../images/error.png');
}
.mockup-container.investors {
  background-image: url('../images/investors.png');
}

.nav, .learn-button, .report-button {
  position: absolute;
  display: block;
  z-index: 2;
}

.nav.home {
  top: 10.3%;
  left: 40%;
  width: 11.5%;
  height: 5.6%;
}
.nav.investors {
  top: 10.3%;
  left: 51.8%;
  width: 25%;
  height: 5.6%;
}
.nav.contact {
  top: 10.3%;
  left: 77.5%;
  width: 11.5%;
  height: 5.6%;
}
.learn-button {
  top: 78.4%;
  left: 14%;
  width: 26%;
  height: 6.5%;
  cursor: pointer;
}
.report-button {
  top: 71.4%;
  left: 36%;
  width: 30%;
  height: 9%;
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup.hidden {
  display: none;
}
 {
  position: relative;
  max-height: 90vh;
  max-width: 90vw;
  }
.about-img {
  max-height: 90vh;
  height: auto;
  width: auto;
}
.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.8em;
  background: #ccc;
  color: black;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mockup-container {
    width: 95vw;
    height: auto;
    aspect-ratio: 768 / 960;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .popup-inner {
    overflow: auto;
    max-height: 90vh;
    max-width: 95vw;
  }
  .about-img {
    width: 100%;
    height: auto;
  }
}


/* Hide scrollbars visually (desktop) without affecting layout */
.popup {
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE 10+ */
}
.popup::-webkit-scrollbar {
  display: none;                   /* WebKit */
}
