/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.5;
    min-height: 100%;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

*, :before, :after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background: url('../img/bg.jpg') no-repeat center center;
    background-size: cover;
    min-width: 980px;
    font-family: 'PT Serif', serif;
}

a {
    color: #0a3d7e;
}

main img {
    max-width: 100%;
    height: auto;
}

.header {
    background-color: white;
}

.header-headings {
    background: url('../img/erb.jpg') no-repeat 0px 25px;
    background-size: auto 100px;
    width: 960px;
    margin: 0 auto;
    padding: 30px 0 40px;
}

.header-headings h1 {
    margin: 0 0 0 110px;
}

.header-headings a {
    text-decoration: none;
}

.header-headings h2 {
    margin: 0 0 0 110px;
}

.header-nav {
    background-color: #0a3d7e;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    0px 5px 5px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         0px 5px 5px 0px rgba(50, 50, 50, 0.75);
}

.header-nav ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.header-nav li {
    display: inline-block;
    position: relative;
}

.header-nav a {
    display: block;
    font-size: 20px;
    padding: 5px 20px;
    text-decoration: none;
    color: white;
}

.header-nav .current-menu-item > a, .header-nav .current-page-ancestor > a, .header-nav a:hover, .header-nav a:focus, .header-nav a:active {
    color: #0a3d7e;
    background-color: white;
}

.header-nav li:hover .sub-menu, .header-nav li:focus .sub-menu, .header-nav li:active .sub-menu {
    display: block;
}

.header-nav .sub-menu {
    display: none;
    position: absolute;
    z-index: 9999;
    background-color: #0a3d7e;
    width: 200%;
}

.header-nav .sub-menu li {
    display: block;
}

.header-nav .sub-menu a {
    border-right: 1px solid #0a3d7e;
}

.header-nav .sub-menu li:last-of-type a {
    border-bottom: 1px solid #0a3d7e;
}

#homepage-slider {
    max-width: 960px;
    margin: 60px auto -20px;
    box-shadow: 0 0 10px 0 rgba(50, 50, 50, 0.75);
}

#homepage-slider .splide__slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.main {
    margin-top: 60px;
}

.main-article-wrap {
    width: 960px;
    margin: 0 auto;
    background-color: white;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    padding: 0 20px 20px;
}

/**/

.heading-blog {
    margin-bottom: 0;
}

.date-blog {
    margin-bottom: -16px;
    display: block;
}

.pagination {
    text-align:center; margin-top: 48px;
}

.pagination a, .pagination span.pages, .pagination span.dots, .pagination span.current {
    height: 2rem; line-height: 2rem; display: inline-block; text-decoration: none; background-color: #eee; padding: 0 0.5rem; margin: 0 0.25rem;
}

.pagination a:hover, .pagination a:focus, .pagination a:active {
    background-color: #aaa;
}

.pagination span.current {
    color: #fff; background-color: #0a3d7e;
}

.pagination a.first, .pagination a.last {
    display: none;
}

/**/
img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img.alignright {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
}

img.alignleft {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
}

.alignright {
    float: right;
}

.alignleft {
    float: left;
}
/**/

.main-aside {
    width: 960px;
    margin: 40px auto;
}

.main-aside .aktuality, .main-aside .uredni-deska, .main-aside .obecni-urad {
    width: 31.3%;
    float: left;
    background-color: white;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    padding: 0 20px;
}

.main-aside .uredni-deska {
    margin-left: 3.05%;
}

.main-aside .uredni-deska div {
    margin-bottom: 20px;
}

.main-aside .uredni-deska div.reg_rss-output {
    margin-bottom: 0px;
    padding: 0;
}

.main-aside .uredni-deska small {
    display: block;
}

.main-aside .obecni-urad {
    float: right;
}

.main-aside .aktuality article h1 {
    font-size: 20px;
    margin-bottom: 0;
}

.footer {
    width: 960px;
    margin: 0 auto 20px;
    color: white;
}

.footer-aside {
    background-color: white;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         0px 0px 10px 0px rgba(50, 50, 50, 0.75);
    padding: 10px 20px;
    margin: 0 auto 30px;
    text-align: center;
    width: 75%;
}

.footer-aside a {
    margin: 0 20px;
}

.footer a {
    color: #fcdb00;
}

.footer-left {
    float: left;
    margin: 0;
}

.footer-right {
    float: right;
    margin: 0;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.gallery_box {
    width: 250px;
    height: auto;
}

.gallery_box li img {
    width: auto !important;
    height: auto !important;
    border: 0 !important;
}


.header-headings {
    width: 80%;
    float: left;
}

header .main-aside {
    margin: 0 auto;
    padding: 40px 0;
}
