/*
Theme Name: Agrofocus
Theme URI: http://agrofocus.com
Author: Bas Botman
Author URI: http://labrisa.nl/
Version: 1.0
Text Domain: agrofocus
*/

p, a, ul ,li , h1, h2, h3, h4, h5, h6, h7, span {
    font-family: Arial, sans-serif;
}

form#search-form button[type="submit"]{
    line-height: 1.8em;
}
p, li, a, span, label, input.form-control, button, table.table td{
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8em;
}

h1 {
    font-family: 'MetaBold-Roman';
    font-size: 32px;
    color: #429A37;
    margin-bottom: 30px;
}

h2 a,
h2 {
    font-family: 'MetaBold-Roman';
    font-size: 22px;
    color: #0045ad;
    margin-bottom: 20px;
}

h3 a ,
h3 {
    font-family: 'MetaBold-Roman';
    color: #0045ad;
    font-size: 18px;
    line-height: 1.4em;
}

h4 {
    font-size: 14px;
    line-height: 1.8em;
    font-weight: bold;
}

body {
    padding-top: 30px;
    padding-bottom: 30px;
    background: url(./assets/images/bg_body.jpg) fixed;
    position: relative;
    height: 100%;
    overflow-y: scroll;
}

main ul li{
    padding-left: 5px;
}
main ul {
    padding-left: 22px;
    list-style-image: url('./assets/images/list-item.png');
}

.notice h1 ,
.quote h1 ,
.notice h2 ,
.quote h2 ,
.notice h3 ,
.quote h3 ,
.notice a ,
.quote a ,
.notice p ,
.quote p {
    color: #fff;
}

.background-top{

    background: url(./assets/images/background_header.png?t=2344) no-repeat center top;
    min-height: 61px;
}
.quote {
    padding: 12px 18px;
    margin-bottom: 20px;
    background: #429A37 url(./assets/images/background_sidebar.png) no-repeat center bottom;
}

a.notice{
    color: #fff !important;
}
.notice {
    display: block;
    text-align: right;
    padding: 12px 18px;
    margin-bottom: 20px;
    background: #e67104 url(./assets/images/background_sidebar.png) no-repeat center bottom;
}

.reference-quote {
    margin-bottom: 5px;
}

.reference-quote span {
    font-family: 'MetaBold-Roman';
    font-size: 16px;
    color: #ffffff;
}

.quote a ,
.notice a {
    text-decoration: underline;
}

.quote a:hover ,
.notice a:hover {
    text-decoration: none;
}

.legend-row{
    display: inline-block;
    margin-bottom: 15px;
    margin-right: 10px;
    white-space: nowrap;
}
a {
    color: #0045ad;
}

#projects-map {
    width: 100%;
    height: 100%;
}
.iframe-container {
   position: relative;
   width: 100%;
   padding-bottom: 56.25%; /* Ratio 16:9 ( 100%/16*9 = 56.25% ) */
   border: 2px solid #e8e8e8;
}

.iframe-container > * {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.sidebar.scrollspy li span.label{
    position: absolute;
    left: 28px;
    top: 19px;
    font-size: 24px;
    font-family: 'MetaBold-Roman';
    color: #fff;
    text-shadow: 2px 2px 7px #000;
}
.sidebar.scrollspy a.nav-link.active{
    border-color: rgba(100, 100, 100, 0.15);
}
.sidebar.scrollspy a.nav-link{
    border: 10px solid #fff;
}
.sidebar.scrollspy li{
    position: relative;
}
.sidebar.scrollspy{
    background: none;
    padding: 0;
}

.sidebar {
    background: rgba(100, 100, 100, 0.15) url(./assets/images/background_sidebar.png) no-repeat center bottom;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.sidebar .recommendation h3 {
    text-align: right;
}

.sidebar .recommendation p {
    color: #666;
    text-align: right;
}

div#navigation > .container {
    background-color: #ffffff;
}

div#navigation > .container > nav {
    background-color: #e8e8e8;
}

div#media-viewer > .container .image-wrapper img {
    width: 100%;
    position: absolute;
    left: 0;
    top: -50%;
}
div#media-viewer > .container .image-wrapper .header-hiha h4 {
    font-size: 18px;
    font-family: 'MetaBold-Roman';
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul#project-scrollspy li a.nav-link{
    margin: 0;
    padding: 0;
}
ul#project-scrollspy li{
    margin: 0;
    padding: 0;
    list-style-type: none;
    list-style-image: none;
}
ul#project-scrollspy{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.flex-direction-nav a:before{
    font-size: 28px;
}
.image-slide .image-wrapper{
    width: 100%;
    height: 300px;
    position: absolute;
    left: 0px;
    right: 0px;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
div#media-viewer > .container .header-hiha {
    padding: 12px 18px;
    text-align: right;
    display: block;
    height: 300px;
    color: #fff;
    background: rgba(60, 155, 51, 0.5) url(./assets/images/background_sidebar.png) no-repeat center bottom;

    text-shadow: 1px 1px #2a7521;
}

