@charset "UTF-8";
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
body {
  background-color: black;
  font-family: 'Unica77LLTT-Medium', 'Unica77LLTT-MediumItalic';
  overflow: hidden;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: black;
  box-sizing: border-box;
  z-index: 10;
  min-height: 20px;
}
.header h1 {
  color: white;
  margin: 0;
  padding: 20px;
}
.header h1#index {
  cursor: pointer;
}
.header h1#index:hover {
  color: grey;
}
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.overlay-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  height: calc(100% - 60px);
  background: black;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.4s ease, flex-direction 0s linear;
  overflow: hidden;
  pointer-events: none;
  display: flex;
}
.i {
  font-family: Unica77LLTT-MediumItalic;
}

.page-overlay.open .overlay-panel {
  transform: scaleY(1);
  pointer-events: auto;
}
.overlay-text {
  color: white;
  padding: 20px;
  text-align: left;
  flex: 1;
}
.overlay-text p {
  margin: 0;
  line-height: 1.2;
}
.overlay-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* keep image pinned to the right */
  height: 100%;
  margin: 20px;
  padding: 0px;
}

/* ensure the image itself always fits within the panel (no overflow) */
.overlay-image img,
.overlay-image {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Tablet & small desktop: image goes below text */
@media screen and (max-width: 400px) {
  .overlay-panel {
    flex-direction: column;
    overflow: hidden;
  }

  .overlay-text {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 20px;
  }

}

@media screen and (max-width: 1000px) {
  .overlay-panel {
    flex-direction: column;
  }
  .overlay-text,
  .overlay-image {
    flex: 1;
  }

  /* Mobile: stack and make image full width */
  
}
@font-face {
  font-family: 'Unica77LLTT-Medium';
  src: url('../fonts/Unica77LLTT-Medium.ttf') format('truetype');
  font-weight: medium;
  font-style: medium;
}
@font-face {
  font-family: 'MS-AN-Regular';
  src: url('../fonts/MS-AN-Regular.otf') format('opentype');
}
@media screen and (max-width: 1000px) {
  body {
    background-color: black;
    font-family: Unica77LLTT-Medium;
  }
}
@media screen and (max-width: 600px) {
  body {
    background-color: black;
  }
}
@media screen and (orientation: landscape) {
}
@media screen and (orientation: portrait) {
}
.text-editor {
  position: fixed;
  top: 30px;
  left: 0px;
  right: 0px;
  bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  pointer-events: none;
  z-index: 1;
}
.text-editor textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: white;
  text-align: left;
  font-family: 'MS-AN-Regular';
  font-size: 1500px;
  line-height: 68px;
  padding: 0 20px 20px;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: auto;
  caret-color: white;
}