/*
* Theme Name: nebojteseinternetu.cz
* Description: Šablona Jak na Internet
* Version: 1.0 | 09/2016
*
* Author: Alix Guillard @ nic.cz
*
* Style contents
* ==========================================================================================
*
*
* ==========================================================================================
*/

*,
body {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #000;
}

.clearmac {
    clear: both;
}

.grid_962px {
    width: 962px;
}

h1,
.main-section h1 {
    font-family: Roboto, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.main-section {
    line-height: 25px;
    background: none;
    padding: 10px 0;
    margin: 0;
    width: 960px;
    height: 360px;
}

.main-section p {
    max-height: 195px;
}

a {
    color: #f9827c;
    text-decoration: underline;
    font-weight: bold;
}

a:visited {
    color: #8c4a46;
}

a:active {
    color: #f00;
}

a:hover {
    color: #000;
}

.search-result h2 a *,
.search-result h2 a {
    color: #f9827c;
    text-decoration: underline;
    font-weight: bold;
}

#content.search {
    background-color: white;
}

#main ul li {
    list-style-image: url('../img/list.png');
}

div#bodywrap {
    background-image: -webkit-linear-gradient(#f9827c 155px, #cfd8dc 155px, #cfd8dc 555px, white 555px);
    background-image: -o-linear-gradient(#f9827c 155px, #cfd8dc 155px, #cfd8dc 555px, white 555px);
    background-image: linear-gradient(#f9827c 155px, #cfd8dc 155px, #cfd8dc 555px, white 555px);
}

.inner {
    background-image: none;
}

#content #accordion {
    margin: 20px -10px 0 10px;
}

.sidemenu li span,
.sidemenu li a {
    border-bottom: 1px solid #fff;
}

.sidemenu li span,
.sidemenu li span:hover {
    background-color: #e0e6e8;
    cursor: default;
}

.sidemenu li.open span,
.sidemenu li.open span:hover {
    background: #535b6c none repeat scroll 0 0;
    color: #fff;
}

.sidemenu li a {
    background: #a7acb4 none repeat scroll 0 0;
}

.sidemenu li a:active,
.sidemenu li a:hover {
    background: #535b6c none repeat scroll 0 0;
    color: #fff;
}

#header h1 {
    padding: 0;
    height: 155px;
}

#header h1 img {
    margin: 40px 0 0 -7px;
}

#header .hledat {
    margin-top: 60px;
}

#player {
    height: 349px;
    margin: 0;
}

.undervid.underv2 {
    background-color: #a7acb4;
    margin: 0 0 30px;
}

.undervid .video-left,
.undervid .video-right {
    background-color: #535b6c;
}

.undervid .video-left.off,
.undervid .video-right.off {
    background: #535b6c;
}

.numberbox {
    background: #535b6c;
    border-radius: 50%;
    font-size: 44px;
    height: 68px;
    margin: 431px 0 0 -109px;
    padding-top: 17px;
}

.goup {
    background: rgba(0, 0, 0, 0) url('../img/up-arrow.png') no-repeat scroll left center;
    color: #f9827c;
}

#main,
.main-col,
.stuff .episodes,
.stuff .fb-feed {
    margin-bottom: 50px;
}

#content {
    padding-bottom: 350px;
}

#footer {
    margin-top: -350px; /* negative value of footer height */
    height: 350px;
    background: #e6ebed;
    font-family: Roboto, sans-serif;
    font-size: 32px;
}

#footer p {
    line-height: 25px;
    padding-left: 0;
}

#footer .grid_left {
    width: 620px;
}

#footer .grid_left,
#footer .grid_right {
    padding-top: 20px;
}

#footer strong.h3 {
    padding-left: 0;
    font-family: Roboto, sans-serif;
    font-size: 32px;
    font-weight: 700;
}

.cznic,
.cznic:hover {
    -webkit-transition: all 0s ease-in-out;
    -moz-transition: all 0s ease-in-out;
    -o-transition: all 0s ease-in-out;
    -ms-transition: all 0s ease-in-out;
    transition: all 0s ease-in-out;
    background: url('../img/cznic-logo.png') transparent center 0 no-repeat;
    width: 125px;
    height: 29px;
    display: block;
    float: right;
}

/* HOME */

.main-col {
    padding-top: 22px;
}

.main-section .text a.button {
    display: inline-table;
    background-color: transparent;
    border: 2px solid #f9827c;
    border-radius: 5px;
    padding: 16px 20px;
    color: #e57873;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.main-section .text a.button:hover {
    color: white;
    background-color: #f9827c;
}

.main-section .video {
    float: right;
    background-color: black;
    width: 580px;
    height: 326px;
}

.video .markdown-text {
    height: 326px;
    width: 580px;
    background-color: transparent;
}

.stuff .episodes,
.stuff .fb-feed {
    width: 460px;
}

.stuff .fb-feed {
    margin-top: 65px;
}

