/*
 * impleCode Documentation
 * http://impleCode.com
 *
 * Copyright 2014 impleCode
 * Free to use under the GPLv3 license.
 * http://www.gnu.org/licenses/gpl-3.0.html
 *
 * Contributing author: Norbert Dreszer
 */

.docs-features-section {
    margin: 0px auto 20px auto;
    max-width: 1200px;
}

.docs-feature {
    padding: 10px;
    background: #fff;
    width: 80%;
    border: 1px solid #ededed;
    margin: 10px auto;
    margin-left: 100px;
}

.template-grid .docs-feature-container {
    padding: 20px 15px;
}

.template-grid .docs-feature-container:nth-child(even) {
    padding-right: 0;
}

.template-grid .docs-feature-container:nth-child(odd) {
    padding-left: 0;
}

.docs-feature p:last-of-type {
    margin: 0 !important;
}

.docs-feature.linked-feature h3:after {
    font-family: dashicons;
    content: "\f103";
    font-size: 0.7em;
    padding-left: 3px;
}

.template-grid .docs-feature.linked-feature h3:after {
    display: none;
}

.docs-feature h3, #product_description .docs-feature h3 {
    font-size: 1.4em;
    margin: 0;
}

.docs-features-section h2 {
    margin-bottom: 20px;
}

.docs-features-section .docs-feature h3 a {
    font-size: 21px;
    text-decoration: none;
}

.docs-feature h3 a:hover {
    text-decoration: underline;
}

.docs-feature-container {
    position: relative;
}

.template-list .feature-image {
    max-width: 94px;
    display: inline-block;
    vertical-align: middle;
    border-left: 1px solid #ededed;
}

.template-list .feature-image .cboxElement:after {
    display: none;
}

.docs-feature.with-image {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.doc-example {
    background: #fff url('example-icon.png') no-repeat 99% 100%;
    background-size: 70px 64px;
}

.doc-example p:last-of-type {
    margin-bottom: 0;
}

.doc-box {
    min-height: 70px;
    border: 1px solid #cdcccc;
    /*box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px rgba(255, 255, 255, 0.5) inset;*/
    border-radius: 5px;
    padding: 15px 82px 15px 20px;
    margin-bottom: 20px;
}

.doc-quote {
    background: #fff url('quote-icon.png') no-repeat 99% 100%;
    background-size: 70px 64px;
    font-size: 16px;
    font-style: italic;
    margin: 20px auto;
    max-width: 90%;
    overflow: hidden;
}

span.quote-author {
    float: right;
    font-weight: bold;
    padding-top: 10px;
}

.from-to-td {
    background: url('right-arrow.png') no-repeat center;
    width: 75px;
}

table.from-to {
    padding: 10px 0;
}

.doc-category-name {
    font-weight: bold;
    margin: 10px 0;
    border-bottom: 1px solid #0a063b;
}

.template-grid .ic-zoomed-image, .template-grid .docs-feature p {
    margin-top: auto;
}

.ic-zoomed-image {
    width: 95%;
    height: 110px;
    position: relative;
    margin-bottom: 10px;
}

.template-grid .ic-zoomed-image {
    margin-bottom: 20px;
}

.ic-zoomed-image div {
    width: 100%;
    height: 88px;
    overflow: hidden;
    position: relative;
    border: 1px solid #dcddde;
}

.ic-zoomed-image img {
    position: absolute;
    top: -30%;
    left: -20%;
    max-width: 1000px;
    outline: 0;
    border: 0;
}

.docs-feature h3 a:visited {
    color: #0a063b;
}

.docs-feature-container .ic-zoomed-image > a {
    font-size: 14px;
    text-align: right;
}

.ic-zoomed-image a:after {
    display: none;
}

.docs-features-section-inside.template-grid {
    /*max-width: 740px;*/
    margin: 0 auto 20px auto;
    overflow: auto;
    display: grid;
    grid-template-columns: 50% 50%;
}

.template-grid .docs-feature-container {

}

.template-grid .docs-feature-container .docs-feature {
    width: 100%;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.template-grid .docs-feature {
    height: 100%;
    overflow: hidden;
}

.docs-feature .feature-read-more {
    display: block;
    text-align: center;
    background: #a9a4a3;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    padding: 1px 0;
}

.docs-product-button-container {
    text-align: center;
}


#top_mega_title .docs-product-button-container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    text-align: right;
    position: relative;
    margin-bottom: -35px;
    top: -15px;
    z-index: 99;
}

#product_description .docs-features-section h2, .docs-features-section h2 {
    max-width: 100%;
    border: 1px solid #dde4e4;
    text-align: center;
    padding: 5px;
    background: #fff;
}

