html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  color:cornsilk
}

:root {
  --crt-red: rgb(218, 49, 49);
  --crt-green: rgb(112, 159, 115);
  --crt-blue: rgb(40, 129, 206);
}

body {
  background-image: url('/static/stars3.gif');
  background-repeat: repeat;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 15px;
  overflow: hidden;
}

h1 {
  font-size: 2em;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #8700bd;
}

p {
  margin-bottom: 20px;
  color:cornsilk
}

strong {
  font-style: italic;
  color:#8700bd
}

img {
  margin-top: 20px;
}

.container {
  width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(260px, 33vw) 1fr;
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "icon navbar"
    "icon bio"
    ".    bio";

  gap: 10px;
  padding: 8px;
}

.icon {
  grid-area: icon;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto auto;
  grid-template-areas:
    ". pic ."
    "cycleLeft . cycleRight"
    ". name .";
  border: 5px solid blueviolet;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: rgb(36, 0, 36);
  padding: 6px 12px;
  min-width: 0;
  min-height: 0;
}

.pic { grid-area: pic; }

.name { grid-area: name; }

.cycleRight { 
  grid-area: cycleRight; 
  justify-self: end;
}

.cycleLeft { 
  grid-area: cycleLeft; 
  justify-self: start;
}

/* 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;
  box-sizing: border-box;
}

.bio {
  grid-area: bio;
  align-self: start;
  font-size: 1.25em;
  border: 5px solid blueviolet;
  background-color: rgb(36, 0, 36);
  padding: 20px;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: left;
}

.counter {
  text-align: center;
  font-weight: bold;
}

.time-part {
  margin: 5px 0;
}

.date-comment {
  text-align: center;
}

/* 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
  );
}