/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
  color: #222;
}
html {
  font-size: 1em;
  line-height: 1.4;
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}
/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
  vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}
/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: #676767;
}
h1 {
  width: 96%;
  text-align: center;
  font-size: 6em;
  margin: 0 auto;
  color: #00ADEE;
  max-width: 1024px;
}

.top h1 {
  /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);*/ /* Chrome, Firefox 3.5+, IE 10+, Opera 9+, Safari 1+ */
}

.headerDivider {
  width: 200px;
  height: 5px;
  background: white;
  margin: 0 auto;
}
h2 {
  color: #00ADEE;
  font-size: 1.7em;
}
h3,
h4 {
  color: #fff;
}
p {
  font-size: 1em;
}
a {
  text-decoration: none;
  color: #0096fb;
  font-size: 0.8em;
}
a:hover {
  text-decoration: underline;
}

.verticle-center {
  position: absolute;
  width: 100%;
}

/* navigation */

nav {
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  position: fixed;
  z-index: 2;
}

.fa-times {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  cursor: pointer;
}

nav ul {
  width: 100%;
  vertical-align: middle;
  padding: 0;
}

nav ul li {
  text-align: center;
  color: white;
  font-size: 3em;
  cursor: pointer;
}

nav ul li:hover {
  color: #0096fb;
}

nav ul li.active {
  text-decoration: underline;
  color: #0096fb;
}

/* HEADER */

header {
  height: 60px;
  width: 100%;
  position: fixed;
  z-index: 2;
}

header .helloBar {
  width: 100%;
  min-height: 47px;
  background: #1b1b1b;
  border-bottom: 2px solid white;
  box-shadow: 2px 0 5px rgba(0,0,0,0.8);
  text-align: center;
  opacity: 0;
}

header .helloBar .helloBarInner * {
  display: inline-block;
  text-align: center;
  font-weight: bold;
}

.helloBarInner {
  width: auto;
  margin: 0 auto;
}

header .helloBar h2 {
  color: #fff;
  font-size: 1em;
}

.visible {
  opacity: 1 !important;
}

.blogLink {
  background: #00ADEE;
  color: white;
  padding: 8px 12px;
  border-radius: 3px;
  margin: 15px 0;
}

.blogLink:hover {
  background: #0096fb;
}

.logo {
  left: 20px;
  top: 20px;
  background: url('../img/dubit_logo_l.png') no-repeat;
  background-size: contain;
  width: 150px;
  height: 210px;
  cursor: pointer;
  position: absolute;
}

.fa-bars {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #0096fb;
  cursor: pointer;
}
/* MAIN */

.top {
  width: 100%;
  background: url(../img/bg_1.jpg);
  background-size: cover;
  position: relative;
}

.top .logo_large {
  position: absolute;
  left: 50px;
  top: 20px;
  background: url('../img/dubit_logo_l_hat.png') no-repeat;
  background-size: contain;
  width: 150px;
  height: 210px;
}

.tagline-wrapper {
  width: 500px;
  height: 250px;
  top: 35%;
  left: 50%;
  position: absolute;
  margin-top: -125px;
  margin-left: -250px;
}

.tagline-wrapper * {
  text-align: center;
}

.tagline {
  width: 100%;
  color: white;
  font-size: 2em;
  text-align: center;
  /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);*/ /* Chrome, Firefox 3.5+, IE 10+, Opera 9+, Safari 1+ */
}

.fa-sort-desc {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: -23px;
  color: #0096fb;
}

section {
  width: 100%;
  height: auto;
  min-height: 500px;
}

section * {
  max-width: 1024px;
}

#section1 {
  width: 100%;
  min-height: 500px;
  background: #EEEEEE;
  border-top: 2px solid white;
  padding-bottom: 30px;
}

#section1 .headerDivider {
  background: #676767;
}

#section1 h1 {
  /*  color: #0096fb;*/
}

#section1 i {
  color: white;
}



#section2 {
  height: 600px;
  background: white;
}

#section2 .clientMap {
  background: white url('../img/clients_map.jpg') center no-repeat;
  background-size: contain;
  min-width: 350px;
  max-width: 1024px;
  min-height: 300px;
  height: 95%;
  margin: 0 auto;
}

#section2 * {
  color: #0096fb;
}
#section2 h1, #section2 h1 b {
  color: #676767;

}
#section2 .headerDivider {
  background: #676767;
}

#section3 {
  min-height: 500px;
  background-color: #F8F8F8;
  border-top: 2px solid white;
  padding: 20px 0 50px;
}
#section3 h1, #section3 h1 b {
  color: #676767;
}
#section3 .headerDivider {
  margin-bottom: 40px;
  background: #676767;
}

