/*
Theme Name: Feeders Twenty Fifteen
Theme URI: https://github.com/birdlife-cz/feeders/
Author: Honza Kopecký, honza.kopecky95@gmail.com
Description: Feeders WordPress theme based on the TwentyFifteen theme.
Version: 14.1.0

The theme version is replaced by the version number from package.json during deployment procedure and then
reverted back so it can be again replaced during next deploy.
*/

/************************* GLOBAL STYLES *************************/

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    min-height: 100%;
    font-size: 18px;
}

a {
    color: inherit;
    outline: none;
}

#wpadminbar,
.site-info,
.secondary-toggle,
.skip-link,
.dropdown-toggle,
.post-edit-link {
    display: none;
}

.wp-caption {
    display: block;
    text-align: center;
}

.alignright {
    float: right;
    clear: right;
}

.alignleft {
    float: left;
    clear: left;
}

.alignright,
.alignleft,
.alignnone,
figure {
    margin: 0 20px 20px 20px;
}

.clearfix {
    overflow: auto;
}

.clearfix::after {
    content: '';
    clear: both;
    display: table;
}

@media screen and (min-width: 850px) {
    .mobile-only {
        display: none !important;
    }
}

/************************* NAVIGATION SIDEBAR *************************/

#sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 30vw;
    min-height: 100%;
    border-right: 1px solid #ebedef;
    background-color: #fff;
    opacity: 1;
    color: #777;
    text-align: right;
    box-sizing: border-box;
}

#sidebar > * {
    display: inline-block;
    min-width: 50%;
    margin-right: 20px;
    text-align: left;
}

.site-branding {
    margin-top: 26px;
    margin-bottom: 38px;
    height: 63px;
    display: flex;
    align-items: flex-end;
}

.site-branding img {
    height: 63px;
    margin-right: 20px;
    width: auto;
}

.site-branding .site-title {
    margin: 0;
    color: #bec4ca;
    font-size: 1.2em;
    font-weight: bold;
}

.site-branding .site-title a {
    color: inherit;
    text-decoration: none;
}

#site-navigation-trigger {
    display: none;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar ul li {
    color: #97a0aa;
    font-size: 1em;
}

#sidebar ul li a {
    display: block;
    text-decoration: none;
}

#sidebar ul li a:hover {
    color: #0070e4;
    transition: color 0.2s;
}

#sidebar ul.sub-menu {
    padding-left: 20px;
    font-size: 0.88em;
    padding-top: 16px;
}

#sidebar .main-navigation li:not(:last-child) {
    padding-bottom: 16px;
}

#sidebar .main-navigation .current-menu-item > a {
    color: #0070e4;
    font-weight: bold;
}

.social-navigation {
    font-size: 0.6em;
    color: #bec4ca;
    padding: 0.5em 0;
    background-color: white;
    box-shadow: white 0 0 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 30vw;
}

.social-navigation ul {
    margin: 0;
    text-align: center;
}

.social-navigation ul li {
    display: inline-block;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

@media screen and (max-width: 850px) {
    #sidebar {
        right: 0;
        height: 60px;
        width: 100vw;
        min-height: auto;
        border-right: none;
        box-shadow: 0 4px 8px 0 rgba(55, 64, 71, 0.2);
        padding-left: 20px;
        background-color: #f5f5f5;
    }

    #sidebar > * {
        display: block;
        min-width: auto;
        margin-right: 0;
    }

    #sidebar .custom-html-widget {
        display: none;
    }

    .site-branding {
        margin-top: 7px;
        margin-bottom: 0;
        height: 50px;
        display: flex;
        align-items: flex-end;
    }

    .site-branding img {
        height: 50px;
    }

    .site-branding .site-title {
        font-size: 16px;
        font-weight: 600;
    }

    #site-navigation-trigger {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        padding: 20px;
        content: 'MENU';
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.2s;
    }

    #site-navigation-trigger:before {
        content: '\2630 ';
        padding-right: 1em;
    }

    #site-navigation-trigger:hover {
        color: #0070e4;
    }

    #site-navigation-trigger-checkbox:checked ~ #site-navigation-trigger {
        color: #0070e4;
    }

    #site-navigation {
        display: none;
        position: absolute;
        z-index: 99999999;
        top: 60px;
        left: 0;
        right: 0;
        padding-left: 20px;
        background-color: #f5f5f5;
        box-shadow: white 0 40px 40px;
    }

    #site-navigation-trigger-checkbox:checked ~ #site-navigation {
        display: block;
    }

    .social-navigation {
        display: none;
    }
}

/************************* CONTENT *************************/

.site-content {
    position: absolute;
    z-index: 10;
    left: 30vw;
    top: 0;
    width: calc(100% - 30vw);
    min-height: 100%;
}

.entry-header,
.entry-content {
    width: 600px;
    max-width: calc(100vw - 40px);
    margin: 0 auto 30px;
}

.entry-title {
    color: #97a0aa;
    font-size: 2.66em;
    font-weight: bold;
}

.entry-content {
    color: #666;
    font-size: 1.11em;
    letter-spacing: 0.00333em;
    line-height: 1.77em;
}

.entry-content h1 {
    color: #384048;
    font-size: 32px;
    font-weight: 600;
}

.entry-content a {
    color: #0070e4;
    text-decoration: none;
}

