@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;500&family=JetBrains+Mono:wght@300&display=swap");
html {
  background-color: #222;
  font-family: "Barlow", monospace;
  font-size: 16px;
  font-weight: 500;
  color: white;
  scroll-behavior: smooth;
}

nav {
  float: left;
}

.cyber-text-bloom, h2, h1, small {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 7px 7px 2.5px rgba(200, 255, 255, 0.1);
}

.cyber-box-bloom, .cyber-highlight, .cyber-highlight-dark, article:before, .main-border-right, .main-border-top:before, .main-border-top, .cyber-beam-trace:after, main:after, .cyber-border-trace:before, main:before {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5), 7px 7px 4px rgba(200, 255, 255, 0.1);
}

h2, h1, small {
  text-transform: uppercase;
  display: block;
}

small {
  font-size: 0.75em;
  letter-spacing: 0.25em;
}

h1 {
  font-size: 2.3em;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 50px;
}

h2 {
  font-size: 1.75em;
  font-weight: 500;
  letter-spacing: 0.1em;
}

p {
  color: #ddd;
  line-height: 1.4;
  text-align: justify;
  text-justify: inter-word;
}

article:before, .main-border-right, .main-border-top:before, .main-border-top, .cyber-beam-trace:after, main:after, .cyber-border-trace:before, main:before {
  display: block;
  content: "";
  background-color: white;
  position: absolute;
  opacity: 0;
}

@keyframes height-trace {
  from {
    height: 0;
    opacity: 1;
  }
  to {
    height: 100%;
    opacity: 1;
  }
}
.cyber-border-trace, main {
  position: relative;
}
.cyber-border-trace:before, main:before {
  width: 1px;
  height: 100%;
  left: 0;
  top: 0;
  animation: height-trace 1s cubic-bezier(0.5, 0, 0.5, 1) 1s 0.5 forwards;
}

@keyframes beam-trace {
  0% {
    height: 0;
    top: 0;
    bottom: auto;
  }
  10% {
    height: 100%;
    top: 0;
    bottom: auto;
  }
  90% {
    height: 100%;
    top: auto;
    bottom: 0;
  }
  100% {
    height: 0%;
    top: auto;
    bottom: 0;
  }
}
.cyber-beam-trace, main {
  position: relative;
}
.cyber-beam-trace:after, main:after {
  position: absolute;
  width: 2px;
  height: 0;
  left: 0;
  top: 0;
  opacity: 1;
  animation: beam-trace 7s cubic-bezier(0.5, 0, 0.5, 1) 4s infinite normal;
}

@keyframes width-trace {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}
@keyframes width-trace-tab {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 50px;
    opacity: 1;
  }
}
.main-border-top {
  width: 100%;
  height: 10px;
  left: 0;
  top: 0;
  animation: width-trace 0.3s ease-in 1s 1 forwards;
}
.main-border-top:before {
  width: 50px;
  height: 20px;
  left: 0;
  top: 0;
  opacity: 0;
  animation: width-trace-tab 0.2s cubic-bezier(0.5, 0, 0.5, 1) 1s 1 forwards;
}

.main-border-right {
  width: 2px;
  height: 100%;
  right: 0;
  top: 0;
  animation: height-trace 0.2s ease-out 1.3s 1 forwards;
}

main {
  margin: 50px 100px;
  padding: 50px 50px;
  min-width: 600px;
  max-width: 900px;
  background: transparent;
}
main h1 {
  margin-top: 0;
  margin-bottom: 13px;
}

#date {
  margin-bottom: 40px;
}

@keyframes divider-trace {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 70px;
    opacity: 1;
  }
}
article {
  margin-top: 32px;
  margin-bottom: 48px;
  padding-top: 20px;
  position: relative;
}
article:before {
  width: 70px;
  height: 3px;
  left: 0;
  top: 0;
  animation: divider-trace 0.5s cubic-bezier(0.5, 0, 0.5, 1) 1.5s 1 forwards;
}
article:last-of-type {
  margin-bottom: 0;
}
article h2 {
  margin-top: 3px;
}

.cyber-highlight, .cyber-highlight-dark {
  font-family: "JetBrains Mono", monospace;
  font-weight: 300;
  font-size: 28px;
  text-transform: uppercase;
  color: black;
  background-color: white;
  border: 2px solid #fff;
  padding: 6px 12px;
  display: inline-block;
}

.cyber-highlight-dark {
  color: white;
  background-color: transparent;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#scene {
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.layer {
  position: absolute;
}

#special {
  position: absolute;
  top: 500px;
  left: 500px;
}
