html {
  cursor: url("Images/curshover.png"), auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
overflow-y: auto;
  background: black;
}

header {
  position: absolute;
  top: 5%;
  width: 100%;
  text-align: center;
  font-family: skyrim;
  font-size: 38px;
  color: rgb(0, 0, 0);
  padding: 10px 0;
  z-index: 10;
  transition: all 1s ease;
  opacity: 0.7;
}

.scroll {
  position: relative;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.scrolltext {
  position: relative;
  z-index: 10;
  padding: 100px 46px;
}

@media only screen and (max-width: 768px), (max-device-width: 768px) {
  header {
    font-size: 22px;
  }
}


/* Buttons */


.enter-button {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: rgb(195, 195, 195);
  font-size: 18px;
  cursor: pointer;
  z-index: 4;
  font-family: skyrim;
  transition: all 0.3s ease;
  letter-spacing: 0.15em;
}

.back-button {
  position: fixed;
  top: 9%;
  font-size: 8px;
  left: 10%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 500;
  opacity: 1;
  transition: all 0.3s ease;
}

.home-button {
  cursor: pointer;
  z-index: 500;
  transition: transform 1s ease;
  border: none;
  padding: 10px;
  background-color: #00000000;
}

.home-button:hover {
  transform: scale(1.25);
  cursor: url("Images/curshover.png"), auto;
}

.enter-button:hover,
.back-button:hover {
  color: #bdbdbd85;
  transform: translateX(-50%) scale(1.2);
}

.arrow {
  width: 64px;
  transition: transform 4s ease;
}

@media only screen and (max-width: 768px), (max-device-width: 768px) {
  .back-button {
    scale: 2;
    left: 18%;
    top: 10%;
  }

  .enter-button {
    font-size: 30px;
  }

  .arrow {
  width: 44px;
  }
}


/* Text */


p {
  font-family: skyrim;
  font-size: 30px;
  color: rgba(207, 207, 207, 0.689);
  background-color: #00000000;
  padding: 50px;
  margin: 15vh auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 100px 40px rgba(0, 0, 0, 0.854);
}

#welcome,
#bourgeois {
  z-index: 500;
  pointer-events: none;
  font-family: skyrim;
}

#bourgeois {
  position: fixed;
  top: 50%;
  font-size: 280px;
  color: white;
  transform: translate(-50%, -50%);
  left: 50%;
  opacity: 0;
}

#welcome { 
  position: fixed;
  top: 50%;
  transition: opacity 4s ease;
  color: rgba(255, 255, 255, 0.974);
  font-size: 30px;
  transform: translate(-50%, -50%);
  left: 50%;
  opacity: 0;
}

#welcome:after {
  content: ' .';
  animation: dots 1s steps(5, end) infinite;}

.neon-text {
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 40px rgb(210, 210, 210),
    0 0 80px rgb(170, 168, 168),
    0 0 90px rgb(160, 160, 160),
    0 0 100px rgb(67, 67, 67),
    0 0 150px rgb(43, 43, 43);
}

.neon-header {
  color: #000000;
  text-shadow:
    0 0 5px #c5c5c587,
    0 0 10px #a5a5a58a,
    0 0 20px #71717181,
    0 0 40px rgba(97, 97, 97, 0.499),
    0 0 80px rgba(67, 66, 66, 0.498),
    0 0 90px rgba(58, 58, 58, 0.508),
    0 0 100px rgba(37, 37, 37, 0.532),
    0 0 150px rgba(43, 43, 43, 0.5);
}

#bourgeois.flicker {
  animation: flicker 0.5s linear;
}


@keyframes dots {
  0%, 20% {
    color: rgba(0,0,0,0);
    text-shadow:
      .25em 0 0 rgba(0,0,0,0),
      .5em 0 0 rgba(0,0,0,0);}
  40% {
    color: white;
    text-shadow:
      .25em 0 0 rgba(0,0,0,0),
      .5em 0 0 rgba(0,0,0,0);}
  60% {
    text-shadow:
      .25em 0 0 white,
      .5em 0 0 rgba(0,0,0,0);}
  80%, 100% {
    text-shadow:
      .25em 0 0 white,
      .5em 0 0 white;}}

