
@font-face {
  font-family: 'federal'; 
  src: url('https://baalbek.neocities.org/fonts/EmeraldhillpersonaluseBdit-ALzDM.otf') format('opentype');
       
}

@font-face {
  font-family: 'pxplus'; 
  src: url('https://baalbek.neocities.org/fonts/pxplus-webfont.woff') format('woff');
       
}


body {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', serif;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}


.container {
  max-width: 1400px;
  width: 90%;
}


.header {
  text-align: center;
  margin-bottom: -10px;
}

.header h1 {
   font-family: 'federal', serif; 
  font-size: 9rem;
  color: #696969; 
  margin-bottom: -15px;
  margin-top: -15px;
}

.header h2 {
  font-size: 1.5rem;
   font-family: 'pxplus', sans-serif; 
  color: #5a5a5a;
}


.bedroom {
  position: relative;
  width: 100%;
  height: 580px; 
  display: flex;
  flex-direction: column;
}

.wall {
  position: relative;
  flex: 4;
  background: #d3d3d3 url('img/brick-pattern.png') repeat;
  background-size: 50px; 
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 5px solid #8c8c8c;
}

.wall img {
 
  margin: 10px;
}


.window {
  position: absolute; 
 top: 20px;
  left: 20px;
  width: 180px; 
  
  z-index: 10; 
  cursor: grab; 
  transition: transform 0.2s ease-in-out;
}



.table {
  
 position: absolute; 
  bottom: -100px; 
  left: 20px;
  width: 200px; 
  
  z-index: 10; 
  cursor: grab; 
  transition: transform 0.2s ease-in-out;

}

.table2 {
  
 position: absolute; 
  bottom: -100px; 
  left: 900px;
  width: 200px; 
  
  z-index: 10; 
  cursor: grab; 
  transition: transform 0.2s ease-in-out;

}

.chair {
  
 position: absolute; 
  bottom: -100px; 
  left: 300px;
  width: 150px; 
  
  z-index: 10; 
  cursor: grab; 
  transition: transform 0.2s ease-in-out;

}


.recordplayer {
  
 position: absolute; 
 bottom: 60px; 
  left: 102px;
  width: 150px;
  z-index: 10; 
  cursor: pointer; 
  transition: transform 0.2s ease-in-out;

}

.recordplayer:hover {
  
 position: absolute; 
  bottom: 60px; 
  left: 102px;
  width: 150px; 
  content: url('img/recordplayer2.png');
  z-index: 10; 
  cursor: pointer; 
  transition: transform 0.2s ease-in-out;
  transform: scale(1.05);

}

.mirror {
   position: absolute; 
  top: 68px; 
  left: 800px;
  width: 111px; 
  
  z-index: 0; 
  cursor: pointer; 
  transition: transform 0.2s ease-in-out;
}

.mirror:hover {
  transform: scale(1.05);
}


.flowerpot {
   position: absolute; 
  bottom: 68px; 
  left: 20px;
  width: 80px; 
  
  z-index: 10; 
  cursor: pointer; 
  transition: transform 0.2s ease-in-out;
}

.flowerpot:hover {
  transform: scale(1.05);
}

.bookshelf {
position: absolute; 
 top: 20px;
  right: 20px;
  width: 200px; 
  
  z-index: 10; 
  cursor: pointer; 
  transition: transform 0.3s ease;
}

.bookshelf:hover {
  transform: scale(1.05);
}

.book-list {
  position: absolute;
  top: 50px;
  display: flex;
  gap: 10px;
}

.book {
  width: 80px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.book:hover {
  transform: scale(1.1);
}

/* this is for the dream journal for now since its the only journal ready so far */
.journal {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #333;
  border-radius: 10px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
   overflow-y: auto; 
  max-height: 300px; 
  padding-right: 15px; 
}

.journal h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.journal p {
  font-size: 1rem;
  line-height: 1.5;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5c5c;
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.close-button:hover {
  background: #e04848;
}
/* pdf */
.pdf-container {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 700px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 20px;
}


.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}


.loading-message {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
}

/*heyzine*/

.heyzine-container {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 80%; /* Adjust height as needed */
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #333;
  border-radius: 10px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
  overflow: hidden;
}

.heyzine-viewer {
  width: 100%;
  height: 100%;
  border: none;
}

/*vinyl*/
.vinyl-storage {
  position: absolute;
  bottom: -100px; 
  right: 20px;
  width: 200px; 
  height: 100px;
  background-color: brown;
  border: 2px solid #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  margin-top: -20px;
 
}

#vinyl-gallery * {
    all: unset;
  }
 
  #vinyl-gallery {
    all: initial!important;
    width: 100%!important;
    height: 230px!important;
    
    display: flex!important;
    flex-direction: row!important;
    position: relative!important;
    margin-left: -6px!important;
    margin-top: -20px;
  }
 
  #vinyl-gallery .vinyl {
      all:unset!important;
    perspective: 500px !important;
    width: 18px!important;
    transition: width 0.5s!important;
  }
 
  #vinyl-gallery .vinyl:hover {
    width: 148px!important;
  }
 
  #vinyl-gallery img {
      all:unset!important;
    transition: transform 0.5s, width 0.5s, height 0.5s, margin-top 0.5s!important;
    width: 100px!important;
    height: 100px!important;
    transform: rotateX(0deg) rotateY(25deg)!important;
    transform-style: preserve-3d!important;
    border-radius: 4px!important;
    border: 2px solid rgba(0, 0, 0, 0.1)!important;
