body {
  margin: 0;
  height: 400vw; /* enough to scroll */
  font-family: serif;
  background: #000033;
}

.bgcolor {
  position: fixed;
  top: 0;
  left: 40vw;
  width: 300vw;
  height: 100%;
  z-index: -2;
  background: #000033;
}

.pseudo-bg {
  position: fixed;
  top: 0;
  width: auto;
  height: 100vh;
  z-index: -1;
  display: flex;
}
.pseudo-bg img {
  height: auto;
}

.content {
  position: relative;
  z-index: 1;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-element {
  position: absolute;
  bottom: 150px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
  .scroll-element img {
    display: block;
    cursor: help;
    max-width: 300px;
    height: auto;
    image-rendering: pixelated;
  }
  .scroll-element a {
    position: relative;
    display: inline-block;
    text-decoration: none;
  }
  .scroll-element .title {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: serif;
    font-size: 1rem;
    background-color: blue;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none; /* hover triggers via img */
  }
  .scroll-element a:hover .title {
    font-family: serif;
    font-style: italic;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
  }

.sidenav {
  width: 150px;
  border-style: solid;
  border-width: thin;
  border-color: red;
  background-color: white;
  position: fixed;
  vertical-align: middle;
  top: 50%;
  left: 20px;
  overflow-x: hidden;
  transform: translateY(-50%);
  z-index: 10;
  font-family: serif;
}
  .subtitle {
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-size: 28px;
    font-weight: normal;
    padding-top:0%;
    margin: 5%;
    color: blue;
  }
  .sidenav ul {
    list-style: none;
    margin: 5%;
    padding: 0;
    font-family: serif;
    color: blue;
  }
  .sidenav li {
    margin: auto;
    font-family: serif;
  }
  .sidenav a {
    font-family: serif;
    text-decoration: none;
    font-style: normal;
    color: blue;
    font-size: 20px;
    transition: color 0.2s ease;
  }
  .sidenav a:hover {
    font-style: italic;
    color: red;
    font-family: serif;
  }
   @keyframes flicker {
      0% { opacity: 0.27861; }
      5% { opacity: 0.34769; }
      10% { opacity: 0.23604; }
      15% { opacity: 0.90626; }
      20% { opacity: 0.18128; }
      25% { opacity: 0.83891; }
      30% { opacity: 0.65583; }
      35% { opacity: 0.67807; }
      40% { opacity: 0.26559; }
      45% { opacity: 0.84693; }
      50% { opacity: 0.96019; }
      55% { opacity: 0.08594; }
      60% { opacity: 0.20313; }
      65% { opacity: 0.71988; }
      70% { opacity: 0.53455; }
      75% { opacity: 0.37288; }
      80% { opacity: 0.71428; }
      85% { opacity: 0.70419; }
      90% { opacity: 0.7003; }
      95% { opacity: 0.36108; }
      100% { opacity: 0.24387; }
    }
    #wrapper {
      position: relative;
      display: inline-block;
    }
    #wrapper img {
      display: block;
      width: 100%;
      height: auto;
    }
    #wrapper::after {
      content: " ";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      background: rgba(18, 16, 16, 0.1);
      opacity: 0;
      pointer-events: none;
      animation: flicker 0.15s infinite;
      z-index: 2;
    }
    #wrapper::before {
      content: " ";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
      background-size: 100% 2px, 3px 100%;
      pointer-events: none;
      z-index: 2;
    }