/* Fonts */
@font-face {
  font-family: 'OddityMedium';
  src: url('file-webfont.woff2') format('woff2'),
       url('file-webfont.woff') format('woff');
}

@font-face {  
  font-family: 'AmaticSC-Bold';
  src: url('AmaticSC-Bold.ttf') format('truetype');
}

@font-face {  
  font-family: 'AmaticSC-Regular';
  src: url('AmaticSC-Regular.ttf') format('truetype');
}

/* Text styles */
body {
  margin: 0;
  padding: 0;
  color: #9ea7ff;
  font-family: sans-serif;
  font-size: 2.5vh;
  line-height: 1.5;
  background: black url('https://i.pinimg.com/originals/91/95/f4/9195f4dd1b69f90038f627c8af422429.gif') center/cover fixed no-repeat;
  overflow: hidden;
}

p {
  text-align: justify;
  font-family: cursive;
  margin: 0;
  padding: 0;
}

.amatic-font { font-family: 'AmaticSC-Bold'; font-size: 3vh; }
.oddity-font { font-family: 'OddityMedium', sans-serif; font-size: 3.25vh;}

/* Title */
.title {
  position: fixed;
  top: 4%;
  left: 3.75%;
  font-family: 'OddityMedium', sans-serif;
  font-size: clamp(2rem, 3.5rem, 6rem);
  line-height: 0.9;
  text-align: center;
}

/* Left menu */
.leftmenu {
  position: fixed;
  top: 15vh;
  left: 3.75vw;
  width: 12vw;
  height: 77.5vh;
  background-color: #0d0d0d;
  border: double 2px #9ea7ff;
  padding: 1vh;
  display: flex;
  flex-direction: column;
  gap: 1vh;
  z-index: 1;
}

.button {
  background-color: black;
  color: #9ea7ff;
  text-align: center;
  padding: 1vh 0;
  font-size: 3.5vh;
  font-family: 'OddityMedium', sans-serif;
  border: double 2px #9ea7ff;
  cursor: pointer;
}

.button:hover {
  background-color: #9ea7ff;
  color: white;
}

/* Main content box */
.main-box {
  position: fixed;
  top: 10vh;
  left: 18vw;
  right: 4vw;
  bottom: 5vh;
  background-color: #0d0d0d;
  border: double 2px #9ea7ff;
  opacity: 0.95;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2vh;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10;
}

/* Content layout */
.content-container {
  display: flex;
  gap: 2vh;
}

.left-wrapper {
  display: flex;
  flex-direction: column;
  flex: 0 0 50%;
  gap: 1vh;
}

.above-left-outside {
  font-size: 5vh;
  color: #9ea7ff;
  font-family: 'OddityMedium', sans-serif;
  line-height: 0.76;
  text-align: center;
}

.content-box {
  padding: 2vh;
  box-sizing: border-box;
  line-height: 1.4;
}

/* Left box */
.content-box.left-box {
  border: dotted 2px #9ea7ff;
  font-size: 2vh;
  font-family: Calibri;
  color: #9ea7ff;
  opacity: 1;
  height: 29%;
}

/* Right box */
.content-box.right-box {
  flex: 1;
  background-color: white;
  opacity: 0.9;
  border: dotted 2px #5961c9;
  font-size: 4vh;
  font-family: 'OddityMedium', sans-serif;
  color: #5961c9;
  max-height: 98vh;
  overflow-y: auto;
}

/* Right header */
.right-header {
  width: 100%;
  background-color: black;
  color: #9ea7ff;
  font-family: 'OddityMedium', sans-serif;
  font-size: 4.5vh;
  padding: 1vh;
  border-bottom: double 2px #9ea7ff;
  text-align: center;
  box-sizing: border-box;
}

/* Bottom menu */
.bottommenu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3vh;
  background-color: #9ea7ff;
  opacity: 0.8;
  z-index: 8;
}

/* Floating image */
.floating-image {
  position: fixed;
  bottom: 5vh;
  left: 1vh;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 9999;
}

.floating-image:hover { animation: shake 0.2s infinite; }

@keyframes shake {
  0% { transform: translate(0,0); }
  25% { transform: translate(2px,2px); }
  50% { transform: translate(-2px,-2px); }
  75% { transform: translate(2px,-2px); }
  100% { transform: translate(-2px,2px); }
}

/* Image gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1vh;
  margin-top: 2vh;
}

.gallery-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border: 2px solid #9ea7ff;
  transition: transform 0.3s ease, opacity 0.3s;
}

.gallery-img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Gallery overlay */
.gallery-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13,13,13,0.95);
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 99999;
}

.gallery-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border: double 5px #9ea7ff;
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 3vh;
  right: 5vw;
  font-size: 6vh;
  color: #9ea7ff;
  cursor: pointer;
  font-family: 'OddityMedium', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .content-container { flex-direction: column; }
  .leftmenu {
    width: 90vw;
    height: auto;
    top: 12vh;
    left: 5vw;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-box {
    top: 30vh;
    left: 5vw;
    right: 5vw;
    height: 55vh;
  }
  .title { font-size: 5vh; top: 2vh; left: 5vw; }
}
