/*
Theme Name: MF Ming Fu
Theme URI: https://bitbucket.org/mingfu/theme-mingfu
Description: A custom child theme for Ming Fu
Author: Ming Fu
Author URI: https://mingfu.tw
Template: Avada
Version: 1.0.12
*/

/*
 * Tweaks
 */

html:not(.avada-header-color-not-opaque) .fusion-header-wrapper{
    position: relative !important;
}
@media only screen and (min-width: 801px){
    html:not(.avada-header-color-not-opaque) .fusion-header-wrapper .fusion-header{
        background-image: var(--header_bg_image) !important;
    }
}

.widthMedium{
    max-width: 45em;
    margin-left: auto;
    margin-right: auto;
}
.padTop{
    padding-top: 5em !important;
}
.padBottom{
    padding-bottom: 5em !important;
}

.fusion-menu .menu-button{
    padding: 15px 0;
}
.fusion-menu .menu-button a{
    color: #fff;
    background: #ad2222;
    height: 45px !important;
    border-radius: 4px;
    padding-left: 1em;
    padding-right: 1em;
}
.fusion-menu .menu-button a:after{
    display: none !important;
}
.fusion-menu .fusion-main-menu-search a{
    padding-left: 1em;
    padding-right: 1em;
}

.global-contact{
    padding-left: 0 !important;
}
@media only screen and (max-width: 640px){
    .global-contact{
        padding-right: 0 !important;
    }
}
.global-contact > .fusion-row > .fusion-layout-column{
    margin-bottom: 0;
}
.global-contact > .fusion-row > .fusion-layout-column > .fusion-column-wrapper{
    margin-right: 0;
}

.button-cloud ul{
    list-style: none;
    text-align: center;
}
.button-cloud li{
    display: inline-block;
    padding: 0.25em 0.75em;
    margin: 0.25em;
    border: 1px solid #747474;
    border-radius: 1em;
}

body .tablepress tfoot th,
body .tablepress thead th{
    background-color: #e8e8e8;
}
.tablepress .fusion-tooltip{
    color: inherit;
    border-bottom: 1px dashed var(--primary_color);
}

/*
 * MF List Items
 */

.mfListItems.timeline{
    border-left: 4px solid #D7E4ED;
    padding: 2em 0 1em;
}
.mfListItems .item{
    position: relative;
    margin-bottom: 2em;
}
.mfListItems .item:after {
    content: "";
    display: table;
    clear: both;
}
.mfListItems .step,
.mfListItems .body{
    float: left;
    width: 22%;
}
.mfListItems .step{
    text-align: center;
}
.mfListItems .body{
    width: 78%;
}
.mfListItems.timeline .step{
    width: 13%;
}
.mfListItems.timeline .body{
    width: 87%;
}
@media only screen and (min-width: 700px){
    .mfListItems .step{
        width: 15%;
    }
    .mfListItems .body{
        width: 85%;
    }
}
.mfListItems .body ul,
.mfListItems .body ol{
    padding-left: 1.5em;
}
.mfListItems .subtitle{
    font-style: italic;
}
.mfListItems .icon{
    font-size: 30px;
    margin-top: 0.75em;
    color: #1eb9ee;
}
.mfListItems.timeline .icon{
    position: absolute;
    top: -4px;
    left: -32px;
    width: 60px;
    height: 60px;
    background-color: #003366;
    border: 4px solid #fff;
    border-radius: 100%;
    box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.25);
}
.mfListItems.timeline .icon i{
    color: #fff;
    font-size: 30px;
    line-height: 52px;
}

/*
 * CPT Pages
 */

body.client-page-template-default .post,
body.portfolio-item-template-default .post{
    margin-top: 5em;
    margin-bottom: 5em;
}

/*
 * Portfolio Items
 */

@media only screen and (min-width: 641px){
    .mfPortfolioItem > .logo,
    .mfPortfolioItem > .body{
        vertical-align: top;
        float: left;
    }
    .mfPortfolioItem > .logo{
        width: 33%;
    }
    .mfPortfolioItem > .body{
        width: 67%;
    }
}
.mfPortfolioItem{
    max-width: 800px;
    margin: 0 auto;
}
.mfPortfolioItem .body .inner{
    padding: 0 1em 1em;
}
.mfPortfolioItem .title{
    margin-top: 0;
}
.mfPortfolioItemScreenshots ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
.mfPortfolioItemScreenshots li{
    margin-bottom: 1em;
}
@media only screen and (min-width: 641px){
    .mfPortfolioItemScreenshots ul{
        margin: 0 -1em;
        display: flex;
    }
    .mfPortfolioItemScreenshots li{
        flex: 1;
        margin: 1em;
    }
}

/*
 * Responsive Images
 */

.responsive-image{
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.responsive-image:before{
    content: '';
    display: block;
    padding-top: 69%;
}
.responsive-image a{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer;
}

/*
 * MF Prices
 */

div.mfPrices .name,
div.mfPrices .price{
    font-weight: bold;
}
div.mfPrices .price{
    float: right;
}
table.mfPrices{
    width: 100%;
}
table.mfPrices th,
table.mfPrices td{
    text-align: left;
}
table.mfPrices .right{
    text-align: right;
}