#section4 {
  background: url('../img/method_cards.jpg') top center no-repeat;
  background-size: cover;
  height: 500px;
  line-height: 500px;
  text-align: center;
}

#section4 .headerDivider {
  background: #676767;
}

#section4 p {
  vertical-align: middle;
  display: inline-block;
  text-align: left;
  width: 80%;
  font-size: 1.6em;
  line-height: 2em;
}
/* Grid */

.grid {
  width: 100%;
  max-width: 1024px;
  margin: 40px auto;
  text-align: center;
}

.grid > div {
  display: inline-block;
  margin: 1%;
  vertical-align: top;
  height: auto;
  background: #EEEEEE;
  width: 31%;
  max-width: 500px;
  min-width: 300px;
  min-height: 230px;
}

.grid > div * {
  line-height: 1.8em;
}

.grid > div p {
  font-size: 1em;
  text-align: left;
}

.gridTop p,
.gridBottom p {
  font-size: 1.2em;
}

.grid-item-icon {
  width: 75px;
  height: 75px;
  background: #0096fb;
  border-radius: 5em;
  padding: 0 !important;
  margin: 0 auto;
}

/* Case Study */
.case-study-wrapper {
  list-style: none;
  width: 96%;
  max-width: 1024px;
  height: auto;
  text-align: center;
  margin: 0 auto;
  padding: 0;
}

.case-study-wrapper li {
  width: 24%;
  display: inline-block;
  margin-top: 15px;
  margin-bottom: 15px;
  vertical-align: top;
  text-align: left;
  padding: 20px;
}

.case-study-wrapper h3 {
  margin: 0.5em 0 0;
  padding: 3px 0;
  color: black;
}
#section3 #video
{
   width:560px;
	 min-height:315px;
	 position:absolute;
	 left:50%;
	 right:50%;
	 margin-left:-279px;
	 margin-top:-100px;
	 z-index:2;
	 display:none;

}

#shadow
{
   width:100%;
   max-width:1900px;
	 height:170%;
	 background:#000;
	 min-height: 500px;
	 position:absolute;
	 /*left:350px; */
    left:10px;
	 margin-top:-200px;

	 z-index:1;
	 display:none;
}
#close
{
 width:45px;
 height:20px;
 margin-left:520px;
 right:0px;
 z-indez:1;
	cursor: pointer;
	color:#ffffff;
	font-weight: bold;
}

.case-study-wrapper .hoverImage
{
  position: absolute;
	margin-left: -150px;
	margin-top: 50px;
	border-radius: 12px;
	cursor: pointer;

}

.case-study-wrapper p {
  margin: 0;
  text-align: left;
  padding: 0;
  line-height: 1.8em;
}

#section5 {
  width: 100%;
  min-height: 500px;
  background: white url('../img/bg-k20.png');
  padding-bottom: 30px;
  padding-top: 30px;
}

#section5 h1 {
  color: #676767;
  font-size: 3em;
}

#section5 a{
  font-size: 1em;
}

#section5 .grid > div {
  background: none;
}

/* Footer */

footer {
  width: 100%;
  height: auto;
  min-height: 500px;
  color: white;
  background: #0096fb url('../img/bg_5.jpg') center center;
  background-size: cover;
}

.footerWrapper {
  width: 100%;
  height: auto;
  min-height: 500px;
  background: rgba(0, 0, 0, 0.8);
}

.lt-ie9 .footerWrapper {
  background: transparent;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000,endColorstr=#CC000000);
  zoom: 1;
}

.careers {
  text-align: center;
  color: white;
  padding-top: 30px;
}

.careers p {
  color: white;
  max-width: 900px;
  margin: 0 auto;
}

.careers p a {
  font-size: 1em
}

.addressWrapper {
  width: 90%;
  max-width: 1024px;
  margin: 0 auto;
}

.address {
  width: 215px;
  display: inline-block;
  text-align: center;
  vertical-align: top;
  color: white;
  margin-top: 20px;
  margin-left:83px;
}

.address_p {
  position:static;
  top: 180px;
  text-align: center;
  width: 100%;
  color: white;
  display: inline-block
}
.address p,
.footerWrapper h1,
.footerWrapper h1 b{
  color: white;
}
/* Social Icons - circle big
=================================================================== */

.social {
  margin-top: 30px;
}

.social-grid {
  margin: 0 0 0 0;
  padding: 0;
  list-style: none;
  display: block;
  text-align: center;
  width: 100%;
}

.social-grid li {
  width: 72px;
  height: 72px;
  display: inline-block;
  margin: 6px 12px;
}

