:root {
  --crt-red: rgb(218, 49, 49);
  --crt-green: rgb(112, 159, 115);
  --crt-blue: rgb(40, 129, 206);
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  background-image: url('/static/stars3.gif');
  background-repeat: repeat;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-width {
  width: 100vw;
  margin: 0 auto;
}

img {
  margin-top: 20px;
  float: right;
}

h1 {
  font-size: 2em;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #8700bd;
}

h2 {
  font-size: 1.5em;
  color: #8700bd;
  text-decoration: underline;
}

.container {
  border: 5px solid blueviolet;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

/* CRT effect derived from This Animus. Really ties the vibe of the site together, imo. */
.crt {
  text-shadow: 0 0 0.2em currentColor,
    1px 1px rgba(255, 0, 255, 0.5),
    -1px -1px rgba(0, 255, 255, 0.4);
  position: relative;
}

/* overlay layers */
.crt::before,
.crt::after {
  content: "";
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

.crt::before {
  background: repeating-linear-gradient(
    var(--crt-red) 0px,
    var(--crt-green) 2px,
    var(--crt-blue) 4px
  );
}

.crt::after {
  background: repeating-linear-gradient(
    90deg,
    var(--crt-red) 1px,
    var(--crt-green) 2px,
    var(--crt-blue) 3px
  );
}

main.crt {
  width: 60vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

main.crt iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: none;
}

/* Nav bar stuffs */
.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;

  padding: 10px;
}

.tab {
  color: #8700bd;
  text-decoration: underline;
  font-size: 20px;
}

.tab:hover {
  transform: translateY(1px);
  color:#9703d2;
  font-weight: bold;
}

.top-nav {
  grid-area: navbar;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: rgb(36, 0, 36);
  border: 5px solid blueviolet;
  width: 100%;
  padding: 6px 12px;
  border-radius: 4px;
  border-bottom: none;
  box-sizing: border-box;
}