body, html {
    height: auto;
    margin: 0 auto;
}

h1 {
    font-family: Rozha One;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: -10px;
}

h2{
    font-family: Rozha One;
    font-size: 25px;
    margin-bottom: -10px;
}

p {
    font-family: Poiret One; 
    font-size: 15px;
}

a {
    text-decoration: none;
    color: #FFF;
    font-family: Poiret One;
    margin: 0px 2px 0px 2px;
    cursor: pointer;
}

/* HEADER */
.heroImage {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("heroimage.png");
    height: 300px;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
}

.navbar{
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 10px;
    justify-content: space-between;
    margin: 0px 20px 0px 3px;
} 

.sticky{
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #193e61;
    opacity: 0.9;
    z-index: 2;
    margin: 0 auto;
}
 
.navbar img{
    width: 50px;
    margin-right: 5px;
}

nav{
    justify-content: flex-end;
}

.heroText {
    color: white;
    padding-top: 140px;
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

/* ABOUT */
.about{
    width: auto;
    display: flex;
    flex-direction: column;
    place-items: center;
    text-align: center;
    margin: 10px;
}

/* SOCIAL MEDIA ROW */ 
.icon-row{
    background-color: #193E61;
    height: 50px;
    width: 100%;
}
   
.social-menu ul{
    position: absolute;
    margin-top: 25px;
    transform: translate(-50%,-50%);
    display: flex;
    left: 45%;
}
   
.social-menu ul li {
    list-style: none;
    margin: 0px 15px;
}

.social-menu ul li:nth-child(1) a:hover{
    background-color: #2867B2;
}

.social-menu ul li:nth-child(2) a:hover{
    background-color: #000;
}
   
.social-menu ul li:nth-child(3) a:hover{
    background-color: #3b5998;
}
    
.social-menu ul li:nth-child(4) a:hover{
    background-image: linear-gradient(#cc4588, #fed269);
}
   
.social-menu ul li:nth-child(5) a:hover{
    background-color: #ff0000;
}
   
.social-menu ul li .fa {
    font-size: 15px;
    line-height: 30px;
    color: #000000;
}
   
.social-menu ul li .fa:hover{
    color: #ffffff;
}
   
.social-menu ul li a {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    text-align: center;
    transition: .6s;
    box-shadow: 0 5px 4px rgba(0,0,0,.5);
}
   
.social-menu ul li a:hover {
    transform: translate(0,-10px);
}

/* PROJECTS */ 
.cards-container {
    background-color: #fff;
    color: #000;
    text-align: center;
} 
  
.cards {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
    position: relative;
    animation-duration: 4s;  
    animation-fill-mode: forwards;
    animation-name: falling;
}
  
@keyframes falling {
    from {top: -20px;}
    to {top: 0px;}
}
  
.cards a {
    border: 0.5px solid #dddddd;
    border-radius: 5px;
    width: 100%;
    text-decoration: none;
    color: #515151;
    padding: 16px;
    margin-bottom: 32px;
}
  
.cards a img {
    width: 90%;
}
  
.title {
    font-size: 25px;
    display: flex;
    justify-content: center;
    margin: 5px 0px 10px 20px;
}
  
.description {
    font-size: 15px;
    padding: 10px 10px 1px 10px;
    display: flex;
    justify-content: center;
}

/* KNOWLEDGE */
.knowledge{
    display: flex;
    flex-direction: column;
    text-align: center;
    place-items: center;
    margin: 20px 0px 20px 0px;
    color: #fff;
    background-color: #193E61;
}

.list{
  margin: 5px;
}

/* BUTTON */
.hireButton{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    display: flex;
    align-items: center;
    width: 150px;
    height: 80px;
    border: none;
    border-radius: 2px;
    background: #d43532;
    color: #FFF;
    font-family: Poiret One;
    font-size: 14px;
    cursor: pointer;
}

button:hover{
    background: #fff;
    border: 2px solid #d43532;
    color: #d43532;
    border-radius: 2px;
}

/*** UP BUTTON ***/
.myBtn {
    display: flex;
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    background: #dddddd96;
    outline: none; 
    color: #515151;  
    padding: 15px 15px 10px 15px; 
    border-radius: 10px; 
    font-size: 18px; 
  }

  .myBtn:hover{
      background: #ddd;
  }

  /* FOOTER */

footer{
    width: auto;
    height: 200px;
    background-color: #193E61;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFF;
}

footer h1{
    margin-bottom: 10px;
}

/* MEDIA QUERIES */
@media (min-width: 600px){
    .about{
        margin: -20px 100px 20px 100px;
        display: flex;
        place-items: center;
    }

    .cards a {
        width: 25%;
        flex-grow: 1;
        margin: 16px;
      }

      .knowledge{
          display: flex;
          justify-content: center;
      }

      .listContainer {
        display: flex;
        flex-direction: row;
        justify-content: center;
      }

      .list{
       width: 200px;
      }
}

@media (min-width: 1024px){
    nav {
        display: flex;
        flex-direction: row;
    }

    nav a{
        font-size: 20px;
        padding-right: 5px;
    }

    nav a::after{
        content: '';
        display: block;
        width: 0;
        height: 2px;
        transition: .3s;
        background: #fff;
        text-decoration: none;
    }
       
    nav a:hover::after {
        width: 100%;
        background: solid 1px;
    }

    h1{
        font-size: 40px;
    }

    h2{
        font-size: 35px;
    }

    h4{
        font-size: 25px;
    }

    p{
        font-size: 20px;
    }

    .description{
        font-size: 20px;
    }

    .heroText{
        margin-left: 20px;
    }

    .icon-row{
        height: 100px;
    }

    .social-menu ul{
        margin-top: 50px;
    }
       
    .social-menu ul li {
        margin: 0px 40px;
    }

    .social-menu ul li .fa {
        font-size: 50px;
        line-height: 70px;
        color: #000000;
    }

    .social-menu ul li a {
        width: 70px;
        height: 70px;
    }

    .cards {
        display: flex;
        justify-content: center;
    }

    .cards a {
        max-width: 20%;
    }

    .cards a:hover {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        transform: translate(0,-10px);
        transition: .6s;
      }

    .hireButton{
        height: 200px;
        display: flex;
        align-items: center;
    }

    button p{
        font-size: 25px;
    }

    footer p{
        font-size: 35px;
        margin-top: -5px;
        margin-bottom: -5px;
    }

    footer a{
        font-size: 25px;
    }

    footer a:hover{
        border-bottom: #fff 2px solid;
    }
}