    /*iPad portrait*/
    
    /*----------------------------------------------------------------------*/
    @media (min-width: 768px) and (max-width: 1024px) {
    /*(max-width: 979px)*/
		
		.mobile-nav{
			display:none !important;
		}
		
		.inner-spacer-left{
			margin-left:12px;
		}
		
		.peThemeContactForm .control-group #message{
			width:249px;
		}
        
        .peThemeContactForm input #name{
            margin-left:1px;
        }
		
		.mainNav > .nav > li{
			position:relative !important;
		}
		
		.mobile-nav{
			display:block !important;
			width:200px !important;
			position:relative;
			float:left;
			margin-top:25px;
			margin-left:40px;
		}
		
		.mobile-nav{
			padding:0 20px;
		}
		
		.mobile-nav select{
			width:100%;
			margin-bottom:15px;
			color:#ccc;
			background-color:#222;
			border-color:#333;
			border-radius:0;
		}
		
		.nav{
			display:none !important;
		}
		
	    .mobile footer-sponsors
		{
			margin-bottom: 3px;
		}
	}
	
	/*android tablet menu fixes*/
		
	.android .dropdown-menu{
		left:0 !important;
		display:none;
	}
	
	.android .nav > li.dropdown.dropdown-on > .dropdown-menu{
        display:block !important;
    }
	
    
    /*iphone landscape*/
   
    /*----------------------------------------------------------------------*/
    @media (max-width: 767px) {
        
        
        body {
            padding-left: 0;
            padding-right: 0;
        }
		
		/*remove sticky header/footer mobile phones*/
	
		.mobile footer-sponsors
		{
			display:none !important;
		}
	
		.mobile .top-bar,
		.mobile footer{
			position:relative;
		}
		
		.mobile footer{
			margin-top:40px;
		}
		
		.mobile .scroll-content > div{
			padding-top:0;
			padding-bottom:0;
		}
        
        /*add to containers instead*/
        .container{
            width: 420px;
            margin-left:auto;
            margin-right:auto;
        }
		
		.row-fluid [class*="offset"]{
			margin-left: 0 !important;
		}
		
		.row-fluid .offset1:first-child{
			margin-left:0;
		}
		
		.inner-spacer-left{
			margin-left:0;
		}
		
		.inner-spacer-right-lrg{
			margin:0;
		}
		
		.mobile-nav{
			display:block !important;
			width:140px !important;
			position:relative;
			float:left;
			margin-top:17px;
		}
		
		.mobile-nav{
			padding:0 20px;
		}
		
		.mobile-nav select{
			width:100%;
			margin-bottom:15px;
			color:#ccc;
			background-color:#222;
			border-color:#333;
			border-radius:0;
		}
		
		.nav{
			display:none !important;
		}
		
		.logo-small > a{
			opacity:1;
		}
		
		.scroll-btns{
			display:none;
		}
		
		/*google maps*/
        .gmap{
            height:215px;
        }
		
		
		/*contact*/
		.peThemeContactForm .control-group #message{
			width:419px;
		}
		
		#commentform input[type=text],
		#commentform textarea{
			width:420px !important;
		}
		
		#contactFormError,
		#contactFormSent{
			width:160px;
		}
		
		/*footer*/
		footer .credits {
			text-align:left;
			float:left;
		}
	}
    
    
    /*iPhone landscape width*/
    
    /*----------------------------------------------------------------------*/
    @media (max-width: 480px) {
        
        .container{
            width: 440px;
            margin-left:auto;
            margin-right:auto;
        }
		
		.scroll-content > div{
			margin-top:0;
			margin-bottom:0;
			padding-top:20px;
			padding-bottom:20px;
		}
		
		.inner-spacer-right-lrg{
			margin:0;
		}
		
		.mobile-nav{
			display:block !important;
			position:relative;
			clear:both;
			width:auto !important;
			float:none;
		}
		
		.mobile-nav select{
			color:#444;
		}
		
		.peThemeContactForm .control-group #message{
			width:440px;
		}
		
		footer .social-media{
			float:left;
			position:relative;
			top:auto;
			left:auto;
			clear:both;
			right:auto;
			margin-left:20px;
			margin-bottom:20px;
		}
		
		#commentform input[type=text],
		#commentform textarea{
			width:440px !important;
		}
		
		.project-info .row-fluid{
			overflow:hidden;
		}
		
		.project-info .span6{
			width: 48.717948717948715% !important;
			margin-left: 2.564102564102564% !important;
			float:left;
		}
		
		.project-info .span6:first-child{
			margin-left:0 !important;
		}
		
		.project-info{
			padding-bottom:30px;
		}
		
		#respond{
			margin-bottom:60px;
		}
	}
	
	
	/*iphone portrait*/
	
	/*----------------------------------------------------------------------*/
    @media (max-width: 320px) {
		
		.container{
            width: 280px;
		}
		
		#commentform input[type=text],
		#commentform textarea{
			width:280px !important;
		}
		
		.peThemeContactForm .control-group #message{
			width:279px;
		}
		
		#contactFormError,
		#contactFormSent{
			width:120px;
		}
      
	}
	
	/*remove scroll hack on all mobile devices*/
	
	.mobile body{
		overflow-y:auto;
	}
		
	.mobile .site-wrapper{
		position:relative;
		width:100%;
		height:auto;
	}
	
	.mobile .scroller{
		overflow:hidden;
		width:100%;
		height:auto;
	}
	
	.mobile .scroll-content{
		overflow:hidden;
		width:100%;
		height:auto;
	}
	
	/*hide scroll buttons on mobile*/
	.mobile .scroll-btns{
		display:none;
	}
	
	/*resetting hover submenu on mobile to a click submenu*/
	
	.mobile .nav > li.dropdown.dropdown-on > .dropdown-menu{
        left:0 !important;
    }
	
	.mobile .dropdown-menu > li.dropdown.dropdown-on .sub-menu {
        visibility: visible !important;
        display:block;
        left:100% !important;
        position:absolute !important;
    }
	
	.mobile .dropdown-menu > li.dropdown.dropdown-on .sub-menu.rightAlign {
        left:-100% !important;
        position:absolute !important;
    }
	
	/*disable hover color change transitions on mobile devices*/
	
	.mobile .nav li a,
	.mobile footer .social-media a,
	.mobile .up-arrow,
	.mobile .dn-arrow,
	.mobile .service-text h4 a,
	.mobile .staff .social-icons a,
	.mobile .form-wrap button#submit,
	.mobile .widget-contact-info li a:hover,
	.mobile .widget-contact-info li a.email,
	.mobile .sidebar .widget a,
	.mobile #commentform .form-submit button[type=submit],
	.mobile footer p a,
	.mobile .content-section .post-title h3 a{
		-webkit-transition: none; 
		   -moz-transition: none; 
			 -o-transition: none; 
				transition: none; 
	}
	
	/*remove hover highlights in mobile menu*/
	
	.mobile .nav > li > a:hover
	{
		display: inherit;
		color: inherit;
	}
	
	.mobile .nav li a:hover
	{
		display: inherit;
		color: inherit;
	}
	
	.mobile .dropdown-menu li > a:hover{
		color:#777;
	}
	
	.mobile .nav li.active a:hover,
	.mobile .nav > li.active > a:hover{
		display: inherit;
		color: inherit;
	}
	
	.mobile .dropdown-menu li.active > a:hover{
		display: inherit;
		color: #fff;
	}
	
	
    
    /*overwrite bootstrap 1200px+ media
    query because it is not used*/
   
   @media (min-width: 1200px) {

		.row {
			margin-left: -20px;
			*zoom: 1;
		}
		  
		.row:before,
		.row:after {
			display: table;
			line-height: 0;
			content: "";
		}
		  
		.row:after {
			clear: both;
		}
		  
		[class*="span"] {
			float: left;
			min-height: 1px;
			margin-left: 20px;
		}
		  
		.container,
		.navbar-static-top .container,
		.navbar-fixed-top .container,
		.navbar-fixed-bottom .container {
			width: 940px;
		}
		
		.row-fluid [class*="span"] {
			float: left;
			width: 100%;
			margin-left: 2.127659574468085%;
			*margin-left: 2.074468085106383%;
		}
		
		.row-fluid .span12 {
			width: 100%;
			*width: 99.94680851063829%;
		}
		  
		.row-fluid .span11 {
			width: 91.48936170212765%;
			*width: 91.43617021276594%;
		}
		  
		.row-fluid .span10 {
			width: 82.97872340425532%;
			*width: 82.92553191489361%;
		}
		  
		.row-fluid .span9 {
			width: 74.46808510638297%;
			*width: 74.41489361702126%;
		}
		  
		.row-fluid .span8 {
			width: 65.95744680851064%;
			*width: 65.90425531914893%;
		}
		  
		.row-fluid .span7 {
			width: 57.44680851063829%;
			*width: 57.39361702127659%;
		}
		  
		.row-fluid .span6 {
			width: 48.93617021276595%;
			*width: 48.88297872340425%;
		}
		  
		.row-fluid .span5 {
			width: 40.42553191489362%;
			*width: 40.37234042553192%;
		}
		  
		.row-fluid .span4 {
			width: 31.914893617021278%;
			*width: 31.861702127659576%;
		}
		  
		.row-fluid .span3 {
			width: 23.404255319148934%;
			*width: 23.351063829787233%;
		}
		  
		.row-fluid .span2 {
			width: 14.893617021276595%;
			*width: 14.840425531914894%;
		}
		  
		.row-fluid .span1 {
			width: 6.382978723404255%;
			*width: 6.329787234042553%;
		}
		  
		.row-fluid .offset12 {
			margin-left: 104.25531914893617%;
			*margin-left: 104.14893617021275%;
		}
		  
		.row-fluid .offset12:first-child {
			margin-left: 102.12765957446808%;
			*margin-left: 102.02127659574467%;
		}
		  
		.row-fluid .offset11 {
			margin-left: 95.74468085106382%;
			*margin-left: 95.6382978723404%;
		}
		  
		.row-fluid .offset11:first-child {
			margin-left: 93.61702127659574%;
			*margin-left: 93.51063829787232%;
		}
		  
		  .row-fluid .offset10 {
			margin-left: 87.23404255319149%;
			*margin-left: 87.12765957446807%;
		}
		  
		.row-fluid .offset10:first-child {
			margin-left: 85.1063829787234%;
			*margin-left: 84.99999999999999%;
		}
		  
		.row-fluid .offset9 {
			margin-left: 78.72340425531914%;
			*margin-left: 78.61702127659572%;
		}
		  
		.row-fluid .offset9:first-child {
			margin-left: 76.59574468085106%;
			*margin-left: 76.48936170212764%;
		}
		  
		.row-fluid .offset8 {
			margin-left: 70.2127659574468%;
			*margin-left: 70.10638297872339%;
		}
		  
		.row-fluid .offset8:first-child {
			margin-left: 68.08510638297872%;
			*margin-left: 67.9787234042553%;
		}
		  
		.row-fluid .offset7 {
			margin-left: 61.70212765957446%;
			*margin-left: 61.59574468085106%;
		}
		  
		.row-fluid .offset7:first-child {
			margin-left: 59.574468085106375%;
			*margin-left: 59.46808510638297%;
		}
		  
		.row-fluid .offset6 {
			margin-left: 53.191489361702125%;
			*margin-left: 53.085106382978715%;
		}
		  
		.row-fluid .offset6:first-child {
			margin-left: 51.063829787234035%;
			*margin-left: 50.95744680851063%;
		}
		  
		.row-fluid .offset5 {
			margin-left: 44.68085106382979%;
			*margin-left: 44.57446808510638%;
		}
		  
		.row-fluid .offset5:first-child {
			margin-left: 42.5531914893617%;
			*margin-left: 42.4468085106383%;
		}
		  
		.row-fluid .offset4 {
			margin-left: 36.170212765957444%;
			*margin-left: 36.06382978723405%;
		}
		  
		.row-fluid .offset4:first-child {
			margin-left: 34.04255319148936%;
			*margin-left: 33.93617021276596%;
		}
		  
		.row-fluid .offset3 {
			margin-left: 27.659574468085104%;
			*margin-left: 27.5531914893617%;
		}
		  
		.row-fluid .offset3:first-child {
			margin-left: 25.53191489361702%;
			*margin-left: 25.425531914893618%;
		}
		  
		.row-fluid .offset2 {
			margin-left: 19.148936170212764%;
			*margin-left: 19.04255319148936%;
		}
		  
		.row-fluid .offset2:first-child {
			margin-left: 17.02127659574468%;
			*margin-left: 16.914893617021278%;
		}
		  
		.row-fluid .offset1 {
			margin-left: 10.638297872340425%;
			*margin-left: 10.53191489361702%;
		}
		  
		.row-fluid .offset1:first-child {
			margin-left: 8.51063829787234%;
			*margin-left: 8.404255319148938%;
		}
		
		input,
		textarea,
		.uneditable-input {
		  margin-left: 0;
		}
		
		.controls-row [class*="span"] + [class*="span"] {
		  margin-left: 20px;
		}
		
		input.span12,
		textarea.span12,
		.uneditable-input.span12 {
		  width: 926px;
		}
		
		input.span11,
		textarea.span11,
		.uneditable-input.span11 {
		  width: 846px;
		}
		
		input.span10,
		textarea.span10,
		.uneditable-input.span10 {
		  width: 766px;
		}
		
		input.span9,
		textarea.span9,
		.uneditable-input.span9 {
		  width: 686px;
		}
		
		input.span8,
		textarea.span8,
		.uneditable-input.span8 {
		  width: 606px;
		}
		
		input.span7,
		textarea.span7,
		.uneditable-input.span7 {
		  width: 526px;
		}
		
		input.span6,
		textarea.span6,
		.uneditable-input.span6 {
		  width: 446px;
		}
		
		input.span5,
		textarea.span5,
		.uneditable-input.span5 {
		  width: 366px;
		}
		
		input.span4,
		textarea.span4,
		.uneditable-input.span4 {
		  width: 286px;
		}
		
		input.span3,
		textarea.span3,
		.uneditable-input.span3 {
		  width: 206px;
		}
		
		input.span2,
		textarea.span2,
		.uneditable-input.span2 {
		  width: 126px;
		}
		
		input.span1,
		textarea.span1,
		.uneditable-input.span1 {
		  width: 46px;
		}
   }
    