/* Colours */

.close_button {
    color: #fff;
    padding-left: .5em;
    font-weight: bold;
    cursor: pointer;
}


/* body, header, main, footer */


body {
    margin: 0;
    font-family: Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.h-captcha {
    margin-top: 1em;
}

.cookie_cons {
    background-color: #eee;
    margin: 0 auto;
    padding: 2em;
    border-radius: 10px;
    text-align: center;
}

.cookie_cons .btn {
    display: inline-block;
    transition: 300ms;
    margin-top: 20px;
    padding: 1em;
    border: 2px solid #354a4f;
    background-color: #065188;
    color: #fff;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
}

.cookie_cons .btn:hover{
    transition: 300ms;
    color: #354a4f;
}

.facebookLink {
    display: inline-flex;
}

.youtube {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.youtube iframe {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
}

.bold {
    font-weight: bold;
}

a {
    transition: 200ms;
    color: #065188;
}

a:hover {
    transition: 200ms;
    color: #333;
}

.linkBtn {
    transition: 300ms;
    background-color: #065188;
    padding: 0 1em .0 1em;
    line-height: 2.5em;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.linkBtn:hover {
    transition: 300ms;
    background-color: #333;
    color: #fff;
}

header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image: url("afb/banner.png");
    background-position: center;
    background-repeat: no-repeat;
    padding: 3em 0 3em 0;
    border-bottom: 2px solid #354a4f;
}

main {
    padding: 2em 20em 2em 20em;
}

.mainContent {
    /* min-width: 22em;
    max-width: 55%; */
    width: 55%;
    position: relative;
    vertical-align: top;
    display: inline-block;
}

.mainContent li {
    margin-left: 40px;
}

.contact {
    width: 44%;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-items: flex-end;
}

header form {
    margin: 0 auto;
}

header form input[type=search] {
    height: 2em;
    width: 13em;
    font-size: 1em;
    border: 0;
}

header form input[type=submit] {
    height: 2.4em;
    width: 2.4em;
    background: #eee url("/afb/search.png") no-repeat center center;
    border: 0;
    border-left: 1px solid #aaa;
    cursor: pointer;
}

header form input[type=submit]:hover {
    background: #9e9e9e url("/afb/search.png") no-repeat center center;
}

.contact table {
    margin-top: 2em;
    border-collapse: collapse;
}

.contact th {
    background-color: #065188;
    color: white;
    line-height: 2.5em;
    min-width: 13em;
}

.contact tr:nth-child(odd) {
    background-color: #fff;
}

.contact tr:nth-child(even) {
    background-color: #354a4f;
}

.contact tr {
    line-height: 2em;
}

.contact td {
    padding-left: .5em;
}

.contactInfo {
    font-style: italic;
    min-width: 22em;
    max-width: 100%;
    padding: 1em 2em 1em 2em;
    color: #fff;
    margin-left: 7%;
    display: inline-block;
    border: 4px solid #354a4f;
    border-radius: 10px;
    background: #065188;
    /* box-shadow: 5px 5px 5px #065188; */
}

.contactInfo a {
    color:#fff;
}

.lastNews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

.newsItem {
    overflow: hidden;
    padding: 1em;
    max-width: 30em;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #eee;
    margin-bottom: 1em;
}

.lastNews .newsItem h2 {
    color: #065188;
}

.lastNews .newsItem p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.lastNews .newsItem a {
    text-decoration: none;
    background: #065188;
    color: #fff;
    padding: .5em;
    float: right;
    margin-bottom: 0;
}

.fullItem {
    margin: 0 auto;
    text-align: center;
    width: 75%;
}

.fullItem h2 {
    color: #065188;
}

.fullItem .date {
    color: #555;
    font-size: .7em;
}

.fullItem .source {
    color: #555;
    font-size: .7em;
}

.opDeHoogte {
    margin-top: 2em;
    background-color: #065188;
    color: #fff;
    width: 100%;
    font-size: 1.5em;
    text-align: center;
    padding: 1em 0 1em 0;
    border-radius: 10px;
    box-shadow: 0 3px 3px #59989e;
}

.opDeHoogte a {
    color: #fff;
}

.opDeHoogte a:hover {
    color: #ddd;
}

img {
    transition: 150ms;
    max-width: 100%;
}

img:hover {
    transition: 0.3s;
    transform: scale(1.03);
}

.imagesHome {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

.imagesOfHome {
    width: 100%;
}

.imagesHome img {
    transition: 0.3s;
    width: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    overflow: hidden;
    margin-top: -1em;
}

.imagesHome img:hover {
    transition: 0.3s;
    transform: scale(1.03);
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    overflow: hidden;
}

.infoOfPicture {
    text-align: center;
    line-height: 1em;
    min-width: 18em;
    max-width: 30em;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

img.logo {
    margin-left: 20em;
    width: 5em;
    border: 3px solid #333;
    border-radius: 10px;
}

footer {
    color: #fff;
    border-bottom: 2px solid #354a4f;
    background-color: #065188;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2em 20em 2em 20em;
    align-items: center;
}

footer ul li a {
    transition: 0.3s;
    color: #fff;
    text-decoration: none;
}

footer ul li {
    transition: 0.3s;
    color: #fff;
    text-decoration: none;
}

footer ul li a:hover {
    transition: 0.3s;
    color: #bbb;
    text-decoration: underline;
}

.footerMenu ul {
    padding: 0;
}

.socials { 
    max-width: 22em;
    gap: 2em;
    display: flex;
    justify-self: center;
}

.sociallogo {
    border: 2px solid #333;
    background-color: #fff;
    border-radius: 9px;
    height: 3em;
}

.sociallogo:hover {
    transform: scale(1.05);
}

.openingstijden {
    line-height: 1.2em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    color: #fff;
    justify-self: right;
}

.openingstijden div:nth-child(even){
    justify-self: right;
}

.copyright {
    color: #fff;
    background-color: #333;
    line-height: 2.5em;
    text-align: center;
}

.openingstijden {
    line-height: 1.2em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    color: #fff;
    justify-self: right;
}

.openingstijden div:nth-child(even){
    justify-self: right;
}

.copyright a {
    transition: 0.3s;
    color: #fff;
}

.copyright p {
    margin: 0;
}

.copyright a:hover {
    transition: 0.3s;
    color: #bbb;
}
/* Menu */

#menu {
    height: 3em;
    background: #065188;
    padding-left: 20em;
}

#menuknop {
    transition: 0.3s;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }


#menuknopClick {
    padding: .5em 0 .5em 0;
    background-color: #065188; 
    margin: 0 auto;
    transition: 0.3s; 
}

#menuknopClick i {
    transform: scale(2);
    color: #fff;
}

