/* white hsl(21, 9%, 92%), 
blue  rgb(21, 9,  92), hsl(249, 82%, 20%), 
mooi grijs hsl(249, 30%, 20%);*/

root {
    transition: 1.5s ease all;
}

body {    
    font-size: 12px;
    background-color: hsl(249, 30%, 10%);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

canvas {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    z-index: -100;
    margin: 0;
    padding: 0;
}

.header, .post, .footer {
    object-fit: contain;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header {
    height: 100vh;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

button {
    color:  hsla(21, 9%, 92%,0.9);
    font-family: 'Space Mono', monospace;
    font-size: 1em;
    background-color: hsla(21, 9%, 92%,0.3);
    position: relative;
    top: -30%;
    right: -45%;
}

.en {
    display: none;
}

a { 
    text-decoration: none;
    color: inherit;
    font-weight: bolder;
}

h1, h2, h3 {
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: hsla(21, 9%, 92%,0.9);
}

h3 {
    font-weight: 300;
}

.post {
    text-align: left;
    border-top: solid hsla(21, 9%, 92%,0.4) 3px;
    display: flex;
    flex-flow: column;
    padding-top: 5px;
    margin-bottom: 15vh;
    margin-top: 3%;
}

h2 {
    background-color: hsla(21, 9%, 92%,0.4);
    color: hsl(249, 82%, 10%);
    font-size: 2.5em;
    padding: 0 10px 10px 10px;
    transition: 2s ease all;
    margin: 0 0 3% 0;
}


p {
    background-color: hsla(249, 30%, 20%,0.3);
    color: hsl(21, 9%, 92%);
    font-family: 'Space Mono', monospace;
    font-size: 1em;
    text-indent: 2%;
    margin: 0 10px;
}

[onclick]:hover {
    cursor: pointer;
}
.footer {
    border-top: solid hsl(21, 9%, 92%) 3px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    padding-top: 5px;
}

.footer > h2 {
    display: inline-block;
    font-size: 1em;
    padding-bottom:0;
}


/* NIET AANKOMEN - LINKS RECHTS ZITTEN DOOR ELKAAR OFZO? VET RAAR.*/
.post:nth-child(odd) h2 {
    align-self: flex-end;
    position: relative;
    right: 200%;
}

.post:nth-child(even) h2 {
    align-self: flex-start;
    position: relative;
    left: 200%;
}

.post:nth-child(odd) h2.move{
    right: 0;
}

.post:nth-child(even) h2.move {
    left: 0;
}

@supports (display: grid) {
    body {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;    
        display: grid;
        grid-template-columns: minmax(auto,1fr) minmax(400px, 800px) minmax(auto,1fr);
        grid-template-rows: 100vh repeat(auto-fit, min-content) 200px;
    }
    
    canvas {
        justify-self: center;
    }

    .header {
        justify-self: center;
        grid-row: 1 / 2;
        grid-column: 2;
    }    
    .post {
        grid-column: 2;
    }

    .footer {
        grid-column: 2;
        grid-row: -0;
    }
    @media only screen and (max-width: 420px) {
        body {
            grid-template-columns: minmax(auto,1fr) 95vw minmax(auto,1fr);
        }
    }
}

@media only screen and (min-height: 600px) {
    body {
        font-size: 2vh;
    }
}

@media only screen and (max-width: 420px) {
    body {
        font-size: 12px;
    }
}
