/* Defined Settings */

@keyframes "blink" {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-moz-keyframes blink {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-webkit-keyframes "blink" {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-ms-keyframes "blink" {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-o-keyframes "blink" {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-webkit-keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Internet Explorer */
@-ms-keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Opera < 12.1 */
@-o-keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Global Settings */
/*#################*/

/* Formating */

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 2.5vh;
}

html, body {
  overflow-x: hidden;
}

br {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

h2 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 200;
  margin: 0;
  font-size: 7vh;
}

p {
  font-size: 2.5vh;
  line-height: 1.5;
  letter-spacing: 0.05vw;
}

video {
  width: 33vw;
  height: auto;
  margin: 0;
}

/* Inputs */

.honeypot {
  display: none;
}

.success {
  color: #32cd32;
}

.not-sent {
  color: #ff0000;
}

form {
  margin: 0;
  padding: 0;
}

input {
  display: block;
  width: 33vw;
  height: 5vh;
  margin-left: 0;
  margin-right: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

input[type=submit] {
  display: table-cell;
  vertical-align: middle;
  height: 6vh;
  background: #fff;
  margin-top: 2vh;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

input, textarea {
  border-width: 0.2vh;
  border-style: solid;
  border-color: #cdcdcd;
}

textarea {
  width: 33vw;
  height: 24vh;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  resize: none;
}

input, textarea {
  font-size: 2.3vh;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

/* Size, colour, etc. variables */

.top4 {
  margin-top: 4vh;
}

.bot4 {
  margin-bottom: 4vh;
}

.bot5 {
  margin-bottom: 5vh;
}

.top5 {
  margin-top: 5vh;
}

.top8 {
  margin-top: 8vh;
}

.bot8 {
  margin-bottom: 8vh;
}

.top6 {
  margin-top: 6vh;
}

.bot6 {
  margin-bottom: 6vh;
}

.top10 {
  margin-top: 10vh;
}

.bot10 {
  margin-bottom: 10vh;
}

.top12{
  margin-top: 12vh;
}

.bot12 {
  margin-bottom: 12vh;
}

.top16 {
  margin-top: 16vh;
}

.white {
  color: #fff;
}

.bg {
  background: #141414;
}

.clear {
  clear: both;
}

.sticky {
  position: fixed;
  top: 0;
}

.bold {
  font-weight: 500;
}

.italic {
  font-style: italic;
}

/* Grid */

.container {
  width: 70vw;
  margin: 0 auto;
}

.left {
  float: left;
  width: 33vw;
}

.right {
  float: right;
  width: 33vw;
}

/* Header */

.logo {
  display: block;
  width: 25vw;
  height: auto;
  margin: 0 auto;
  padding: 2vh;
  text-align: center;
  pointer-events: none;
}

header {
  width: 100vw;
  height: 100vh;
  /*background-color: #141414;*/
  background-image: url("../img/header-bg2.jpg");
  background-size: cover;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  -webkit-animation: fadeEffect 2s; /* Safari, Chrome and Opera > 12.1 */
     -moz-animation: fadeEffect 2s; /* Firefox < 16 */
      -ms-animation: fadeEffect 2s; /* Internet Explorer */
       -o-animation: fadeEffect 2s; /* Opera < 12.1 */
          animation: fadeEffect 2s;
}

footer {
  width: 100%;
  background: #000;
  color: #fff;
  margin: 0 0 0 0;
}

footer * {
  text-align: center;
  font-size: 1.5vh;
  line-height: 1.5vh;
}

.copyright {
  padding: 1vh;
}

/* Navigation Bar */

.nav-active {
  background: #fff;
  color: #000;
  cursor: default;
}

.navigation-wrapper {
  height: 10vh;
}

nav {
  position: relative;
  display: block;
  height: 10vh;
  width: 70vw;
  margin: 0;
  padding: 0;
}

nav .container {
  margin-left: 15vw;
}

nav ul {
  display: block;
  width: 70vw;
  height: 10vh;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  text-align: center;
  display: inline-block;
  width: 17.5vw;
  height: 10vh;
  background: #141414;
  margin: 0;
  float: left;
  color: #fff;
  line-height: 10vh;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 300;
  font-size: 3vh;
  letter-spacing: 0.06vw;
  cursor: pointer;
  -webkit-transition: color 0.2s ease-in-out;
  -moz-transition: color 0.2s ease-in-out;
  -o-transition: color 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

nav li:hover {
  background: #fff;
  color: #000;
}

/* Audio player */

.track {
  display: table-cell;
  vertical-align: middle;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 200;
  height: 8vh;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  white-space: nowrap;
}

.track i {
  font-size: 3.5vh;
  margin-right: 2vw;
  margin-left: 0.5vw;
}

.track span {
  border-color: #fff;
  border-style: solid;
  border-width: 0 0 0.15vh 0;
  font-size: 3vh;
  padding-bottom: 1vh;
  padding-right: 1vw;
}

.down {
  width: 43vw;
  margin-top: 16.8vh;
  font-size: 3vh;
  text-align: center;
  color: #000;
  padding: 1vw;
  background-color: #fff;
  display: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.down:hover {
  background-color: #dcdcdc;
}

.down span {
  font-size: 2.5vh;
}

.down i {
  font-size: 2vh;
  margin-right: 2vw;
}

/* Title Section */
/* ############# */

#typed-title, .typed-cursor {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 100;
  font-size: 12vh;
  outline: none;
}

.typed-cursor {
  -webkit-animation: 0.6s blink step-end infinite;
  -moz-animation: 0.6s blink step-end infinite;
  -ms-animation: 0.6s blink step-end infinite;
  -o-animation: 0.6s blink step-end infinite;
  animation: 0.6s blink step-end infinite;
}

/* Title section */

#title-section {
  height: 18vh;
  width: 100vw;
  display: table-cell;
  vertical-align: middle;
}

/* Showcase Section */

#showcase {
  height: 82vh;
}

#showcase-img {
  background-image: url("../img/showcase-photo5.jpg");
  background-position: top;
  background-size: cover;
  height: 82vh;
  width: 48vw;
  float: left;
}

#showcase-player {
  line-height: 4vh;
  width: 48vw;
  float: right;
}

/* Tab styling */

#story {
  display: block;
}

.section {
  display: none;
  min-height: 100vh;
  -webkit-animation: fadeEffect 1s;
  animation: fadeEffect 1s;
}

/* Story Section Styling */

#timeline {
  width: 70vw;
  height: auto;
  margin: 0;
}

#story p {
  margin-bottom: 6vh;
  text-align: justify;
}

/* Portfolio Section Styling */

#portfolio h2 {
  font-size: 5vh;
}

