html {
  height: 100%;
}

body {
  font-family: "Nunito", sans-serif;
  color: #252223;
  background: #b7b7b7;
  font-size: 15px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}

#wrapper {
  background: #ECECE8;
  padding: 0;
}

h1 {
  color: #7ca6ba;
  font-size: 22px;
  margin-top: 0;
  font-weight: 300;
}

h2 {
  font-size: 17px;
}
h2.blue {
  color: #7ca6ba;
}
h2.black {
  color: #252223;
}

p {
  font-weight: 300;
  line-height: 28px;
}

.row {
  margin-right: -5px;
}

.logo {
    margin-top: 44px;
    display: block;
    padding: 0 30px;
    margin-right: 10px;
    width: 100%;
    text-align: center;
}
.logo img{width:auto;display:inline-block;} 

#sidebar {
  z-index: 1002;
  min-height: 500px;
  border-right: #7ca6ba solid 10px;
  background: #ECECE8 url("../images/side-banner.jpg") no-repeat center 150px;
}
#sidebar p {
  position: absolute;
  bottom: 5px;
  left: 30px;
}

.fixed-sidebar {
  position: fixed;
  top: 20px;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.navbar-default {
  background-color: rgba(255, 0, 0, 0);
  border-color: rgba(255, 0, 0, 0);
  margin-bottom: 0;
}

.logo-border{    height: 2px;
    width: 100%;
    background-color: #91999c;
    margin-top: 33px;}
#top-menu {
  position: fixed;
  width: 800px;
  z-index: 999;
  background: #ECECE8;
  top: 0;
  border: none;
}
#top-menu .nav li.active a {
  color: #318A9C;
  text-decoration: underline;
}
#top-menu .nav a {
  background-color: rgba(255, 0, 0, 0);
  color: #252223;
  font-size: 16px;
  font-weight: 300;
}
#top-menu .nav a:hover {
  color: #318A9C;
  background: none;
}
#top-menu .nav a.active {
  color: #fff;
}

.box1 {
  width: 50px;
  height: 50px;
  border: 1px solid #ccc;
}

@media (max-width: 767px) {
  /*#wrapper{    overflow-x: hidden;}*/
  #sidebar {
    max-height: 100px;
    z-index: 1001;
    border: none;
    background: none;
    width: 230px !important;
    min-height: 50px !important;
  }
  #sidebar .logo {
    margin-top: 10px;
	padding-left: 15px;
  }

  #top-menu {
    width: 98% !important;
    top: 0;
    padding-top: 50px;
    right: 0px;
  }
  #top-menu .navbar-header {
    top: -20px;
    position: relative;
  }
  #top-menu .navbar-collapse .nav {
    width: 100%;
    float: left !important;
    /*margin-top: 30px;*/
    margin-top: 20px;
  }

  #main-content-1 h1 {
    margin-top: 30px;
  }

  #main-content-1, #main-content-2, #main-content-3, #main-content-4, #main-content-5, #main-content-6 {
    padding-top: 110px !important;
  }
}
@media (max-width: 1023px) {
  #sidebar p {
    display: none;
  }

  #main-content-3 img {
    margin-top: 10px;
  }
	
	.logo-border{display:none;}
}
@media (min-width: 768px) {
  #top-menu {
    height: 150px;
    padding-top: 120px;
  }
  #top-menu .navbar-collapse {
    position: relative;
    margin-left: -5px;
    margin-right: -5px;
    top: 0;
  }
  #top-menu .navbar-collapse .nav {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0 auto;
    display: table;
    table-layout: auto;
    float: none;
    width: 100%;
  }
  #top-menu .navbar-collapse li {
    display: table-cell;
    float: none;
    text-align: center;
  }

  #main-content-1 p {
    width: 90%;
  }
}
@media (min-width: 1024px) {
  #sidebar {
    bottom: 0;
    top: 0;
  }
}
@media (min-width: 1600px) {
  #main-content-6 {
    padding-bottom: 20%;
  }
}
#main-area {
  background: #ECECE8;
  padding-left: 0;
  padding-right: 0;
}

#main-content-1, #main-content-2, #main-content-3, #main-content-4, #main-content-5, #main-content-6 {
  padding-top: 150px;
}

#main-content-2 .btn-default {
  width: 100%;
}

#main-content-3 .col {
  margin-bottom: 30px;
  /*float: left;*/
  width: 100%;
  display: inline-block;
}
#main-content-3 p {
  line-height: 23px;
  margin: 0;
}

#main-content-4 .col-md-12 {
  padding-bottom: 30px;
}

hr {
  border-top: 1px solid #7ca6ba;
  margin-top: 25px;
  margin-bottom: 25px;
}

.vcard .fn {
  font-weight: 500;
}
.vcard span {
  display: block;
  line-height: 23px;
}
.vcard span a {
  color: #252223;
}

.table > tbody > tr > td {
  padding: 3px;
  padding-left: 0;
  border-top: none;
  font-weight: 300;
}
.table > tbody > tr > td a {
  color: #252223;
}

.btn-primary, .btn-default {
  border-radius: 0;background-color: #55565a;
}

.btn-default {
  border: 1px solid #7ca6ba;
  margin-top: 30px;
  background-color: rgba(255, 0, 0, 0);
  font-weight: 300;
}

.img-responsive {
  width: 100%;
}

#main-content-6 .col-md-6 img, #main-content-5 .col-md-6 img {
  margin-bottom: 30px;
}

.navbar-default .navbar-collapse, .navbar-default .navbar-form {
  border-color: #D6D3D3;
}

/* different techniques for iPad screening 
    @media only screen and (min-width: 768px) and (max-width: 1023px) and (orientation:portrait) {*/
@media (min-width: 768px) and (max-width: 1023px) {
  /* For portrait layouts only */
  #sidebar {
    min-height: 0 !important;
    background: none !important;
    border: none !important;
    width: 210px !important;
  }
  #sidebar .logo {
    margin-top: 10px;
    padding-left: 10px;
    margin-right: 10px;
  }

  #top-menu .nav a {
    font-size: 15px;
  }
}
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: portrait) {
  /* For portrait layouts only */
  #sidebar {
    width: 210px !important;
  }

  #top-menu .nav a {
    font-size: 15px;
  }
}
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: landscape) {
  /* For landscape layouts only */
  #sidebar {
    max-width: 240px !important;
  }

  #top-menu .nav a {
    font-size: 15px;
  }
}
