/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html {
  height: 100%;
}

body {
  font-family: Oswald, sans-serif;
	height: 100%;
  padding: 0;
  -ms-touch-action: double-tap-zoom;
}

hr {
  border-top: 1px solid #dedede;
}

h1 {
	display:inline; 
	font-family: Oswald, sans-serif; 
	font-size:15px; 
	font-weight: normal;
}

  /* Background slider */
  .backstretch {
    top: 115px !important;
    border: 15px solid white !important;
    z-index: 9;
  }

  /* Logo in header */
  header {
    height: 147px;
  }
  .front header {
    height: 135px;
  }
  .contact header {
    height: 131px;
  }

	header .logo,
  header .nav-collapse {
		line-height: 1px;
    text-align: center;
	}

    header .logo {
      padding-top: 15px;
    }

    header img {
      height: 74px;
      width: 214px;
    }

    header hr {
      margin-top: 41px;
    }


/* Main part on front page */
.container {
  height: 100%;
  position: relative;
}

  .container #main {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 130px;
  }

    .container #main .messages {
      height: 123px;
      margin-top: -66px;
      position: absolute;
      text-align: center;
      top: 50%;
      width: 100%;
      z-index: 10;
    }

      .container #main .messages .message {
        background-image: url(../img/transparent-20-black-background.png);
        border-top: 1px solid white;
        border-bottom: 1px solid white;
        color: white;
        display: inline-block;
      }
      .container #main .messages .message:hover {
        background-image: url(../img/transparent-40-black-background.png);
      }

        .container #main .messages h2 {
          font-size: 48px;
          font-weight: normal;
          line-height: 80px;
          margin: 0;
          padding: 0 17px;
          text-transform: uppercase;
          white-space: nowrap;
        }

        .container #main .messages p {
          border-top: 1px solid white;
          font-family: 'Oxygen', serif;
          font-size: 16px;
          letter-spacing: 1px;
          line-height: 40px;
          margin: 0;
          padding: 0 17px;

        }

        .container #main .messages p a,
        .container #main .messages h2 a {
          color: inherit;
          display: block;
          text-decoration: none;
        }

/* NAVBAR - on top until mobile, then on bottom */
  footer .navbar {
    margin: 0;
    position: absolute;
    top: 89px;
    width: 100%;
  }

  footer .nav {
    display: inline-block;
    font-size: 16px;
    text-align: left;
    text-transform: uppercase;
  }

  footer .navbar .navbar-inner {
    background: none;
    border: none;
    box-shadow: none;
    filter: none;
    text-align: center;
  }

    footer .navbar .navbar-inner .nav {
      display: inline-block;
      float: none;
    }

    footer .navbar .nav li > a {
      color: #999;
      font-size: 15px;
      letter-spacing: 1px;
      padding: 10px 31px
    }
    footer .navbar .nav li > a:focus {
      color: inherit;
      outline: none;
    }

  footer .navbar .dropdown-menu {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    top: 46px;
  }

  .front header hr {
    display: none;
  }
  footer .navbar hr {
    margin-top: -3px;
  }

  footer .navbar .nav > li > .dropdown-menu::before {left: 28px;}
  footer .navbar .nav > li > .dropdown-menu::after  {left: 29px;}

  footer .navbar .nav li.dropdown.open > .dropdown-toggle {
    background-color: white;
  }

  footer .dropdown-menu li > a:hover, 
  footer .dropdown-menu li > a:focus, 
  footer .dropdown-submenu:hover > a {
    background: none;
    color: black;
    filter: none;
  }

  .dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a{}

/* smaller navbar items spacing on tablet */
@media (min-width: 768px) and (max-width: 979px) {
  footer .navbar .nav li > a {
    padding: 10px 13px;
  }
}

