
/* Door Themes */
/* Hidden Bookshelf Door (History) */
.door.pumpkin {
  background: linear-gradient(to bottom, #3e2b1f, #1f140f);
  border: 3px solid #120a07;
  color: #f3dcb2;
  font-family: 'Georgia', serif;
  text-shadow: 0 0 4px #000;
  position: relative;
  overflow: hidden;
}

/* Faux shelves */
.door.pumpkin::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 10%;
  width: 80%;
  height: 3px;
  background: #5a3d29;
  box-shadow: 0 40px #5a3d29, 0 80px #5a3d29;
  opacity: 0.8;
}

/* Faux books */
.door.pumpkin::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 40%;
  background-image: repeating-linear-gradient(
    to right,
    #8b5e3c 0 15px,
    #d1a676 15px 30px,
    #59341c 30px 45px,
    #a67b5b 45px 60px
  );
  opacity: 0.7;
  border-radius: 2px;
}


/* Coffin Door (Crypt) */

.door.coffin {
  clip-path: polygon(30% 0%, 70% 0%, 100% 15%, 100% 85%, 70% 100%, 30% 100%, 0% 85%, 0% 15%);
  background: linear-gradient(to bottom, #2b1b1b, #000);
}

/* Jail Door (Jail) */
.door.jail {
  background: linear-gradient(to bottom, #2b2b2b, #111);
  border: 3px solid #000;
  border-radius: 3px;
  position: relative;
  font-family: 'Georgia', serif;
  color: #ddd;
  text-shadow: 0 0 4px #000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Vertical iron bars */
.door.jail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to right,
    rgba(200,200,200,0.2) 0 6px,
    transparent 6px 20px
  );
  border-left: 2px solid #555;
  border-right: 2px solid #555;
  opacity: 0.8;
}

/* Arch shape at the top */
.door.jail::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 50px;
  background: radial-gradient(circle at 50% 100%, #444 50%, transparent 52%);
  border-top: 3px solid #333;
  border-radius: 50% / 100%;
}

/* Hover: eerie green glow */
.door.jail:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.4);
}


/* Jukebox Door (Music) */
.door.jukebox {
  background: linear-gradient(135deg, #440088, #000);
  border: 3px solid #ff00ff;
  box-shadow: 0 0 15px #ff00ff;
}
.door.jukebox::before {
  content: "♪🎵";
  font-size: 3rem;
  position: absolute;
  top: 10px; left: 10px;
}


/* Mirror Door (Gallery) */
.door.mirror {
  background: linear-gradient(to bottom, #ddd, #aaa);
  color: #000;
  overflow: hidden;
  border:5px solid gold;
}
.door.mirror::before {
  content: "";
  position: absolute;
  width: 2px; height: 100%;
  background: rgba(255,255,255,0.6);
  left: 50%; top: 0;
  transform: rotate(-20deg);
}


/* Fairy Tale Door (Stories) */
.door.library {
  background: linear-gradient(to bottom, #4b2e2e, #2a1b1b);
  border: 4px solid #1a0d0d;
  color: #f5e6d0;
  font-family: 'Georgia', serif;
  letter-spacing: 1px;
  text-shadow: 0 0 4px #000;
  position: relative;
  overflow: hidden;
}

/* Carved wood panel look */
.door.library::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 10%;
  width: 80%;
  height: 70%;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* Creeping vines */
.door.library::after {
  content: "🌿";
  font-size: 2rem;
  position: absolute;
  bottom: 10px;
  right: 15px;
  opacity: 0.7;
  transform: rotate(-20deg);
}




/* Failed Clown Door (IDK) */
.door.flash {
  background: radial-gradient(circle at 50% 30%, #f2f2f2 40%, #ccc 100%);
  border: 4px solid #600; /* darker blood red */
  color: #eee;
  font-family: 'Creepster', cursive, sans-serif; /* fallback spooky font */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dark hollow eyes */
.door.flash::before {
  content: "⬤    ⬤";
  font-size: 2.5rem;
  color: #111;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 2rem;
  text-shadow: 0 0 10px #600, 0 0 5px #000;
}

/* Jagged bloody smile */
.door.flash::after {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 50%;
  width: 65%;
  height: 50px;
  border-bottom: 8px solid #600;
  border-radius: 50% / 20%;
  transform: translateX(-50%) rotate(5deg);
  box-shadow: 0 -10px 15px rgba(0,0,0,0.6) inset;
}

/* Door label */
.door.flash span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family:serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: #f5e6e6;
  text-shadow: 0 0 5px #600, 0 0 10px #000;
}

/* Hover: flicker like broken neon */
.door.flash:hover {
  background: radial-gradient(circle at 50% 30%, #e6e6e6 40%, #bbb 100%);
  animation: clownFlicker 0.15s infinite alternate;
}

@keyframes clownFlicker {
  0% { filter: brightness(0.8) contrast(1.2); }
  100% { filter: brightness(1.2) contrast(1.4); }
}

/* Halloween Door (Tricks) */
.door.carnival {
  background: repeating-linear-gradient(
    45deg,
    #E3A844,
    #E3A844 15px,
    #000 15px,
    #000 30px
  );
  
}

/* Candy Door (Treats) */
.door.candy {
  background: conic-gradient(from 0deg, white, purple, green, orange);
  color: #000;
}


/* Tombstone Door (Graveyard) */
.door.tombstone {
  background: linear-gradient(to bottom, #777, #444);
  border: 3px solid #222;
  color: #222;
  font-family: 'Times New Roman', serif;
  font-size:2em;
  clip-path: polygon(
    0% 30%,  /* left curve start */
    10% 10%,
    50% 0%,  /* top middle arch */
    90% 10%,
    100% 30%, 
    100% 100%, 
    0% 100%
  );
  box-shadow: inset 0 0 10px #222, 2px 5px 10px rgba(0,0,0,0.7);
}



/* Epitaph text */
.door.tombstone::before {
  content: "RIP";
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #111;
  text-shadow: 0 0 2px #999;
}

/* Small cracks for spooky detail */
.door.tombstone::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 2px;
  background: rgba(0,0,0,0.3);
  top: 50%;
  left: 10%;
  transform: rotate(-10deg);
}


/* Dark Door (Hallway/dark room) */
.door.darkroom {
  background: linear-gradient(to bottom, #2a2a2a, #111);
  border: 3px solid #000;
  border-radius: 2px;
  color: #ccc;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-shadow: 0 0 5px #000;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Faint vertical planks */
.door.darkroom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0 4px,
    transparent 4px 12px
  );
  opacity: 0.3;
}

/* Rusty knob */
.door.darkroom::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #555 20%, #222 100%);
  border: 2px solid #111;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 5px #000;
}

/* Hover: subtle ominous glow */
.door.darkroom:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(100, 0, 0, 0.5);
}


/* Spaceship Door (Spaceship) */
.door.space {
  background: linear-gradient(145deg, #2d2f34, #1a1b1f);
  border: 3px solid #555;
  border-radius: 6px;
  position: relative;
  font-family: 'Orbitron', sans-serif; /* futuristic font */
  color: #0ff;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Metallic panel grooves */
.door.space::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid #3f4349;
  border-radius: 4px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(100, 100, 120, 0.2) 0 8px,
    transparent 8px 16px
  );
}

/* Glowing vertical seams */
.door.space::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, #0ff, #08f);
  box-shadow: 0 0 8px #0ff;
  transform: translateX(-50%);
}

/* Hover: door "powers up" */
.door.space:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}





@media (max-width: 600px) {
  .door.jukebox::before {
  font-size: 2rem;
}
}
