body {
    color: #222;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.3;
    background: -webkit-linear-gradient(white 80%, rgb(34, 92, 146) 95%);
    background: linear-gradient(white 80%, rgb(34, 92, 146) 95%);

}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif ;
}

hr {
        color:black;
        border:none;
        border-top:1px solid black;
        height:1px;
} 

header {  /* Afbeelding achter Titel Fram's Building & Sailing pages */
    background-image: url(../afbeeldingen/Endless_Summer.jpg);
    background-size: 100% auto;
    background-repeat: no-repeat;
    padding: 3em 0;
    text-align: center;
}

header a {  /*Kleur van text Fram's Building & Sailing pages */
    text-decoration: none;
    color: white;
    text-shadow: 10px 1px 10px rgb(29, 80, 128);
    letter-spacing: .03em;
    font-size: .9em;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

nav p.menuknop  {
    font-family: courier, monospace;
    font-size: 28px;
    margin: 0 4px 0 0;
    text-align: right;
}

nav ul {   /* Kleur van menubalk */
    background-color: rgba(34, 92, 146, 0.85);
    display: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    border-top: 1px solid darkgrey;
    padding: .7em .4em .6em .4em;
}

nav a {
    color: white;
    text-decoration: none;
}

nav ul li:hover {
    background-color: #5583ad;
}

nav ul li.submenu {
    position: relative;
}

nav ul li.submenu > a:after {
    content: " \025BE";
}

nav ul li.submenu:hover ul {
    box-sizing: border-box;
    background-color: #5583ad;
    display: block;
    width: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
}

nav li li:first-child {
    border-top: none;
}

nav li li a:hover {
    color:  red;
}

div.art-aside {
    width: 90%;
    margin: -40px auto 0 auto;
    background-color: white;
    box-shadow: 0 0 10px #444;
    border-radius: 4px;
}

article {
    padding: 1em;
    text-align: justify;
}


article h1 {
    font-size: 1.8em;
    color: rgb(29, 80, 128);
    text-align: left;
}

article h2 {
    color: rgb(29, 80, 128);
    font-size: 1.4em;
    margin-top: 1.3em;
    text-align: left;
}

article h3 {
    color: dimgrey;
    font-size: 1em;
    margin-top: 1em;
    text-align: right;
}

article h4 {
    font-size: 1.4em;
    color: rgb(29, 80, 128);
    text-align: center;
}

aside {
    padding: 1em 1em 2em 1em;
    text-align: center;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}


aside a{
    text-decoration: none;
    text-align: center;
    color: dimgrey; 
}

aside a:hover{
            background-color: #ddd;
            color: red;            
        }

aside h3, aside h4 {
    color: rgb(29, 80, 128);
}

follow a {
    text-decoration: none;
            display: inline-block;
            padding: 8px 16px; 
}
follow a:hover{
            background-color: #ddd;
            color: red;            
        }
follow .previous{
            background-color: #f1f1f1;
            color: black; 
            border-radius: 5px;
        }
follow .next{
            background-color: #5583ad;
            color: white;
            border-radius: 5px;
        }


footer {
    color: white;
    font-size: .9em;
    padding: 2em;
    text-align: center;
    margin: 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

img.rechts, img.links, img.center {
    box-sizing: border-box;
    display: block;
    margin: 0.5em auto;
    max-width: 100%;
}



@media screen and (min-width: 500px) {
    header {
        padding: 6em 0.5em;
    }

    div.nav-aa {
        box-shadow: 0 0 10px #444;
        border-radius: 4px;
        width: 90%;
        margin: -125px auto 0 auto;
        background-color: white;
    }
    nav {
        position: relative;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    nav p.menuknop {
        display: none;
    }

    nav > ul > li:first-child {
         border-top-left-radius: 4px;
    }

    nav > ul > li:last-child {
        border-top-right-radius: 4px;
    }
   
    nav > ul {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-pack: distribute;
        justify-content: space-around;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    nav ul li.submenu:hover ul {
        width: 8em;
        left: 0;
        top: 100%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        border-top: 1px solid darkgrey;
    }

    nav > ul > li {
        border-top: none;
    }
 
    div.art-aside {
        width: 100%;
        border: none;
        box-shadow: none;
        margin: 0;
    }
    
    div.kolom {
        width: 100%;
        border: none;
        box-shadow: none;
        margin: 0;
        text-align:left;

    }
    
    div.kolom2 {
        width: 100%;
        border: none;
        box-shadow: none;
        margin: 0;
        text-align:left;

    }

    img.rechts {
        float: right;
        margin: 0.4em 0 0.4em .8em;
    }

    img.links {
        float: left;
        margin: 0.4em .8em 0.4em 0;
    }
    
    img.center {
        margin-left: auto;
        margin-right: auto;
    }

    .yt-right {
	float: right;
	clear: both;
	display: inline-flex;
	margin: 0.4em 0 0.4em .8em;
}

    .yt-left {
	float: left;
	clear: both;
	display: inline-flex;
	margin: 0.4em .8em 0.4em 0;         
}
    
}

@media screen and (min-width: 700px) {
    
    div.nav-aa {
        margin: -60px auto 0 auto;
    }
    
    .art-aside {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    aside {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 22%;
        flex: 0 0 22%;
        font-size: .9em;
        margin-top: 1em;
    }
    
    div.kolom {
        display:block; 
        padding:10px 10px 10px 10px; width:44%;
        margin-left:5px; 
        text-align:left; 
        float:left; 
        color:#000;
    }

    div.kolom2 {
        display:block; 
        padding:10px 10px 10px 10px; width:44%;
        margin-left:5px; 
        text-align:left; 
        float:left; 
        color:#000;
    }
    
    
.yt-right {
	float: right;
	clear: both;
	display: inline-flex;
	margin: 0.4em 0 0.4em .8em;
    }

    .yt-left {
	float: left;
	clear: both;
	display: inline-flex;
	margin: 0.4em .8em 0.4em 0;         
    }
}
    
@media screen and (min-width: 1000px) {
    header {
        padding: 8em 0.5em;
    }

    header h1 {
        font-size: 4em;
    }
    div.nav-aa {
        max-width: 1000px;
    }
    nav > ul {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    nav > ul > li {
        margin: 0 .7em;
    }
    
    div.kolom {
            display:block; 
            padding:10px 10px 10px 10px; width:30%;
            margin-left:5px; 
            text-align:center; 
            float:left; 
            color:#000;
    }
    
    div.kolom2 {
            display:block; 
            padding:10px 10px 10px 10px; width:44%;
            margin-left:5px; 
            text-align:left; 
            float:left; 
            color:#000;
    }
    
    .yt-right {
	float: right;
	clear: both;
	display: inline-flex;
	margin: 0.4em 0 0.4em .8em;
    }

    .yt-left {
	float: left;
	clear: both;
	display: inline-flex;
	margin: 0.4em .8em 0.4em 0;         
    }
    
    iframe {
        border: none;
    }
}