/* Common for max width 767px
------------------------------------------------- */
@media screen and (max-width: 767px) {
  body {
    font-size: 0.9em;
    line-height: 1.5;
  }
  h1 {
  	font-size: 2em;
  }
  h2 {
  	font-size: 1.7em;
  }
  h3 {
    font-size: 1.4em;
  }
  h4{
    font-size: 1.3em;
  }
  h5 {
    font-size: 1.2em;
  }
  h6 {
    font-size: 1.1em;
  }
  #page-content,
  body.two-sidebars #page-content,
  body.sidebar-first #page-content,
  body.sidebar-second #page-content {
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
  }
  /* Header */
  #header-top-bg {
    min-height: 40px;
  }
  #header-top {
    padding-top: 6px;
    min-height: 40px;
  }
  #header-top #logo {
    float: none;
    width: 100%;
  }
  #header-top #logo img {
    max-height: 40px;
  }
  #logo h1 {
		font-size: 1.2em;
	}
	#site-slogan {
		font-size: 0.7em;
	}
  #page-header {
    padding: 15px 0;
  }
  #page-header h1#page-title {
		font-size: 1.6em;
	}
  .breadcrumb {
    padding-bottom: 5px;
  }
  .sticky-header, .nav {
		display: none !important;
	}
	#mobile-nav-button {
		display: block;
		cursor: pointer;
		float: right;
	}
	#mobile-search, #close-mobile-menu {
		display: block !important;
	}
	#mobile-search .form-text {
		width: 100%;
	}
  /* sidebar */
  #sidebar-first,
  #sidebar-second,
  body.two-sidebars #sidebar-first,
  body.two-sidebars #sidebar-second,
  body.sidebar-first #sidebar-first,
  body.sidebar-second #sidebar-second {
    width: 100%;
    float: left;
    margin: 0;
    padding: 0;
  }

  /* elements */
  .one_half, .one_half_last, .one_three, .one_three_last, .two_three, .two_three_last,
  .one_four, .one_four_last, .three_four, .three_four_last, .one_five, .one_five_last {
    width: 100%;
    float: left;
    margin: 0;
    padding: 0;
  }
  .service, .feature {
		width: 100%;
		margin: 0;
		padding: 0;
	}
  /* Footer */
  .footer-one, .footer-two, .footer-three, .footer-four {
    width: 100%;
    padding: 0 0 30px 0;
  }
  .copyright {
		width: 100%;
		margin-bottom: 10px;
	}
	.social-icons {
		float: left;
		margin-left: 0;
		margin-right: 4px;
	}
	.scrolltop {
		width: 30px;
		height: 40px;
		line-height: 40px;
		font-size: 20px;
	}
  /* content */
  .form-text {
    width: 100%;
  }
  #node-container {
    padding: 20px 0 40px 0;
  }
}

/* Small mobile 414px
------------------------------------------------- */
@media only screen and (max-device-width: 414px) {
  .container {
		width: 100%;
		max-width: 414px;
    padding: 0 4px;
	}
  /* header */
  #page-header {
    padding: 10px 0;
  }
  /* content */
  #node-container {
    padding: 15px 0 40px 0;
  }
}

/* Small mobile 375px
------------------------------------------------- */
@media only screen and (max-device-width: 375px) {
  /* Layout */
  .container {
		width: 100%;
		max-width: 375px;
    padding: 0 4px;
	}
}

/* Small mobile 320px
------------------------------------------------- */
@media only screen and (max-device-width: 320px) {
  /* Layout */
  .container {
		width: 100%;
		max-width: 320px;
    padding: 0 4px;
	}
  /* header */
  #header-top #logo img {
    max-height: 30px;
  }
	#site-slogan {
		font-size: 0.6em;
	}
  #page-header {
    padding: 6px 0;
  }
  #page-header h1#page-title {
		font-size: 1.4em;
	}
  .breadcrumb {
    padding-bottom: 1px;
  }
  /* content */
  #node-container {
    padding: 10px 0 40px 0;
  }
}

/* Common for min width 768px
------------------------------------------------- */
@media screen and (min-width: 768px) {
	#mobile-nav-button, #close-mobile-menu, #mobile-search {
		display: none;
	}
}

/* Tablets
------------------------------------------------- */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .container {
		width: 100%;
		max-width: 1023px;
    padding: 0 10px;
	}
  #header-top {
		padding-top: 10px;
	}
  #header-top #logo {
		width: 100%;
		float: none;
		margin: 0 auto;
		text-align: center;
	}
	#header-top #logo img {
		max-width: 160px !important;
	}
	#logo h1 {
		font-size: 1.4em;
	}
	#site-slogan {
		font-size: 0.8em;
	}
  .nav {
		display: table !important;
		margin: 0 auto;
		float: none;
		font-size: 14px;
	}
	.nav > ul > li > a {
		padding: 10px 16px;
	}
	#node-container {
		padding: 20px 0 50px 0;
	}
	#page-header {
		padding: 20px 0 20px 0;
	}
	#page-header h1#page-title {
		font-size: 1.8em;
	}
  .homepage-header {
		padding: 30px 0;
	}
}

@media only screen and (min-width: 1024px) and (max-width: 1169px) {
  #header-top #logo {
		max-width: 200px;
		margin-right: 30px;
	}
	#logo h1 {
		font-size: 2em;
	}
	#site-slogan {
		font-size: 0.9em;
	}
	.nav {
		font-size: 15px;
	}
	.nav > ul > li > a {
		padding: 10px 18px;
	}
  #node-container {
		padding: 20px 0 50px 0;
	}
	#page-header {
		padding: 20px 0 20px 0;
	}
	#page-header h1#page-title {
		font-size: 2em;
	}
}
@media only screen and (min-width: 960px) {
  .service, .feature, #footer .container, .homepage-header, #footer-bottom .social-icons, .bounce-left, .bounce-right, .bounce-up, .bounce-down,
  .fade, .move-left, .move-right, .move-up, .move-down, .zoom-in, #page-title {
    opacity: 0;
  }
}
/* Print
------------------------------------------------- */
@media print{
	body {
		background: #fff;
		color: #000;
	}
	img {
    max-width: 100% !important;
	}
	#header-top-bg, .breadcrumb, #footer, #sidebar-first, #sidebar-second, .sidebar {
		display:none;
	}

	#page-title {
		color: #000;
		border-bottom: 1px solid #ddd;
	}
	#node-container {
    padding: 10px 0;
	}
	#page-content, body.sidebar-first, body.two-sidebars #page-content, body.sidebar-second #page-content, #page-content {
		width: 100%;
		float: left;
		margin: 0;
		padding: 0;
	}
	a {
    text-decoration: underline;
	}
}
