/*!
 * Slidebars - A jQuery Framework for Off-Canvas Menus and Sidebars
 * Version: 2.0
 * Url: http://www.adchsm.com/slidebars/
 * Author: Adam Charles Smith
 * Author url: http://www.adchsm.com/
 * License: MIT
 * License url: http://www.adchsm.com/slidebars/license/
 */

/**
 * Box Model, Html & Body
 */

html, body, [canvas=container], [off-canvas] {
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/**
 * Canvas
 */

[canvas] {
	z-index: 1;
}

[canvas=container] {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	position: relative;
	background-color: white; /* Basic background color, overwrite this in your own css. */
	-webkit-overflow-scrolling: touch; /* Enables momentum scrolling on iOS devices, may be removed by setting to 'auto' in your own CSS. */
}

[canvas=container]:before, [canvas=container]:after {
	clear: both;
	content: '';
	display: table;
}

/**
 * Off-Canavs
 */

[off-canvas] {
	display: none;
	position: fixed;
	overflow: hidden;
	overflow-y: auto;
	background-color: white; /* Basic background color, overwrite this in your own css. */
	color: white; /* Basic colors, overwrite this in your own css. */
	-webkit-overflow-scrolling: touch; /* Enables momentum scrolling on iOS devices, may be removed by setting to 'auto' in your own CSS. */
}

[off-canvas*=top] {
	width: 100%;
	height: 255px;
	top: 0;
}

[off-canvas*=right] {
	width: 255px;
	height: 100%;
	top: 0;
	right: 0;
}

[off-canvas*=bottom] {
	width: 100%;
	height: 255px;
	bottom: 0;
}

[off-canvas*=left] {
	width: 255px;
	height: 100%;
	top: 0;
	left: 0;
}

[off-canvas*=reveal] {
	z-index: 0;
}

[off-canvas*=push] {
	z-index: 1;
}

[off-canvas*=overlay] {
	z-index: 9999;
}

[off-canvas*=shift] {
	z-index: 0;
}

/**
 * Animation
 */

[canvas], [off-canvas] {
	-webkit-transform: translate( 0px, 0px );
	    -ms-transform: translate( 0px, 0px );
	        transform: translate( 0px, 0px );
	-webkit-transition: -webkit-transform 300ms;
	        transition:         transform 300ms;
	-webkit-backface-visibility: hidden; /* Prevents flickering, may be removed if experiencing problems with fixed background images in Chrome. */
}

[off-canvas*=shift][off-canvas*=top] {
	-webkit-transform: translate( 0px, 50% );
	        transform: translate( 0px, 50% );
}

[off-canvas*=shift][off-canvas*=right] {
	-webkit-transform: translate( -50%, 0px );
	        transform: translate( -50%, 0px );
}

[off-canvas*=shift][off-canvas*=bottom] {
	-webkit-transform: translate( 0px, -50% );
	        transform: translate( 0px, -50% );
}

[off-canvas*=shift][off-canvas*=left] {
	-webkit-transform: translate( 50%, 0px );
	        transform: translate( 50%, 0px );
}

/* ===== SKIN ===== */

.animated {
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
	-webkit-animation-delay: 1s;
    animation-delay: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}
.line1.animated {
    -webkit-animation-duration: 1.3s;
    animation-duration: 1.3s;
	-webkit-animation-delay: 1.2s;
    animation-delay: 1.2s;
}
.line2.animated {
    -webkit-animation-duration: 1.4s;
    animation-duration: 1.4s;
	-webkit-animation-delay: 1.1s;
    animation-delay: 1.1s;
}

@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -70px, 0);
        transform: translate3d(0, -70px, 0)
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -70px, 0);
        transform: translate3d(0, -70px, 0)
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown
}

[class*=-button] {
    box-sizing: border-box;
    display: block;
    width: 48px;
    height: 45px;
    position: relative;
    float: left;
    z-index: 2;
    cursor: pointer;
    background: transparent;
    visibility: hidden;
}
.loaded .menu-button {
    visibility: visible;
}
.menu-button span {
    display: block;
    width: 26px;
    height: 2px;
    position: absolute;
    left: 10px;
    background: rgb(255, 255, 255);
}
.menu-button span:nth-of-type(1) {
    top: 12px;
}
.menu-button span:nth-of-type(2) {
    top: 21px;
}
.menu-button span:nth-of-type(3) {
    top: 30px;
}

