/* page */

html {
  background-color: #f0f0f0;
  height: 100%;
}

body {
  margin-right: auto;
  margin-left: auto;
  min-height: 100%;
  box-shadow: 0 0 10px #444;
}

@media (min-width: 768px) {
  body {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/*
@media (min-width: 992px) {
  body {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
*/

@media (min-width: 1310px) {
  body {
    max-width: 1310px; /*1170+70*2*/
    padding: 20px 70px;
  }
}

/* typography */

body {
  font-family: serif;
  font-size: 14px;
  line-height: 20px;
}

p {
  margin: 0 0 10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: serif;
  margin-top: 0.83333em;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
    line-height: 23px;
  }

  p {
    margin: 0 0 11px;
  }

  h1 {
    font-size: 41px;
  }

  h2 {
    font-size: 33px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 20px;
  }
}

@media (min-width: 992px) {
  body {
    font-size: 18px;
    line-height: 27px;
  }

  p {
    margin: 0 0 13px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 37px;
  }

  h3 {
    font-size: 29px;
  }

  h4 {
    font-size: 23px;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 21px;
    line-height: 30px;
  }

  p {
    margin: 0 0 15px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 43px;
  }

  h3 {
    font-size: 34px;
  }

  h4 {
    font-size: 27px;
  }
}

/* bootstrap modifications */

a, a:hover, a:focus {
  color: #53391E;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background-color: #53391E;
  color: #FFFFFF;
}

.nav .caret {
  border-bottom-color: #53391E;
  border-top-color: #53391E;
}

.nav a:hover .caret {
  border-bottom-color: #53391E;
  border-top-color: #53391E;
}

.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
  /*background-color: #EEEEEE;*/
  border-color: #53391E;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  background-color: #53391E;
  background-image: linear-gradient(to bottom, #674625 0px, #53391E 100%);
  background-repeat: repeat-x;
}

a.thumbnail:hover,
a.thumbnail:focus {
  border-color: #53391E;
}

.container {
  min-width: 480px;
}

/* http://stackoverflow.com/questions/11633463/adding-the-arrow-to-dropdown-pills-for-twitter-bootstrap */
.dropdown-menu::after {
  position: absolute;
  top: -6px;
  right: 10px;
  display: inline-block;
  border-right: 6px solid transparent;
  border-bottom: 6px solid white;
  border-left: 6px solid transparent;
  content: '';
}

.panel-footer.panel-btn-group {
  padding: 0;
}

.panel-btn-group > .btn-group > .btn {
  border-top: 0;
  border-bottom: 0;
}

.panel-btn-group > .btn-group > .btn:first-child {
  border-left: 0;
}

.panel-btn-group > .btn-group > .btn:last-child {
  border-right: 0;
}

.popover {
  max-width: 400px;
}

/* blueimp modifications */

.blueimp-gallery > .title {
  background: rgba(0, 0, 0, 0.5) none repeat scroll 0 0;
}

.blueimp-gallery > .title > a {
  color: #fff;
}

/* common & helper */

.rotate3 {
  -webkit-transform:rotate(3deg);
     -moz-transform:rotate(3deg);
      -ms-transform:rotate(3deg);
       -o-transform:rotate(3deg);
          transform:rotate(3deg);
}

.rotate-3 {
  -webkit-transform:rotate(-3deg);
     -moz-transform:rotate(-3deg);
      -ms-transform:rotate(-3deg);
       -o-transform:rotate(-3deg);
          transform:rotate(-3deg);
}

/* page-specific */

/* index */

.carousel-indicators {
  bottom: 10px;
}

.carousel[data-active-slide="0"] .carousel-indicators li {
  border-color: #555;
}

.carousel[data-active-slide="0"] .carousel-indicators li.active {
  background-color: #555;
}

.carousel-inner a {
  text-decoration: none;
}

.carousel-inner h1,
.carousel-inner h2,
.carousel-inner h3,
.carousel-inner h4,
.carousel-inner h5,
.carousel-inner h6 {
  text-align: center;
}

.carousel-caption.fixed, .carousel-caption.top {
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  margin-top: 0;
}

.carousel[data-prev-slide="0"] .carousel-caption.fixed,
.carousel[data-active-slide="0"] .carousel-caption.fixed {
  display: none;
}

.carousel:not([data-prev-slide="0"]):not([data-active-slide="0"]) .carousel-caption.top {
  display: none;
}

.carousel-control.left,
.carousel-control.right {
  background-image: none;
  outline: none;
  z-index: 10;
}

.carousel-control.left::-moz-focus-inner,
.carousel-control.right::-moz-focus-inner {
  border: 0;
}

/*
.carousel-control span {
  margin-top: -10px;
  margin-left: -10px;
}
*/

/*
.carousel .carousel-control {
  visibility: hidden;
}

.carousel:hover .carousel-control {
  visibility: visible;
}
*/

.carousel-inner .item,
.stats-slide,
.random-turtles-slide,
.last-turtles-slide {
  height: 100%;
}

.stats-slide {
  background-color: #EEEECC;
}

.stats-slide img {
  margin-left: auto;
  margin-right: auto;
  width: auto;
  max-height: 100%;
  display: block;
}

.random-turtles-slide {
  padding: 30px 30px 50px;
  background-color: #ccc;
}

.random-turtles {
  /*margin-top: 30px;*/
}

.status-title {
  font-weight: bold;
  color: #555;
  text-shadow: 0 1px 0 #ffffff;
  margin-top: 0.6em;
  margin-bottom: 0;
}

.status-subtitle {
  margin-top: 0px;
  color: #555;
  text-shadow: 0 1px 0 #ffffff;
}

.carousel-inner {
  height: 320px;
}

.carousel-control .icon-prev:before,
.carousel-control .icon-next:before {
  font-size: 54px;
  line-height: 54px;
}

.carousel-control .icon-prev,
.carousel-control .icon-next {
  width: 54px;
  height: 54px;
  margin-top: -27px;
  margin-left: -27px;
}

.random-turtles img {
  box-shadow: 5px 5px 5px #888;
  margin-left: auto;
  margin-right: auto;
  max-height: 130px;
}

@media (min-width: 768px) {
  .carousel-inner {,
    height: 320px;
  }

  .carousel-control .icon-prev:before,
  .carousel-control .icon-next:before {
    font-size: 70px;
    line-height: 70px;
  }

  .carousel-control .icon-prev,
  .carousel-control .icon-next {
    width: 70px;
    height: 70px;
    margin-top: -35px;
    margin-left: -35px;
  }

  .random-turtles img {
    max-height: 130px;
  }
}

@media (min-width: 992px) {
  .carousel-inner {
    height: 414px;
  }

  .carousel-control .icon-prev:before,
  .carousel-control .icon-next:before {
    font-size: 90px;
    line-height: 90px;
  }

  .carousel-control .icon-prev,
  .carousel-control .icon-next {
    width: 90px;
    height: 90px;
    margin-top: -45px;
    margin-left: -45px;
  }

  .random-turtles-slide {
    padding: 39px 39px 65px;
  }

  .random-turtles {
    margin-bottom: 26px;
  }

  .random-turtles img {
    max-height: 168px;
  }
}

@media (min-width: 1200px) {
  .carousel-inner {
    height: 499px;
  }

  .carousel-control .icon-prev:before,
  .carousel-control .icon-next:before {
    font-size: 110px;
    line-height: 110px;
  }

  .carousel-control .icon-prev,
  .carousel-control .icon-next {
    width: 110px;
    height: 110px;
    margin-top: -55px;
    margin-left: -55px;
  }

  .random-turtles-slide {
    padding: 47px 47px 78px;
  }

  .random-turtles {
    margin-bottom: 31px;
  }

  .random-turtles img {
    max-height: 203px;
    height: 203px; /* FIXME */
  }
}

.last-turtles-slide {
  background-color: #444;
}

.last-turtles-slide img {
  margin-left: auto;
  margin-right: auto;
  width: auto;
  max-height: 100%;
  display: block;
}

@media print {
.status {
  background-color: #eee;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 0 5px 0 #888 inset;
  margin-bottom: 19px;
}
}

/* gallery */

.page-arrow {
  font-size: 20px;
  line-height: 20px;
  font-weight: bold;
}

#links > .row + .row {
  padding-top: 30px;
}

/* other */

.header {
  padding-bottom: 19px;
}


.container {
  background-color: #ffffff; /*#f2f2f2;*/
/*
  padding-top: 20px;
  padding-bottom: 20px;
*/
}

/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.footer {
  padding-left: 15px;
  padding-right: 15px;
/*
  background-image: linear-gradient(to bottom, #F5F5F5 0px, #E8E8E8 100%);
  background-repeat: repeat-x;
*/
}

/* Custom page header */
.header {
/*  border-bottom: 1px solid #e5e5e5;*/
}
/* Make the masthead heading the same height as the navigation */
.header h3 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
  padding-bottom: 19px;
}

.container-narrow > hr {
  margin: 30px 0;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
  /* Remove the padding we set earlier */
  .header,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }
  /* Space out the masthead */
  .header {
    /*margin-bottom: 30px;*/
  }
}

