:root {
  --crt-red: rgb(218, 49, 49);
  --crt-green: rgb(112, 159, 115);
  --crt-blue: rgb(40, 129, 206);
}

html, body {
  width: 100%;
  margin: 0;
}

body {
  background-image: url('/static/stars3.gif');
  background-repeat: repeat;
  min-height: 100vh;
  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;
}

footer {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0;
  color: #8700bd;
}

.visitor-label {
  display: block;
}

#visitorCounter {
  display: block;
  font-size: 2.25rem;
  font-weight: bold;
  line-height: 1;
  margin: 4px 0 6px;
}

footer p {
  margin: 0;
}

footer a {
  color: #8700bd;
  font-size: 1.15rem;
}

/* 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
  );
}


/* Marquee code derived (taken) from user Ryan Mulligan (i credited him so you cant tattle on me). Was going to do this on my own but the way I was doing was not working. Also it got a taste for human blood. Which is also bad. */
.marquee {
  --gap: 1rem;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}

.marquee__content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  max-width: fit-content;
  gap: var(--gap);
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
  color: #8700bd;
  font-size: medium;
  font-weight: bold;
  animation: scroll 20s linear infinite;
}

/* Makes list element upside down (really only used for my custom text seperator) */
.marquee__content .flipped {
  font-weight: bolder;
  transform: rotate(180deg);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__content {
    animation-play-state: paused !important;
  }
}

/* Sectioned content boxes */
.container {
  display: grid;
  /* narrow wide narrow */
  grid-template-columns: 250px 1fr 250px;
  /* this lets rows size naturally */
  grid-template-rows: auto auto;
  gap: 12px;
  width: min(1100px, 95vw);
  margin: 0 auto;
}

.top-mid { 
  grid-column: 2;
  grid-row: 1;
  margin-bottom: -6px;
}

.bottom-mid { 
  grid-column: 2;
  grid-row: 2;
}

.updates-box { 
  grid-column: 1;
  grid-row: 1 / span 2;
}

.ads-box { 
  grid-column: 3;
  grid-row: 1 / span 2;
}

.container_content {
  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;
  box-sizing: border-box;
}

.container_content h2 {
  font-size: 1.5em;
  color: #8700bd;
  text-align: center;
}

.container_content p {
  color: white;
  font-size: 18px;
}

/* 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;
}