/* welcome to my css! sorry it's kind of a big mess. */

* {
  margin: 0;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

html {
  color: #222;
  font-size: 16px;
  line-height: 1.4;
  /* don't scroll horizontally because of the gifs that are over to the right */
  max-width: 100%;
  overflow-x: hidden;
  /* supposedly fixes something on iphone broken by the above */
  height: auto !important;
  margin: 0;
  padding: 0;
}

body {
  /*font-family: FreeSerif, Times, "Times New Roman", serif;*/
  /* actually fuck that, let's use comic sans */
  font-family: "Comic Sans MS", "Chalkboard SE", "Chalkboard", "Comic Neue Regular", sans-serif;
  padding: 0 16px;
  color: black;
  background: radial-gradient(at top center, rgba(0,0,0,0) 40%, black 90%) fixed, url("img/wolf-snow-seamless-background.jpg") gray;
  max-width: 100%;
  overflow-x: hidden;
}

a img {
  border: 0;
}

/* JESUS FUCK THE FLICKERING ON iOS */
@supports (-webkit-touch-callout: none) {
  /* https://stackoverflow.com/a/47818418 */
  nav ul,
  nav ul li,
  section,
  .yellow,
  .red,
  .blue,
  .rainbow,
  h2 {
    -webkit-transform-style: preserve-3d;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
  }
}



/*********************\
* START OF XMAS STUFF *
\*********************/

.xmas::before {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -2;
  height: 69px;
  top: 24px;
  left: 0;
  right: 0;
  background: url("img/lights17.gif");
}

.xmas .santa-hat {
  position: relative;
}

.xmas .santa-hat::after {
  content: "";
  z-index: 2;
  width: 80px;
  height: 56px;
  background: url("img/santahat.png") center no-repeat;
  left: -24px;
  top: -22px;
  position: absolute;
  pointer-events: none;
}

/* hide the xmas song by default */

audio[src*="xmas"] {
  display: none;
}

/* show it only when in the .xmas container */

.xmas audio[src*="xmas"] {
  display: block;
}

/*******************\
* END OF XMAS STUFF *
\*******************/


/* stuff that's only visible in a text-based browser like lynx */
@media not grid {
  .txt-only {
    display: none;
  }
}



div.container {
  max-width: 376px;
  margin: 0 auto;
}



h1,h2 {
  line-height: 1.2;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em; 
}



p {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
}

p img {
  vertical-align: middle;
}

hr.tildes {
  border: 0;
  color: inherit;
  margin: 0;
  clear: both;
}
hr.tildes::after {
  content: "~ * ~ * ~ * ~";
  text-align: center;
  display: block;
  margin: 0.5em auto;
}



header,
nav,
footer ul,
section {
  padding: 16px;
  box-shadow: 4px 4px 4px black;
  margin-top: 16px;
}

header,
footer ul,
section,
nav ul li a {
  border: 2px solid;
  border-color: rgba(255,255,255,0.6) rgba(0,0,0,0.6) rgba(0,0,0,0.6) rgba(255,255,255,0.6);
}


header * {
  cursor: default;
}

header h1 {
  font-style: italic;
}

header {
  position: relative;
  text-shadow: 1px 1px 2px black;
  text-align: center;
  background: url("img/blood-hr.gif") top no-repeat, url("img/pansies2-spring-seamless-background.jpg") #ffa98e;
  color: white;
  
  background-size: 1064px, 400px;
}



nav {
  border: 0;
  padding: 0;
  position: relative;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  background: url("img/clouds.jpg") #abbfe0;
  background-position: 0px;
  animation: move-clouds 20s linear infinite;
  background-attachment: fixed;
}

nav ul.defunct {
  background-color: #888;
  background-image: url("img/stone.gif");
  animation: none;
  background-attachment: scroll;
}

@keyframes move-clouds {
  0% {
    background-position: 0px;
  }
  100% {
    background-position: 432px;
  }
}

nav ul li a {
  display: block;
  padding: 14px;
  font-size: 20px;
  text-decoration: underline;
  color: #0000ee;
  text-align: center;
  position: relative;
  /* transition: filter 0.4s, background 0.4s; */
}

nav ul li a:hover {
  background: rgba(255,255,255,0.5);
  filter: grayscale(20%) contrast(50%) brightness(150%);
  /* transition: filter 0s, background 0s; */
}

nav ul li a:active {
  border-color: rgba(0,0,0,0.6) rgba(255,255,255,0.6) rgba(255,255,255,0.6) rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.3);
  filter: grayscale(20%) contrast(100%) brightness(75%);
}