object-fit: cover!important;
  }
 
  #vinyl-gallery .vinyl:hover img {
    transform: rotateX(0deg) rotateY(10deg)!important;
    width: 100px!important;
    height: 100px!important;
    margin-top: -2px!important;
  }
 
  #vinyl-gallery .title {
    color: red;
    font-weight: bold;
    display: block;
    visibility: hidden;
    position: absolute;
    bottom: 0px;
    text-align: center;
    width: 100%;
    padding-left: 6px;
    z-index:999;
    text-shadow: 
    0 0 5px #fff,  
    0 0 10px #fff, 
    0 0 20px #ff00ff,
    0 0 30px #ff00ff,
    0 0 40px #ff00ff,
    0 0 50px #ff00ff,
    0 0 75px #ff00ff; 
  }
 
  #vinyl-gallery .vinyl:nth-child(n):hover + .title {
    visibility: visible;
  }


.floor {
  flex: 1;
  background: repeating-linear-gradient(
    to right,
    #8b5a2b,
    #b5651d 20px
  );
  height: 100px; 
}

/* cutscene */
.character-dialogue {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.character-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.dialogue-box {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background: rgba(255, 255, 255, 0.5);
}

#character-sprite {
  max-width: 110px;
  margin: 10px auto;
   filter: drop-shadow(0 0 10px white) drop-shadow(0 0 40px white);
  animation: glow 2s infinite;
}

@keyframes glow {
  50% {
    filter: drop-shadow(0 0 30px white) drop-shadow(0 0 60px rgba(0, 255, 255, 0.9));
  }
  75% {
    filter: drop-shadow(0 0 10px rgba(250, 128, 114, 0.8)) drop-shadow(0 0 100px white);
  }
}

.sprite.stare {
  content: url('img/saintstare.png');
}

.sprite.blink {
  content: url('img/saintblink.png');
}

.chibi-container {
  position: fixed;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
}

.chibi-icon {
  max-width: 50px;
  margin-right: 10px;
}

.chibi-dialogue {
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.hidden {
  display: none;
}

  .screen::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(10, 7, 6, 0) 10%, rgba(0, 0, 0, 0.05) 20%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.03), rgba(0, 0, 255, 0.08));
  z-index: 99999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

@keyframes flicker {
  0% {
  opacity: 0.03;
  }
  5% {
  opacity: 0.0355;
  }
  10% {
  opacity: 0.0245;
  }
  15% {
  opacity: 0.021;

  }
}

.screen::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(19, 17, 16, 0.09);
  opacity: 0;
  z-index: 99999;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}