@keyframes appear {
  to {
    opacity: 1;
  }
}

@keyframes flicker {
  0%   { opacity: 0; }
  10%  { opacity: 0.8; }
  20%  { opacity: 0; }
  30%  { opacity: 0.8; }
  40%  { opacity: 0; }
  50%  { opacity: 0.8; }
  60%  { opacity: 0; }
  70%  { opacity: 0.8; }
  80%  { opacity: 0; }
  90%  { opacity: 0.8; }
  100% { opacity: 0; }
}

@font-face {
  font-family: 'skyrim';
  src: url(Fonts/DarkXShadowSkyrim.ttf);
}

@media only screen and (max-width: 800px), (max-device-width: 800px) {
 p {
  font-size: 30px;
 }
 #welcome { 
  transition: opacity 8s ease;
  color: rgba(255, 255, 255, 0.974);
  font-size: 45px;
}
 #bourgeois {
  font-size: 80px;
  color: white;
}
}


/* Background */


.glitch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  z-index: 3;
  pointer-events: none;
}

.castle {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
}

.fog {
  position: fixed;  
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 120vh;
  width: auto;
  object-fit: cover;
  z-index: 2;
  opacity: 0.8;
  pointer-events: none;
}

.fog2 {
  position: fixed;  
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 120vh;
  width: auto;
  object-fit: cover;
  z-index: 2;
  opacity: 0.75;
  pointer-events: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  pointer-events: none;
  opacity: 0.5;
  z-index: 3;
}

#fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
  z-index: 999;
}

#fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 1;
  pointer-events: none;
  transition: opacity 4s ease;
  z-index: 1000;
}

#black-fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 1;
  pointer-events: none;
  transition: opacity 4s ease 5s;
  z-index: 50;
}


/* Contents */


.logo {
  position: absolute;
  width: 70vw;
  max-width: 400px;
  top: 15%;
  left: 50%;
  transform: translate(-50%);
  height: auto;
  z-index: 3;
  transition: all 1s ease;
}  

.icons {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  z-index: 10;
}

.icons img {
  max-width: 25vw;
  max-height: 25vw;
}

.left,
.right {
  width: 325px;
  height: auto;
  opacity: 0.8;
}

.middle {
  width: 450px;
  height: auto;
  z-index: 1;
}

@media (max-device-width: 700px), (max-width: 700px) {
  .icons {
    flex-direction: column;
    align-items: center;
  }

  .icons img {
  max-width: 50vw;
  max-height: 50vw;
  }

  .logo {
  width: 70vw;
  max-width: 80%;
  }
  
  .left,
  .right {
    width: 40vw;
  }

  .middle {
    width: 60vw;
    margin-bottom: 20px;
  }

  .icons > .home-button {
    margin: 10px 0;
  }

  .icons > .home-button.left,
  .icons > .home-button.right {
    display: inline-block;
    margin: 0 10px;
  }
}


/* Images */


.image-stack {
  position: relative;
  margin: 300px auto;
  width: fit-content;
  z-index: 100;
  transition: all 1.5s ease;
}

.image-stack img {
  will-change: transform, opacity, margin-left;
  display: block;
  position: relative;
  width: 48vw;
  max-width: 100%;
  margin-top: 25vw;
  opacity: 0.75;
  box-shadow: 0 0 150px 30px rgba(0, 0, 0, 1);
  transition: transform 1s, margin-left 1s ease, opacity .8s ease, all 1s ease;
}

.image-stack img:first-child {
  margin-top: 0; 
}

.image-stack img:hover {
  transform: scale(1.6);
  margin-left: 0%;
  z-index: 10;
  opacity: 1;
  position: relative;
  box-shadow: 0 0 100px rgba(0, 0, 0, 1); 
}

@media only screen and (max-width: 768px), (max-device-width: 768px) {
  .image-stack {
    margin: 350px auto;
} 
  .image-stack img:hover {
    transform: scale(2);
}
}

.lhs {
  margin-left: -30%;
}

.rhs {
  margin-left: 30%;
}