/* 
    --- Fonts ---
 */

@font-face {
    font-family: Monoton;
    src: url(fonts/Monoton-Regular.ttf);
  }

  @font-face {
    font-family: Josefin Sans;
    src: url(fonts/JosefinSans-VariableFont_wght.ttf);
    font-style: italic;
}


@font-face {
    font-family: Josefin Slab;
    src: url(fonts/JosefinSlab-VariableFont_wght.ttf);
}

@font-face {
    font-family: Josefin Slab;
    src: url(fonts/JosefinSlab-Italic-VariableFont_wght.ttf);
    font-style: italic;
}

/* Apply fonts */
* {font-family: Josefin Sans; font-size: 16px;}
h1, .menu_entry {
    font-family: Monoton;
    font-weight: 100;
    word-spacing:200%;
}
h1 {font-size: 300%;}
.menu_entry {font-size: 300%;}

/* 
    --- Element Styling ---
*/

/* menu */
nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

button {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    background: none;
    box-shadow: none;
    border: none;
    transition: 1s;
}

button>img {
    height: 50px;
    padding: 0 1vw;
}

.back>img {
    height: 110px;
}

button:hover:not(.back) {
    color: rgb(147, 147, 255);
    padding-left: 40px;
}

button:hover.back {
    transition: 0.2s;
    padding-left: 0px;
}

/* levitating content pages */
.levitate {
    background: none;
}
/* lists */
li {
    list-style-type: circle;
    
}
/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 10%;
}
header>p {
    font-family: Josefin Slab;
    font-style: italic;
    font-size: 150%;
    width: 300px;
}
h1 {padding: 10px 50px 0px 50px;}
header>h2 {
    font-size: 200%;
}
/* footer styling */
footer {
    bottom: 0;
    height: 10vh;
    display: grid;
    grid-template-columns: auto 15vw 15vw auto;
    grid-template-rows: 64px 64px;
    grid-template-areas: 
    ". dl dl ."
    ". link git .";
    padding-top: 20vh;
    padding-bottom: 5vh;
    grid-area: footer;
  }

#git {grid-area: git; display: flex; justify-content: left;}
#link {grid-area: link; display: flex; justify-content: right;}
#dl {grid-area: dl; display: flex; justify-content: center;}

footer>a {
    color: black;
    font-size: 150%;
}

/* Skills page */
#page_skills {
    padding-left: 3vw;
}

#page_skills>ul>li {
    text-transform: uppercase;
    font-family: Josefin Sans;
    font-size: 200%;
}

li>p {
    text-transform: none;
    font-family: Josefin Slab;
    font-size: 90%;
}

/* Project page */
#page_projects>div {
    padding: 1vh 10vw;
}

.whitenner>a {
    color: black;
    text-decoration: none;
}

.project_image {
    padding-top: 20px;
    margin: 0;
    background-size: 100%;
    transition: background-size 1s;
    background-position: center;
    background-repeat: no-repeat;
}

.project_image:hover {
    background-size: 110%;
}

.whitenner>a>h3>p {
    font-family: Josefin Slab;
    justify-content: start;
}

.whitenner {
    background-color: rgba(255, 255, 255, 0.733);
    padding: 1vh 10vw;
    margin: 0;
    margin-top: 100px;
}

/* About page */
#page_about {
    padding-top: 20vh;
}
.about_entry {
    margin: auto;
    max-width: 90vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.about_entry>div {
    padding: 10px;
    width: 50vw;
    text-wrap: wrap;
    border-bottom: 1px solid black;
    background-color: rgba(255, 255, 255, 0.5);
}
.about_entry>div:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.5);
}

.about_entry:nth-child(3)>div:nth-last-child(1) {
    border-top-right-radius: 20px;
}

.about_entry:nth-last-child(1)>div:nth-child(1) {
    border-bottom-left-radius: 20px;
}

.portrait {
    height: 4vh;
    width: 4vh;
    padding: 10vw;
    background-position: center;
    background-size: 100%;
    margin: auto;
    margin-bottom: 10vh;
    box-shadow: rgba(0, 0, 0, 0.2) 5px 5px;
    border-radius: 100%;
    
}

/* Contact page */
#page_contact {
    padding-left: 10vw;
}

.form_input>input,.form_input>textarea {
    text-align: start;
    background-color: white;
    padding: 1vh;
    min-width: 60vw;
    margin: 1vh;
    border: 1px solid grey;
    color: rgb(56, 56, 56);
    border-radius: 4px;
}

.form_input>textarea {
    align-content: start;
    min-height: 15vh;
    max-width: 60vw;
}

/* 
    ----General styling----
 */
/* Evolving Background */
html {background-color: none;}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #d3ffff;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0),#ffffff);
    background-attachment: fixed;
    transition: all 3s;
}

.body_variant_page_skills {
    background-color: #ffe8e8;
}

.body_variant_page_projects {
    background-color: #fff9dd;
}

.body_variant_page_about {
    background-color: #e5ffde;
}

.body_variant_page_contact {
    background-color: #e0e1ff;
}

/* 
    ---- DESKTOP MODE ----
*/

@media screen and (min-width:520px) and (min-aspect-ratio:1/1) and (min-height:520px) {
    nav {
        padding-top: 20vh;
        align-items: start;
    }

    body {
        padding-top: 5vh;
    }
    nav {
        padding: 0px 5vw;
        width: 20vw;
    }

    /* page contact message */
    .form_input>input,.form_input>textarea {
        padding: 1vh;
        margin: 1vh;
        min-width: 20vw;
        padding: 0.5vh;
        max-width: 20vw;
        margin: 1vh;
    }

    #page_about {
        padding-top: 4vh;
    }
    #page_contact {
        padding-top: 15%;
    }
    .portrait {
        padding: 5vh;
        margin: auto;
        margin-bottom: 5vh;
    }
    #page_contact {
        padding-left: 0;
    }
    .project_image {
        max-height: 300px;
    }
    #page_projects {
        margin: auto;
    }
    #page_projects>div {
        padding: 10px 1vw;
    }
    .whitenner {
        padding: 10px 5vw;
        margin: 0;
        margin-top: 50px;
    }
}


/* Very small screen */

@media screen and (max-width:400px) {
    html, body {
        padding: 0;
    }
}