#gallery .gallery-item:hover img {
    border: 10px solid rgba(100, 100, 100, 0.3);
    cursor: pointer;
}

#gallery .gallery-item img {
    border: 10px solid rgba(100, 100, 100, 0.15);
}

#gallery .gallery-item{
    margin-bottom: 20px;

}

div#media-viewer > .container {
    background-color: #ffffff;
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
}

header >  #header.container {
    background-color: #ffffff;
    padding-left: 30px;
    padding-right: 30px;
}

.covfefe{
    display: block;
    height: 100%;
}
.covfefe span{

    vertical-align: bottom;
}

img.logo-agrofocus,
img.slogan-agrofocus {
    width: 100%;
}

header > #header-translations {
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
}

header #agrofocus-logo {
    width: 300px;
}

#navigation > .container {
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
}

footer > .container {
    padding-left: 30px;
    padding-right: 30px;
}

main > .container {
    padding: 20px 30px 60px;
    background: #ffffff url(./assets/images/background_waves.png) no-repeat center bottom;
}

#slogan{
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;

}
#slogan,
#language-switcher {
    height: 50%;
    min-height: 2em;
}

footer > .container {
    background-color: #0045ae;
}

footer > .container .footer-content{
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1em;
}
footer > .container .footer-content p {
    color: #ffffff;
    margin-bottom: 0;
}

footer > .container .footer-content p a {
    color: #ffffff;
}

div#navigation > .container > nav{
    background-color: #e8e8e8;
}


nav.navbar{
    padding: 0;
}

.sidebar.sticky{
    position: absolute;
    right: 15px;
    left: 15px;
}
#project-scrollspy .active{
    font-weight: bold;
    color: red;
}

.quote-scroller{
    position: relative;
    transition: max-height 0.50s ease-out;
    transition: height 0.50s ease-out;
    overflow: hidden;
}
blockquote:before{
    position: absolute;
    top: -15px;
    left: 10px;
    width: 40px;
    content: '\f10d';
    text-align: center;
    color: #0045ae;
    background-color: #e8e8e8;
    font-family: 'FontAwesome';
}

.reference-quote blockquote:before{
    background-color: #429A37;
    font-size: 1.25em;
    color: #fff;
}
.reference-quote blockquote{
    border-top: 1px solid #35862b;
    font-family: ARial;
    font-size: 14px;
    color: #fff;
}
blockquote
{
    position: relative;
    margin: 15px 0;
    margin-bottom: 0;
    padding: 16px 0;
    border-top: 1px solid #ddd;
    font-size: 1.25em;
    text-align: right;
}

ul.nav > li {
    position: relative;
}
ul.nav > li:hover {
    text-decoration: underline;
}

.current_page_ancestor ,
ul.nav  li.current-menu-item {
    background-color: #0045ad;
}

.flexslider {
    margin-bottom: 0px;
    border: 0;
}
ul.nav li.current_page_ancestor > a,
ul.nav li.current-menu-item > a{
    color: #fff;
}

main[data-post-slug="nieuwsbrieven"] ul{
    list-style-image: none;
    list-style-type: none;
    padding: 0;
}
ul.nav > li a {
    display: inline-block;
    padding: 6px 18px;
    color: #7f7f7f;
}

a[href$= ".pdf"]:before{

    content: '\f1c1';
    color: #eb1309;
    padding-right: 10px;
    font-family: 'FontAwesome';
}
ul.nav > li  > a {
    border-right: 2px solid #fff;
}

ul.nav li ul:hover,
ul.nav li:hover ul.sub-menu {
    display: block;
    position: absolute;
    left: 0;
    top: 37px;
    padding: 0;
    background-color: #e8e8e8;
    border-top: 2px solid #fff;
    z-index: 5;
}

.single .modal-content{
    border-radius: 0;
    border: 2px solid #e8e8e8;
}

body.page .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #f08200;
    margin-top: 5px;
}

form.wpcf7-form.sent .form-group {
    display: none;
}
.single .btn-primary ,
.page .btn-primary {
    color: #fff;
    background-color: #0045ae;
    border-color: #0045ae;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group.row label{
    font-size: 14px;
    font-family: Arial, sans-serif;
}
.single .btn-primary:hover,
.page .btn-primary:hover{
    color: #fff;
    cursor: pointer;
    background-color: #003c87;
    border-color: #003c87;
}
input.wpcf7-not-valid,
textarea.wpcf7-not-valid{
    border-color: #e67104;
}
body.page .wpcf7-validation-errors,
body.page div.wpcf7-spam-blocked{

    background: #e67104 url(./assets/images/background_sidebar.png) no-repeat center bottom;
}
body.page div.wpcf7-mail-sent-ok {
    background: #3f9b34 url(./assets/images/background_sidebar.png) no-repeat center bottom;
}

