/*
    Auteur:         Stan de Wijs
    Aanmaakdatum:   22-06-2022
*/

/* Algemene opmaak */
body {
    font-family: var(--defaultFont);
    font-size: var(--fontSizeDesktop);
    color: var(--textColor);
    line-height: normal;

    background-image: var(--backgroundImageDesktop);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

header {
    position: relative;
}

main {
    width: 100%;
    margin-top: 100px;
    margin-bottom: 100px;
    font-size: 0.8em;
}

section {
    width: var(--contentWidth);
    background-color: var(--backgroundColor);
    margin: 0 auto;
    box-shadow: 2px 2px 10px #000000;
    text-align: center;
    
    padding: 50px 0;
}


article {
    vertical-align: top;
	padding: 1em 0;
}

section:first-of-type {
    padding: 0;
}

#contact {
	padding: 0;
}

.centerAligned {
	text-align: center;
}

/* 
    Koptekst kleuren/groottes
*/
article h1, section h1 {
    text-align: center;
    font-size: 2em;
    font-family: var(--headerFont);
    color: var(--secondaryColor);
    padding: 20px;
}

article h2, section h2 {
    font-size: 1.8em;
    font-family: var(--headerFont);
    color: var(--secondaryColor);
    padding: 10px;
    text-align: center;
}

article h3 {
    font-size: 1.4em;
    font-family: var(--headerFont);
    color: var(--secondaryColor);
    padding: 10px;
    text-align: center;
}

/* 
    Paragraaf opmaak 
*/
p::first-letter {
    text-transform: capitalize;
}

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

p a:hover {
    font-weight: bold;
}

article p {
    padding: 8px;
    text-align: left;
}


p {
    width: 80%;
    margin: 0 auto;
    color: var(--textColor);
}
/*
    Einde paragraaf opmaak
*/

iframe {
    display: inline-block;
    width: 100%;
    height: 600px;
    border: 2px solid var(--mainColor);
}

/*
    Opmaak contact pagina
*/
#contact, #contact p {
    width: var(--contentWidth);
    text-align: center;
}
/* Alleen de articles op de contact pagina */
#contact article {
    width: calc( (60% / 2));
    display: inline-block;
}

#maps iframe {
    width: 70%;
}

/*
    Opmaak in-pagina navigatie
*/
.subNav {
    display: inline-flex;
    width: 100%;
}

.subNav li {
    margin: 0 auto;
    background-color: var(--parralaxColor);
    width: 100%;
    text-align: center;
}

.subNav a {
    display: block;
    color: var(--textColor);
    text-decoration: none;
    padding: 10px;
}

.subNav a:hover {
    color: var(--secondaryColor);
}

.inlineImage {
    width: 80%;
    height: auto;
}

/* 
    Instellingen voor de parralax 
*/
.parralax {
    height: 650px;
    
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
}

.background {
    background-image: url(../images/Background_NoTop.jpg);
}

.garage {
    background-image: url(../images/Background2.jpg);
}

.auto1 {
    background-image: url(../images/auto1.webp);
}

@media screen and (orientation: landscape) and (max-width: 900px)
{
    
}

@media screen and (max-width: 600px)
{
	main {
		margin-top: 0;
		margin-bottom: 2em;
	}

    body {
        font-size: var(--fontSizeMobile);
        background-image: var(--backgroundImageMobile);
    }
    
    section, .links, .rechts, #contact, #contact article {
        width: var(--mobileContentWidth);
        box-shadow: none;
    }
    
    .contactPage     {
        display: none;
    }
    
    #maps iframe {
        width: 98%;
		margin: 0 auto;
    }
    
    .subNav {
        font-size: 1em;
    }

	footer p {
		width: 95%;
	}
}