.social-grid li a {
  width: 72px;
  height: 72px;
  display: block;
}

.social-item {
  width: 72px;
  height: 72px;
  -webkit-border-radius: 50em;
  -moz-border-radius: 50em;
  border-radius: 50em;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.social-info-wrap {
  position: absolute;
  width: 72px;
  height: 72px;

  -webkit-perspective: 800px;
  -moz-perspective: 800px;
  -o-perspective: 800px;
  -ms-perspective: 800px;
  perspective: 800px;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 0 0 5px #f6f6f6, inset 0 0 3px rgba(115, 114, 23, 0.8);
}

.social-info {
  position: absolute;
  width: 70px;
  height: 70px;

  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.social-info > div {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center center;
  border: 1px solid #999;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
}

.social-info .social-info-back {
  -webkit-transform: rotate3d(0, 1, 0, 180deg);
  -moz-transform: rotate3d(0, 1, 0, 180deg);
  -o-transform: rotate3d(0, 1, 0, 180deg);
  -ms-transform: rotate3d(0, 1, 0, 180deg);
  transform: rotate3d(0, 1, 0, 180deg);
  margin-left: -2px;
}

.social-item:hover .social-info-wrap {
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.8), inset 0 0 3px rgba(115, 114, 23, 0.8);
}

.social-item:hover .social-info {
  -webkit-transform: rotate3d(0, 1, 0, -180deg);
  -moz-transform: rotate3d(0, 1, 0, -180deg);
  -o-transform: rotate3d(0, 1, 0, -180deg);
  -ms-transform: rotate3d(0, 1, 0, -180deg);
  transform: rotate3d(0, 1, 0, -180deg);
}

.social-blog {
  background: #f6f6f6 url(../img/social/blog_grey.png) no-repeat;
}
.social-blog-hover {
  background: #0096fb url(../img/social/blog_white.png) no-repeat;
}
.social-facebook {
  background: #f6f6f6 url(../img/social/facebook_grey.png) no-repeat;
}
.social-facebook-hover {
  background: #3b5998 url(../img/social/facebook_white.png) no-repeat;
}
.social-googleplus {
  background: #f6f6f6 url(../img/social/googleplus_grey.png) no-repeat;
}
.social-googleplus-hover {
  background: #da4835 url(../img/social/googleplus_white.png) no-repeat;
}
.social-linkedin {
  background: #f6f6f6 url(../img/social/linkedin_grey.png) no-repeat;
}
.social-linkedin-hover {
  background: #71b2d0 url(../img/social/linkedin_white.png) no-repeat;
}
.social-slide-share {
  background: #f6f6f6 url(../img/social/slide-share_grey.png) no-repeat;
}
.social-slide-share-hover {
  background: #f6921e url(../img/social/slide-share_white.png) no-repeat;
}
.social-twitter {
  background: #f6f6f6 url(../img/social/twitter_grey.png) no-repeat;
}
.social-twitter-hover {
  background: #01cdff url(../img/social/twitter_white.png) no-repeat;
}


/* NEWSLETTER PAGE */

.newsletterSection {
  padding: 20px 0;
  color: #222;
}

.newsletterSection p {
  color: #676767 !important;
}

.newsletterSection .grid > div{
  width: 45%;
}

.newsletterSection > div h2 {
  text-align: center;
}

.newsletterSection ul {
  text-align: center;
  padding: 0;
}

.newsletterSection .center {
  width: 150px;
  height: 200px;
  margin: 0 auto;
}

.newsletterSection a {
  font-size: 1em;
}

.newsletterSection p.link {
  text-align: center;
}

.grid-item-icon.flipboardIcon {
  width: 75px;
  height: 75px;
  background: #0096fb url(../img/flipboard_icon.png) center center no-repeat;
}



/* Newsletter Form
====================================================================== */

form#newsletter {
	color: #999999;
	margin: 0 auto;
  height: 350px;
}

form#newsletter p {
	margin: 0px 0px 10px 0px;
}

form#newsletter label {
	font-size: 14px;
	width: 20px;
	display: block;
	position: relative;
	left: 8px;
	top: 33px;
	z-index: 2;
}

form#newsletter input[type=text],
form#newsletter input[type=email] {
  margin-top: 10px;
	background: #fff;
	font-size: 12px;
	width: 90%;
	max-width: 500px;
	float: left;
	border: 1px solid #cccccc;
	position: relative;
	z-index: 1;
	padding: 7px 0px 8px 15px;
	-webkit-box-shadow: none;
	   -moz-box-shadow: none;
		    box-shadow: none;
	-webkit-border-top-left-radius: 3px;
	   -moz-border-radius-topleft: 3px;
			border-top-left-radius: 3px;
	-webkit-border-bottom-left-radius: 3px;
	   -moz-border-radius-bottomleft: 3px;
			border-bottom-left-radius: 3px;
}

