@charset "utf-8";

@font-face {
    font-family: Grenze;
    src: url("Grenze/Grenze-Regular.ttf") format("truetype");
    font-weight: normal;
}


@font-face {
    font-family: Grenze;
    src: url("Grenze/Grenze-Bold.ttf") format("truetype");
    font-weight: bold;
}

html {
    background-color: black;
    color: rgb(150, 150, 150);
    font-size: 12px;
    font-family: Grenze, Verdana, Geneva, sans-serif;
    background: url("hexagon-pattern-2657990_1280.png") top left / 20% repeat content-box; /* https://pixabay.com/illustrations/hexagon-pattern-pattern-hexagon-2657990/ I edited it to make it darker*/
}

body {
    margin: 0;
}

a {
}

p {
   font-weight: normal;
}

header {
    background: linear-gradient(black 80%, rgba(0, 0, 0, 0) );
    width: 100%;
    margin: 0px 0px 0 0px;
}

header > figure {

    width: 100%;
    margin: 0px auto 10px auto;
    display: block;
    align-content: center;
    text-align: center;
}

header img {
    width: 300px;
    margin: 0px auto;
    display: block;
}

header figcaption {
    font-size: 3em;
    font-weight: bold;
    color: white;
}

nav.headernav {
    width: 100%;
    margin: 20px 0 0 0;
    /*border: 1px solid red;*/
}

header > nav {
    
}

nav.headernav ul {
    display: flex;
    flex-flow: row nowrap;
    padding: 0px 20px;
}

nav.headernav ul li {
    flex: 1 1 auto;
    margin: 5px 10px;
    padding: 0;
    /*border: 1px solid red;*/
    text-align: center;
    list-style-type: none;
    font-size: 2em;
    height: 40px;
}

nav.headernav ul li a:active, nav.headernav ul li a:hover {
    background-color: rgb(90, 90, 90);
}

nav.headernav ul li a{
    /*border: 1px solid red;*/
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 10px 0 0 0;
    background-color: gray;
    font-weight: bold;
    border-radius: 10px;
    color: black;
}

nav.headernav ul li a:active,
nav.headernav ul li a:hover {
    transform: scale(1.1);
}

body > article {
    margin: 2% 10%;
    display: block;
}

section {
   font-size: 2em;
}

section h1 {
    font-size: 1.4em;
    
}

section ul {
    list-style-type:square;
}

h1 a {
    color: rgb(150, 150, 150);
    text-decoration: none;
}

h1 a:active, h1 a:hover {
    color: rgb(200, 200, 200);
}

section.intro {
    display: flex;
    justify-content: space-between;
}

section.intro article {
    flex: 2 1 70%;
    margin-right: 40px;

}

section.intro img {
    flex: 1 1 20%;
    align-self: center;
    filter: grayscale(1);
    filter: invert();
}

section.portfolio {
    display: block;
    width: 100%;
}

section.portfolio li {
    font-weight: normal;
}

section.hobbies {
    
}

footer {
    height: 180px;
    padding: 0px;
    width: 100%;
    margin: 60px 0 -10px 0;
    background: linear-gradient(rgba(0, 0, 0, 0), black);
    color: black;
}

footer ul {
    list-style-type: none;;
}

footer li:nth-of-type(6) {
    color: black;
}

.footernav {
    
    /*border: 1px solid green;*/
    height: 100%;
    width: 100%;
    padding: 0px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    flex: 1 100%;
    column-gap: 0%;
}

.footernav a, .footernav li {
    color: darkgrey;

}

nav.footernav ul, nav.footernav div {
    /*border: 1px solid blue;*/
    align-items: flex-start;
    max-height: 70%;
    width: 30%;
    font-size: 1.5em;
}

nav.footernav ul:first-of-type {
    justify-items: start;
    padding: 0;
}

nav.footernav ul:nth-of-type(1) li {
    /*border: 1px solid green;*/
    column-gap: 0px;
    line-height: 25px;
}

nav.footernav ul:nth-of-type(2) {
    text-align: center;
    align-items: end;
    padding: 0;
}

nav.footernav ul:nth-of-type(2) li {
    margin: 0px auto;
}

.footernav div {
    align-content: center;
    justify-items: end;
}

.footernav div img {
    width: 40%;
    display: block;
}


li.icons a {
    width: 45%;
    display: inline-block;
    margin: 0;
}

li.icons a:hover,
li.icons a:active {
    transform: scale(1.2);
}

li.icons a:nth-of-type(2) {
    float: right;
    align-items: start;
    height: 30px;
    margin: 5px 0 0 0;
}

li.icons img {
    height: 40px;
    display: block;
    margin: 0px;
}

li.icons a:nth-of-type(2) img {
    height: 30px;
    margin: 0px;
}

li.icons {
    height: 50px;
    width: 70px;
    margin: 0px auto;
}

/*Specifics for portfolio page*/

.main article {
    text-align: center;
}

.main h1 {
    font-size: 2em;
}

section.projects {
    width: 80%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin: 50px auto;
    align-items: center;
}

section.projects > div {
    width: 100%;
    display: flex;
}

section.projects > div > h1 {
    width: 200px;
    text-align: right;
    align-content: center;
}

section.projects a {
    text-decoration: none;
    color: rgb(200, 200, 200);
}

section.projects a:active,
section.projects a:hover {
    color: rgb(90, 90, 90);
}



figure.project {
    width: 550px;
    height: 450px;
    display: block;
    position: relative;
    margin: 30px;
    align-items: center;
    justify-items: center;
    perspective: 100px;
}

figure.project img {
    width: 100%;
    opacity: 0.7;
}

figure.project figcaption {
    font-size: 2em;
    position: absolute;
    width: 100%;
    top: 30%;
    text-align: center;
    color: rgb(200, 200, 200);
}

@media only screen and (max-width:1200px) {
    figure.project figcaption {
        font-size: 1.2em;
        top: 15%;
    }

    section.projects > div > h1{
        padding-top: 20px;
        align-content: start;
        font-size: 1.2em;
    }
}

@media only screen and (max-width:769px) {
    section.projects h1{
        display: none;
    }

    section.projects figure {
        width: 100%;
        display: block;
        margin: 0;
    }

    figure.project figcaption {
        font-size: 1em;
        top: 20%;
    }

    figure.project {
    }

    section.intro > img {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    html {
        font-size: 10px;
    }

    section.projects {
        width: 80%;
        display: block
    }

    figure.project {
        width: 100%;
        display: inline-block;
        margin: 0px;
    }

    nav.headernav {
        margin-left: 0px;
    }

    nav.headernav a{
        width: 200px;
    }

    nav.headernav ul{
        
    }

    nav.headernav li {
        justify-content: center;
    }

    nav.headernav ul li a:active,
    nav.headernav ul li a:hover {
    transform: scale(2);
    }

    figure.project figcaption {
        top: 10%;
    }

    
}
    
