html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
}

body {
  color: rgb(39, 16, 102);
  background: #f8f4ee;
}


.bg {
  position: fixed;
  inset: 0;
  background-position: bottom right;
  background-size: auto 100%;
  background-repeat: no-repeat;
  z-index: -2;
}

.bg-1 {
  background-image: url("WebPicColor.png");
  opacity: 1;
}

.bg-2 {
  background-image: url("webPicGrey.png");
  opacity: 0;
}

.titlePic {
  position: fixed;
  inset: 0;
  background-position: top 5% left 5%;
  background-size: 30%;
  background-repeat: no-repeat;
  z-index: -1;

  background-image: url("WebTitle.png");
  opacity: 1;
}

.hero {
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  min-height: 100vh;
  display: grid;
  place-items: left;
  text-align: left;
  background: rgba(255, 255, 255, 0);
}

.topSpacer {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0);
}

.botspacer {
  min-height: 30vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0);
}

/* CSS-only scroll effect, compatible browsers only */
@supports (animation-timeline: scroll()) {
  .bg-2 {
    animation: fade-bg linear both;
    animation-timeline: scroll(root);
    animation-range: 35vh 100vh;
  }

  @keyframes fade-bg {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
