/*https://boxy.neocities.org/
https://dimden.dev/
https://lao.ooo/
https://otomir23.me/
https://jsopn.com/ 

god these are cool*/

body {
  margin: 0px;
  background-color: rgb(0, 0, 0);
  font-family: Georgia, serif;
  background-image: url('images/characterbg.png');
  background-color: rgba(240, 248, 255, 0.521);
  background-size: 256px;
  background-repeat:repeat;
  image-rendering: pixelated;
  padding: 10px;
  box-sizing: border-box;
  font-size: 1.2em;
  background-attachment: fixed;
  background-position: 100%;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  animation: backgroundscroll infinite linear 2s;
}

@keyframes backgroundscroll {
  0% {
    background-position-x: 0%;
    background-position-y: 0%;
  }
  100% {
    background-position-x: 256px;
    background-position-y: 256px;
  }
}

#swordbg {
  width: 100%;
  height: 90px;
  position: absolute;
  text-align: center;
  z-index: -100;
  top: -10;
  left: 0;
  box-sizing: border-box;
}

#swordbg > img {
  aspect-ratio: initial;
  height: 120%;
  filter:drop-shadow(0px 0px 3px rgba(255, 0, 0, 0.5))
}

#column {
  --colwidth: 700px;
  padding: 10px;
  background-color: black;
  color: white;
  backdrop-filter: blur(3px);
  height: fit-content;
  max-width: var(--colwidth);
  box-sizing: border-box;
  margin: auto;
}

bold {
  font-weight: bold;
}

.subtext {
  color:rgb(219, 219, 219)
}

.indent {
  padding-left: 1.5em;
}

.link {
  --linkcolour: rgb(156, 128, 255);
  color: var(--linkcolour);
  animation: glowylink infinite 2s linear;
  text-decoration: none;
}

@keyframes glowylink {
  0% {
    text-shadow: -5px 0px 5px var(--linkcolour);
  }
  12.5% {
    text-shadow: -2.5px 1px 5px var(--linkcolour);
  }
  25% {
    text-shadow: 0px 2px 5px var(--linkcolour);
  }
  37.5% {
    text-shadow: 2.5px 1px 5px var(--linkcolour);
  }
  50% {
    text-shadow: 5px 0px 5px var(--linkcolour);
  }
  62.5% {
    text-shadow: 2.5px -1px 5px var(--linkcolour);
  }
  75% {
    text-shadow: 0px -2px 5px var(--linkcolour);
  }
  87.5% {
    text-shadow: -2.5px -1px 5px var(--linkcolour);
  }
  100% {
    text-shadow: -5px 0px 5px var(--linkcolour);
  }
}

.icon {
  height: 1em;
  vertical-align: middle;
  margin-right: 10px;
}

.infobox {
  height: fit-content;
  display: block;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  margin: 10px 0px 0px 0px;
  padding: 10px;
  box-sizing: border-box;
}

#menu {
  position:fixed;
  top: -10px;
  margin: 10px;
  padding: 10px;
  width: 300px;
  box-sizing: border-box;
  background-color: black;
  color: white;
  left: 100%
}

.menuitem {
  display: block;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  background: url(/images/aero.png);
  cursor:pointer;
}

#menutitle {
  text-align: center;
  display: block;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  background-color: rgb(10, 10, 10);
}

rainbow {
  background-image: url(/media/artificea.gif);
  color: black;
  box-sizing:content-box;
}

glitch {
  --offset: 0s;
  animation: glitch 3s infinite step-end var(--offset);
  position: relative;
}

@keyframes glitch {
  0% {
    background-color: transparent
  }
  90% {
    top: -4;
    background-color: red;
  }
  92% {
    left: -6;
    background-color: lime
  }
  94% {
    top: 2;
    background-color: skyblue;
    color: transparent;
  }
  96% {
    left: 4;
    background-color: orange;
    color: inherit;
  }
  98% {
    top: 8;
    background-color: magenta
  }
}

.menuitem:hover {
  filter: brightness(150%);
}

#menu > a {
  color: white;
  text-decoration: none;
}

.infobox > iframe {
  aspect-ratio: calc(16/9);
  margin-top: 15px;
  margin-bottom: 15px;
}

.title {
  font-size: 40px;
  color:rgb(255, 255, 255);
  margin: 10px;
  height: 40px;
  align-content: center;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0px 0px 10px rgb(255, 0, 0);
}

.title > img {
  height: 100%;
  vertical-align: bottom;
  margin-left:2%;
  margin-right:2%;
  filter:drop-shadow(0px 0px 3px rgb(0, 255, 255));
}

.subtitle {
  color: grey;
  font-size: 30px;
}

:root {
  --dvdwidth: 69px;
  --dvdheight: 69px;
}

#footer {
  margin: auto;
  color: white;
  background-color: black;
  width: fit-content;
  margin-top: 10px;
  padding: 10px;
  font-size: 12px;
}

#footer > img {
  width: 100%;
  margin-top: 10px;
}

p {
  margin-top: 15px;
  margin-bottom: 15px;
}

.dvd {
  width: var(--dvdwidth);
  height: var(--dvdheight);
  background: url('media/PISS\ YOURSELF.gif');
  background-size:cover;
  padding: 5px;
  box-sizing: border-box;
  background-repeat: no-repeat;
  position:fixed;
  z-index: 100;
  user-select: none;

  animation: toRight linear 8s infinite alternate, bounce linear 10s infinite alternate;
}

#mii {
  position:fixed;
  left: 20px;
  bottom: 20px;
  max-width: 300px;
  width: 30%;
  aspect-ratio: calc(585/935);
  background: url('images/miiopen.png');
  background-size: 100%;
  z-index: 1;
  animation: miiblink linear 4s infinite;
  filter:drop-shadow(-10px 10px 0px rgb(0, 0, 0));
}

@media screen and (max-width: 1350px) {
  #menu {
    position: static;
    width: 100%;
    margin: 0px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: solid white 1px
  }
  #swordbg {
    top: 330px;
  }
  .dvd {
    display: none
  }
}

@keyframes miiblink {
  90% {
    background: url('images/miiopen.png');
    background-size: 100%;
  }
  91% {
    background: url('images/miiclosed.png');
    background-size: 100%;
  }
  100% {
    background: url('images/miiclosed.png');
    background-size: 100%;
  }
}

@keyframes bounce {
  0% {
    top:0;
  }
  48% {
  }
  50% {
    top: calc(100% - var(--dvdheight));
  }
  52% {
  }
  100% {
    top: 0;
  }
}

@keyframes toRight {

  0% {
    left: 0;
  }

  100% {
    left: calc(100% - var(--dvdwidth));
  }
}