.green {
  color: #1BFF90;
}
.green-bg {
  background-color: #1BFF90;
  color: white;
}

.red {
  color: #ee324b;
}
.red-bg {
  background-color: #ee324b;
  color: white;
}

.tre-d {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.tre-d *, .tre-d *:before, .tre-d *:after {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS and IE text size adjust after device orientation change,
 *    without disabling user zoom.
 */
html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */
body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */
/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */
audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
 */
[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */
/**
 * Remove the gray background color from active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * Improve readability of focused elements when they are also in an
 * active/hover state.
 */
a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */
/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */
abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */
b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */
dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */
mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove border when inside `a` element in IE 8/9/10.
 */
img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */
svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */
/**
 * Address margin not present in IE 8/9 and Safari.
 */
figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */
hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */
pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */
/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */
/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */
button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */
button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */
button,
html input[type=button],
input[type=reset],
input[type=submit] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */
button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */
input[type=checkbox],
input[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
 */
input[type=search] {
  -webkit-appearance: textfield; /* 1 */
  box-sizing: content-box; /* 2 */
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */
legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */
textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */
optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */
/**
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

html {
  font: normal 15px/1.3333333333 monospace;
  color: black;
  overflow-x: hidden;
  overflow-y: auto;
  background: white;
}
@media only screen and (max-width: 480px) {
  html {
    font-size: 0.5rem;
  }
  html body {
    max-width: 80vw;
    margin-left: 10vw;
  }
}
@media only screen and (min-width: 481px) {
  html {
    font-size: 0.75rem;
  }
}
@media only screen and (min-width: 1110px) {
  html {
    font-size: 1rem;
  }
}

body {
  position: relative;
  padding-top: 10vh;
  max-width: 100vw;
  transition: background-color 500ms;
  flex-direction: column;
}

main, footer {
  display: block;
  max-width: 60rem;
  margin: 0 auto;
  position: relative;
}

p a:nth-child(n+1), p-3d a:nth-child(n+1) {
  padding: 0 0.5rem;
  color: #1BFF90;
  background-color: black;
  text-decoration: none;
}
p a:nth-child(n+1):hover, p-3d a:nth-child(n+1):hover {
  color: white;
  background-color: #1BFF90;
}

p {
  margin-top: 3rem;
}
section > header > p {
  display: block;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

pre, code {
  font-family: monospace;
}

::-moz-selection {
  background-color: #1BFF90;
  color: #fff;
}

::selection {
  background-color: #1BFF90;
  color: #fff;
}

h1 {
  font-size: 7rem;
}

h2 {
  font-size: 5rem;
}

h3 {
  font-size: 1.7rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1rem;
}

h1, h2, h3 {
  font-family: helvetica;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.07;
  }
}
@keyframes fadeInFully {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
a-box {
  display: inline-block;
  margin-right: 0.0625rem;
  width: 2rem;
  height: 2rem;
  opacity: 1;
}
body.intro-is-done a-box > * {
  animation-name: fadeInFully;
}
a-box:after, a-box > * {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-duration: 500ms;
  animation-iteration-count: 1;
  position: absolute;
  width: 2rem;
  height: 2rem;
}
body.intro-is-done a-box:after {
  animation-name: fadeIn;
  filter: blur(1px);
  top: 0;
  content: "";
  transform: translateZ(-80rem);
  background: grey;
  z-index: -1;
}
a-box north {
  transform: translateZ(1rem);
}
a-box east {
  transform: rotateY(90deg) translateZ(1rem);
}
a-box south {
  transform: rotateX(-90deg) translateZ(1rem);
}
a-box west {
  transform: rotateY(-90deg) translateZ(1rem);
}
a-box up {
  transform: rotateX(90deg) translateZ(1rem);
}
a-box down {
  transform: rotateX(-90deg) translateZ(1rem);
}
a-box:nth-child(1) north {
  background-color: #ee324b;
}
a-box:nth-child(1) east {
  background-color: #ee324b;
}
a-box:nth-child(1) south {
  background-color: #ee324b;
}
a-box:nth-child(1) west {
  background-color: rgb(148.2094594595, 12.2905405405, 30.3648648649);
}
a-box:nth-child(1) up {
  background-color: rgb(171.7567567568, 14.2432432432, 35.1891891892);
}
a-box:nth-child(1) down {
  background-color: #ee324b;
}
a-box:nth-child(1):after,
a-box:nth-child(1) *, a-box:nth-child(1) *:after {
  animation-delay: 100ms;
}
a-box:nth-child(2) north {
  background-color: #1BFF90;
}
a-box:nth-child(2) east {
  background-color: #1BFF90;
}
a-box:nth-child(2) south {
  background-color: #1BFF90;
}
a-box:nth-child(2) west {
  background-color: rgb(0, 154.5, 79.2828947368);
}
a-box:nth-child(2) up {
  background-color: rgb(0, 180, 92.3684210526);
}
a-box:nth-child(2) down {
  background-color: #1BFF90;
}
a-box:nth-child(2):after,
a-box:nth-child(2) *, a-box:nth-child(2) *:after {
  animation-delay: 200ms;
}
a-box:nth-child(3) north {
  background-color: #D001D0;
}
a-box:nth-child(3) east {
  background-color: #D001D0;
}
a-box:nth-child(3) south {
  background-color: #D001D0;
}
a-box:nth-child(3) west {
  background-color: rgb(81.1100478469, 0.3899521531, 81.1100478469);
}
a-box:nth-child(3) up {
  background-color: rgb(106.4880382775, 0.5119617225, 106.4880382775);
}
a-box:nth-child(3) down {
  background-color: #D001D0;
}
a-box:nth-child(3):after,
a-box:nth-child(3) *, a-box:nth-child(3) *:after {
  animation-delay: 300ms;
}
a-box:nth-child(4) north {
  background-color: wheat;
}
a-box:nth-child(4) east {
  background-color: wheat;
}
a-box:nth-child(4) south {
  background-color: wheat;
}
a-box:nth-child(4) west {
  background-color: rgb(230.1744186047, 173.0755813953, 66.3255813953);
}
a-box:nth-child(4) up {
  background-color: rgb(233.1395348837, 182.8604651163, 88.8604651163);
}
a-box:nth-child(4) down {
  background-color: wheat;
}
a-box:nth-child(4):after,
a-box:nth-child(4) *, a-box:nth-child(4) *:after {
  animation-delay: 400ms;
}

p-3d,
p-3d-medium,
p-3d-large {
  display: inline-block;
  margin: 2rem 0;
  display: inline-block;
  font-size: 1.5rem;
  position: relative;
}
section > header > p-3d,
section > header > p-3d-medium,
section > header > p-3d-large {
  display: block;
}
p-3d-medium,
p-3d-medium-medium,
p-3d-large-medium {
  margin: 4rem 0;
  font-size: 2.5rem;
  font-weight: 500;
}
p-3d-large,
p-3d-medium-large,
p-3d-large-large {
  margin: 4rem 0;
  font-size: 4rem;
  font-weight: 700;
}
p-3d:before,
p-3d-medium:before,
p-3d-large:before {
  color: black;
  left: 0;
  top: 0;
  position: absolute;
  content: attr(three-d-text);
  filter: blur(1px);
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(-80rem);
  opacity: 0.07;
}
p-3d.writer:before,
p-3d-medium.writer:before,
p-3d-large.writer:before {
  content: attr(three-d-text) "|";
}
p-3d.writer:after,
p-3d-medium.writer:after,
p-3d-large.writer:after {
  content: "|";
  display: absolute;
  color: red;
}

plane-3d {
  display: block;
  width: 2000px;
  margin-left: -500px;
  padding: 5% 500px;
  background: rgba(255, 0, 0, 0.75);
  position: relative;
}
plane-3d:before, plane-3d:after {
  z-index: -1;
  pointer-events: none;
}
plane-3d:after {
  left: 0;
  top: 0;
  filter: blur(1px);
  width: 3000px;
  height: 100%;
  content: "";
  position: absolute;
  transform: translateZ(-80rem);
  opacity: 0.03;
  background: black;
}

img-3d {
  display: block;
  position: relative;
}
img-3d:before {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  background-size: inherit;
  content: "";
  filter: blur(1px);
  transform: translateZ(-80rem);
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
}
img-3d:after {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  background-size: inherit;
  content: "";
}

@keyframes nightMode {
  0% {
    background-color: white;
  }
  100% {
    background-color: black;
  }
}
@keyframes nightModeOff {
  0% {
    background-color: black;
  }
  100% {
    background-color: white;
  }
}
.night-mode {
  display: block;
  opacity: 1;
  float: right;
  padding-top: 0;
  margin-top: 0;
  color: #ee324b;
  animation-delay: 2000ms;
  transition: 1500ms;
  cursor: pointer;
  z-index: 1000;
  position: relative;
}

[class*=night-mode-o] {
  animation-direction: forwards;
  animation-fill-mode: forwards;
  animation-duration: 1500ms;
}

.night-mode-off {
  animation-name: nightModeOff;
}
.night-mode-off .night-mode {
  color: #ee324b;
}

.night-mode-on {
  animation-name: nightMode;
}
.night-mode-on p-3d:not(.night-mode), .night-mode-on span {
  color: white;
}
.night-mode-on img-3d:after {
  filter: invert(1);
}
.night-mode-on :before {
  filter: invert(1);
}
.night-mode-on .night-mode {
  color: #1BFF90;
}

@keyframes iGrow {
  0% {
    height: 0;
  }
  100% {
    height: 30rem;
  }
}
.me {
  animation-fill-mode: forwards;
  animation-duration: 1500ms;
  animation-name: iGrow;
  background-size: 20.619rem 30rem;
  width: 20.619rem;
  transition: 2s filter linear;
}
a-box:hover + a-box + a-box + a-box + .me:after {
  opacity: 1;
  background-image: url("/assets/images/mef3.png");
  filter: grayscale(0) saturate(10);
}
a-box:hover + a-box + a-box + .me:after {
  background-image: url("/assets/images/mef3.png");
  opacity: 1;
  filter: grayscale(0) hue-rotate(130deg) saturate(10);
}
a-box:hover + a-box + .me:after {
  opacity: 1;
  background-image: url("/assets/images/mef3.png");
  filter: grayscale(0) hue-rotate(280deg) saturate(10);
}
a-box:hover + .me:after {
  opacity: 1;
  background-image: url("/assets/images/mef3.png");
  filter: grayscale(0) hue-rotate(430deg) saturate(30);
}
.me:before {
  background-image: url("/assets/images/mef.png");
}
.me:after {
  background-image: url("/assets/images/mef.png");
}

@keyframes hueRotation {
  0% {
    filter: hue-rotate(0deg);
  }
  25% {
    filter: hue-rotate(90deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
  75% {
    filter: hue-rotate(270deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
[data-lazy-status] {
  transition: filter 1500ms;
}

[data-lazy-status=loading] {
  animation-fill-mode: forwards;
  animation-duration: 3000ms;
  animation-iteration-count: infinite;
  animation-name: hueRotation;
}

main {
  display: block;
  position: relative;
  transform: rotateX(-10deg) rotateY(10deg);
  transition: 200ms;
}

header .me {
  display: block;
}
header .writer {
  display: block;
  white-space: pre-wrap;
}
header p {
  max-width: 50rem;
}

.projects {
  padding: 0;
  text-align: left;
  position: relative;
}
.projects ol {
  display: block;
}
.projects .project {
  display: inline-block;
  position: relative;
  margin: 2rem 2rem 2rem 0;
}
body[data-project-is-hovered=true] .projects .project:not(:hover) :before, body[data-project-is-hovered=true] .projects .project:not(:hover) span {
  opacity: 0;
}
body[data-project-is-hovered=true] .projects .project:not(:hover) img {
  opacity: 0.1;
}
.projects .project:before {
  pointer-events: none;
  z-index: -1;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: translateZ(-80rem);
  content: "";
  background: black;
  opacity: 0.045;
  transition: opacity 250ms;
}
@media only screen and (max-width: 480px) {
  .projects .project:before {
    width: 50%;
  }
}
.projects .project:hover:before {
  opacity: 0.09;
}
.projects .project:hover {
  z-index: 10;
}
.projects .project:hover span {
  opacity: 1;
}
.projects .project:hover img {
  opacity: 1;
}
.projects .project img {
  transition: opacity 250ms;
  height: 175px;
  display: inline-block;
  z-index: 0;
  opacity: 0.65;
}
.projects .project span {
  padding: 1rem;
  top: 100%;
  pointer-events: none;
  background: black;
  color: white;
  display: block;
  position: absolute;
  opacity: 0;
  transition: opacity 250ms;
  font-size: 1.2rem;
}
.projects .project span b {
  color: #1BFF90;
  font-size: 2rem;
}
@media only screen and (max-width: 480px) {
  .projects .project {
    display: block;
  }
  .projects .project a {
    display: inline;
  }
  .projects .project img {
    max-width: 50%;
    height: auto;
  }
  .projects .project img:hover {
    opacity: 1;
  }
  .projects .project span {
    position: absolute;
    opacity: 1;
    color: black;
    background: transparent;
    left: inherit !important;
    width: 50%;
    top: inherit !important;
    vertical-align: top;
    display: inline;
  }
}