/*
Theme Name: beterstralen
Author: Eric Helsper
*/

:root {
    --background:rgb(242, 242, 242);
}
/* CSS reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
@font-face {
    font-family: 'Molot';
    font-style: normal;
    font-weight: 400;
    src: local('Molot'), url('https://fonts.cdnfonts.com/s/311/Molot.otf') format('opentype');
}
html {
    width:100% !important;
}
body {
    background-color: rgb(230, 230, 230);
}
header, #parts, nav, .menu, #parts {
    padding: 20px;
}
header, hero, main, footer, #navMobile {
    font-family: sans-serif;
    font-size: clamp(16px, 4vw, 18px);
}
header {
    background-color: white;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
}
.hero {
    position: relative;
}
.heroimg {
    width: 100%;
}
.herotext {
    position: absolute;
    bottom: 10%;
    width: 100%;
    text-align:center;
    font-family: sans-serif;
    font-size: clamp(16px, 5vw, 22px);
    color: white;
}
.herotext .p1 {
    font-family: 'Molot', sans-serif;
    font-size: 120%;
}
#logo, nav {
    display: inline-block;
}
#logo img {
    max-height: 120px;
    max-width: 80vw;
    height:auto;
    width:auto;
}
nav {
    /* take rest of width after logo */
    flex: 1;
    flex-wrap: wrap;
}
.menu {
    width: 100%;
}
.menu ul {
    width: 100%;
    padding-left: 0;
    display: flex;
    flex-direction: row;
    flex-wrap:wrap;
    justify-content: space-evenly;
}
.menu ul li {
    margin: 10px 10px 0 10px;
    display: inline-block;
    list-style-type: none;
    font-weight: bold;
    white-space: nowrap;
}
.menu ul li.current_page_item a {
    border-bottom: solid 4px red;
}
.menu a {
        text-decoration: none;
}
.menu a:hover {
    color: red;
}
#parts {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.img-wrapper {
    flex: 1;
}
.img-wrapper > img {
    width:96%;
}
main, footer > div {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 50px;
    line-height: 150%;
}
main p, footer p {
    padding: 10px 0;
}
span.bsintext {
    font-weight: bold;
}
p.enum {
    display: list-item;
    list-style-position: inside;
}
p.enum {
    text-indent: 30px;
}
p.motto {
    font-style: italic;
    font-weight: bold;
}
p.credit {
    font-size: 80%;
    text-align: right;
}
p.credit a {
    color: white;
}
h1, h2 {
    margin: 40px 0 20px 0;
}
h3 {
    margin: 20px 0 10px 0;
}
h1, h2, h3, h4, .menu a {
    font-family: sans-serif;
    color: #2d6e8a;
}
footer {
    width:100%;
    padding: 20px 0;
    background-color:#2d6e8a;
    color:white;
}
/* .icon  { */
/*     margin-right: 20px; */
/* } */
form input, form textarea {
    font-size: 100%;
}
p.mail_ok {
    color: #2d6e8a;
    font-weight: bold;
}

/* Mobile menu */

#mobileMenu {
    display:none;
}

#mobileMenu ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#mobileMenu li {
    list-style-type:none;
}

#navMobile {
  overflow: hidden;
  background-color: #333;
  position: absolute;
  right: 0;
  top: 20px;
}

/* Hide the links inside the navigation menu (except for logo/home) */
/* #navMobile #mobileMenu { */
/*   display: none; */
/* } */

/* Style navigation menu links */
#navMobile a {
    color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

/* Style the hamburger menu */
#navMobile a.icon {
    background: white;
    color: black;
  display: block;
  text-align: right;
  font-size:200%;
}

/* Add a grey background color on mouse-over */
#navMobile a:hover {
  background-color: #ddd;
  color: black;
}

#mobileMenu li {
    margin: 0 4px;
}

/* Style the active link (or home/logo) */
#mobileMenu li.current_page_item a {
  color: #aaa;
}
.imgintext {
    box-shadow: 4px 4px 8px #aaa;
    /* Subtle grey shadow: horizontal offset, vertical offset, blur radius, color */
    margin: 10px 10px 10px 0;
    max-width: 90%;
}
.imgintext  + .imgintext {
    margin-left: 10px;
}
/* grid stuff */
.slijtdelen-illustrations {
  grid-area: illustr;
}
.slijtdelen-text {
  grid-area: text;
}
.straalproces-illustrations {
    grid-area: illustr;
}
.straalproces-text {
    grid-area: text;
}
.contact-illustrations {
    grid-area: illustr;
}
.contact-intro {
    grid-area: intro;
}
.contact-form {
    grid-area: form;
}
.contact-form input:not([type='submit']), .contact-form textarea {
    width: 90%;
    max-width: 500px;
}
/* big screen */
@media all and (min-width: 1060px) {
    #navNonMobile {
        display: block;
    }
    #navMobile {
        display: none;
    }
    .slijtdelen, .straalproces {
        display:grid;
        grid-template-columns: 1fr 3fr;
        grid-template-rows: auto;
        grid-template-areas: "illustr text";
        column-gap: 40px;
    }
    .contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas: "intro intro" "form illustr";
        row-gap: 40px;
        column-gap: 40px;
    }
}
/* small screen */
@media not all and (min-width: 1060px) {
    #navNonMobile {
        display: none;
    }
    #navMobile {
        display: block;
        z-index: 1;
    }
    .slijtdelen, .straalproces {
        display:grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "text" "illustr";
    }
    .contact {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 40px;
        grid-template-areas: "intro" "form" "illustr";
    }
}
