﻿/* madroutine.com stylesheet v1.0
   copyright 2018 Wouter Verwijlen

   Indeling
   ========
   - Definities met betrekking tot de hele site,
     als volgt opgebouwd:
	 - Basisstructuur
	 - Headers
	 - Algemene definities
	 - Linkopmaak
	 - Formulieropmaak

   - CSS3 media-queries (aanpassingen op
     basis van venster- en schermgrootte,
	 zorgt o.a. voor de smartphone-versie)

*/

/* Kleuren */
:root {
    --fg: #000000;
    --bg: #ffffff;
    --active: #000000;
}

/* Basisstructuur */
@viewport {
    width: device-width;
    initial-scale: 1;
}

html,
body {
    height: 90%;
    margin: 0;
    padding: 0;
}

html {
    font-family: "fonts/opensans-regular", Verdana, Helvetica, sans-serif;
    font-size: 100%;
    font-weight: 300;
    background-color: var(--bg);
}

body {
    color: var(--fg);
    text-align: center;
}

div#container {
    min-height: 100%;
    width: auto;
    position: relative;
    margin: 0;
    padding-bottom: 0.5em;
}

/* Rij over de gehele lengte */
body > div > div,
body > div > ul {
    clear: both;
    margin: 0 auto;
    text-align: center;
}

div#header {
    margin: 2em auto 1em auto;
    text-align: center;
}

div#header img {
    max-width: 100%;
    max-width: 600px;
    height: auto;
}

div.content {
    font-size: 120%;
    border: 2px solid var(--fg);
    background-color: var(--bg);
    color: var(--fg);
    margin-bottom: 1em;
}

div.project {
    display: flex;
}

div.project div {
    padding: 1em 0 1em 1em;
}

div.project div:first-child {
    width: 30%;
}

div.project div:nth-child(2) {
    width: 60%;
    text-align: left;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 80%;
}

/* Headers */
h1 {
    width: 100%;
    height: 321px;
    background: url("media/MRLogo.png") top center no-repeat;
    display: block;
}

h1 span {
    visibility: hidden;
}

h2 {
    font-size: 180%;
    font-weight: 300;
    min-height: 40px;
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 0;
    padding-bottom: 0;
}

h3 {
    font-weight: 300;
    font-size: 150%;
    min-height: 35px;
    clear: both;
    margin: 0;
    padding: 1em 0 0 0;
}

.tweede_sub_kolom h3 {
    margin-top: 6px;
}

h4 {
    margin-top: 10px;
    font-weight: 400;
    margin-bottom: 0;
}

.eerste_sub_kolom h4 {
    margin: 8px 0 0 0;
}

h5 {
    font-weight: bold;
    font-size: 110%;
    padding: 0;
    margin: 10px 0 0 0;
}

h6 {
    margin: 0 0 15px 0;
    font-weight: normal;
    padding: 0;
}

/* Algemene definities */
p {
    margin: 0 0 1em 0;
}

img {
    text-decoration: none;
}

img.cover_image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Linkopmaak */
a:link,
a:active,
a:visited {
    text-decoration: none;
    border-bottom: 1px dotted var(--fg);
    color: var(--fg);
}

a:hover {
    text-decoration: none;
    border-bottom: 2px solid var(--active);
    color: var(--fg);
}

h2 a:link,
h2 a:active,
h2 a:visited {
    border-bottom-width: 0;
}
h2 a:hover {
    border-bottom-width: 1px;
}

a.img:link,
a.img:active,
a.img:visited,
a.img:hover {
    border-bottom: 0;
}

/* CSS3 MEDIA QUERIES
   Hierin worden zaken aangepast op basis van de
   grootte van de viewport, zodat de website
   goed meeschaald met kleinere vensters en schermen */

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --fg: #ffffff;
        --bg: #000000;
        --active: #ffffff;
    }
}

/* Aanpassingen voor kleine viewports */
@media screen and (max-width: 600px) {
    div#header img {
        width: 100%;
        height: auto;
    }

    div.content {
        width: 95%;
    }

    div.project img {
        width: 60%;
        height: auto;
    }

    div.project {
        flex-direction: column;
    }

    div.project div:first-child {
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    div.project div:nth-child(2) {
        width: 90%;
    }
}

/* Aanpassingen voor middelgrote viewports */
@media screen and (min-width: 601px) and (max-width: 959px) {
}

@media screen and (max-width: 959px) {
    div#header {
        width: 100%;
        max-width: 580px;
        border-bottom: 0;
    }

    div#header div {
        width: 100%;
        max-width: 438px;
    }

    body > div > div {
        width: 100%;
        max-width: 580px;
    }

    h1 {
        font-size: 10vw;
        margin-bottom: 10px;
    }

    footer div {
        width: auto;
    }
}

/* Aanpassingen voor grote viewports */
@media screen and (min-width: 960px) {
    body > div > div,
    body > div > ul {
        width: 960px;
    }
}

/* Aanpassingen voor grote viewports */
@media screen and (max-height: 1000px) {
    div#header img {
        max-width: 50%;
    }
}
