/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-bottom: 40px;
  color: #5a5a5a;
}

footer { padding: 0 20px; }

#second_id { display: none; }

/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */

/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: 20px;
  margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
}

/* Remove border and change up box shadow for more contrast */
.navbar .navbar-inner {
  border: 0;
  -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
     -moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
          box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* Downsize the brand/project name a bit */
.navbar .brand {
  padding: 14px 20px 16px; /* Increase vertical padding to match navbar links */
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  color: white;
}

/* Navbar links: increase padding for taller navbar */
.navbar .nav > li > a {
  padding: 15px 20px;
}

/* Offset the responsive button for proper vertical alignment */
.navbar .btn-navbar {
  margin-top: 10px;
}

.navbar-inverse .navbar-search .search-query {
  width: 200px;
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 60px;
}

.carousel .container {
  position: relative;
  z-index: 9;
  height: 500px;
}

.carousel-control {
  height: 80px;
  margin-top: 0;
  font-size: 120px;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
  background-color: transparent;
  border: 0;
  z-index: 10;
}

.carousel .item {
  height: 500px;
}
.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 500px;
}

.carousel-caption {
  background-color: transparent;
  position: static;
  max-width: 660px;
  padding: 20px 30px;
  margin: 130px 0px 0px 20px;
  background: -moz-linear-gradient(top,  rgba(2,0,0,0.50) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(2,0,0,0.50)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(2,0,0,0.50) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(2,0,0,0.50) 0%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(2,0,0,0.50) 0%,rgba(0,0,0,0) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(2,0,0,0.50) 0%,rgba(0,0,0,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b0020000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
}
.carousel-caption h1,
.carousel-caption .lead {
  margin: 0;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.carousel-caption .btn {
  margin-top: 10px;
}

.carousel .item:nth-child(1) .container {
  background: url('../img/logo.png') no-repeat right 0px;
}

.carousel .item:nth-child(2) .container {
  background: url('../img/Responsive-Screen-Mockup-Pack.png') no-repeat right 60px;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
#marketing .span4 {
  text-align: center;
}
#marketing .span4#twitter {
  text-align: left;
}
#marketing h2 {
  font-weight: normal;
  color: #049cdb;
}
#marketing .span4 p {
  margin-left: 10px;
  margin-right: 10px;
}
#marketing .span4 p.text {
  height: 60px;
}

#demoModal .modal-body {
  max-height: none;
}
#demoModal tr {
  border-top: 1px solid #ddd;
}
#demoModal tr:first-child {
  border-top: 0px solid #ddd;
}
#demoModal td:first-child {
  width: 25%;
}

#twitter div {
  background: url('../img/twitter-icon.png') no-repeat bottom right;
}

#twitter hr, #footrss hr {
  margin: 10px 0px;
}

#footrss h4 {
  overflow: hidden;
  white-space: nowrap;
}
#footrss .date {
  padding-bottom: 50px;
  background: url('../img/qs-icon.png') no-repeat bottom center;
}

#footrss .number5 .date {
  background: url('../img/number5-icon.png') no-repeat bottom center;
}

#footrss .desc, #footrss .date {
  font-size: 12px;
  line-height: 14px;
}

#footrss img {
  float: right;
  padding: 0px 0px 10px 10px;
  max-width: 150px;
  height:auto;
  max-height:80px;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 80px 0; /* Space out the Bootstrap <hr> more */
}
.featurette {
  padding-top: 120px; /* Vertically center images part 1: add padding above and below text. */
  overflow: hidden; /* Vertically center images part 2: clear their floats. */
}
.featurette-image {
  margin-top: -120px; /* Vertically center images part 3: negative margin up the image the same amount of the padding to center it. */
}

/* Give some space on the sides of the floated elements so text doesn't run right into it. */
.featurette-image.pull-left {
  margin-right: 40px;
}
.featurette-image.pull-right {
  margin-left: 40px;
}

/* Thin out the marketing headings */
.featurette-heading {
  font-size: 50px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
}


#contact input, #contact textarea, #contact .input-prepend {
  width: 66% !important;
}
#contact .input-prepend input {
  width: 94% !important;
}
#contact label {
  width: 20%;
  padding-right: 10px;
}
#contact input#controle {
  width: 20% !important;
  margin-left: 10px;
}

.oPanel {
  display: none;
}
.container.oPanel {
  margin-top: 100px;
}

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (max-width: 979px) {

  #second_id { display: block; }

  .container.navbar-wrapper {
    margin-bottom: 0;
    width: auto;
  }
  .navbar-inner {
    border-radius: 0;
    margin: -20px 0;
  }

  .carousel .item {
    height: 500px;
  }
  .carousel img {
    width: auto;
    height: 500px;
  }

  .featurette {
    height: auto;
    padding: 0;
  }
  .featurette-image.pull-left,
  .featurette-image.pull-right {
    display: block;
    float: none;
    max-width: 40%;
    margin: 0 auto 20px;
  }
  .navbar-inverse .navbar-search .search-query {
    float: left;
    width: 85%;
  }
  #marketing h2 {
    font-size: 24px;
  }
  #marketing .span4 p.text {
    height: 80px;
  }
}


@media (max-width: 767px) {

  .navbar-inner {
    margin: -20px;
  }

  .carousel {
    margin-left: -20px;
    margin-right: -20px;
  }
  .carousel .item {
    height: 300px;
  }
  .carousel img {
    height: 300px;
  }
  .carousel-caption {
    width: 65%;
    padding: 0 70px;
    margin-top: 100px;
  }
  .carousel-caption h1 {
    font-size: 30px;
  }
  .carousel-caption .lead,
  .carousel-caption .btn {
    font-size: 18px;
  }

  #marketing .span4 + .span4 {
    margin-top: 40px;
  }

  .featurette-heading {
    font-size: 30px;
  }
  .featurette .lead {
    font-size: 18px;
    line-height: 1.5;
  }

  .carousel .item:nth-child(1) .container {
    background: url('../img/logo.png') no-repeat right 50px;
    background-size: 250px 250px;
  }
  .carousel .item:nth-child(2) .container {
    background-size: 360px 220px;
  }
  .carousel .item .container .carousel-caption {
    margin-top: 80px;
  }
  .carousel .item .container h1 {
    font-size: 18px;
  }
  .carousel .item .container p {
    font-size: 14px;
  }

  #demoModal td:first-child {
    width: 20%;
  }
  #demoModal h5 {
   line-height: 12px;
   font-size: 12px;
  }
  #demoModal p {
   line-height: 14px;
   font-size: 12px;
  }
  #marketing h2 {
    font-size: 32px;
  }
  #marketing .span4 p.text {
    height: auto;
  }
  #contact .input-prepend {
    width: 90% !important;
  }

  #bt2id, .carousel-control { display: none; }
  .carousel-caption .lead, .carousel-caption .btn { font-size: 14px; }

}

