/*
 * HTML5 Boilerplate
 *
 * 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;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ===== Primary Styles ========================================================
   Author: Alex Ninneman
   ========================================================================== */

/*
* Global Styles
*/
.left{
    float:left;
}
.right{
    float:right;
}
.fnone{
    float:none;
}
.aleft{
    text-align: left;
}
.acenter{
    text-align: center;;
}
.aright{
    text-align: right;
}

html{
    border-top: 6px solid #933b33;
}


html, body{
    font-family: "ff-meta-serif-web-pro-1","ff-meta-serif-web-pro-2", Georgia, "Times New Roman", Times, serif;
}

body{
    width: 1024px;
    padding: 0 10px;
    margin:auto;
}

header{
    border-bottom: 3px solid #343434;
    border-bottom: 3px solid rgba(52, 52, 52, 0.2);
    padding: 75px 10px 10px 10px;
    margin-bottom: 50px;
}

h1{
    font-family: 'Nixie One', cursive;
    color: #933b33;
    font-size: 28px;
    margin-bottom:0;
}

h1 span{
    color: #343434;
}

header nav{
    padding-top: 14px;
}

header nav .contact{
    color: #933b33;
    text-transform: uppercase;
    font-size: 18px;
}

header nav ul{
    list-style: none;
    margin:0;
    padding:0;
}

header nav ul li{
    float: left;
    width: 100px;
    font-size: 18px;
}

header nav ul li a{
    color: #933b33;
    opacity: 0.7;
    display:block;
    -webkit-transition: all 0.4s ease-out;
    -moz-transition: all 0.4s ease-out;
    -ms-transition: all 0.4s ease-out;
    -o-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}

header nav ul li a span{
    color: #343434;
}

