:root {
  --background-color: #00203d;
  --medium-color: #2e5b72;
  --light-color: #ebf1f1;
}

* {
  color: #ebf1f1;
}

.title {
  padding-left: 80px;
  padding-top: 35px;
}

#whale-img {
  height: auto;
  width: 450px;
  margin-top: 75px;
  margin-left: 75px;
  border: solid #2e5b72 2px;
  border-radius: 8px;
}

.credit {
  margin-left: 75px;
}

p {
  padding: 5px;
}

/* Setting up the page areas i.e. left/right pages and margins, header, footer, and nav bar. */

.grid-container {
  display: grid;
  grid-template-columns: 1fr 3fr 3fr 1fr;
}

.header {
  grid-column: 1 / -1;
  height: 15vh;
  background-color: #00203d;
}

.nav {
  grid-column: 1 / -1;
  height: 3vh;
  background-color: #00203d;
}

.left-page,
.right-page,
.left-margin,
.right-margin {
  height: 64vh;
  padding: 5px;
}

.left-page {
  box-shadow: inset -15px 0 20px black;
}

.right-page {
  box-shadow: inset 15px 0 20px black;
}

.footer {
  grid-column: 1 / -1;
  height: 15vh;
  background-color: #00203d;
}

/* My attempts at making a graph paper background. */

.graph {
  background-color: #00203d;
  background-image: linear-gradient(0deg, #2e5b72 1px, transparent 1px),
    linear-gradient(90deg, #2e5b72 1px, transparent 1px);
  background-size: 20px 20px;
}

/* The basic ass nav bar */
ul.nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul.nav li a {
  display: block;
  text-align: center;
  padding: 50px;
  text-decoration: none; 
  color: #2e5b72;
}

ul.nav li a:hover {
  color: #ebf1f1;
}

.nav-button {
  color: black;
  border-radius: 12px;
  cursor: pointer;
}

.crt::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));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.crt::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@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;
  }
}