form#newsletter input[type=submit] {
	background: #0096fb;
	color: #fff;
	width: 35%;
	max-width: 150px;
	float: left;
	border: 1px solid #f6f6f6;
	position: relative;
	z-index: 2;
	font-size: 14px;
	padding: 7px 0px 8px 0px;
	margin-top: 0px;
	margin-right: 100%;
	margin-bottom: 15px;
	-webkit-border-top-right-radius: 3px;
	   -moz-border-radius-topright: 3px;
			border-top-right-radius: 3px;
	-webkit-border-bottom-right-radius: 3px;
	   -moz-border-radius-bottomright: 3px;
			border-bottom-right-radius: 3px;

}

form#newsletter input[type=submit]:disabled {
  opacity: 0.6
}

form#newsletter input.small-field {
	width: 153px;
	margin-right: 10px;
}

form#newsletter select {
	margin-bottom: 20px;
	background: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	color: #666;
}
form#newsletter #imgid{
  border: 1px solid #cccccc;
  float: left;
  display: inline-block;
  height: 50px;
  text-align: left;
  margin-top: 5px;
}
form#newsletter a {
  float: left;
  display: inline-block;
  text-align: left;
  padding: 15px 0 0 5px;
  height: auto;
}

form#newsletter .answer {
  width: 100px !important;
  float: none !important;
  display: inline-block;
}
form#newsletter .answer.error {
  border: 1px solid red;
}
form#newsletter .question {
  width: 100px;
  display: inline-block;
  text-align: left;
  padding: 10px 0 0 5px;
  float: none !important;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */
  *text-indent: -9999px;
}

.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
  display: none !important;
  visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
  visibility: hidden;
}
/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
  *zoom: 1;
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}


@media only screen and (max-width: 900px) {

  .case-study-wrapper li {
    width: 45%;
    padding: 0 10px;
    margin: 0 auto 30px auto;
  }

  .tagline-wrapper h1, .tagline-wrapper .tagline {
    width: 80%;
    margin: 0 auto;
  }

}

@media only screen and (max-width: 800px) {
  .g-recaptcha {
    margin-top: 250px;
  }
}

@media only screen and (max-width: 630px) {

  .case-study-wrapper li {
    width: 100%;
    padding: 0;
  }

  .grid {
    text-align: center;
  }
  .grid > div,
  .gridBottom {
    text-align: left;
    max-width: none;
    width: 90% !important;
  }
  .fa-users {
    margin-left: 12px;
  }
  .fa-line-chart {
    margin-left: 12px;
  }
  .fa-laptop {
    margin-left: 13px;
  }
  .fa-tablet {
    margin-left: 24px;
  }
  .fa-search {
    margin-left: 15px;
  }
  .fa-newspaper-o {
    margin-left: 9px;
  }
  #section2 {
    height: 500px;
  }
  #section4 p {
    width: 80%;
  }
  .g-recaptcha {
    margin-top: 200px;
  }
}


@media only screen and (max-width: 450px) {

  body {
    overflow-x: hidden;
  }

  .grid {
    width: 320px !important;
    margin: 30px 0 30px 0;
  }

  .grid div.grid-item p {
    width: 260px;
    margin: 0 auto;
  }

  .grid div.grid-item {
    margin-bottom: 20px;
  }


  .grid div.grid-item h2 {
    margin: 0;
    text-align: center;
  }

  #section2 {
    height: 280px;
    min-height: 280px;
  }
  #section4 p {
    font-size: 1em;
  }
  .logo {
    width: 60px;
    height: 60px;
    top: 70px;
    left: 10px;
  }

  .tagline-wrapper {
    width: 100%;
    margin: 0;
    top: 80px;
    left: 0;
  }

  .tagline-wrapper h1, .tagline-wrapper .tagline {
    width: 80%;
    margin: 0 auto;
  }

  .case-study-wrapper li {
    width: 260px;
    padding: 0;
    margin: 0 auto 30px auto;
  }

  #section2 .clientMap {
    min-width: 320px !important;
    height: auto;
  }

  #section4 p {
    width: 90%;
  }
  .g-recaptcha {
    margin-top: 250px;
  }
}

@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster: h5bp.com/s */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href)")";
  }
  abbr[title]:after {
    content: " (" attr(title)")";
  }
  /*
     * Don't show links for images, or javascript/internal links
     */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  thead {
    display: table-header-group;
    /* h5bp.com/t */
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
  @page {
    margin: 0.5cm;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
