/* Variables */

:root {
    --text: #272542;
    --link: #4B6EA0;
    --heading: #D05900;
    --bg: #F2F1DC;
    --shadow: #272542;
}

/* Body */

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #353B5E url("../assets/grid.png");
    font-size: 14px;
    font-family: Quicksand, Arial, Helvetica, sans-serif;
    color: var(--text);
}

* {
	box-sizing: border-box;
}

::selection {
    background-color: #A8C7BD;
}

@font-face {
	font-family: Quicksand;
	src: url(../assets/quicksand.ttf);
}

@font-face {
	font-family: Chango;
	src: url(../assets/Chango-Regular.ttf);
}

/* Layout */

.center {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout {
    width: 800px;
    height: 85vh;
    display: flex;
    flex-flow: column nowrap;
    gap: 10px;
    filter: drop-shadow(5px 5px var(--shadow));
}

/* Header */

header {
    position: relative;
}

header h1 {
    font-size: 3em;
    font-family: Chango, 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    color: var(--heading);
    margin: 0;
    filter: drop-shadow(0px 3px var(--bg)) drop-shadow(0 -3px var(--bg)) drop-shadow(3px 0 var(--bg)) drop-shadow(-3px 0 var(--bg));
    text-indent: 3px;
}

header p {
    font-size: 1.5em;
    font-weight: bold;
    text-indent: 30px;
    margin: 0;
    filter: drop-shadow(0px 2px var(--bg)) drop-shadow(0 -2px var(--bg)) drop-shadow(2px 0 var(--bg)) drop-shadow(-2px 0 var(--bg));
}

header img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100px;
    width: auto;
}

/* Main / nav */

main {
    flex-grow: 1;
}

nav {
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 10px;
}

.nav {
    background-color: var(--bg);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    display: flex;
    flex-flow: column nowrap;
    gap: 5px;
    font-weight: bold;
    font-size: 1.5em;
}

.nav-img {
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 7px;
}

.about {
    background-image: url("../assets/about.jpg");
}

.projects {
    background-image: url("../assets/projects.jpg");
}

.mainsite {
    background-image: url("../assets/mainsite.jpg");
}

nav a, nav a:visited {
    color: var(--text);
}

/* Footer */

footer {
    padding: 0 10px;
    background-color: var(--bg);
    border-radius: 10px;
    font-weight: bold;
}

/* Links */

a, a:visited {
    color: var(--link);
}

a:hover, a:active {
    color: var(--heading);
}

a[target^="_blank"]::after {
    content: "↗";
    padding-left: 3px;
    display: inline-block;
}

/* Mobile */

@media (max-width: 800px) {
    .center {
        padding: 10px;
    }
    .layout {
        height: 100%;
        width: 100%;
    }
    header p {
        text-indent: 3px;
    }
    header img {
        display: none;
    }
    nav {
        flex-direction: column;
    }
    .nav {
        flex-grow: 1;
    }
}