/* navigation section emblems */
.sign,
.nsfw {
  color: transparent;
  font-size: 0;
  margin: 0 4px;
  position: relative;
  display: inline-block;
}

.sign::after,
.nsfw::after {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0px;
  background: transparent no-repeat center;
}

.nsfw {
  width: 57px;
}

.nsfw::after {
  width: 57px;
  height: 28px;
  top: -20px;
  background-image: url("img/nsfw.gif");
}

.sign {
  width: 32px;
}

.sign::after {
  width: 32px;
  height: 35px;
  top: -24px;
  background-image: url("img/18.gif");
}



/* featured/special link things */
li.featured a::after,
li.featured a::before,
li.coin a::after,
li.coin a::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  background: transparent no-repeat center;
  background-size: contain;
  height: 100%;
  width: 50px;
}

li.featured a,
li.coin a {
  padding-left: 70px;
  padding-right: 70px;
}

li.coin a::after,
li.coin a::before {
  background-image: url("img/gold_coin.gif");
  width: 32px;
}

li.coin a::after {
  right: 16px;
}

li.coin a::before {
  left: 16px;
}

li.featured a::after {
  background-image: url("img/arrow_left.gif");
  right: 8px;
}

li.featured a::before {
  background-image: url("img/arrow_right.gif");
  left: 8px;
}

li.money {
  position: relative;
  z-index: 1;
}

li.money::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("img/money.gif");
  opacity: 0.6;
}

li.money {
  position: relative;
  z-index: 1;
}

ul.defunct li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("img/ghosttrans.gif");
  opacity: 0.4;
  background-position: 0px 0px;
  animation: move-ghost 4s linear infinite;
  background-attachment: fixed;
  pointer-events: none;
  background-size: 102px 86px;
}

@keyframes move-ghost {
  0% {
    background-position: 0px 0px;
  }
  100% {
    background-position: 102px -172px;
  }
}

ul.defunct li a {
  text-decoration: none;
}

.defunct li a,
.defunct li a:visited {
  color: #606060;
  text-shadow: -1px 0px 0px #000, -1px -1px 0px #000, 0px -1px 0px #000, 1px 0px 0px #ccc, 1px 1px 0px #ccc, 0px 1px 0px #ccc;
}

.defunct * {
  filter: grayscale(100%);
}



section {
  color: lightgray;
  background: url("img/fire-hr.gif") no-repeat, url("img/blood-hr.gif") no-repeat, url("img/space2.jpg"), #20072f;
  position: relative;
  background-attachment: scroll, scroll, fixed;
  background-size: 2128px, 1064px, auto;
  background-position: bottom, top;
  /* hyphens: auto; */
  /* text-align: justify; */
}



section audio {
  display: block;
  width: 100%;
}

/* drop shadow for visibility on dark background */
section > * {
  text-shadow: 1px 1px 1px #000, 1px 1px 3px #000;
}

/* make sure no images exceed the width of the containing div */
section img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* pics in the art directory get scaled down smoothly */
section [src^="art/"] {
  image-rendering: auto;
  border-radius: 8px;
}

section img.left {
  float: left;
  margin-right: 16px;
}

section img.right {
  float: right;
  margin-left: 16px;
}

.spinny {
  perspective: 200px;
  float: left;
}

.spinny img {
  animation: twist 6s linear infinite, twist-shade 3s linear infinite;
  width: 120px; height: auto;
}

