@import url(https://fonts.googleapis.com/css?family=Lato:300,400);

/* Oh, you got me. I'll refactor this... eventually.*/

:root {
  --bright: #f9f9f9;
  --dark: #121212;
  --gray: #727272;
  --gray2: #8b8b8b;
  --h1: #090809;
  --accent: #ca5a4e;
  --dark-bg: #121212;
  --white: white;
}

body {
  color: var(--dark);
  background-color: var(--bright);
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-family: Lato;
  font-weight: 300;
}

.container {
  margin-left: auto;
  margin-right: auto;
  width: 20em;
  margin-top: 10%;
  padding: 0 20px 5em;
}

.logo {
  font-size: 0;
  width: 200px;
  height: 134px;
  position: absolute;
  z-index: -1;
  margin-left: 200px;
  margin-top: -25px;
  background-size: contain;
  animation: fadeInFromLeft 7.82s linear;
  animation-fill-mode: forwards;
  opacity: 1;
}
  .logo img:nth-child(1) {
    opacity: 1;
    animation: fadeout 0.1s 7.82s 1 alternate forwards;
    position: absolute;
  }
  .logo img:nth-child(2) {
    opacity: 0;
    animation: fadein 0.1s 7.82s 1 alternate forwards;
    position: absolute;
  }

@keyframes fadeInFromLeft {
  0% {
    margin-left: -1000px;
  }
  100% {
    margin-left: 200px;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h1 {
  width: 5em;
  font-weight: 400;
  font-style: normal;
  line-height: 1em;
  margin: 0;
  font-size: 2.3em;
}

h2 {
  font-size: 1em;
  font-weight: 400;
  font-style: normal;
  margin: 2em 0 0;
}

h2 .h2-line {
  margin-top: 0;
  margin-bottom: 0.75em;
}

h2 .social-icons {
  margin-top: 1em;
  margin-bottom: 0;
}

.bold {
  font-weight: 400;
}

.parenthesis {
  white-space: nowrap;
  color: var(--gray2);
  font-style: normal;
  font-size: 0.8em;
}

.click {
  cursor: pointer;
}

.small-text {
  font-weight: 300;
}

p {
  margin-bottom: .6em;
  margin-top: .2em;
}

b {
  font-weight: 400;
}

a {
  color: inherit;
  font-weight: inherit;
  font-style: normal;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
  a:active, a:hover, a:focus {
    color: var(--gray2);
    font-weight: inherit;
    font-style: normal;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
  }

.color-primary {
  color: var(--h1);
}

.color-accent {
  color: var(--accent);
}

.color-secondary-gray {
  color: var(--gray2);
}

.hidden {
  display: none;
}

.opacityon {
  opacity: 1;
}

.error-message {
  color: var(--gray2);
  margin-top: 1em;
}

.no-border-bottom {
  border-bottom: none;
}

.no-vertical-margin {
  margin-top: 0em;
  margin-bottom: 0em;
}

@keyframes fadeInFromLeftMobile {
  0% {
    margin-left: -500px;
  }
  100% {
    margin-left: 0px;
  }
}

@media (max-width: 440px) {
  .logo {
    display: block;
    position: relative;
    margin-left: 0px;
    animation: fadeInFromLeftMobile 4s linear;
  }
    .logo img:nth-child(1) {
      animation: fadeout 0.1s 4s 1 alternate forwards;
    }
    .logo img:nth-child(2) {
      animation: fadein 0.1s 4s 1 alternate forwards;
    }
  .container {
    width: 15em;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bright: #070707;
    --dark: #ffffff;
    --gray: #ebebeb;
    --gray2: #f2f2f2;
    --accent: #ff7364;
    --dark-bg: #121212;
    --white: white;
    --h1: #f6f6f6;
  }
  .logo {
    filter: grayscale(1) brightness(2);
  }
  i[title='work'] {
    box-shadow: 2px 27px 10px -8px #ffffff;
  }
}
