@font-face {
    font-family: 'Cabin Condensed';
    font-style: normal;
    font-weight: 400;
    src: local('Cabin Condensed Regular'), local('Cabin_Condensed-Regular'), url('/assets/fonts/Cabin-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cabin Condensed Bold';
    font-style: normal;
    font-weight: 700;
    src: local('Cabin Condensed Bold'), local('Cabin_Condensed-Bold'), url('/assets/fonts/Cabin-Bold.ttf') format('truetype');
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Cabin Condensed', sans-serif;
    scroll-behavior: smooth;
}

.bold {
    font-family: 'Cabin Condensed Bold', sans-serif;
}

.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s linear, opacity 0.3s linear;
}

.visible {
    visibility: visible;
    opacity: 1;
    transition: visibility 0.3s linear, opacity 0.3s linear;
}

nav {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 15px;
    text-align: center;
	background-color: #212121;
}

nav a {
    width: 80%;
    padding: 15px;
    border: 1px solid gray;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 10px;
}

nav a:hover, nav a:focus {
    background-color: #404040;
    border: 1px solid white;
}

.open {
    width: 50px;
    height: 50px;
    display: block;
    position: fixed;
    z-index: 1;
    background-color: #212121;
    padding: 10px;
    top: 10px;
    left: 10px;
    background-repeat: no-repeat;
    background-size: 50px 50px;
    background-position: center;
    background-image: url('/assets/icons/menu.png');
    border-radius: 10px;
    border: 1px solid gray;
    opacity: 0.8;
    cursor: pointer;
}

.open:hover, .open:focus {
    border: 1px solid white;
    opacity: 1;
}

.close {
    width: 50px;
    height: 50px;
    display: block;
    position: fixed;
    z-index: 1;
    background-color: #212121;
    padding: 10px;
    top: 10px;
    left: 10px;
    background-repeat: no-repeat;
    background-size: 50px 50px;
    background-position: center;
    background-image: url('/assets/icons/cross.png');
    border-radius: 10px;
    cursor: pointer;
}

