.dungeon-room {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  /* Background is now set by JavaScript for random selection */
  background: transparent;
}



/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 1 */
.door.door-1 {
  position: absolute;
  top: 9%;
  left: 27.5%;
  width: 6%;
  height: 12%;
  cursor: pointer;
}



/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 2 */
.door.door-2 {
  position: absolute;
  top: 9%;
  left: 38%;
  width: 6%;
  height: 12%;
  cursor: pointer;
}



/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 3 */
.door.door-3 {
  position: absolute;
  top: 9%;
  left: 47.5%;
  width: 6%;
  height: 12%;
  cursor: pointer;
}



/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 4 */
.door.door-4 {
  position: absolute;
  top: 9%;
  left: 57.5%;
  width:6%;
  height: 12%;
  cursor: pointer;
}



/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 5 */
.door.door-5 {
  position: absolute;
  top: 9%;
  left: 67.25%;
  width: 6%;
  height: 12%;
  cursor: pointer;
}



/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 6 */
.door.door-6 {
  position: absolute;
  top: 23%;
  left: 33%;
  width: 6%;
  height: 12%;
  cursor: pointer;
}



/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 7 */
.door.door-7 {
  position: absolute;
  top: 23%;
  left: 42.5%;
  width: 6%;
  height: 12%;
  cursor: pointer;
}



/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 8 */
.door.door-8 {
  position: absolute;
  top: 23%;
  left: 53%;
  width: 6%;
  height: 12%;
  cursor: pointer;
}


/* General door styling with shield image */
.door {
  position: absolute;
  width: 200px;
  height: 280px;
  background-image: url('Shield001/shield001.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Door 9 */
.door.door-9 {
  position: absolute;
  top: 23%;
  left: 63%;
  width:6%;
  height: 12%;
  cursor: pointer;
}

/* Grid overlay for debugging */
body.show-grid .dungeon-room::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 5% 5%;
  z-index: 1000;
}

html, body {
  height: 100%;
  margin: 0;
  background-color: #0a0e27;
}

body {
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

body.loaded {
  opacity: 1;
}