.name-container {
  height: 25vh;
}

/* Contacts Section Styling */

#typed-contacts, #contacts .typed-cursor {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 200;
  font-size: 8vh;
}

/* Resume Section Styling */

.resume-item {
  margin-bottom: 2vh;
}

.resume-date {
  min-width: 8vw;
  float: left;
  font-weight: 500;
}

.resume-info {
  float: left;
  margin-left: 2vw;
}

.resume-institution {
  font-weight: 500;
  margin-bottom: 1vh;
}

.resume-description {
  margin-top: 0;
  font-size: 2vh;
  font-style: italic;
}

/* Responsive Settings */

@media screen and (max-width: 772px) {

  header {
    background-position: center;
  }

  .logo {
    width: 45vw;
  }

  #typed-title, .typed-cursor, #typed-contacts {
    font-size: 9vw;
  }

  #showcase-player {
    padding: 0 !important;
  }

  #showcase-player h2 {
    font-size: 6vh;
    margin-top: 0 !important;
    margin-bottom: 10vh !important;
  }

  #showcase-player h2 {
    text-align: center;
  }

  .tracks {
    display: table;
    table-layout: auto;
    margin: 0 auto !important;
  }

  .track {
    width: auto !important;
    display: block;
  }

  .track span {
    font-size: 2.5vh;
    letter-spacing: 0.3vw;
  }

  nav ul li {
    display: block;
    width: 70vw;
  }

  #showcase-img, #showcase-player {
    display: block;
    float: none;
    width: 100vw;
    margin-bottom: 8vh;
  }

  #showcase-player {
    padding-left: 4vw;
    padding-right: 4vw !important;
  }

  .down {
    display: none;
  }

  #portfolio .left, #portfolio .right {
    display: block;
    float: none;
    width: 70vw;
    margin-bottom: 8vh;
  }

  #showcase-player i {
    margin-left: 0 !important;
    margin-right: 3vw;
    font-size: 3vh;
  }

  #showcase {
    height: auto;
  }

  #story h2 {
    font-size: 6vh;
  }

  video {
    width: 70vw;
  }

  .name-container {
    height: auto;
  }

  .navigation-button:hover {
    background: #f5f5f5;
  }

  .nav-active {
    background: #f5f5f5;
  }

  #typed-contacts {
    font-size: 5vw;
  }

  #contacts h2 {
    font-size: 5vh;
  }

  #contacts .left, #contacts .right {
    float: none;
    display: block;
    width: 70vw;
    margin-bottom: 8vh;
  }

  input, textarea {
    display: block;
    width: 70vw;
  }

  .resume-date, .resume-info {
    margin-left: 0;
    margin-rifht: 0;
    float: none;
    display: block;
    width: 70vw;
  }

  .resume-item {
    margin-bottom: 6vh;
  }
}