.menu-button span,
.menu li.parent > a span::before,
.menu li.parent > a span::after {
	-webkit-transition: none 0.5s ease 0.5s;
	transition: none 0.5s ease 0.5s;

	-webkit-transition-property: transform, top, bottom, left, opacity;
	transition-property: transform, top, bottom, left, opacity;
}
.tel-button {
    visibility: visible;
    line-height: 45px;
    text-align: center;
    -webkit-transform: translate3d(-48px, 0, 0);
    transform: translate3d(-48px, 0, 0);
    -webkit-transition: ease 0.5s;
    transition: ease 0.5s;
    -webkit-transition-delay: 0.5s;
    transition-delay: 0.5s;
}
.loaded .tel-button {
    -webkit-transform: none;
    transform: none;
}
.tel-button a {
    font-size: 0;
    display: block;
    height: 45px;
}
.tel-button a:before {
    font-family: 'FontAwesome';
    content: "\f095";
    font-size: 26px;
    color: #FFF;
}
html.sb-active .menu-button span:nth-of-type(1),
html.sb-active .menu-button span:nth-of-type(3) {
    top: 20px;
}
html.sb-active .menu-button span:nth-of-type(1) {
    transform: rotate(45deg);
}
html.sb-active .menu-button span:nth-of-type(2) {
    left: -50px;
    opacity: 0;
}
html.sb-active .menu-button span:nth-of-type(3) {
    transform: rotate(-45deg);
}

[off-canvas*=main-menu] {
	height: 100%;
	overflow-y: auto; /* Enable vertical scrolling on Slidebars when needed. */
	position: fixed;
	top: 0;
	z-index: 0; /* Slidebars sit behind sb-site. */
	display: none; /* Initially hide the Slidebars. Changed from visibility to display to allow -webkit-overflow-scrolling. */
	background-color: rgb(40, 156, 216);
	box-shadow: rgba(0, 0, 0, 0.4) -25px 0px 30px -30px inset;
}
a.menu-logo {
    display: block;
    padding: 20px 10px 5px;
}
a.menu-logo img {
    width: 180px;
    height: auto;
    max-width: calc(100% - 10px);
}
ul.menu li {
    margin: 0px 20px 0px 0px;
    border-bottom: 1px solid rgb(233, 233, 233);
}
ul.menu li:last-child {
    border-bottom: 0;
}
ul.menu li a {
    position: relative;
    display: block;
    padding: 10px;
    background: #289cd8;
    z-index: 1;
    color: #FFF;
}
ul.menu li ul {
    position: relative;
    display: none;
    margin: 0 0 0 10px;
}
ul.menu li.open > ul {
    display: block;
}
ul.menu li li {
    margin: 0px;
}
ul.menu li.parent > a span {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 30px;
    background: #1a85bd;
    z-index: 1;
    cursor: pointer;
}
ul.menu li.parent > a span::before,
ul.menu li.parent > a span::after {
	content: "";
	display: block;
	width: 10px;
	height: 2px;
	position: absolute;
	top: calc(50% - 1px);
	background: rgb(255, 255, 255);
}
ul.menu li.parent > a span::before {
	transform: rotate(45deg);
	left: 7px;
}
ul.menu li.parent > a span::after {
	transform: rotate(-45deg);
	right: 7px;
}
ul.menu li.parent.open > a span::before {
	transform: rotate(-45deg);
}
ul.menu li.parent.open > a span::after {
	transform: rotate(45deg);
}

/**
 * Print
 */

@media print {
	[canvas] {
		-webkit-transform: translate( 0px, 0px ) !important;
		    -ms-transform: translate( 0px, 0px ) !important;
		        transform: translate( 0px, 0px ) !important;
	}

	[off-canvas] {
		display: none !important;
	}
}

/* Tablet Portrait size to standard 960 (devices and browsers) ========== */
@media only screen and (min-width: 768px) {

    #mob-top .menu-button{
        display: none;
    }
}

/* Tablet Portrait size to standard 960 (devices and browsers) ========== */
@media only screen and (max-width: 767px) {

    [canvas=container] {
        margin-top: 45px;
        height: -webkit-calc(100% - 45px);
        height: -moz-calc(100% - 45px);
        height: calc(100% - 45px);
    }
    
}