#menuknop ul {
    position: absolute;
    top: -.5em;
    padding-left: 0;
    margin: .5em 0 0 0;
    width: 75%;
    height: 100vh;
    background-color: #333;
    transition: 1s;
    z-index: 100;
}


#menuknop ul li a {
    transition: 0.3s;
    padding-left: .5em;
    transition: 0.3s;
    color: #fff;
    height: 3em;
    line-height: 3em;
    text-decoration: none;
    font-size: 1em;
    display: block;
    overflow: visible;
    border-bottom: 1px solid #fff;
}

#menuknop ul li a.active {
    background-color: #000;
}

#menu ul li {
    min-width: 6em;
    max-width: 10em;
}

#menu ul li a:hover,
#menu ul li a.active {
    background-color: #022b48;
}

#menu ul li a {
    display: block;
    text-align: center;
    transition: 0.3s;
    color: #fff;
    height: 3em;
    line-height: 3em;
    text-decoration: none;
    font-size: 1em;
    overflow: hidden;
}

#menu ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#menu ul ul { 
    padding-left: 1em;
    flex-direction: column;
    width: 12em;
    position: relative;
    z-index: 200;
    background-color: #fff;
    box-shadow: none;
    border: none;
}

#menu ul ul li {
    border: none;
}

#menu ul ul a {
    visibility: visible;
    margin: 0 auto;
    height: 0;
    overflow: hidden;
    color: #000;
    text-align: start;
}

#menu ul ul li a:hover,
#menu ul ul li a.active {
    color: #065188 !important;
    background-color: #fff!important;
}

#menu ul li:hover ul li a,
#menu ul li:focus ul li a{
    height: 3em;
    visibility: visible;
}

#menu ul li:hover ul {
    box-shadow: 0 2px 1px 1px #bbb;
    position: relative;
}

/*#menuKnop ul li a {
    border-bottom: 2px solid #333;
} */

#menu ul li a:hover,
#menu ul li a:focus {
    transition: 0.3s;
}

.mainpage,
.subpage {
    list-style-type: none;
}

.subpage li {
    margin-left: -40px;
    text-align: right;
}

.sub a{
    position: relative;
    transition: 3ms;
    background-color: #065188;
    text-align: center;
    z-index: 5;
    padding: 0 .2em 0 .2em;
}

.close {
    display: none;
}

.open {
    display: flex;
}

/* contact page */

form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.formulier {
    width: 100%;
    margin-right: auto;
}

.formulier input {
    margin: .5em 0 .5em 0;
    width: 21em;
    height: 2em;
    font-size: 1em;
}

.formulier input[type=submit] {
    margin-top: .5em;
    width: 21em;
    height: 2em;
    font-size: 1em;
}

.formulier select {
    margin: .2em;
    width: 25.3em;
    height: 3em;
    border: none;
    border-radius: 0;
}

