/*
Theme Name: RR Zwembaden
Theme URI: http://www.rrzwembaden.nl
Description: Custom WordPress theme geconverteerd van WebsiteBaker voor RR Zwembaden
Author: RR Zwembaden
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: rrzwembaden
*/

/* === RESET & BASE === */
html { height: 100%; }
body {
    margin: 0; padding: 0;
    height: 100%;
    background: #598bba url(images/bodybg.jpg) no-repeat fixed left top;
    -o-background-size: 100% auto, auto;
    -moz-background-size: 100% auto, auto;
    -webkit-background-size: 100% auto, auto;
    background-size: 100% auto, auto;
    font: 0.82em/120% Arial, Helvetica, sans-serif;
}

area, usemap { border: 0; }
a img { border: 0; }
a { color: #17396e; text-decoration: none; }
a:hover { text-shadow: 0px 1px 0px #fff; }

p { margin: 5px 10px 15px 0; line-height: 140%; }

h1, h2, h3, h4 {
    padding: 0;
    margin: 5px 0 5px 0;
    color: #17396e;
}

h1 {
    font-size: 1.8em;
    font-weight: normal;
    text-shadow: 1px 6px 4px #68accf;
    line-height: 120%;
}

h2 {
    font-size: 1.6em;
    text-shadow: 1px 4px 3px #68accf;
}

h3 { font-size: 1.2em; }
h4 { font-size: 1em; line-height: 140%; margin: 4px 0 0 0; }
h5 { font-size: 0.9em; line-height: 120%; margin: 4px 0 0 0; }
h6 { font-size: 0.8em; line-height: 120%; margin: 2px 0 0 0; }

hr {
    border: dotted #327893 1px;
    height: 1px;
    clear: both;
}

li { padding-bottom: 4px; }

ul {
    margin-top: 0;
    margin-bottom: 10px;
    margin-left: 0.9em;
    padding-left: 0.9em;
    list-style-image: url(images/li.gif);
    list-style-type: square;
}

ol {
    margin-top: 0;
    margin-bottom: 10px;
    margin-left: 0.9em;
    padding-left: 0.9em;
}

address {
    line-height: 120%;
    margin: 10px 0 20px 0;
    padding-left: 10px;
    border-left: 6px solid #327893;
    font-style: normal;
    font-weight: bold;
}

blockquote {
    background: transparent url(images/bg50.png);
    font-size: 0.9em;
    padding: 10px;
    border-left: 2px solid #17396e;
    margin: 3px 0 20px 5%;
}

pre, code {
    padding: 0 0 20px 6px;
    margin: 3px 0 20px 0;
    border-top: 1px solid #327893;
    border-right: 1px solid #327893;
    border-bottom: 1px solid #327893;
    border-left: 6px solid #327893;
    background: transparent url(images/bg75.png);
    color: #327893;
    font-size: 1em;
    overflow: auto;
    line-height: 2.2em;
}

table {
    border-collapse: collapse;
    border-top: 1px solid #17396e;
    margin-top: 3px;
    margin-bottom: 5px;
    width: 100%;
    font: 0.85em;
}
table caption { font-size: 1.1em; text-align: left; }
table th { font-size: 0.9em; padding: 4px; text-align: left; vertical-align: top; background: transparent url(images/bg75.png); border-bottom: 1px solid #17396e; }
table tbody td { font-size: 0.9em; padding: 4px; vertical-align: top; background: transparent url(images/bg50.png); border-bottom: 1px solid #17396e; }
table tbody tr:hover td { background-color: #fff; }
tbody td p, tbody td h1, tbody td h2, tbody td h3, tbody td h4 { margin: 0; line-height: 110%; }

p img[align="right"], h3 img[align="right"] { float: right; margin: 4px 0 5px 10px; }
p img[align="left"], h3 img[align="left"] { float: left; margin: 4px 10px 5px 0; }

/* === LAYOUT === */
.container {
    max-width: 920px;
    width: 86%;
    min-height: 100%;
    margin: 0 auto;
    background: transparent url(images/bg30.png);
    border-left: 1px solid #c9e8f9;
    border-right: 1px solid #9ccae3;
}

.header { width: 100%; background: transparent url(images/headerbg.png) repeat-x; }
.header img.headerpic { max-width: 100%; float: left; }

.mainbox { margin: 20px 2% 20px 2%; }

.contentbox { width: 68%; float: left; background: transparent url(images/bg50.png); }
.rightbox { width: 30%; float: right; }
.rightbox .inner { padding: 0 5px 0 5px; }

#contentwide {
    width: 98%;
    padding: 10px 10px 10px 10px;
}

.footer-bar {
    width: 86%;
    max-width: 920px;
    margin: 0 auto;
    padding: 15px 0;
    text-align: center;
    color: #fff;
    font-size: 0.8em;
}
.footer-bar a { color: #c9e8f9; }

.clearer { height: 80px; clear: both; }

.rightbox .inner h1, .rightbox .inner h2 { color: #fff !important; }
.rightbox .inner h3 { color: #fff !important; }
.rightbox .inner { color: #fff !important; }

/* === NAVIGATION === */
a#mobilemenu {
    display: none;
}
a#mobilemenu span { display: block; padding: 10px 15px; font-weight: bold; }

.topmenubar { background-color: #4577a8; width: 100%; clear: both; }
.breadcrumbs { padding: 5px 5px 4px 15px; clear: both; background: transparent url(images/bg50.png); }

ul.nav {
    list-style-type: none;
    margin: 0; padding: 0;
    position: relative;
}

ul.nav li {
    float: left;
    list-style-type: none;
    list-style-image: none;
    position: relative;
    font-weight: normal;
    margin: 0; padding: 0;
    border-right: 1px solid #fff;
    background-color: #17396e;
}
ul.nav li li { background-color: #35588e; }

.nav li a {
    display: block;
    text-decoration: none;
    font-weight: bold;
    line-height: 120%;
    padding: 8px 10px;
    color: #fff;
}

.nav li a:hover, .nav li a:focus, .nav li a:active,
.nav li.current-menu-item > a,
.nav li.current-menu-parent > a,
.nav li.current_page_item > a,
.nav li.current_page_parent > a {
    background-color: #68accf;
    color: #000;
}

.nav li ul {
    background: none;
    display: none;
    width: 13em;
    margin: 0; padding: 0;
    position: absolute;
}

.nav li ul li {
    width: 13em;
    text-align: left;
    font-weight: normal;
    margin: 0;
    padding: 0;
    border-top: 1px solid #fff;
    border-right: none;
    float: none;
}

.nav li ul li a {
    color: #fff;
    font-weight: normal;
    padding: 6px 10px;
}

.nav li ul a:hover, .nav li ul li.current-menu-item > a { background-color: #68accf; color: #000; }

.nav li:hover ul, .nav li a:focus ul { display: block; }
.nav li ul ul { display: none; }
.nav li:hover ul ul { display: none; }
.nav li:hover > ul, .nav li li:hover > ul { display: block; z-index: 1000; }

.nav li ul li ul {
    margin: -20px 0 0 70%;
    padding: 0;
    z-index: 9999;
    display: none;
    width: 11em;
}

.nav li { position: relative; }
.nav li:hover { z-index: 10000; white-space: normal; }

/* === SLIDER === */
#s3slider {
    width: 920px;
    height: 222px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

#s3sliderContent {
    width: 920px;
    position: absolute;
    top: 0;
    margin-left: 0;
}

.s3sliderImage {
    float: left;
    position: relative;
    display: none;
}

.s3sliderImage span {
    position: absolute;
    left: 0;
    font: 10px/15px Arial, Helvetica, sans-serif;
    padding: 10px 13px;
    width: 374px;
    background-color: #fff;
    filter: alpha(opacity=70);
    -moz-opacity: 0.7;
    -khtml-opacity: 0.7;
    opacity: 0.7;
    color: #fff;
    display: none;
    top: 0;
}

.clear { clear: both; }

/* === SEARCH === */
.search_box { float: right; width: 130px; text-align: right; margin-top: 3px; }
.search_box .searchstring {
    width: 80px;
    border: 1px solid #505567;
    background-color: #f2f3f8;
    font-size: 12px;
    padding: 2px;
}
.search_box .submitbutton {
    vertical-align: top;
    margin: 0;
}

.printbutton { display: block; float: right; margin-right: 5px; }

/* === GALLERY === */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}
.gallery-grid a {
    display: block;
}
.gallery-grid img {
    max-width: 200px;
    height: auto;
    border: 2px solid #c9e8f9;
    transition: border-color 0.3s;
}
.gallery-grid img:hover {
    border-color: #17396e;
}

/* === WORDPRESS SPECIFICS === */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85em; color: #666; }
.alignleft { float: left; margin: 4px 10px 5px 0; }
.alignright { float: right; margin: 4px 0 5px 10px; }
.aligncenter { display: block; margin: 10px auto; }

/* Contact Form 7 styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    max-width: 400px;
    padding: 5px;
    border: 1px solid #505567;
    background-color: #f2f3f8;
    font-size: 12px;
    margin-bottom: 8px;
}
.wpcf7 input[type="submit"] {
    background-color: #17396e;
    color: #fff;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: bold;
}
.wpcf7 input[type="submit"]:hover {
    background-color: #68accf;
    color: #000;
}

/* === MOBILE === */
@media screen and (max-width: 768px) {
    .container { width: 96%; }
    .contentbox { width: 100% !important; float: none; }
    .rightbox { width: 100%; float: none; }
    #s3slider { height: auto; }
    #s3sliderContent { width: 100%; position: relative; }
    .s3sliderImage img { width: 100%; height: auto; }

    a#mobilemenu { display: block; background-color: #17396e; color: #fff; text-decoration: none; }
    ul.nav { display: none; }
    ul.nav.show { display: block; }
    ul.nav li { float: none; }
    ul.nav li ul { position: relative; width: 100%; }

    .search_box { float: none; width: 100%; text-align: left; padding: 5px; }
    .printbutton { display: none; }
}