.submain-section {
    padding: 0;
}

#search-results .search-result .thumbnail img:hover {
    border: 1px solid #f9827c;
}

/* Responsive design
* because of the existing design
* usual thresholds are not kept
*/

@media (max-width: 1300px) {
    .grid_962px {
        padding: 0 50px;
    }

    .numberbox {
        display: none;
    }
}

@media (max-width: 1032px) {
    #header,
    .main-section,
    .submain-section,
    .main-col,
    .grid_962px {
        width: 100%;
        padding: 0;
    }

    #header .hledat {
        position: absolute;
        left: 590px;
    }

    #header h1 {
        margin-left: 20px;
    }

    .main-section .video,
    .main-section .video iframe,
    .video .markdown-text,
    #main,
    #player,
    #player iframe {
        width: 550px;
        margin: 0;
        padding: 0;
        display: block;
    }

    .main-section .text {
        font-size: smaller;
        width: 300px;
    }

    .stuff .episodes {
        margin: 50px 0 20px;
    }

    .stuff .episodes,
    .stuff .sidemenu.main,
    .stuff .sidemenu.main li {
        width: 350px;
    }

    #content,
    #footer .grid_left {
        box-sizing: border-box;
        margin: 0 auto;
        padding: 0 15px;
        width: 100%;
    }

    #content #accordion {
        float: left;
    }

    #footer .grid_right {
        margin-right: 20px;
    }
}

@media (max-width: 930px) {
    .main-section .video,
    .main-section .video iframe,
    .video .markdown-text,
    #main,
    #player,
    #player iframe {
        width: 440px;
        margin: 0;
        padding: 0;
    }

    #header .hledat {
        position: absolute;
        left: 490px;
    }

    .stuff .episodes {
        width: 100%;
        display: inline-block;
    }

    .stuff .sidemenu.main,
    .stuff .sidemenu.main li {
        width: 100%;
    }

    .stuff .fb-feed {
        display: none;
    }
}

@media (max-width: 810px) {
    .main-section .video,
    .main-section .video iframe,
    .video .markdown-text,
    #main,
    #player,
    #player iframe {
        width: 390px;
        margin: 0;
        padding: 0;
    }

    #header .hledat {
        position: absolute;
        left: 440px;
    }

    #socialmedia table td {
        padding: 5px 0 0 5px;
    }

    #socialmedia table td.plusone * {
        width: 32px !important;
        overflow: hidden;
    }
}

@media (max-width: 760px) {
    .grid_below {
        padding: 0 10px;
    }

    .clearmac {
        clear: none;
    }

    .markdown-text {
        padding: 5px;
    }

    h1,
    .main-section h1,
    #footer strong.h3 {
        font-size: 20px;
        padding: 5px;
    }

    .main-section .video,
    .main-section .video iframe,
    .video .markdown-text,
    #header,
    #content,
    #main,
    #player,
    #player iframe,
    .grid_962px {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #header h1 img {
        margin: 10px;
        width: auto;
        height: 40px;
    }

    #header h1 {
        height: 60px;
    }

    #header .hledat {
        display: none;
    }

    div#bodywrap {
        background-image: -webkit-linear-gradient(#f9827c 60px, white 60px);
        background-image: -o-linear-gradient(#f9827c 60px, white 60px);
        background-image: linear-gradient(#f9827c 60px, white 60px);
    }

    .main-section .text,
    .main-section .video {
        display: inline-block;
    }

    .video .markdown-text {
        background-color: white;
    }

    #main h1,
    #main .markdown-text,
    .main-section .text,
    .episodes h2 {
        padding-left: 15px;
    }

    .sidemenu.main,
    #content #accordion {
        margin: 0 0 20px;
        padding: 0;
        width: 100%;
        background: none;
        min-height: 0;
    }

    .stuff .episodes {
        margin: 50px 0 0;
    }

    #footer {
        height: initial;
    }

    #footer .grid_left,
    #footer .grid_right {
        padding-top: 5px;
        width: 100%;
        display: inline-block;
    }

    .cznic {
        margin-right: 10px;
    }

    #socialmedia table td {
        padding: 5px 0 0 2px;
    }
}

#footer .error-page .grid_right {
    float: none;
}

#footer .error-page .grid_left {
    float: none;
    line-height: 1.5;
    margin: 2rem auto 1.5rem;
    text-align: center;
    padding-top: 0;
}

#footer .error-page .grid_left ul {
    margin: 2rem auto 0;
    opacity: 0.6;
    text-align: left;
    width: 80%;
}

#footer .error-page .grid_left li {
    line-height: 1.5;
    list-style-type: disc;
}

#footer .error-page .grid_left li a {
    color: #111;
}

#footer .error-page .grey {
    padding-left: 15px;
}

.space-top {
    margin-top: 2rem;
}

#content .stuff .sidemenu.main li {
    width: 460px;
}
