/* Page Load Animation */

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

/* Firefox < 16 */
@-moz-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

*:focus {
  outline: 2px solid #595959;
}

h1 {
  margin-top: 0px;
  margin-bottom: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 30px;
  line-height: 35px;
  font-weight: 700;
}

h2 {
  margin-top: 0px;
  margin-bottom: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 26px;
  line-height: 33px;
  font-weight: 700;
}

p {
  margin-top: 0px;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 24px;
}

html {
  height: 100%;
  /* max-width: 100%; */
}

body {
  height: 100%;
  color: rgba(0, 0, 0, .74);
  font-size: 16px;
  line-height: 20px;

  -webkit-animation: fadein 3s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 3s; /* Firefox < 16 */
  -ms-animation: fadein 3s; /* Internet Explorer */
  -o-animation: fadein 3s; /* Opera < 12.1 */
    animation: fadein 3s;
}

.wrapper {
  min-height: 100%;
  /* display: grid;
  grid-template-rows: auto 1fr auto; */
}

/* Header */
header {
  padding-top: 35px;
  padding-bottom: 30px;
  text-align: center;
}

.header-home-link {
  -webkit-transition: opacity 200ms ease;
  transition: opacity 200ms ease;
  font-family: Montserrat, sans-serif;
  color: #303030;
  text-decoration: none;
}

.header-name {
  display: inline-block;
  padding: 0px 70px;
  margin-bottom: 0px;
  font-size: 53px;
  line-height: 57px;
  letter-spacing: 1px;
  -webkit-transition: color 300ms ease;
  transition: color 300ms ease;
  text-transform: uppercase;
}

.rainbow-text:hover {
  background-image: repeating-linear-gradient(to left, pink, #af9dd3, #85b4f5, #b2e21b, #e0ee00, #ffb400, #cc0000);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: rainbow 8s ease infinite;
}

@keyframes rainbow { 
  0% {background-position:0% 50%;}
  50% {background-position:100% 25%;}
  100% {background-position:0% 50%;}
}

/* Navigation */
nav {
  margin-top: 10px;
  text-align: center;
}

.nav-link {
  display: inline-block;
  margin-right: 10px;
  margin-left: 10px;
  padding: 7px 0px;
  font-family: Montserrat, sans-serif;
  color: #595959;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-transition: opacity 300ms ease;
  transition: opacity 300ms ease;
}

.nav-link:hover {
  /* color: #b9b9b9; */
  opacity: 0.37;
}

/* .nav-link.w--current {
  color: #b9b9b9;
} */

/* Rainbow Box */
main {
  height: 100%;
  position: relative;
  padding-right: 2.5%;
  padding-left: 2.5%;
  background-color: transparent;
}

.content-wrapper {
  display: block;
  width: 50%;
  max-width: 100%;
  height: 100%;
  margin-right: auto;
  margin-left: auto;
}

#colorBox {
  height: 100%;
  text-transform: uppercase;
  font-style: italic;
  color: rgba(0, 0, 0, .20);
  cursor:text;
  caret-color: #595959;
}

#textBox {
  height: 100%;
  /* padding-top: 1em; */
  display:none;
  text-transform: none;
}

div[contenteditable] {
  display: block;
  border: 0px solid #B9B9B9;
  outline: none;
  min-height: 200px;
  padding: 10px 10px 0px 10px;
  font-family: Montserrat, sans-serif;
  opacity: .75;
  font-size: 20px;
  line-height: 25px;
  font-weight: 400;
}

div[contenteditable][placeholder] {
  text-align: left;
}

div[contenteditable][placeholder]:empty:after {
  content: attr(placeholder);
}

/* Byline */
.byline-wrapper {
  margin-bottom: 25px;
  color: #ccc;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.byline-link {
  display: inline-block;
  margin-right: 5px;
  -webkit-transition: color 200ms ease;
  transition: color 200ms ease;
  font-family: Montserrat, sans-serif;
  color: #ccc;
  text-decoration: none;
}

.byline-link:hover {
  color: #333;
}

.byline-text {
  display: inline-block;
  margin-right: 5px;
  font-family: Montserrat, sans-serif;
}

/* Footer */
footer {
  margin-top: 60px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 0px solid #ebebeb;
  text-align: center;
}

.footer-text {
  margin-top: 8px;
  font-family: Montserrat, sans-serif;
  color: #a8a8a8;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-link {
  margin-bottom: 6px;
  color: rgba(0, 0, 0, .74);
  text-decoration: none;
  -webkit-transition: color 200ms ease;
  transition: opacity 200ms ease;
}

.footer-link:hover {
  /* color: #b9b9b9; */
  opacity: 0.37;
}

.footer-link.with-icon {
  margin-left: 30px;
}

.social-icon-link {
  color: rgba(0, 0, 0, .74);
  margin-right: 4px;
  margin-left: 4px;
  padding: 3px;
  opacity: 0.9;
  -webkit-transition: opacity 200ms ease;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.social-icon-link:hover {
  opacity: 0.37;
}

/* I need to revisit these rules */
/* Responsiveness */
@media (max-width: 767px) {
  .navigation-bar {
    margin-top: 21px;
  }
  .header-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .content-wrapper {
    width: 75%;
  }
}

@media (max-width: 479px) {
  .nav-link {
    display: inline-block;
    /* margin-right: 10px;
    margin-left: 10px; */
    padding-right: 0px;
    padding-left: 0px;
    border: 1px none #595959;
    border-radius: 0px;
    letter-spacing: 2px;
  }
  .blog-post {
    margin-bottom: 54px;
  }
  .header-name {
    padding: 0px;
    font-size: 50px;
    line-height: 54px;
  }
  .content-wrapper {
    width: 75%;
  }
}

.konami {
  /* width: 100%;
  height: 100%;
  position: absolute; */
  background: repeating-linear-gradient(45deg,#F17C58, #E94584, #24AADB , #27DBB1,#FFDC18, #FF3706);
  background-size: 400% 400%;
  animation: gradient 8s linear infinite;
  animation-direction: alternate;
}
@keyframes gradient {
  0% {background-position: 0%}
  100% {background-position: 100%}
}
