/* ExtraSmall devices (tablets, 767px and down) */
@media (max-width: 767px) {

  #home .section-title h1 {
    font-size: 33px;
    line-height: 36px;
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
    border-color: #666;
    letter-spacing: 0;
    font-weight: 600;
  }
  #home p.lead {
    font-size: 16px;
    line-height: 21px;
  }
  .fullscreen-slider-arrow {
    bottom: 10px;
    margin-top: 0;
    top: auto;
    width: 23px;
    overflow: hidden;
  }
	
	#home .main-button{ 
		margin-top:25px;
	}
	
  #error-page .intro-item .fa {
    font-size: 100px;
  }
  #error-page .intro-item h3 {
    font-size: 35px;
    line-height: 40px;
    margin: 10px 0;
  }
  #error-page .intro-item p.lead {
    margin: 0 0 20px 0;
  }

  #slider_left {
    left: 18px;
  }
  #slider_right {
    right: 18px;
  }
  .navbar-inner{ max-height:none!important;}
  .navbar .show-menu {
    display: block;
  }
  .navbar-collapse {
    max-height: none;
    padding: 0;
  }
  .navbar-nav {
    margin: 0;
  }
  .navbar .navbar-nav > li {
    float: none;
    border-bottom: 1px solid;
  }
  .navbar .navbar-nav > li > a {
    padding: 0 20px;
    line-height: 40px;
    font-size: 12px;
    padding: 0 13px;
    height:auto;
  }
  .navbar .navbar-nav > li > a:focus, 
  .navbar .navbar-nav > li > a:hover{
    height: auto;
  }

  .navbar .navbar-nav ul {
    background: none !important;
    display: block;
    position: relative;
  }
  .navbar .navbar-nav .sub-menu {
    border: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding-bottom: 15px;
  }
  .navbar .navbar-nav .sub-menu li a {
    display: block;
    width: auto;
    padding: 4px 13px;
  }
  .navbar .navbar-nav .sub-menu li a:before {
    content: " ";
    font-family: "FontAwesome";
  }
  .navbar .navbar-nav .sub-menu .sub-menu {
    border: 0;
    top: auto;
    right: auto;
    padding-bottom: 0;
  }
  .navbar .navbar-nav li.menu-item-has-children > a:after {
    content: "";
  }
  .navbar .navbar-nav .menu-item-has-children ul {
    margin: 0 0 0 20px;
  }
  .navbar .navbar-nav .menu-item-has-children a {
    border-bottom: 0;
  }

    
  /* Center Menu */
  /*
  .navbar-collapse{
    position: relative;
  }
  .navbar-right{
    text-align: left;
  }
  .navbar .navbar-nav > li{ 
    display:block;
    float:none;
  }
  .navbar .navbar-nav ul{
    text-align: left;
  }    
  */  
    
  .section-content {
    padding: 60px 0;
  }
  .section-title .line {
    display: none;
  }
  .section-title h1 {
    font-size: 48px;
    border-bottom: 1px solid #DEDEDE;
    line-height: 50px;
    margin: 0 0 8px;
    padding: 4px 0 5px 0;
  }
  .section-title .lead {
    margin: 15px 0 0 0;
  }
  .element-line {
    margin-top: 40px;
  }

  #ajaxpage .section-title h1 {
    font-size: 40px;
  }
  .mybutton.ultra a, .mybutton.ultra button, .mybutton2.ultra a span, .mybutton2.ultra button span {
    font-size: 13px;
    line-height: 40px;
  }

  .pricing-box {
    width: 100%;
    margin: 0;
  }
  .pricing-box .pricing-featured {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    position: relative;
    margin: 0;
  }
  .pricing-box ul {
    border-right: solid 1px #eee;
  }
  .call-number {
    font-size: 40px;
    line-height: 65px;
    font-weight: 600;
  }

  .timeline-content #timeline .timeline-item, .timeline-content #timeline .timeline-item:nth-child(2n) {
    clear: both;
    float: none;
    margin-bottom: 0;
    width: 100%;
  }
  .timeline-content #timeline .timeline-item .post, .timeline-content #timeline .timeline-item:nth-child(2n) .post {
    margin: 140px 0 25px 0;
  }
  .timeline-content #timeline .timeline-item .post-info, .timeline-content #timeline .timeline-item:nth-child(2n) .post-info {
    left: 0;
    right: 0;
    margin: 0;
    top: -105px;
    width: 100%;
    background: none;
  }
  .timeline-content #timeline .timeline-item .post-info h5 {
    position: absolute;
    right: 0;
    top: 50px;
    font-size: 13px;
    text-align: right;
    margin: 0;
  }
  .timeline-content #timeline .timeline-item .post-info h5.info-date {
    left: 0;
    right: auto;
    text-align: left;
  }
  .timeline-content #timeline .timeline-item .post-info h5.info-date small {
    font-size: 100%;
  }
  .timeline-content #timeline .timeline-item .post-arrow, .timeline-content #timeline .timeline-item:nth-child(2n) .post-arrow {
    display: none;
  }

  #filters a {
    clear: both;
    display: block;
    margin: 12px auto;
    width: 80%;
  }
  #filters a span {
    width: 100%;
  }
  #portfolio-wrap .portfolio-item {
    width: 100%;
  }
  .project-media, .project-description {
    margin: 40px 0 0 0;
    text-align: center;
  }

  .info-address-list li {
    padding-top: 0;
    padding-bottom: 0;
  }

  .map_canvas {
    height: 350px;
  }
  
  .service-element{ text-align:center;}
  
  .not-found i{ font-size:170px;}
  
}