.entry-content input,
.entry-content textarea {
    max-width: calc(100% - 40px);
}

.entry-content img {
    height: auto;
    max-width: 100%;
}

.site-content .post-thumbnail {
    display: none;
}

.site-content h3 {
    margin-top: 50px;
}

.site-content input[type='submit'],
.button-big {
    border-radius: 4px;
    background-color: #0070e4;
    box-shadow: 0 4px 8px 0 rgba(55, 64, 71, 0.2);
    font-size: 1.11rem;
    font-weight: bold;
    line-height: 1.3;
    color: #fff;
    padding: 14px;
    width: 227px;
    border: none;
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
}

.button-small {
    border-radius: 4px;
    background-color: #0070e4;
    box-shadow: 0 4px 8px 0 rgba(55, 64, 71, 0.2);
    color: #fff;
    padding: 12px;
    font-size: 0.88rem;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
}

@media screen and (max-width: 850px) {
    #content {
        position: absolute;
        left: 0;
        top: 60px;
        width: 100%;
        min-height: auto;
    }

    .entry-title {
        font-size: 40px;
        margin-top: 36px;
        margin-left: 0;
        text-align: center;
    }

    .entry-content {
        font-size: 18px;
        width: 92vw;
        max-width: unset;
        padding: 15px;
    }

    .entry-content h1 {
        font-size: 24px;
        font-weight: 600;
    }
}

/************************* CONTACT FORM 7 *************************/

.wpcf7-form .section {
    margin-bottom: 40px;
}

.wpcf7-form .section.submit {
    text-align: center;
}

.wpcf7-form br {
    display: none;
}

.wpcf7-form .section.fields label {
    display: inline-block;
    margin: 5px;
    font-weight: bold;
    color: #999;
    font-size: 15px;
    text-transform: uppercase;
    width: calc(50% - 50px);
}

.wpcf7-form .section.fields label input {
    display: block;
    width: 100%;
    font-size: 1em;
    border: 0;
    outline: 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #ccc;
}

.wpcf7-form .section.fields label input:focus {
    border-bottom-color: #0070e4;
}

.wpcf7-form .section.agreement label {
    display: block;
}

.wpcf7-form input[type='submit'] {
    border: none;
    padding: 10px;
    background-color: #0070e4;
    color: #fff;
    border-radius: 4px;
}

.wpcf7-form .wpcf7-spinner {
    position: absolute;
    margin-top: 9px;
}

@media screen and (max-width: 850px) {
    .wpcf7-form .section.fields label {
        width: 100%;
    }
}

/************************* REGULAR PAGES *************************/

.panel-grid-cell .custom-html-widget {
    text-align: left;
}

.panel-grid-cell .custom-html-widget a {
    text-decoration: none;
}

/************************* HOMEPAGE *************************/

.layout-main .layer-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100vh;
}

.layout-main .layer-color {
    min-height: 100vh;
}

.layer-half-width {
    width: 50%;
    min-width: 500px;
}

.layout-main .layer-content {
    z-index: 30;
    text-align: left;
    padding-left: 83px;
    padding-top: 10vh;
    line-height: initial;
    font-size: 1rem;
}

.site-content .layout-main h1,
.site-content .layout-main .countdown,
.site-content .layout-main .photo-copyright {
    color: #fff;
}

.layout-main h1 {
    margin-top: 0;
    margin-left: 0;
    font-size: 3em;
    font-weight: bold;
    width: 70%;
}

.layout-main .countdown {
    margin-bottom: 40px;
    margin-top: 30px;
    text-shadow: black 0 0 5px;
}

.layout-main .countdown .value {
    color: #dee1e3;
    font-size: 1.77em;
    font-weight: 600;
}

.layout-main .countdown .label {
    color: #97a0aa;
    text-transform: uppercase;
    font-size: 0.77em;
    font-weight: 600;
}

.layout-main .countdown .unit {
    display: inline-block;
    margin-right: 16px;
}

.layout-main .photo-copyright {
    position: static;
    padding-right: 30px;
    margin-top: -105px;
    font-size: 0.77em;
    text-align: right;
}

.layout-main .photo-copyright a {
    color: inherit;
    text-decoration: underline;
}

.layout-main .photo-copyright a:hover {
    color: inherit;
    text-decoration: none;
}

.about-footer {
    position: fixed;
    bottom: 0;
    left: 30vw;
    width: calc(100vw - 30vw);
    background-color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

.about-footer a {
    display: inline-block;
}

.about-footer a img {
    height: 45px;
    width: auto;
    margin: 0 10px;
}

.about-footer .copyright {
    margin-top: 47px;
    color: #bec4ca;
    font-size: 0.88em;
}

@media screen and (max-width: 850px) {
    .about-footer {
        position: static;
        width: 100vw;
    }

    .layout-main .layer-image,
    .layout-main .layer-color {
        min-height: calc(100vh - 64px /*top menu*/ - 80px /*footer*/);
    }

    .layer-half-width {
        width: 100%;
        min-width: auto;
    }

    .layout-main .layer-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .layout-main h1 {
        width: calc(100% - 60px);
    }

    .layout-main .countdown {
        display: none;
    }

    .layout-main .countdown .unit {
        text-align: center;
        margin-right: 12px;
        margin-left: 12px;
    }

    .layout-main .photo-copyright {
        margin-top: 0;
    }
}