body.page .wpcf7-validation-errors,
body.page .wpcf7-spam-blocked,
body.page .wpcf7-mail-sent-ok {
    padding: 12px 18px;
    border: 0;
    font-family: Arial, sans-serif;
    margin: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 14px;
}

ul.nav li ul.sub-menu {
    display: none;
    list-style-type: none;
}

ul.nav li ul.sub-menu li a {
    min-width: 200px;
}

table.contact-table tr:first-child td{
    border-top: 0;
}
table.contact-table td img{
    margin-left: 30px;
    border: 2px solid #f5f5f5;
}
table.contact-table tr td:nth-child(1){
    width: 110px;
}
table.contact-table tr td:nth-child(3){
    width: 120px;
}
table.contact-table td{
    padding: 0;
    margin: 0;
    height: 1.50em;
    line-height: 2.50em;
}

@media (min-width: 768px) {
    .navbar-toggleable-sm .navbar-nav.mt-2 {
        margin-top: 0 !important;
    }
}

a.view-project-details{
    white-space: nowrap;
}
#anchor-buttons{
    display: none;
    margin-bottom: 10px;
}
.hidden{
    display: none;
}
.anchor-button{
    margin-right: 10px;
    margin-bottom: 10px;
}
#prev-gallery-image {
    left: -2px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}
#next-gallery-image {
    right: -2px;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
#prev-gallery-image,
#next-gallery-image {
    position: absolute;
    top: 50%;
    color: #fff;
    background-color: #0045ae;
    border-color: #0045ae;
    font-size: 14px;
    font-family: Arial, sans-serif;
}


#prev-gallery-image:hover,
#next-gallery-image:hover{
    color: #fff;
    cursor: pointer;
    background-color: #003c87;
    border-color: #003c87;
}

#image-gallery-wrapper {
    max-height: 800px;
}
#image-gallery-container {
    max-height: 800px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
body > #language-switcher{
    display: none;
}

.page-numbers.current,
.search-label{
    font-size: 12px;
    color: #fff;
    background-color: #0045ad;
    border-radius: 3px;
    padding: 2px 4px;
}
form.searchform label{
    display: none;
}
@media (max-width: 576px) {
    .legend-row{
        display: block;
        margin-left: 5px;
    }
}
@media (max-width: 768px) {

    .gallery-label {
        display: none !important;
    }

    .iframe-container {
        padding-bottom: 100%;
    }

    table.contact-table tr td:nth-child(3){
        display: none;
    }
    body{
        padding-top: 10px;
    }
    .logo-agrofocus{
        margin-bottom: 20px;
    }
    body > #language-switcher a{
        color: #fff;
        text-shadow: 1px 1px #2a7521;
    }
    body > #language-switcher{
        display: block;
        text-align: center;
    }
    header >  #header.container ,
    div#media-viewer > .container ,
    header > #header-translations ,
    #navigation > .container ,
    footer > .container ,
    main > .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    header #language-switcher{
        display: none;
    }
    #language-switcher a,
    #language-switcher p{
        font-size: 11px;
    }
    .navbar-toggler .navbar-toggler-hamburger{
        float:left;
        margin-right: 15px;
    }
    .navbar-toggler .navbar-toggler-label{
        font-family: 'MetaBold-Roman';
    }
    .navbar-toggler.collapsed{
        display: block;
        width: 100%;
        text-align: left;
        background-color: #0045ae;
        color: #fff;
    }

    .navbar-toggler{
        display: block;
        border-radius: 0;
        width: 100%;
        text-align: left;
        background-color: #fff;
        color: #e67104;
    }
    .navbar-toggle-icon{
        float: right;
        height: 25px;
        line-height: 25px;
    }
    .navbar-toggler.collapsed .navbar-toggle-icon .fa-chevron-up,
    .navbar-toggler .navbar-toggle-icon .fa-chevron-down{
        display: none;
    }

    .navbar-toggler.collapsed .navbar-toggle-icon .fa-chevron-down,
    .navbar-toggler .navbar-toggle-icon .fa-chevron-up{
        display: inline;
    }
    .navbar-collapse li.menu-item {
        border-bottom: 2px solid #fff;
    }

    ul.nav li:hover ul.sub-menu {
        display: none !important;
    }
    .navbar-collapse li.menu-item a{
        display: block;
        border-right: 0;
    }
}
@media (max-width: 992px) {


    #anchor-buttons{
        display: block;
    }

    div#media-viewer > .container .header-hiha {
        width: 50%;
        float: right;
    }

}