@media (max-width: 1024px) {
  .item_top {
    top: 0;
    opacity: 1;
  }
  .item_left {
    left: 0px;
    opacity: 1;
  }
  .item_right {
    right: 0px;
    opacity: 1;
  }
  .item_bottom {
    bottom: 0;
    opacity: 1;
  }
  .item_fade_in {
    opacity: 1;
    right: 0px;
  }
  .parallax {
    background-attachment: scroll !important;
    background-position: center top !important;
    height: auto;
    margin: 0 auto;
    width: 100%;
  }
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
  #portfolio-wrap .portfolio-item {
    width: 49.9999%;
  }
  .project-description {
    text-align: center;
  }
  .navbar .navbar-nav > li > a {
    padding: 0 12px;
  }

  #home .section-title h1 {
    font-size: 80px;
    line-height: 80px;
    font-weight: 600;
  }
  .service-element{ text-align:center;}

}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {

  #home .section-title h1 {
    font-size: 110px;
    line-height: 100px;
    letter-spacing: -3px;
    font-weight: 400;
  }

  .project-description {
    text-align: inherit;
  }
  .navbar .navbar-nav > li > a {
    padding: 0 15px;
  }
  .mybutton a, .mybutton button {
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    perspective: 1000px;
    letter-spacing: 0;
  }
  .mybutton a span, .mybutton button span {
    -webkit-transition: -webkit-transform 0.3s;
    -moz-transition: -moz-transform 0.3s;
    transition: transform 0.3s;
    -webkit-transform-origin: 50% 0;
    -moz-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .mybutton a:hover span, .mybutton button:hover span {
    -webkit-transform: rotateX(90deg) translateY(-22px);
    -moz-transform: rotateX(90deg) translateY(-22px);
    transform: rotateX(90deg) translateY(-22px);
  }
  .csstransforms3d .mybutton a span::before, .csstransforms3d .mybutton button span::before {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    content: attr(data-hover);
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    transition: background 0.3s;
    -webkit-transform: rotateX(-90deg);
    -moz-transform: rotateX(-90deg);
    transform: rotateX(-90deg);
    -webkit-transform-origin: 50% 0;
    -moz-transform-origin: 50% 0;
    transform-origin: 50% 0;
  }
  .service-element{ text-align:inherit;}
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  #portfolio-wrap .portfolio-item {
    width: 24.98%;
  }
  .pricing-box li h1 {
    font-size: 60px;
  }
}