@font-face {
    font-family: 'icomoon';
    src:  url('../fonts/icomoon.eot');
    src:  url('../fonts/icomoon.eot') format('embedded-opentype'),
    url('../fonts/icomoon.ttf') format('truetype'),
    url('../fonts/icomoon.woff') format('woff'),
    url('../fonts/icomoon.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-home2:before {
    content: "\e901";
}
.icon-user:before {
    content: "\e971";
}
.icon-cogs:before {
    content: "\e995";
}
.icon-eye:before {
    content: "\e9ce";
    font-size: 17px;
}
.icon-envelop:before {
    content: "\e945";
    font-size: 18px;
}

.icon-twitter:before {
    content: "\ea96";
    font-size: 14px;
}
.icon-linkedin2:before {
    content: "\eaca";
    font-size: 14px;
}
.icon-facebook:before {
    content: "\ea90";
    font-size: 14px;
}
.icon-instagram:before {
    content: "\ea92";
    font-size: 14px;
}

.icon-menu:before {
    content: "\e9bd";
    font-size: 30px;
}

#nav_bar {
    background: #181818;
    width: 60px;
    height: 100%;
    position: fixed;
    top:0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
    min-height: 500px;
}

.logo {
    background: #070707;
    display: block;
    padding: 8px 0;
}
.logo  img {
    display: block;
    margin: 8px auto;
    width: 20px;
    height: auto;
}

#nav_bar nav {
    display: block;
    text-align: center;
    margin-top: 60px;
}

#nav_bar nav a{
    font-size: 20px;
    color: #a5a5a5;
    margin-bottom: 10px;
    display: block;
    line-height: 51px;
    height: 51px;
    position: relative;
    text-decoration: none;
}
#nav_bar nav a i {
    -webkit-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}

#nav_bar nav a:hover i {
    opacity: 0;
}

#nav_bar nav a.active,
#nav_bar nav a:hover {
    color:#08fdd8;
}
#nav_bar nav a:after {
    content: '';
    font-size: 9px;
    letter-spacing: 2px;
    position: absolute;
    bottom: 0px;
    display: block;
    width: 100%;
    text-align: center;
    opacity: 0;
    -webkit-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}
#nav_bar nav a:first-child:after {
    content: 'HOME';
}
#nav_bar nav a:first-child + a:after {
    content: 'ABOUT';
}
#nav_bar nav a:first-child + a +  a:after {
    content: 'SKILLS';
}
#nav_bar nav a:first-child + a + a + a:after {
    content: 'MY WORK';
}
#nav_bar nav a:first-child + a + a + a + a:after {
    content: 'CONTACT';
}

#nav_bar nav a:hover:after{
    opacity: 1;
}

#nav_bar ul {
    display: block;
    padding: 0;
    list-style: none;
    text-align: center;
    margin: 50px 0;
}
#nav_bar ul li a {
    padding: 7px 0;
    display: block;
    font-size: 15px;
    line-height: 16px;
    color: #909096;
    text-decoration: none;
}
#nav_bar ul li a:hover {
    color:#08fdd8;
}

#mobile-link  {
    display: none;
}
#mobile-link:hover {
    color:#08fdd8
}
@media (max-height: 630px){
    #nav_bar nav {
        margin-top: 0px;
        margin-bottom: -90px;
    }
    #nav_bar nav a{
        margin-bottom: 0px;
        line-height: 20px;
        height: 40px;
    }
    #nav_bar ul {
        margin: 0;
        margin-bottom: 40px;
    }
}
@media (max-width: 960px){
    .white .logo {
        padding-bottom: 4px;
    }

    #nav_bar {
        flex-direction: row;
        width: 100%;
        height: 60px;
        position: absolute;
        top: 0;
        left:0;
        z-index: 3;
        min-height: 0;
    }
    .white #nav_bar {
        border-right:0;
        border-bottom:1px solid #F4F4F4;
    }
    .logo {float:left;padding: 2px 0;margin-right:20px;}
    .logo img {
        display: block;
        margin: 5px 15px;
        width: auto;
        height: auto;
    }
    .logo > img:first-child {
        height: 30px;
    }

    #nav_bar nav {
        width: 42%;
        position: absolute;
        left: 50%;
        margin-left: -19%;
        float: left;
        overflow: hidden;
        text-align: center;
        height: 60px;
        top: 0;
        margin-top: 0;

    }

    #nav_bar nav a{
        float:left;
        margin-left: 14%;
        line-height: 60px;
        height: 60px;
    }
    #nav_bar nav a:first-child {margin-left: 0;}
    #nav_bar ul {
        position: static;
        bottom: 20px;
        width: auto;
        height:60px;
        line-height: 60px;
        display: block;
        padding: 0;
        list-style: none;
        text-align: center;
        margin: 0;
        float: right;
    }
    #nav_bar ul li {
        float:right;
        height:60px;
        line-height: 60px;
        margin:0 10px;
    }
    #nav_bar ul li a {
        line-height: 60px;
        padding: 0;
    }
}


@media (max-width: 750px){
    #nav_bar nav a {
        margin-left: 10%;
    }
}

@media (max-width: 530px){
    #mobile-link {
        font-size: 30px;
        color:#fff;
        float:right;
        margin: 10px 20px 10px 10px;
        display: block;
        text-decoration: none;
    }
    #nav_bar ul {display: none}

    #nav_bar {
        position: fixed;
    }

    #nav_bar nav {
        width: 100%;
        position: fixed;
        left: 100%;
        opacity: 0;
        margin-left: 0;
        float: left;
        overflow: hidden;
        text-align: center;
        height: 60px;
        top: 60px;
        margin-top: 0;
        background: #181818;

        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;

    }
    .white #nav_bar nav {
        background: #fff;
    }

    #nav_bar nav a {
        float: left;
        margin-left: 0 !important;
        line-height: 60px;
        height: 60px;
        width: 20%;
    }

    #nav_bar nav.show {
        left: 0;
        opacity: 1;

    }
}
