/* APP */

html {
    background-color: #242423;
}

body {
    margin: 0;
}

main {
    font-family: 'Lato', sans-serif;
    text-align: left;
    margin-left: 30%;
    margin-right: 30%;
    display: flex;
    color: #E8EDDF;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: solid 0.2em #F5CB5C;
}

a:hover {
    color: white;
}

h1 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-weight: 400;
}

li {
    list-style: none;
}

.yellow {
    color: #F5CB5C;
    font-size: 1.2em;
}




/* HEADER */

header {
    font-family: 'Lato', sans-serif;
    display: flex;
    color: #E8EDDF;
    justify-content: space-between;
    top: 0;
    width: 100%;
  }

  header > nav {
    margin-top: 1.5rem;
    margin-right: 1.5rem;
    text-align: right;
  }

  header > nav > a {
    margin-left: 2em;
  }




/* HOME PAGE */

main > .about > h4 {
    animation: fadeIn linear 1s;
    -webkit-animation: fadeIn linear 1s;
    line-height: 1.5em;
}

@keyframes fadeIn {
    0% {opacity:0;}
    80% {opacity:0;}
    100% {opacity:1;}
}

main > section > .drop {
    font-size: 4em;
    color: #E8EDDF;
    overflow: hidden;
    border-right: .15em solid #F5CB5C;
    white-space: nowrap;
    margin: 1em 0 1em 0; 
    letter-spacing: .1em;
    width: 4em;
    opacity: 0;
    -webkit-animation: letters 3.3s steps(20, end), blink .5s step-end infinite alternate;
    animation: letters 3.3s steps(20, end), blink .6s step-end infinite alternate;
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

@keyframes letters {
    0% {
      width: 0;
    }
    1% {
      opacity: 1;
    }
    100% {
      opacity: 1;
    }
  }
  
  @-webkit-keyframes letters {
    0% {
      width: 0;
    }
    1% {
      opacity: 1;
    }
    100% {
      opacity: 1;
    }
  }
  
  @keyframes blink {
    50% {
      border-color: transparent;
    }
  }
  @-webkit-keyframes blink {
    50% {
      border-color: tranparent;
    }
  }




  /* PROJECTS */

  .projects {
      line-height: 1.5em;
  }




  /* SKILLS */

  list-wrapper {
    display: grid;
    margin-right: 2em;
    max-width: 100%;
  }

  .horizontal-rule {
      border-top: 1px solid #F5CB5C;
      margin-bottom: 1em;
      margin-top: 1em;
      width: 60%;
      text-align: center;
  }

  li {
    margin-right: auto; 
    margin-left: auto; 
    text-align: left;
    padding-right: 1em; 
    padding-left: 0;
  }

  li::before {
    content: "•";
    padding-right: 0.5em;
    color: #F5CB5C;
  }

  .mobile-nav {
    visibility: hidden;
  }




  /* SOCIAL */

  .social {
    border: 0;
    margin-left: 0.2em;
    font-size: 2.2em;
  }

  .social:hover {
    border-bottom: solid 0.2em #F5CB5C;
    color: white;
  }




  /* MEDIA QUERIES */
  /* MOBILE */

  @media only screen and (max-width: 767px) {
    main {
        margin-left: 10%;
        margin-right: 10%;
        justify-content: space-around;
        display: block;
        padding-bottom: 5rem;
        font-size: 1.2em;
    }

    main > section > .drop {
        margin-top: 5%;
    }

    section {
        max-width: 90%;
        padding-top: 5%;
        padding-bottom: 2rem;
    }

    img {
        max-width: 90%;
    }

    main > section > .drop {
        font-size: 3.5em;
    }

    .mobile-nav {
        visibility: visible;
        font-family: 'Lato', sans-serif;
        color: #E8EDDF;
        position: fixed;
        margin-top: 10%;
        bottom: 0;
        width: 100%;
        background-color: #242423;
        padding-top: 1.2rem;
        box-shadow: 0px -1px 7px #E8EDDF;
    }

    .mobile-nav > nav {
        margin-bottom: 1.5rem;
        text-align: center;
        justify-content: space-around;
        display: block;
    }

    .mobile-nav > nav > a {
        font-size: 1.2em;
        margin: 0.3em 0.3em;
        border-bottom: solid 0.2em #F5CB5C;
    }

    .desktop-nav {
        display: none;
    }
  }




  /* TABLET */

  @media only screen and (min-width: 768px) and (max-width: 1200px) {
    main {
        margin-left: 10%;
        margin-right: 10%;
    }

    section {
        margin-top: 2em;
    }

    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 2.2em;
    }
    
    h3 {
        font-size: 2.2em;
    }

    h4 {
        font-size: 1.2em;
    }

    .projects {
        line-height: 2.5em;
        margin-bottom: 5em;
    }

    main > section > .drop {
        font-size: 5.5em;
    }

    list-wrapper {
        margin-right: 1em;
        max-width: 100%;
    }

    li {
        font-size: 1.4em;
    }

    .desktop-nav > nav > a {
        font-size: 1.5em;
    }

  }