/*
Theme Name:  Tambani Hydraulics
Theme URI:   http://TambaniHydraulics.richardgeorgedavis.com
Description: A child theme of Divi. This is a custom child theme created for Tambani Hydraulics.
Author:      Richard George Davis
Author URI:  http://luciditycreatives.com
Template:    Divi
Version:     1.0
*/

/* General changes */


/*- modules scale on hover -*/
.hover-scale {
transition: transform 0.5s ease;
}
.hover-scale:hover {
-ms-transform: scale(1.1);
-webkit-transform: scale(1.1);
transform: scale(1.1);
}

/*Horizontal Scroll-Bar Bug fix*/
#page-container { overflow:hidden; }

/* hide top header on scroll 
    #top-header {
            z-index: 9;}
    #main-header{
        transition: 0.5s;
        -moz-transition: 0.5s;
        -webkit-transition: 0.5s;}
    #main-header.et-fixed-header {
        top: 0 !important;}
*/
#top-menu-nav > ul > li > a:hover {
    opacity: 0.7 !important;
    color: #ed1c24 !important;
}

.et-fixed-header #top-menu li.current-menu-item > a {
font-weight: bold !important;
}

.mfp-bottom-bar .mfp-title {
    display:none;
    }

.dots-list {
    width: 100%;
}

.dots-list ol {
    padding-left: 50px;
    position: relative;
    margin-bottom: 20px;
    list-style: none !important;
}

.dots-list ol li {
    position: relative;
    margin-top: 0em;
    margin-bottom: 20px;
}

.dots-list ol li .number_divider {
    position: absolute;
    left: -50px;
    font-weight: 800;
    font-size: 2em;
    top: -5px;
}

.dots-list ol li:before {
    content: "";
    background: #8dbeb2;
    position: absolute;
    width: 2px;
    top: 1px;
    bottom: -21px;
    left: -24px;
}

.dots-list ol li:after {
    content: "";
    background: #8dbeb2;
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    top: 1px;
    left: -31px;
}

.dots-list ol li:last-child:before {
    content: "";
    background: #ffffff;
}


/* Menu Effect 4 - Circle */

.Menu_Effect a {
    margin: 5px;
}

.Menu_Effect a::before, .Menu_Effect a::after {
    position: absolute;
    top: 15%;
    left: 50%;
    width: 104px;
    height: 104px;
    border: 6px solid #FFF;
    border-radius: 50%;
    content: '';
    opacity: 0;
    -webkit-transition: -webkit-transform 1s, opacity 1s;
    -moz-transition: -moz-transform 1s, opacity 1s;
    transition: transform 1s, opacity 1s;
    -webkit-transform: translateX(-50%) translateY(-50%) scale(0.2);
    -moz-transform: translateX(-50%) translateY(-50%) scale(0.2);
    transform: translateX(-50%) translateY(-50%) scale(0.2);
}

.Menu_Effect a::after {
    width: 80px;
    height: 80px;
    border: 6px solid #ED1C24;
    -webkit-transform: translateX(-50%) translateY(-50%) scale(0.8);
    -moz-transform: translateX(-50%) translateY(-50%) scale(0.8);
    transform: translateX(-50%) translateY(-50%) scale(0.8);
    opacity: 0;
}

.Menu_Effect a:hover::before, .Menu_Effect a:hover::after, .Menu_Effect a:focus::before, .Menu_Effect a:focus::after {
    opacity: 1;
    -webkit-transform: translateX(-50%) translateY(-50%) scale(0.8);
    -moz-transform: translateX(-50%) translateY(-50%) scale(0.8);
    transform: translateX(-50%) translateY(-50%) scale(0.8);
}


/* ----- Waves ----- */

