* {
  box-sizing: border-box;
}
html {
  height: 100%;
  width: 100%;
}
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: url("https://harrowick.neocities.org/Lore/Locations/locationpagebackground.png") no-repeat center center fixed;
  background-size: cover;
}
/* back button */
.back-btn {
  position: fixed;
  top: 0px;
  left: 0px;
  cursor: pointer;
  z-index: 10;
  max-width: 400px;
  height: auto;
  filter: brightness(0.8) contrast(0.9);
  transition: filter 0.3s ease;
}
.back-btn:hover {
  filter: brightness(1) contrast(1);
}
/* page title */
header {
  position: fixed;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.title-img {
  max-width: 957px;
  height: auto;
}


/* doors doors doors */
.door-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  align-content: center;
  gap: 3px 90px;
  padding: 50px 50px 20px;
  height: 100vh;
}



.door-img {
  display: block;
  max-height: 180vh;
  width: auto;
  cursor: pointer;
  filter: brightness(0.85);
  transition: filter 0.3s ease, transform 0.3s ease;
}


.door-bg {
  background: url("https://harrowick.neocities.org/Lore/Locations/doorbackground.png") no-repeat center center;
  background-size: contain;
}


.door-img:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}



@media (max-width: 1440px) {
  .door-grid {
    gap: 3px 50px;
    padding: -120px 20px 20px;
  }
  .door-img {
    max-width: 250px;
  }
}
@media (max-width: 1024px) {
  .door-grid {
    gap: 3px 50px;
    padding: 120px 30px 20px;
  }
  .door-img {
    max-width: 214px;
  }
}


/* mobile */
@media (max-width: 768px) {
  .title-img {
    max-width: 90vw;
  }
  .door-grid {
    grid-template-columns: repeat(2, auto);
    gap: 20px;
    padding: 20px;
    align-content: start;
    height: auto;
    overflow-y: auto;
  }
  .door-img {
    max-width: 42vw;
    max-height: none;
  }
  .back-btn {
    max-width: 140px;
  }
}