/*
 * jQuery FlexSlider v2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.php
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */
/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;} 

/* FlexSlider Necessary Styles
*********************************/ 
.flexslider {margin: 0; padding: 0;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {width: 15%;display: block;border-radius: 50%;float: left;}
.flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 
html[xmlns] .slides {display: block;} 

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}


/* FlexSlider Default Theme
*********************************/
.flexslider {margin: 0 0 0px; background: transparent; position: relative; -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; ,0,0,.2); zoom: 1;}
.flex-viewport {max-height:1500px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}
.loading .flex-viewport {max-height: 300px;}
.flexslider .slides {zoom: 1;}
.carousel li {margin-right: 5px}
/* Direction Nav */
.flex-direction-nav a {width: 30px; height: 30px; margin: -20px 0 0; display: block; position: absolute; top: 50%; cursor: pointer; text-indent: -9999px; opacity: 0; -webkit-transition: all .3s ease;}
.flex-direction-nav .flex-next {background-position: 100% 0; right: 0px; }
.flex-direction-nav .flex-prev {left: 0px;}
.flexslider:hover .flex-next {opacity: 0.8; right: 5px;}
.flexslider:hover .flex-prev {opacity: 0.8; left: 5px;}
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;}
.flex-direction-nav .disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;}

/* Control Nav */
.flex-control-nav {position: absolute; bottom: 55px; left:102%; background: #fff; padding: 2em 1em;}
.flex-control-nav li {margin: 10px 0; display: block; zoom: 1; *display: inline;}
.flex-control-paging li a {width: 10px; height: 10px; display: block;  background: #23B684; cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; box-shadow: inset 0 0 3px rgba(0,0,0,0.3);}
.flex-control-paging li a:hover { background: #e01f3d; }
.flex-control-paging li a.flex-active { background: #e01f3d; cursor: default; }

.flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;}
.flex-control-thumbs li {width: 25%; float: left; margin: 0;}
.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
.flex-control-thumbs img:hover {opacity: 1;}
.flex-control-thumbs .active {opacity: 1; cursor: default;}

@media screen and (max-width: 860px) {
  .flex-direction-nav .flex-prev {opacity: 1; left: 0;}
  .flex-direction-nav .flex-next {opacity: 1; right: 0;}
}
@media screen and (max-width: 800px) {
  
}
@media screen and (max-width:667px) {	
.flexslider {
margin: 0px 0px 30px;
}
.flexslider .slides img {
		width: 18%;
	}
}
@media screen and (max-width: 480px) {
	.flexslider .slides img {
		width: 24%;
	}
}
@media screen and (max-width: 320px) {
	.flexslider .slides img {
		width: 37%;
	}
	.flex-control-paging li a {
		width: 9px;
		height: 9px;
	}
}
/* Text side padding on all pages (except hero image) */
@media (max-width: 1024px){
    body, 
    .container,
    .content,
    .page,
    .page-body,
    section:not(.bradcam_area),
    .w3l-visitors-agile,
    .agileits-services,
    .w3ls-about,
    .typo,
    .w3-agile-team,
    .services-bottom,
    .agileits-w3layouts-footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }
}

/* Mobile-only text side padding */
@media (max-width: 768px){
    body, 
    .container,
    .content,
    .page,
    .page-body,
    section:not(.bradcam_area),
    .w3l-visitors-agile,
    .agileits-services,
    .w3ls-about,
    .typo,
    .w3-agile-team,
    .services-bottom,
    .agileits-w3layouts-footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }
}

/* Fix: remove padding on hero image in mobile */
@media (max-width: 768px){
    .bradcam_area,
    .bradcam_area .container,
    .bradcam_area section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}

/* Fix white side gaps on mobile: no padding on body */
@media (max-width: 768px){
    body{
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Reduce top header height on mobile */
@media (max-width: 768px){
    header,
    .navbar,
    .navbar-default,
    .w3_navigation {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
        height: auto !important;
        min-height: 40px !important;
    }
    .nav-contact-w3ls,
    .navbar-header {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Hide top phone block on mobile */
@media (max-width: 768px){
    .nav-contact-w3ls,
    .navbar-header > a[href^="tel"],
    .navbar-header .nav-contact-w3ls {
        display: none !important;
    }

    /* Move menu (hamburger) over hero image */
    .navbar-toggle {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 9999 !important;
        margin: 0 !important;
    }

    header, .navbar, .navbar-default, .w3_navigation {
        background: transparent !important;
        height: auto !important;
    }
}

@media (max-width: 768px){
    .bradcam_text,
    .bradcam_area .bradcam_text,
    .banner-text,
    .overlay,
    .w3l-banner-text {
        background: transparent !important;
        box-shadow: none !important;
        display: none !important;
    }
}

@media (max-width:768px){
    .buy-btn-mobile{
        display:inline-block;
        background:#005bbb;
        color:#fff !important;
        padding:12px 22px;
        border-radius:6px;
        font-size:18px;
        font-weight:600;
        position:absolute;
        bottom:20px;
        left:50%;
        transform:translateX(-50%);
        z-index:9999;
        text-decoration:none;
    }
    /* hide the overlay */
    .bradcam_text,
    .banner-text,
    .overlay{
        display:none !important;
    }
}

/* Footer Moscow background */
@media (max-width: 1200px){
    .agileits-w3layouts-footer,
    .footer,
    footer,
    .w3l-visitors-agile {
        background: url('../images/footer_bg_moscow.png') no-repeat center center !important;
        background-size: cover !important;
    }
}
