@media (max-width:500px) , (max-device-width:500px){
/**mobile menu fixed**/
    #content {
    	padding-bottom:427px; /* Height of the footer element */
    }
	#leos {
		bottom:52px;
	}
	footer {
		bottom:111px;
	}
    .container {
        width:100%;
    }
	.mobile-footer {
	    background:#1594c1;
		display:block;
		width:100%;
		position:fixed;
		bottom:0;
		right:0;
		height:auto;
		z-index:99999;
        text-align:center;
        border-top:1px solid white;
	}
	.mobile-footer div {
		display:inline-block;
        vertical-align:top;
		width:23%;
		border-left:1px solid white;
		height:40px;
        padding: 5px 0;
	}
	.mobile-footer div:last-of-type {
		border-left:0;
	}
	.logo a img {
		width:100%;
		height:auto;
	}
	nav {
		background:#1594c1;
		display:none;
		position:fixed;
		height:auto;
		width:100%;
		z-index:999;
		bottom:51px;
		border:1px solid white;
		border-right:0;
		text-align: center;
	}
    nav ul ,
	nav ul li ,
	nav ul li a {
		display:block;
		color:#fff;
        width:100%;
        margin:0;
	}
	nav ul li {
		padding:0 !important;
		margin:0 !important;
	}
	nav  ul.menu li a {
		padding:10px 5px;
		width:93%;
	}
	nav ul li:after {
		display:none;
	}
    .mobile-footer div a {
        display:block;
        width:100%;
        height:100%;
    }
	.mobile-menu {
		background:url(../images/icons/mm-menu-w.png) no-repeat center center;
		background-size: auto 80%;
	}
	.first {
		background:url(../images/icons/mm-home-w.png) no-repeat center center;
		background-size: auto 80%;
	}
	.second {
		background:url(../images/icons/mm-info-w.png) no-repeat center center;
		background-size: auto 80%;
	}
	.third {
		background:url(../images/icons/mm-phone-w.png) no-repeat center center;
		background-size: auto 80%; 
	}
	.galimg img {
		position: inherit;
	}
	.galimg, .galimg:nth-child(4n) {
		width: 47%;
		height: 140px;
		overflow: hidden;
		margin: 0 2% 2% 2%;
	}
	.galimg:nth-child(2n) {
		margin:0;
	}
	footer .container span {
		display: block;
		margin-bottom: 10px;
	}
	footer .babyfooter {
		bottom: 90%;
	}
	.logo.inline {
		width: 50%;
		margin: auto;
		display: block;
	}
	.topsentence.inline {
		width: 90%;
		margin:0 5% 0 5%;
	}
	.phandface {
		float: none;
		clear: both;
		font-size: 30px
	}
	header {
		text-align: center;
	}
	.msidebar ul {
		margin: auto;
	}
	.msidebar {
		width: 100%;
	}
	.txtcontainer {
		width: 80%;
		margin: 20px 10% 0 10%;
	}
	.thimg {
		width: 40%;
		margin-right: 30%;
	}
	.entry {
		width: 80%;
	}
	.continp > .entry {
		width: 100%;
	}
	.contactcons .con {
		display: block;
		width: auto;
		margin: 20px 0 20px 0;
	}
	.continp > span {
		background: url("../images/envelope.png") no-repeat 100% center;
		background-size: 30px;
		padding: 0 40px 0 0;
		margin: 0 auto 20px auto;
	}
	.qandarap {
		width: 80%;
		margin-right: 10%;
	}
	.service {
		width: 90%;
		display: inline-block;
		vertical-align: top;
		margin: 15px 5%;
		text-align: center;
		padding-bottom: 30px;
		position: relative;
	}
	.votescroller {
		position: inherit;
	}
	.service a.btma {
		width: 100%;
	}
	.maincontainer {
		margin: 20px auto;
	}
	div.wpcf7 input[type="submit"] {
		margin: 0 auto 0 auto;
	}
	.cimg {
		height: 230px !important;
	}
}