.box {
    width: 300px;
    height: 300px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.wave {
    opacity: 1;
    position: absolute;
    top: 3%;
    left: 50%;
    background: #ED1C24;
    width: 500px;
    height: 500px;
    margin-left: -250px;
    margin-top: -250px;
    transform-origin: 50% 50%;
    border-radius: 43%;
    animation: drift 2000ms infinite linear;
}

.wave.-three {
    animation: drift 4500ms infinite linear;
    background: #ED1C24;
}

.wave.-two {
    animation: drift 8000ms infinite linear;
    opacity: 1;
    background: #000;
}

.box:after {
    content: '';
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 11;
    transform: translate3d(0, 0, 0);
}

.title {
    position: absolute;
    left: 0;
    top: 25%;
    width: 100%;
    z-index: 1;
    line-height: 2em;
    text-align: center;
    transform: translate3d(0, 0, 0);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 25px;
    text-shadow: 0 1px 0 rgba(black, .1);
    text-indent: .3em;
    padding: 0 8% 0 8%;
 display: flex;
 justify-content: center;
 align-items: center;
font-family: 'Squada One', cursive !important;
line-height: 1.2em !important;
font-size: 30px !important;
}

@keyframes drift {
    from {
        transform: rotate(0deg);
    }
    from {
        transform: rotate(360deg);
    }
}


/*----- Divi-Image-Module-Hover-Effect -----*/

.border-hover .et_pb_column {
    overflow: hidden;
    position: relative;
}

.border-hover .et_pb_column img {
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.border-hover .et_pb_column:hover img {
    transform: scale(1.1);
}

.border-hover .et_pb_column:hover .et_pb_image:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    content: '';
}

.border-hover .et_pb_column .et_pb_promo_description:before {
    top: 50px;
    right: 30px;
    bottom: 50px;
    left: 30px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0, 1);
    transform: scale(0, 1);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    position: absolute;
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

.border-hover .et_pb_column .et_pb_promo_description:after {
    top: 30px;
    right: 50px;
    bottom: 30px;
    left: 50px;
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
    position: absolute;
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

.border-hover .et_pb_column:hover .et_pb_promo_description:before, .border-hover .et_pb_column:hover .et_pb_promo_description:after {
    -webkit-transition-delay: 0.15s;
    transition-delay: 0.15s;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.border-hover .et_pb_column .et_pb_promo_description h2 {
    opacity: 0;
    color: #fff;
    position: absolute;
    top: 37%;
    width: 100%;
    text-align: center;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    margin: 0;
    padding: 0;
}

.border-hover .et_pb_column .et_pb_promo_description p {
    opacity: 0;
    color: #fff;
    position: absolute;
    top: 42%;
    width: 100%;
    text-align: center;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.border-hover .et_pb_column:hover .et_pb_promo_description h2 {
    opacity: 1;
    position: absolute;
    top: 40%;
    width: 100%;
    text-align: center;
    color: #fff;
}

.border-hover .et_pb_column:hover .et_pb_promo_description p {
    opacity: 1;
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    color: #fff;
}

.border-hover .et_pb_promo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.border-hover .et_pb_promo_button {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*----- [ Blurb Transparent Services ] -----*/

.blurb_transparent.et_pb_blurb.et_pb_blurb:hover {
    background-color: rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}


/* Animation From Bottom  */

.bottom-animated.et-animated {
    opacity: 1;
    -webkit-animation: fadeBottom .7s 1 cubic-bezier(0.43, 0, .53, .94);
    -moz-animation: fadeBottom .7s 1 cubic-bezier(0.43, 0, .53, .94);
    -o-animation: fadeBottom .7s 1 cubic-bezier(0.43, 0, .53, .94);
    animation: fadeBottom .7s 1 cubic-bezier(0.43, 0, .53, .94);
}

/*-- Masonry-Layout --*/

/* Remove sidebar on all archive pages */
.search #main-content .container::before,
.archive #main-content .container::before {
    display: none;
}
.search #left-area,
.archive #left-area {
    width: 100%;
    float: none;
    padding-right: 0;
}
.search #sidebar,
.archive #sidebar {
    display: none;
}

/* Create Mansonory styles for archive pages */
.search #left-area,
.archive #left-area {
    -moz-column-count: 3;
         column-count: 3;
    -moz-column-gap: 60px;
         column-gap: 60px;
}

.archive .et_pb_post > a,
.search .et_pb_post > a {
    margin: -20px -20px 10px;
    display: block;
}

.search #left-area .et_pb_post,
.archive #left-area .et_pb_post {
    overflow: hidden; /* fix for Firefox */
    page-break-inside: avoid;
    break-inside: avoid-column;
    width: 100%;
    padding: 19px;
    border: 1px solid #d8d8d8;
    background-color: #fff;
    word-wrap: break-word;
    display: inline-block;
}

.search #left-area .et_pb_post h2,
.archive #left-area .et_pb_post h2 {
    font-size: 18px;
}

.search #left-area .et_pb_post.format-link,
.search #left-area .et_pb_post.format-quote,
.search #left-area .et_pb_post.format-audio,
.archive #left-area .et_pb_post.format-link,
.archive #left-area .et_pb_post.format-quote,
.archive #left-area .et_pb_post.format-audio{
    padding: 0;
}

.archive .et_pb_post .et_pb_image_container,
.archive .et_pb_post .et_main_video_container,
.archive .et_pb_post .et_audio_content,
.archive .et_pb_post .et_pb_slider,
.search .et_pb_post .et_pb_image_container,
.search .et_pb_post .et_main_video_container,
.search .et_pb_post .et_audio_content,
.search .et_pb_post .et_pb_slider {
    margin: -20px -20px 10px;
}

.archive .et_pb_post.format-audio .et_audio_content{
    margin: 0px -38px 0px;
}

.archive .et_pb_post .et_pb_slider .et_pb_slide,
.search .et_pb_post .et_pb_slider .et_pb_slide {
    min-height: 180px;
}

.archive .pagination,
.search .pagination {
    padding: 20px 0;
}

/* Media Queries */
@media screen and (max-width: 980px) {
    .search #left-area,
    .archive #left-area {
        -moz-column-count: 2;
            column-count: 2;
        -moz-column-gap: 60px;
            column-gap: 60px;
    }
}
@media screen and (max-width: 767px) {
    .search #left-area,
    .archive #left-area {
        -moz-column-count: 1;
            column-count: 1;
    }
    .search .et_pb_post.format-audio .et_audio_content,
    .archive .et_pb_post.format-audio .et_audio_content{
        margin: 0;
    }
    .search #left-area .et_pb_post.format-audio .et_audio_container .mejs-controls div.mejs-time-rail,
    .archive #left-area .et_pb_post.format-audio .et_audio_container .mejs-controls div.mejs-time-rail,
    .search #left-area .et_pb_post.format-audio .et_audio_container .mejs-controls .mejs-time-rail .mejs-time-total,
    .archive #left-area .et_pb_post.format-audio .et_audio_container .mejs-controls .mejs-time-rail .mejs-time-total{
        min-width: 300px!important;
        width: 300px!important;
    }
}