/* mobile */
@media (max-width: 767px) {
  
  /* hide background image and footer contact info*/
  footer .row,
  .backstretch {
    display: none;
  }

  /* adjust header height */
  header {
    height: 123px !important;
  }
  .contact header {
    height: 100px !important;
  }

  header hr {
    margin-top: 10px;
  }



  /* add top and bottom border to description and social links */
  .description {
    border-top: 1px solid white;
  }
  .social-links {
    border-bottom: 1px solid white;
  }

  /* completely change navigation menu */
  footer .navbar {
    background: url(../img/background-mobile.jpg);
    position: relative;
    top: 0;
  }

  footer .navbar .navbar-inner {
    padding: 0;
  }

  footer .navbar .nav {
    margin-bottom: 0;
    text-align: center;
    width: 100%;
  }

  footer .navbar .navbar-inner .nav-collapse {
    height: auto !important;
  }

  footer .navbar .nav > li.dropdown,
  footer .navbar .nav > li.dropdown.open .dropdown-menu li {
    margin-bottom: 1px;
  }

  footer .navbar .nav > li a {
    background-image: url(../img/transparent-20-black-background.png);
    border-radius: 0;
    color: white;
    font-size: 24px;
    line-height: 53px;
    margin: 0;
  }

  footer .navbar .nav li.dropdown.open > .dropdown-toggle {
    background: black;
    color: white;
  }

    footer .navbar .nav li.dropdown.open > .dropdown-menu {
      margin: 0;
      background-image: url(../img/transparent-50-black-background.png);
      text-transform: lowercase;
    }
    footer .navbar .nav li > a:hover {
      background-color: inherit;
      background-repeat: repeat;
      border-radius: 0;
      color: white;
    }

    footer .navbar .nav li > a:focus {
      color: white;
      outline: none;
    }
}


/* slider on subpage */
.flexslider {
  border: none;
  border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -o-border-radius: 0;
  box-shadow: none;
    -webkit-box-shadow: 0;
    -moz-box-shadow: 0;
    -o-box-shadow: 0;
  margin: 0;
  width: 100%;
}

.flexslider .flex-control-nav {
  bottom: 5px;
}
.front .flex-control-nav {
  bottom: 20px;
}

.biodesign-logo {
  background: url(../img/biodesign-logo.png) no-repeat;
  bottom: 30px;
  height: 21px;
  left: 20px;
  position: absolute;
  width: 108px;
  z-index: 10;
}