@media (min-width: 900px) {
    .template-block .docs-feature.linked-feature {
        width: 100%;
        margin-left: 0;
    }

    .template-block .docs-feature {
        overflow: hidden;
    }

    .template-block .docs-feature.layout-full {
        padding-top: 19px;
    }

    .template-block .docs-feature.layout-left, .template-block .docs-feature.layout-right {
        display: grid;
        grid-template-areas: 'first second';
        grid-gap: 30px;
    }

    .template-block .docs-feature.layout-right .feature-image {
        grid-area: second;
    }

    .template-block-inside {
        display: grid;
        grid-template-areas: 'first''second';
        min-width: 300px;
    }

    .template-block .docs-feature.linked-feature h3:after {
        display: none;
    }

    .template-block .docs-feature {
        padding: 40px;
    }

    .template-block .layout-full > .feature-image, .template-block .layout-full > h3, #product_description .template-block .layout-full > h3 {
        margin: 20px auto;
        display: table;
    }

    .template-block .layout-full > h3, #product_description .template-block .layout-full > h3 {
        margin-top: 0;
    }

    .template-block .layout-full .template-block-inside {
        max-width: 75%;
        margin: 0 auto;
    }

    .docs-features-section .template-block .docs-feature h3 a {
        font-size: inherit;
    }

    .template-block .docs-feature h3, #product_description .template-block .docs-feature h3 {
        font-size: 2em;
    }

    .docs-features-section .template-block p, #product_description .docs-features-section .template-block p {
        font-size: 1.2em;
    }

    .template-block img {
        max-width: initial;
    }

    .template-block .docs-feature {
        margin: 50px auto;
    }

    .template-block .docs-feature.layout-full-left {
        display: block;
        padding-left: 2px;
        overflow: hidden;
    }

    .template-block .docs-feature.layout-full-right {
        display: block;
        padding-right: 2px;
    }

    .template-block .layout-full-left img, .template-block .layout-full-right img {
        margin: 0;
        border: 0;
        outline: 0;
        position: relative;
    }

    .template-block .layout-full-left .feature-image, .template-block .layout-full-right .feature-image {
        max-width: 60%;
        margin: 0;
        position: relative;
        display: inline-block;
        overflow: hidden;
    }

    .template-block .layout-full-left .feature-image {
        float: left;
        left: -3%;

    }

    .template-block .layout-full-right .feature-image {
        float: right;
        right: -3%;
    }

    .template-block .layout-full-right .template-block-inside, .template-block .layout-full-left .template-block-inside {
        padding-top: 5%;
    }

    .template-block .layout-full-left .template-block-inside, .template-block .layout-full-right .template-block-inside {
        max-width: 40%;
        min-width: 0;
    }

    .template-block .feature-read-more {
        max-width: 350px;
        background: #d0cfcf;
        float: right;
        display: inline-block;
        padding: 0 7px;
        margin-right: 15px;
        font-size: 1.1em;
    }

    .layout-full .template-block-inside {
        display: grid;
        grid-template-areas:
        'first second';
        align-items: center;
        grid-gap: 10px;
    }

    .layout-full.layout-full-right .template-block-inside, .layout-full.layout-full-left .template-block-inside {
        grid-template-areas:
        'first'
        'second';
    }

    .template-block .docs-feature.full-right-corner-top img, .template-block .docs-feature.full-left-corner-top img {
        outline: 0;
    }

    .template-block .docs-feature.full-right-corner-top .feature-image {
        position: relative;
        top: -20%;
        overflow: hidden;
    }

    .template-block .docs-feature.full-left-corner-top .feature-image {
        position: relative;
        top: -20%;
        left: -5%;
        overflow: hidden;
    }

    .template-block .docs-feature.full-right-corner-bottom .feature-image {
        position: relative;
        bottom: -20%;
        right: -5%;
        outline: 0;
        overflow: hidden;
    }

    .template-block .docs-feature.full-left-corner-bottom .feature-image {
        position: relative;
        bottom: -20%;
        left: -5%;
        outline: 0;
        overflow: hidden;
    }

    .template-block .docs-feature.full-left-corner-top {
        padding-left: 0;
        grid-template-columns: minmax(50%, 60%) minmax(40%, 50%);
    }

    .template-block .docs-feature.full-right-corner-top {
        padding-right: 0;
        grid-template-columns: minmax(40%, 50%) minmax(50%, 60%);
    }

    .template-block .docs-feature.full-left-corner-bottom {
        padding-left: 0;
        grid-template-columns: minmax(50%, 60%) minmax(40%, 50%);
    }

    .template-block .docs-feature.full-right-corner-bottom {
        padding-right: 0;
        grid-template-columns: minmax(40%, 50%) minmax(50%, 60%);

    }

    .full-right-corner-top .template-block-inside, .full-left-corner-top .template-block-inside {
        padding-top: 20%;
    }

    .full-right-corner-bottom .template-block-inside, .full-left-corner-bottom .template-block-inside {
        padding-top: 6%;
    }

    .template-block .layout-full, .template-block .full-right-corner-bottom, .template-block .full-left-corner-bottom {
        grid-template-rows: minmax(0px, 70vh);
    }

    /*
    .template-block .layout-full img {
        max-height: 50vh;
        width: auto;
    }
    */
    .template-block .layout-full-only img {
        max-width: 100%;
    }
}

.template-block .docs-feature-container:nth-child(3n) .docs-feature {
    background: #c7c7c7;
}

.template-block .docs-feature-container:nth-child(4) .docs-feature {
    background: #c7c7c7;
}

.template-block .docs-feature-container:nth-child(3) .docs-feature, .template-block .docs-feature-container:nth-child(12) .docs-feature, .template-block .docs-feature-container:last-child .docs-feature {
    background: #fff;
}

@media (max-width: 900px) {
    .template-block img {
        display: none;
    }
}

@media (max-width: 1000px) {
    #top_mega_title .docs-product-button-container {
        top: 20px;
    }
}

@media (max-width: 600px) {
    .template-list .feature-image {
        display: none;
    }

    .docs-feature, .docs-feature.with-image {
        width: 100%;
        margin-left: 0;
    }

    .doc-box {
        padding-right: 10px;
        background: #fff;
    }

    .docs-features-section-inside.template-grid {
        display: block;
    }

    .template-grid .docs-feature-container:nth-child(even) {
        padding-right: 0px;
    }

    .template-grid .docs-feature-container:nth-child(odd) {
        padding-left: 0px;
    }

    .template-grid .docs-feature-container {
        padding: 20px 0;
    }
}