@keyframes twist {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(-360deg);
  }
}

@keyframes twist-shade {
  0% {
    filter: brightness(1);
  }
  15% {
    filter: brightness(1.1);
  }
  47% {
    filter: brightness(1.3);
  }
  48% {
    filter: brightness(0.5);
  }
  100% {
    filter: brightness(1);
  }
}



/* link styling */
section a,
section a:visited,
section a:hover,
section a:active {
  color: #0f0;
}

/* wikipedia style external link icon */
/* for links that begin in "http..." */
/* to change the color it's the stroke='%230f0' part */
/* (%23 is # after encoding -- so that's #0f0) */
/* same in fill: '%23000' -> 'none' for transparent */
section [href^="http"] {
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath stroke='%230f0' stroke-width='10' d='M43 35H5v60h60V57M45 5v10l10 10-30 30 20 20 30-30 10 10h10V5z' fill='%23000'/%3E%3C/svg%3E") no-repeat right calc(50% + 1px);
  background-size: 10px;
  padding-right: 12px;
  image-rendering: auto;
}



section h2 {
  text-align: center;
}

section hr {
  height: 50px;
  background-image: url("img/rainbow2.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 1em;
  border: 0;
}

.update, .tagline {
  margin: 0;
  color: gray;
  /* background: linear-gradient(to right, transparent, black, transparent); */
  text-align: center;
  display: block;
  font-style: italic;
}

.yellow {
  color: yellow;
  animation: pulse-yellow 1s linear infinite;
}

.red {
  background: linear-gradient(to right, yellow, red, yellow, red, yellow);
}

.blue {
  background: linear-gradient(to right, blue, cyan, blue, cyan, blue);
}

.rainbow {
  background: linear-gradient(to right, red, orange, yellow, lime, cyan, blue, magenta, red, orange, yellow, lime, cyan, blue, magenta, red);
}

.red,
.blue,
.rainbow {
  text-shadow: none !important;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* these WERE set to slice but it made iOS have tantrums */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;

  /* animation stuff */
  background-position: 0%;
  background-size: 200%;
  animation: cycle-gradient 3s linear infinite;
}

.red.i,
.blue.i,
.rainbow.i {
  /* pad it a bit on the right so it doesn't cut off those lovely blobby comic sans terminals on italics */
  padding-right: 0.15em;
}

@keyframes cycle-gradient {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

@keyframes pulse-yellow {
  0% {
    color: yellow;
  }
  50% {
    color: red;
  }
  100% {
    color: yellow;
  }
}



span.globe::after {
  content: "";
  height: 1em;
  width: 1em;
  margin-left: 0.4em;
  background-image: url("img/globe.gif");
  background-size: contain;
  display: inline-block;
  vertical-align: middle;
}



.i {
  font-style: italic;
}

.center {
  text-align: center;
}

img.center {
  margin: 0 auto 1em auto;
  display: block;
}



footer {
  text-align: center;
  color: #fff;
  padding: 0;
  position: relative;
}

footer img {
  margin: 2px;
}

footer ul {
  z-index: 3;
  list-style: none;
  font-size: 0;
  padding: 2px;
  background: url("img/bgwater3.jpg") #02008a;
  position: relative;
  background-attachment: fixed;
}

footer ul li {
  display: inline;
}

/* a [src^="img/buttons/"] {
  transition: filter 0.4s;
} */

/* was [src^=
   had to change it because it was broken on the wayback machine */
a:hover [src*="img/buttons/"] {
  filter: grayscale(20%) contrast(50%) brightness(150%);
  /* transition: filter 0s; */
}

a:active [src*="img/buttons/"] {
  filter: grayscale(20%) contrast(100%) brightness(75%);
}



/* here be gifs */
/* had to comment out all the shadows because of firefox mobile */

header h1::after {
  content: "";
  z-index: 1;
  width: 48px;
  height: 48px;
  background: url("img/floppyspin.gif") center no-repeat;
  right: -16px;
  top: -20px;
  position: absolute;
  pointer-events: none;
  /* filter: drop-shadow(8px 8px 4px #000); */
}

header::before {
  content: "";
  z-index: -1;
  width: 64px;
  height: 70px;
  background: url("img/ballanim.gif") center no-repeat;
  left: -50px;
  bottom: -30px;
  position: absolute;
  pointer-events: none;
  /* filter: drop-shadow(8px 8px 4px #000); */
}

header::after {
  content: "";
  z-index: 0;
  width: 176px;
  height: 156px;
  background: url("img/llamawalking.gif") center no-repeat;
  left: -110px;
  bottom: -108px;
  position: absolute;
  /* filter: drop-shadow(8px 8px 4px #000); */
}

nav::after {
  content: "";
  z-index: 2;
  width: 50px;
  height: 50px;
  background: url("img/netcube.gif") center no-repeat;
  right: -44px;
  bottom: -10px;
  position: absolute;
  pointer-events: none;
  /* filter: drop-shadow(8px 8px 4px #000); */
}

section:first-of-type::after {
  content: "";
  z-index: 3;
  width: 65px;
  height: 65px;
  background: url("img/zipdisk.gif") center no-repeat;
  left: -34px;
  bottom: 29px;
  position: absolute;
  pointer-events: none;
  /* filter: drop-shadow(8px 8px 4px #000); */
}


section:first-of-type::before {
  content: "";
  z-index: 3;
  width: 73px;
  height: 73px;
  background: url("img/sphere2.gif") center no-repeat;
  right: -40px;
  top: -25px;
  position: absolute;
  pointer-events: none;
  /* filter: drop-shadow(8px 8px 4px #000); */
}

section > *:first-child::before {
  content: "";
  z-index: 3;
  width: 85px;
  height: 96px;
  background: url("img/candy-spin-2.gif") center no-repeat;
  left: -120px;
  top: 90px;
  position: absolute;
  pointer-events: none;
  animation: floatbob 4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  transform: rotateZ(-26.565deg);
}

@keyframes floatbob {
  0% {
    transform: translate(0px, 0px) rotateZ(-26.565deg);
  }
  50% {
    transform: translate(0px, -24px) rotateZ(-26.565deg);
  }
}

section > *:last-child::after {
  content: "";
  z-index: 3;
  width: calc(100% + 4px);
  height: 50px;
  background: url("img/eyebar.gif") center repeat-x;
  background-size: auto 40px;
  left: -2px;
  bottom: -20px;
  position: absolute;
}

footer::before {
  content: "";
  z-index: -1;
  width: 93px;
  height: 70px;
  background: url("img/gears.gif") center no-repeat;
  left: -79px;
  top: -33px;
  position: absolute;
}

footer::after {
  content: "";
  z-index: -1;
  width: 75px;
  height: 75px;
  background: url("img/cd_04.gif") center no-repeat;
  right: -46px;
  bottom: 22px;
  position: absolute;
  pointer-events: none;
  /* filter: drop-shadow(8px 8px 4px #000); */
}

footer ul::after {
  content: "";
  z-index: -1;
  width: 100%;
  height: 100%;
  background: url("img/bgwater3.jpg");
  background-position: 128px 64px;
  opacity: 0;
  top: 0;
  left: 0;
  position: absolute;
  animation: waterfade 7s linear infinite;
  background-attachment: fixed;
}

@keyframes waterfade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

div.construction {
  background: url("img/counter1.gif") center no-repeat;
  position: relative;
  margin-top: 16px;
  width: 100%;
  height: 40px;
  font-size: 0;
}

div.construction * {
  display: none;
}

div.construction::before {
  content: "";
  position: relative;
  right: 53px;
  background: url("img/construction.gif") center no-repeat;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  display: inline-block;
}

div.construction::after {
  content: "";
  position: relative;
  left: 53px;
  background: url("img/construction.gif") center no-repeat;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  display: inline-block;
}

.gif-container {
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.gif-container img {
  vertical-align: middle;
  margin-left: 4px;
  margin-right: 4px;
}