.parallax {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.about-header {
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/backgrounds/space_bg.png');
}

.about-header h1, .projects-header h1, .skills-header h1, .education-header h1 {
    font-size: 75px;
    text-shadow: 3px 3px 4px #000000;
}

.about-header-inner-parallax, .projects-header-inner-parallax, .skills-header-inner-parallax, .education-header-inner-parallax {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    color: white;
    text-align: center;
}

.about-content {
    padding: 50px;
    background-color: #4D3754;
    color: white;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/backgrounds/about_content_40_bg.png');
}

.projects-header {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/backgrounds/cafe_bg.png');
}

.projects-content {
    display: flex;
    flex-flow: row wrap;
    padding: 50px;
    background-color: #BD9E8D;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/backgrounds/projects_content_40_bg.png');
}

.projects-content .card {
    flex-grow: 1;
    margin: 15px;
    padding: 15px;
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 10px;
    text-align: center;
    min-height: 350px;
    width: 250px;
    position: relative;
}

.projects-content .card .header {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    height: 250px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.projects-content .card .header h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    color: white;
    text-shadow: 2px 2px 3px #000000;
    margin: 0px;
}

.projects-content .card .body {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 130px;
    width: 100%;
}

.projects-content .card .body button {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid black;
    color: black;
    border-radius: 5px;
}

.projects-content .card .body button:hover, .projects-content .card .body button:focus {
    background-color: black;
    color: white;
}

.card-content-visible {
    left: 0;
    transition: left 0.2s linear;
}

.card-content-hidden {
    left: 100%;
    transition: left 0.2s linear;
}

.project-card-content {
    position: fixed;
    padding: 90px 30px 30px;
    top: 0;
    bottom: 0;
    right: 0;
    background: white;
    overflow: scroll;
}

.project-card-content h1 {
    text-align: center;
}

.project-card-content ul {
    text-align: left;
}

.project-card-content button {
    display: block;
    padding: 10px 20px;
    background-color: white;
    border: 1px solid;
    color: black;
    border-radius: 5px;
    margin: 15px auto 0;
}

.project-card-content button:hover, .project-card-content button:focus {
    background-color: black;
    color: white;
}

.card-photo {
    width: 100%;
    height: 60%;
    display: block;
    border: 1px solid black;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
}

.card-body ul li {
    margin-bottom: 15px;
}

.close-black {
    width: 50px;
    height: 50px;
    display: block;
    position: fixed;
    z-index: 1;
    padding: 10px;
    top: 10px;
    left: 10px;
    background-repeat: no-repeat;
    background-size: 50px 50px;
    background-position: center;
    background-image: url('/assets/icons/cross_black.png');
    border-radius: 10px;
    border: 1px solid black;
    background-color: white;;
    cursor: pointer;
}

.skills-header {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/backgrounds/desk_bg.png');
}

.skills-content {
    padding: 50px;
    background-color: #002C2B;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/backgrounds/skills_content_40_bg.png');
}

.education-header {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/backgrounds/education_bg.png');
}

.education-content {
    padding: 50px;
    background-color: #ffd39a;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/assets/backgrounds/education_content_40_bg.png');
    font-family: 'Cabin Condensed Bold', sans-serif;
}

@keyframes load{
    from {
        width: 0%
    }
}

@-webkit-keyframes load{
    from {
        width: 0%
    }
}

@-moz-keyframes load{
    from {
        width: 0%
    }
}

@-o-keyframes load{
    from {
        width: 0%
    }
}

.bar{
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px;
    border-radius: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #FFF;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.bar::before{
    content:  attr(data-skill);
    display: inline-block;
    padding: 5px 0 5px 10px;
    border-radius: inherit;
    animation: load 2s 0s;
    -webkit-animation: load 2s 0s;
    -moz-animation: load 2s 0s;
    -o-animation: load 2s 0s;
}

.bar.language::before{
    background-color: #2F2BAD;
}

.bar.framework::before{
    background-color: #AD2BAD;
}

.bar.database::before{
    background-color: #E42692;
}

.bar.ml::before{
    background-color: #F71568;
}

.bar.misc::before{
    background-color: #00CC33;
}

.bar.learning::before{
    width: calc(20% - 10px);
}

.bar.basic::before{
    width: calc(40% - 10px);
}

.bar.intermediate::before{
    width: calc(60% - 10px);
}

.bar.advanced::before{
    width: calc(80% - 10px);
}

.bar.expert::before{
    width: calc(100% - 10px);
}

.github-icon {
	background-image:url('/assets/icons/github.png');
	background-repeat:no-repeat;
	background-size:contain;
	background-position:center;
	display: inline-block;
}

.linkedin-icon {
	background-image:url('/assets/icons/linkedin.png');
	background-repeat:no-repeat;
	background-size:contain;
	background-position:center;
	display: inline-block;
}

.email-icon {
	background-image:url('/assets/icons/email.png');
	background-repeat:no-repeat;
	background-size:contain;
	background-position:center;
	display: inline-block;
}

.footer {
	text-align: center;
	background-color: #212121;
	padding: 50px;
}

.footer p {
    color: white;
}

.footer .social-icons ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-flow: row;
    justify-content: center;
    list-style-type: none;
}

.footer .social-icons ul span {
    width: 75px;
    height: 75px;
    margin: 0 15px;
}

@media only screen and (max-width: 768px) {
    nav a {
        width: 60%;
    }

    .about-content, .project-content, .skills-content, .footer {
        padding: 50px 10px;
        margin: 0 auto;
    }

    .footer .social-icons ul {
        display: flex;
        flex-flow: row;
        align-items: stretch;
    }

    .footer .social-icons ul li {
        flex-grow: 1;
    }
    
    .footer .social-icons ul span {
        margin: 0;
    }
}

@media only screen and (max-width: 390px) {
    nav a {
        width: 50%;
    }
}