/* Reset some default styles */

h1,
p {
  margin: 0;
  padding: 0;
}

body {
  background-color: #000;
  color: #00FF00;
  font-family: "Arial", sans-serif;
}

nav {
  background-color: #222;
  padding: 10px;
}

nav::after {
  content: "";
  clear: both;
  display: table;
}

nav .title-main {
  font-size: 68px;
  font-weight: bold;
}

nav .title-sub {
  font-size: 21px;
  font-weight: bold;
}

a {
  color: #00FF00;
  text-decoration: none;
  margin-right: 20px;
}

a:hover {
  font-weight: bold;
}

/*
a:hover {
    text-decoration: underline;
}*/

.story-title {
  font-size: 28px;
  font-weight: bold;
}

.right {
  float: right;
  padding: 10px;
}

.navlinks {
  width: 20%;
}

.center {
  float: center;
}

.content {
  background-color: #111;
  padding: 20px;
}

.content::after {
  content: "";
  clear: both;
  display: table;
}

.padded {
  padding: 5px;
}

header h1 {
  font-size: 24px;
  color: #00FF00;
}

.metadata {
  font-size: 16px;
  color: #777;
  margin-top: 10px;
}

.about {
  font-style: italic;
}

.info {
  margin-top: 10px;
  color: #888;
}

#content {
  margin-top: 20px;
}

body p {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Create three equal columns that floats next to each other */
.column {
  float: left;
  width: 30%;
  padding: 15px;
}

.bordered {
  border-color: #00FF00;
  border-style: dotted;
  border-width: 1px;
  padding: 10px;
  position: relative;
}

.bordered-selectable:hover {
  border-style: solid;
  border-width: 2px;
  margin: -1px;
}

.flexwrap-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width:768px) {
  .column {
    width: 80%;
  }
}

/* Glitch box effect */

.glitchbox {
  position: relative;
  z-index: 1
}

.glitchbox:hover::before,
.glitchbox:hover::after {
  content: " ";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.6;
}

.glitchbox:hover::before {
  animation: glitchbox 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  border-color: blue;
  border-style: dotted;
  border-width: 2px;
  z-index: 0;
}

.glitchbox:hover::after {
  animation: glitchbox 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  border-color: rebeccapurple;
  border-style: dotted;
  border-width: 2px;
  z-index: 0;
}



.linkbox {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.glitchtext {
  color: white;
  position: relative;

}

.glitchtext:hover {
  animation: glitch 1s linear infinite;
}

@keyframes glitch {

  2%,
  64% {
    transform: translate(2px, 0) skew(0deg);
  }

  4%,
  60% {
    transform: translate(-2px, 0) skew(0deg);
  }

  62% {
    transform: translate(0, 0) skew(5deg);
  }
}

.glitchtext:hover::before,
.glitchtext:hover::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
}

.glitchtext:hover::before {
  animation: glitchTop 1s linear infinite;
  color: blue;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  z-index: -1;
}

@keyframes glitchTop {

  2%,
  64% {
    transform: translate(2px, -2px);
  }

  4%,
  60% {
    transform: translate(-2px, 2px);
  }

  62% {
    transform: translate(13px, -1px) skew(-13deg);
  }
}

.glitchtext:hover::after {
  animation: glitchBotom 1.5s linear infinite;
  color: violet;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  z-index: -1;
}

@keyframes glitchBotom {

  2%,
  64% {
    transform: translate(-2px, 0);
  }

  4%,
  60% {
    transform: translate(-2px, 0);
  }

  62% {
    transform: translate(-22px, 5px) skew(21deg);
  }
}

@keyframes glitchbox {
  0% {
    transform: scale(1, 1);
  }

  20% {
    transform: scale(-4px, 2px);
  }

  40% {
    transform: translate(-2px, -4px);
  }

  60% {
    transform: translate(4px, 2px);
  }

  80% {
    transform: translate(2px, -4px);
  }

  to {
    transform: translate(0);
  }
}