header nav ul li a:hover{
    color: #933b33;
    opacity: 1.0;
    text-decoration: none;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

header nav ul li a:hover span{
    font-weight: normal;
}

.dynamic{
    padding: 15px;
}

.intro{
    border:none;
    font-size: 28px;
    color: rgba(52,52,52,0.6);
    line-height: 1.4em
}

.intro div{
    text-transform:uppercase;
    font-size: 44px;
    color: #343434;
    line-height: 1.8em;
    font-weight:bold;
    font-family: 'Nixie One';
}

.intro span.callout{
    font-size: 36px;
    color: #933b33;
    text-transform:uppercase;
}

.home-social a{
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    margin: 10px;
    float: left;
    border: 3px solid #933b33;
    background:white;
    /*background: #343434;
    background: rgba(52,52,52,0.7);
    -webkit-transition: all 0.6s ease-in;
    -moz-transition: all 0.6s ease-in;
    -o-transition: all 0.6s ease-in;
    -ms-transition: all 0.6s ease-in;
    transition: all 0.6s ease-in;*/
    line-height: 50px;
    color: #933b33;
    color: rgba(147, 59, 51, 0.7);
    text-align: center;
    font-size: 20px;
    text-decoration: none;
}

.home-social a:hover{
    color: #343434;
    color: rgba(52,52,52,0.7);
    /*background: #933b33;
    background: rgba(149, 59, 51, 0.7);*/
    text-decoration: none;
}

.module{
    background: rgb(234,234,234);
    background: rgba(234, 234, 234, 0.3);
    min-height: 100px;
    padding: 10px;
}

footer{
    border-top: 1px solid #343434;
    border-top: 1px solid rgba(52, 52, 52, 0.2);
    padding: 14px 0;
}

footer .mail{
    font-family: 'Nixie One', cursive;
    color: #933b33;
    font-size: 16px;
    float:left;
    line-height: 36px;
}

footer .networks{
    float:right;
}

footer .networks .network{
    display:block;
    float:left;
    width: 95px;
    margin:0 5px;
    text-align:center;
    border-bottom: 1px solid #933b33;
    font-size:14px;
    color: #343434;
    color: rgba(52, 52, 52, 0.6);
    padding: 10px 0;
    height: 15px;
    overflow: hidden;
}

footer .networks a.network span:first-child{
    padding-bottom: 10px;
}

footer .networks a.network span.icon{
    display:none;
}

footer .networks a.network:hover{
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    height:35px;
    border-bottom: 2px solid #933b33;
    color: #933b33;
}

footer .networks a.network:hover span.icon{
    display: block;
    width: 100%;
    text-align: center;
    font-size: 20px;
    margin-top:5px;
}



/* Sidebar
=============================== */
/* Sidenav for Docs
-------------------------------------------------- */

.sidenav {
  width: 228px;
  margin: 30px 0 0;
  padding: 0;
  background-color: #fff;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
  -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
     -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
          box-shadow: 0 1px 4px rgba(0,0,0,.065);
}
.sidenav > li > a {
  display: block;
  *width: 190px;
  margin: 0 0 -1px;
  padding: 8px 14px;
  border: 1px solid #e5e5e5;
}
.sidenav > li:first-child > a {
  -webkit-border-radius: 6px 6px 0 0;
     -moz-border-radius: 6px 6px 0 0;
          border-radius: 6px 6px 0 0;
}
.sidenav > li:last-child > a {
  -webkit-border-radius: 0 0 6px 6px;
     -moz-border-radius: 0 0 6px 6px;
          border-radius: 0 0 6px 6px;
}
.sidenav > .active > a {
  position: relative;
  z-index: 2;
  padding: 9px 15px;
  border: 0;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
     -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
          box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
}
/* Chevrons */
.sidenav .icon-chevron-right {
  float: right;
  margin-top: 2px;
  margin-right: -6px;
  opacity: 0.25;
  color: rgb(255, 255, 255);
  color: rgba(255, 255, 255, 0.5);
}
.sidenav > li > a:hover {
  background-color: #f5f5f5;
}
.sidenav a:hover .icon-chevron-right {
  opacity: .5;
}
.sidenav .active .icon-chevron-right,
.sidenav .active a:hover .icon-chevron-right {
  background-image: url(../static/img/glyphicons-halflings-white.png);
  opacity: 1;
}
.sidenav.affix {
  top: 40px;
}
.sidenav.affix-bottom {
  position: absolute;
  top: auto;
  bottom: 270px;
}

/* Photo Album
   ========================== */

.display{
    display:block;
    color: #933b33;
    float:left;
    margin:10px 35px 45px 10px;
}

.display:hover{
    text-decoration:none;
  color: #933b33;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.display:hover .image-array{
  opacity: 1.0;
}

.display .image-array{
    position:relative;
    width: 165px;
    min-height:165px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.display .image-array img{
    width: 150px;
    border: 4px solid white;
    box-shadow: 2px 2px 2px #343434;
    position:absolute;
    top: 0;
    left:0;
}

.display .image-array img:nth-child(odd){
    -webkit-transform: rotate(4deg);
    -moz-transform: rotate(4deg);
    -o-transform: rotate(4deg);
    -ms-transform: rotate(4deg);
    transform: rotate(4deg);

    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.display .image-array:hover img:nth-child(odd){
    -webkit-transform: rotate(-4deg);
  -moz-transform: rotate(-4deg);
  -o-transform: rotate(-4deg);
  -ms-transform: rotate(-4deg);
  transform: rotate(-4deg);
}

.display .image-array img:nth-child(even){
    -webkit-transform: rotate(-4deg);
  -moz-transform: rotate(-4deg);
  -o-transform: rotate(-4deg);
  -ms-transform: rotate(-4deg);
  transform: rotate(-4deg);

  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.display .image-array:hover img:nth-child(even){
    -webkit-transform: rotate(4deg);
  -moz-transform: rotate(4deg);
  -o-transform: rotate(4deg);
  -ms-transform: rotate(4deg);
  transform: rotate(4deg);
}

.display span{
    display:block;
    margin-bottom:20px;
    text-align:center;
}

.photo{
    display:inline-block;
    text-align:justify;
    margin-bottom: 0;
    height: 180px;
    position:relative;
}

.photo i{
    cursor: pointer;
}

.photo .icon-resize-full{
    position:absolute;
    right:4px;
    top:4px;
    display:none;
}

.photo:hover .icon-resize-full{
    display:inline-block;
}

.photo img{
    z-index: 1;
    height: 180px;
}

.photo div{
    z-index:10;
    height: 25px;
    position:relative;
    top: -25px;
    color:white;
    background: rgb(0,0,0);
    background: rgba(0,0,0,0.4);
    line-height:25px;
    text-align:right;
}

.photo div span{
    display:inline-block;
    font-size: 11px;
    width: 50%;
    overflow:hidden;
    text-align:left;
    float: left;
    margin-left: 5px;
}

.photo div i{
    margin: 2px 4px;
}


/* Gists
   ========================== */

.gister{
    box-shadow: 0 4px 4px -2px #933b33;
    margin: 5px;
}

.gister .heading{
    clear:both;
    height: 110px;
}

.gister .heading div.title{
    float:left;
}

.gister .heading div.user{
    float:right;
}

.gister .heading div.title span.title{
    color: #343434;
    font-size: 22px;
    float:left;
    margin-right: 15px;
}

.gister .heading div.title span.title em{
    color: #933b33;
    font-size: 24px;
}

.gister .heading div.title span.creation,.gister .heading div.title span.updated{
    color: #d6d6d6;
    font-size: 12px;
    font-weight:100;
    display:block;
    width: 500px;
}

.gister .heading div.title p{
    clear:both;
    margin-top: 10px;
    font-size: 28px;
}

@media (min-width: 1200px){
    .sidenav{
        width: 228px;
    }
}

@media (max-width: 980px){
    .sidenav{
        top:0;
        margin-top: 30px;
        margin-right: 0;
    }
}

@media (min-width: 768px) and (max-width: 980px) {
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }
  /* Widen masthead and social buttons to fill body padding */
  .jumbotron {
    margin-top: -20px; /* Offset bottom margin on .navbar */
  }
  /* Adjust sidenav width */
  .sidenav {
    width: 166px;
    margin-top: 20px;
  }
  .sidenav.affix {
    top: 0;
  }
}

@media (max-width: 767px) {
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }

  /* Widen masthead and social buttons to fill body padding */
  .jumbotron {
    padding: 40px 20px;
    margin-top:   -20px; /* Offset bottom margin on .navbar */
    margin-right: -20px;
    margin-left:  -20px;
  }
  .masthead h1 {
    font-size: 90px;
  }
  .masthead p,
  .masthead .btn {
    font-size: 24px;
  }
  .marketing .span4 {
    margin-bottom: 40px;
  }

  /* Space out the show-grid examples */
  .show-grid [class*="span"] {
    margin-bottom: 5px;
  }

  /* Sidenav */
  .sidenav {
    width: auto;
    margin-bottom: 20px;
  }
  .sidenav.affix {
    position: static;
    width: auto;
    top: 0;
  }

  /* Unfloat the back to top link in footer */
  .footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer p {
    margin-bottom: 9px;
  }
}

/* Landscape phones
------------------------- */
@media (max-width: 480px) {
  /* Remove padding above jumbotron */
  body {
    padding-top: 0;
  }

  /* Change up some type stuff */
  h2 small {
    display: block;
  }

  /* Downsize the jumbotrons */
  .jumbotron h1 {
    font-size: 60px;
  }
  .jumbotron p,
  .jumbotron .btn {
    font-size: 20px;
  }
  .jumbotron .btn {
    display: block;
    margin: 0 auto;
  }

  /* center align subhead text like the masthead */
  .subhead h1,
  .subhead p {
    text-align: center;
  }

  /* Do our best to make tables work in narrow viewports */
  table code {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
  }

  /* Modal example */
  .modal-example .modal {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  /* Unfloat the back to top in footer to prevent odd text wrapping */
  .footer .pull-right {
    float: none;
  }
}

@media screen and (max-width:1024px){
    body{
        width: auto;

    }
}

@media screen and (max-width: 600px){
    body{
        width: auto;
        min-width: 275px;
    }

    header{
        display:none;
    }

    .intro{
        margin-top: 50px;
        width:80%;
        float:left;
    }

    .intro div{
         line-height: 1.2em;
         font-size: 38px
    }

    .intro span.callout{
         display:block;
    }

    .home-social{
        width: 15%;
        float:right;
        position: relative;
        top:90px;
    }

    footer{
        display:none;
    }
}

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

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}





/* ==========================================================================
   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: 100%;
}

/*
 * 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;
}



/* ==========================================================================
   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;
    }
}