@import url("./typography.css");

/* Algemeen */

:root {
    scroll-behavior: smooth;
    --color-one: #89a02c;
    --color-two: #786721;
    --color-three: #006400;
    --color-four: #003F13;
    --text-color: #333;
    --card-color: #f1f1f1;
}

body,
html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-one);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h3 {
    color: var(--color-one);
}

html {
    box-sizing: border-box;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}

.skip-nav {
    position: absolute;
    top: 0;
    right: 45%;
    left: 45%;
    transform: translateY(-120%);
    transition: transform 200ms;
    background-color: white;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
    padding: 25px 10px;
    border-radius: 0 0 15px 15px;
    color: var(--text-color);
    text-decoration: none !important;
    text-align: center;
}

.skip-nav:focus {
    transform: initial;
}

/* Layout */

@media screen and (min-width: 600px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media screen and (min-width: 800px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1000px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid div h3 {
    margin-bottom: 10px;
    font-weight: normal;
}

.grid .card {
    background-color: var(--card-color);
    padding: 0;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
    transition: transform .1s;
}

.grid .card:hover {
    transform: scale(1.1);
}

.grid .card a {
    color: var(--text-color);
    text-decoration: none;
}

.grid .card img {
    display: block;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.grid .card span {
    padding: 10px;
    display: inline-block;
}

.projectimage {
    width: 100%;
    padding-bottom: 17px;
}

.coverimage, .footerimage {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    margin: 0;
    display: block;
    border: none;
}

.footerimage.bottom {
    object-position: center bottom;
}

@media screen and (max-width: 1200px) {
    main {
        padding: 0 17px;
    }
}

@media screen and (max-width: 600px) {
    main {
        padding: 0 10px;
    }
}

main {
    max-width: 1200px;
    margin: 0 auto 60px;
    flex-grow: 1;
}

section {
    max-width: 700px;
    margin: 0 auto;
}

@media screen and (min-width: 850px) {
    .bar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.bar {
    background-color: var(--color-one);
    width: 100%;
    padding: 15px;
}

.bar p {
    color: white;
    margin: 0;
    font-size: 24px;
    font-family: "Segoe UI";
}

/* Menu */

.pageheader {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

@media screen and (max-width: 700px) {
    nav ul li span {
        display: none;
    }
}

nav {
    display: flex;
    align-items: center;
    margin: 0 15px;
    min-height: 50px;
}

nav ul {
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    list-style: none;
    padding: 0 10px;
}

nav ul li.selected {
    color: var(--color-four);
}

nav ul li a:hover {
    text-decoration: none;
}

nav ul li a span {
    color: var(--color-three);
}

@media screen and (max-width: 800px) {
    .logo {
        display: none;
    }
    .pageheader {
        justify-content: center;
    }
}

.logo {
    margin: 0 10px;
    height: 70px;
    overflow: hidden;
    margin: 0 10px;
}

.logo img {
    height: 100%;
}

/* Footer */

.pagefooter {
    background-color: var(--color-two);
    padding: 20px;
    text-align: center;
}

.pagefooter a {
    color: white;
    font-weight: bold;
}

.pagefooter p {
    color: white;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px;
}

/* Projecten pages */

.caption {
    font-size: 20px;
    font-style: italic;
    font-family: 'Martel', serif;
}