.flex-control-paging li a {background: #bbb; background: rgba(255,255,255,0.5); box-shadow: none; }
.flex-control-paging li a:hover { background: #ddd; background: rgba(255,255,255,0.7); }
.flex-control-paging li a.flex-active { background: #fff; background: rgba(255,255,255,0.9); }

.dark-dots .flex-control-paging li a {background: #b2ccd7; background: rgba(0, 86, 122, 0.3); box-shadow: none; }
.dark-dots .flex-control-paging li a:hover { background: #4c88a2; background: rgba(0, 86, 122, 0.7); }
.dark-dots .flex-control-paging li a.flex-active { background: #fff; background: rgba(0, 86, 122,0.9); }

/* Sideline text on subpage */
.slider-with-text {
  background-color: #00567a;
  position: relative;
}
  .slider-with-text .social-links {
    background-color: #1a6788;
    color: white;
    font-size: 15px;
    height: 40px;
    letter-spacing: 1px;
    line-height: 40px;
    padding-left: 20px;
    text-transform: uppercase;
  }
  @media (min-width: 1200px) {
    .slider-with-text .social-links {
      bottom: 0;
      right: 0;
      position: absolute;
      width: 379px;
    }
  }


    .slider-with-text .social-links .icon {
      border-left: 1px solid #00567a;
      float: right;
      height: 40px;
      width: 52px;
    }

    .slider-with-text .social-links .icon a {
      display: block;
      text-indent: -9999px;
    }
    .slider-with-text .social-links .icon a:hover {
      background-color: #4d89a2;
    }
    .slider-with-text .social-links .icon.facebook a { background-image: url(../img/social-facebook.png); }
    .slider-with-text .social-links .icon.email a { background-image: url(../img/social-email.png); }

    @media 
    (-webkit-min-device-pixel-ratio: 1.3), 
    (min-resolution: 124.8dpi) { 
      .slider-with-text .social-links .icon a { background-size: 52px 40px;}
      .slider-with-text .social-links .icon.facebook a { background-image: url(../img/social-facebook@2x.png); }
      .slider-with-text .social-links .icon.email a { background-image: url(../img/social-email@2x.png); }
    }


.description {
  color: #CDDDE4;
  width: 100%;
}

  .description h1 {
    color: white;
    font-size: 36px;
    font-weight: normal;
    margin: 0;
    padding: 15px 20px;
    text-transform: uppercase;
  }

  .description p,
  .description ol,
  .description ul {
    font-family: 'Oxygen', serif;
    font-size: 12px;
    line-height: 18px;
    margin: 0;
    padding: 0 20px 15px 20px;
  }

  .description ol,
  .description ul {
    padding-left: 36px;
  }

  .description ol li,
  .description ul li {
    line-height: 18px;
  }

@media (min-width: 1200px) {
  .flexslider {
    border-right: 1px solid white;
    float: left;
    width: 770px;
  }

  .description {
    float: left;
    width: 399px;
  }
}

.image-frame {
  border: 5px solid #e0e0e0;
  border-radius: 5px;
  margin-top: 30px;
}

.row.main-content {
  margin-top: 10px;
}

.row.main-content.first {
  margin-top: 20px;
}

/* Regular page content on some subpages, below slider */
.row.main-content .wrapper img { width: 24%; margin: 10px 0;}
.row.main-content .wrapper img.width100 { width: 100%; }
.row.main-content .wrapper img.width66 { width: 66%; }
.row.main-content .wrapper img.width50 { width: 49%; }
.row.main-content .wrapper img.width33 { width: 32%; }

.row.main-content .wrapper h3 {
  color: #00567a;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 19px;
  margin: 10px 0;
  text-transform: uppercase;
}

.row.main-content .wrapper p,
.row.main-content .wrapper ul {
  font-size: 12px;
  font-family: 'Oxygen', serif;
  margin: 10px 0;
}

.row.main-content .wrapper ul {
  margin: 0;
  padding: 0 0 0 20px;
}

@media (min-width: 768px) and (max-width: 979px) {
}

@media (max-width: 767px) {
  .row.main-content .wrapper img { width: 100% !important;  }
  .row.main-content .wrapper {
    padding: 0 20px;
  }
}

/* Subpage thumbnail navigation near bottom of page */
.row .span3 .subpage-bubble {
  margin-top: 30px;
}

.row .span3 .subpage-bubble .bubble-frame {
  border: 6px solid #e2ecf1;
  border-radius: 3px;
  display: block;
  position: relative;
}

.row .span3 .subpage-bubble a:hover .bubble-frame { border-color: #00567a;}

  .row .span3 .subpage-bubble .title {
    color: #999;
    font-size: 15px;
    height: 36px;
    line-height: 18px;
    padding: 10px 0 0 3px;
    text-transform: uppercase;
  }
  @media (min-width: 1200px) {
    .row .span3 .subpage-bubble .title {
      height: 18px;
    }
  }

  .row .span3 .subpage-bubble a:hover { text-decoration: none; }
  .row .span3 .subpage-bubble a:hover .title { color: #333; }

  .row .span3 .subpage-bubble .bubble-frame .arrow {
    background-image: url('../img/bubble-normal.png');
    bottom: -12px;
    height: 6px;
    left: 11px;
    position: absolute;
    width: 12px;
  }
  .row .span3 .subpage-bubble a:hover .arrow {background-image: url('../img/bubble-hover.png');}

@media (max-width: 767px) {
  .row.thumbnail-navigation { display: none; }
}
  

/* Contact details in footer */
.front .footer-details {
  display: none;
}
.footer-details {
  color: #999;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
}

  .footer-details hr {
    margin-bottom: 10px;
  }

  .footer-details span {
    display: inline-block;
    text-align: center;
    width: 25px;
  }

  .footer-details a {
    color: inherit;
  }

  .footer-details p {
    padding-bottom: 10px;
  }

/* Contact subpage */
.contact .row .span3 {
  font-family: 'Oxygen', serif;
  width: 460px;
}

  .contact .row .span3 h2,
  .gallery .row .span12 h2 {
    color: #004d71;
    font-family: Oswald, sans-serif;
    font-size: 36px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-top: 50px;
    text-transform: uppercase;
  }

  .contact .row .box {
    background-color: #e2ecf1;
    border-radius: 3px;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 10px 0;
    padding: 10px;
  }
  .contact .row .box.icon {
    background-position: 10px 10px;
    background-repeat: no-repeat;
    height: 50px;
    line-height: 50px;
    padding-left: 70px;
  }
  .contact .row .box.icon a {
    color: inherit; 
    display: block;
  }   

  .contact .row .box.icon.phone     { background-image: url(../img/contact-phone.png);}
  .contact .row .box.icon.mobile    { background-image: url(../img/contact-mobile.png);}
  .contact .row .box.icon.address   { background-image: url(../img/contact-address.png);  
                                           line-height: 25px;}
  .contact .row .box.icon.letter    { background-image: url(../img/contact-letter.png);}
  .contact .row .box.icon.facebook  { background-image: url(../img/contact-facebook.png);}
  .contact .row .box.icon.linkedin  { background-image: url(../img/contact-linkedin.png);}

@media 
(-webkit-min-device-pixel-ratio: 1.3), 
(min-resolution: 124.8dpi) { 
  .contact .row .box.icon         { background-size: 50px 50px;}
  .contact .row .box.icon.phone   { background-image: url(../img/contact-phone@2x.png);}
  .contact .row .box.icon.mobile  { background-image: url(../img/contact-mobile@2x.png);}
  .contact .row .box.icon.address { background-image: url(../img/contact-address@2x.png);}
  .contact .row .box.icon.letter  { background-image: url(../img/contact-letter@2x.png);}
  .contact .row .box.icon.facebook{ background-image: url(../img/contact-facebook@2x.png);}
  .contact .row .box.icon.linkedin{ background-image: url(../img/contact-linkedin@2x.png);}
}

  .contact .box.about > p {
    margin-bottom: 15px;
  }
  .contact .box.about > p.last {
    margin-bottom: 0;
  }

  .contact textarea {
    width: 100%;
    padding: 8px 6px;
  }

  .contact .form-wrapper {
    line-height: 17px;
    padding-right: 14px;
    position: relative;
  }

  .contact .form-wrapper #success-message {
    font-family: Oswald, sans-serif;
    font-size: 13px;
    height: 40px;
    left: 50%;
    margin-left: -100px;
    position: absolute;
    text-transform: uppercase;
    top: 68px;
    width: 200px;
  }

  .contact .right-half,
  .contact .left-half {
    float: left;
    width: 215px;
  }

  .contact .left-half {
    margin-right: 8px;
  }
  .contact .left-half input {
    height: 16px;
    margin-bottom: 0;
  }
  .contact .left-half .form-wrapper:first-child {
    margin-bottom: 6px;
  }

  .contact textarea, .contact input {
    -webkit-appearance: caret;
    -moz-appearance: caret;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
      -webkit-box-shadow: none;
      -moz-box-shadow: none;
      -o-box-shadow: none;
    font-family: inherit;
    font-size: 11px;
    line-height: 14px;
    transition: none;
      -webkit-transition: none;
      -moz-transition: none;
      -o-transition: none;
    width: 100%;
  }

  .contact .right-half .send-button {
    background-color: #004d71;
    border-radius: 3px;
    color: white;
    display: block;
    font-family: Oswald, sans-serif;
    font-size: 15px;
    line-height: 54px;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
    -webkit-appearance: none;
    -webkit-border-radius: 3px;
  }
    
    .contact .box.bureaucracy {
      padding: 35px 10px
    }
    .contact .box.bureaucracy h3 {
      color: #004d71;
      font-size: 17px;
      font-weight: normal;
      line-height: 23px;
      margin: 16px 0 0 0;
      text-transform: uppercase;
    }


    .contact .box p {
      color: #004d71;
      font-size: 11px;
      line-height: 17px;
      margin-bottom: 16px;
    }

@media (min-width: 1200px) {
  .contact .row .span3 { width: 270px; }
  .contact .right-half, .contact .left-half { width: 120px; }
}

@media (min-width: 768px) and (max-width: 979px) {
  .contact .row .span3 { width: 352px; }
  .contact .right-half, .contact .left-half { width: 161px; }

}

@media (max-width: 767px) {
  .contact .row .span3 { width: 100%; }
  .contact .row h2 { margin: 20px 0 0 10px; }
  .contact .row .left-half, .contact .row .right-half {
    float: none;
    width: 100%;
  }
  .contact .row .right-half {
    margin-top: 10px;
  }
}

/* Gallery */
.gallery .row .span12 h2 {
  text-align: center;
  margin: 30px 0 24px 0;
}

.gallery .row .span3 img {
  margin-bottom: 20px;
}

@media (min-width: 1200px) {
  .gallery .row .span3 img {
    margin-bottom: 30px;
  }
}