.formulier textarea {
    margin-top: .5em;
    width: 26em;
    height: 10em;
    display: block;
    font-size: 1em;
}

.formulier .btn {
    transition: 300ms;
    margin-top: 20px;
    width: 18em;
    border: 2px solid #354a4f;
    background-color: #065188;
    color: #fff;
}

.formulier .btn:hover {
    transition: 300ms;
    color: #354a4f;
}

.errorMsg {
    font-size: 1.5em;
    background-color: rgb(214, 23, 23);
    color: #fff;
    padding: .2em;
}

.succMsg {
    font-size: 1.5em;
    background-color: #56a856;
    padding: .2em;
}

/* Media queries */

@media screen and (min-width: 1850px) {
    #menu {display: block;}
    #menuknopClick {display: none; }
}

@media screen and (max-width: 1850px) {
    .youtube {
        grid-template-columns: repeat(4, 1fr);
    }
    main {
        padding: 1em 20em 1em 20em;
    }

    footer {
        padding: 1em 20em 1em 20em;
    }

    img.logo {
        margin-left: 20em;
        margin-top: -1em;
    }

    #menu {
        padding-left: 20em;
    }
    #menu {display: block;}
    #menuknopClick {display: none; }
}

@media screen and (max-width: 1546px) {
    .youtube {
        grid-template-columns: repeat(3, 1fr);
    }
    main {
        padding: 1em 15em 1em 15em;
    }

    footer {
        padding: 1em 15em 1em 15em;
    }

    img.logo {
        margin-left: 15em;
        margin-top: -1em;
    }

    #menu {
        padding-left: 15em;
    }
    #menu {display: block;}
    #menuknopClick {display: none; }
}

@media screen and (max-width: 1450px) {
    main {
        padding: 1em 10em 1em 10em;
    }
    footer {
        padding: 1em 10em 1em 10em;
    }

    img.logo {
        margin-left: 10em;
    }

    #menu {
        padding-left: 10em;
    }
    #menu {display: block;}
    #menuknopClick {display: none; }
}

@media screen and (max-width: 1210px) {

    .youtube {
        grid-template-columns: repeat(2, 1fr);
    }

    main {
        padding: 1em 10em 1em 10em;
    }

    .contact {
        display: block;
        width: 100%;
    }

    .contact th {
        min-width: 100%;
    }

    .formulier {
        margin-top: 3em;
    }

    footer {
        padding: 1em 10em 1em 10em;
    }

    img.logo {
        margin-left: 8em;
    }

    .mainContent {
        width: 100%;
    }

    .contactInfo {
        display: inline-block;
        width: calc(100% - 2em);
        padding: 1em 0 1em 2em;
        margin: 0 auto;
    }

    .imagesHome {
        grid-template-columns: repeat(2, 1fr);
    }

    .lastNews {
        grid-template-columns: repeat(2, 1fr);
    }

    #menu {display: block;}
    #menuknopClick {display: none; }
}



@media screen and (max-width: 1050px) {
    .imagesHome {
        grid-template-columns: repeat(1, 1fr);
    }
    #menu {display: block;}
    #menuknopClick {display: none; }
    footer {
        grid-template-columns: repeat(1, 1fr);
        padding: 1em 5em 1em 5em;
        justify-content: center;
    }

    .footerMenu {
        justify-self: center;
    }

    .socials {
        justify-self: center;
    }

    .openingstijden {
        justify-self: center;
    }
}

@media screen and (max-width: 884px) {

    .youtube {
        grid-template-columns: repeat(1, 1fr);
    }

    .trein_info {
        grid-template-columns: repeat(1, 1fr);
    }

    main {
        padding: 1em 5em 1em 5em;
    }

    form {
        grid-template-columns: 1fr;
    }

    img.logo {
        margin-left: 8em;
    }

    .contactInfo {
        padding: 1em 0 1em 2em;
        margin-left: 0;
        margin: 0 auto;
    }
    #menu {display: none;}

    #menuknopClick {display: block; }

    #menuknopClick i { margin: 5px 5px 5px 15px;}

    .imagesHome {
        grid-template-columns: repeat(1, 1fr);
    }

    .lastNews {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 555px) {
    .contactInfo {
        margin: 0 auto;
        min-width: fit-content;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding: 1em 2em 1em 2em;
    }
    footer {
        padding: 1em 2em 1em 2em;
    }

    img.logo {
        margin-left: 2em;
    }

    .contact table {
        max-width: 100%;
        min-width: 18em;
    }

    .contact td,
    .contact th {
        width: fit-content;
    }

    .contact {
        margin: 0 auto;
    }
    .imagesHome {
        grid-template-columns: repeat(1, 1fr);
    }
    .formulier input,
    .formulier input[type=submit],
    .formulier select {
        width: 16em;
    }

    .formulier textarea {
        width: 18em;
    }
}





