
/*
 * Fonts
 */

@font-face {
    font-family: 'ffdn';
    src: url('../fonts/ffdn.eot');
    src: url('../fonts/ffdn.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ffdn.woff') format('woff'),
         url('../fonts/ffdn.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inconsolata';
    src: local('Inconsolata');
    src: url('../fonts/inconsolata.eot');
    src: url('../fonts/inconsolata.eot?#iefix') format('embedded-opentype'),
         url('../fonts/inconsolata.woff') format('woff'),
         url('../fonts/inconsolata.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DejaVu Sans';
    src: local('DejaVu Sans');
    src: url('../fonts/dejavusans.eot');
    src: url('../fonts/dejavusans.eot?#iefix') format('embedded-opentype'),
         url('../fonts/dejavusans.woff') format('woff'),
         url('../fonts/dejavusans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DejaVu Sans';
    src: local('DejaVu Sans Bold');
    src: url('../fonts/dejavusans-bold.eot');
    src: url('../fonts/dejavusans-bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/dejavusans-bold.woff') format('woff'),
         url('../fonts/dejavusans-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DejaVu Sans';
    src: local('DejaVu Sans Oblique');
    src: url('../fonts/dejavusans-oblique.eot');
    src: url('../fonts/dejavusans-oblique.eot?#iefix') format('embedded-opentype'),
         url('../fonts/dejavusans-oblique.woff') format('woff'),
         url('../fonts/dejavusans-oblique.ttf') format('truetype');
    font-weight: normal;
    font-style: oblique;
}

@font-face {
    font-family: 'DejaVu Sans';
    src: local('DejaVu Sans Bold Oblique');
    src: url('../fonts/dejavusans-boldoblique.eot');
    src: url('../fonts/dejavusans-boldoblique.eot?#iefix') format('embedded-opentype'),
         url('../fonts/dejavusans-boldoblique.woff') format('woff'),
         url('../fonts/dejavusans-boldoblique.ttf') format('truetype');
    font-weight: bold;
    font-style: oblique;
}

/*
 * Global
 */

html, body {
    height: 100%;
    font-family: 'DejaVu Sans';
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 17px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 11.9px;
}

h1 small {
    font-size: 22px;
}

h2 small {
    font-size: 17px;
}

h3 small {
    font-size: 14px;
}

h4 small {
    font-size: 14px;
}

/*
 * Navbar
 */

input#search-input {
    position: relative;
    padding-left: 23px;
}

.navbar-search:before {
    content:'';
    display: block;
    width: 14px;
    height: 14px;
    background-image: url(../img/glyphicons-halflings.png);
    background-position: -48px 0;
    position: absolute;
    top: 9px;
    left: 8px;
    z-index:99;
    opacity: 0.5;
}

.navbar .brand {
    font-weight: normal !important;
    padding: 10px 20px 0 20px;
    line-height: 22px;
}

#ffdn-header {
    font-family: ffdn;
    font-size: 24px;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: text-bottom;
}

#ffdn-header span {
    display: inline-block;
}

.brand:hover #ffdn-header {
    animation-duration: 0.6s;
    animation-name: lulz1;
}

@keyframes lulz1 {
    0% {
        transform: scaleX(1);
        transform: scaleY(0.5);
    }
    50% {
        transform: scaleX(1.5);
    }
}


/*
 * Sticky footer
 */

#wrap {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -80px;
}

#push {
    height: 160px;
}

footer {
    height: 64px;
    padding-top: 16px;
    background-color: #f3f3f3;
    font-size: 11px;
}

footer .bracket:before {
    content: '{';
    font-family: Inconsolata;
    font-size: 60px;
    float: left;
    margin: 8px 0 0 26px;
    color: #cccccc;
    transition-duration: 300ms;
}

footer:hover .bracket:before {
    color: #666666;
    transition-delay: 100ms;
    transition-duration: 300ms;
}

footer p {
    padding: 0;
    margin: 0;
    opacity: 0.4;
    margin-left: 60px;
    line-height: 16px;
    transition-duration: 300ms;
}

footer:hover p {
    opacity: 1;
    transition-delay: 100ms;
    transition-duration: 300ms;
}

@media (max-width: 767px) {
    #push {
        height: 120px;
    }
    footer {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}


/*
 * Main
 */

#main-container {
    margin-top: 25px;
}

#main-container .page-header {
    margin-top: 0;
    padding-bottom: 4px;
}

#main-container .page-header h3 {
    margin: 0;
    display: inline;
}

#main-container #homepage .span3 {
    margin-left: 15px;
}

#map {
    height: 600px;
}

.leaflet-popup-content {
    margin: 8px 10px 6px 10px;
}

@media (min-width: 768px) and (max-width: 979px) {
    #map {
        height: 500px;
    }
}

@media (max-width: 767px) {
    #map {
        height: 400px;
    }
    #main-container .span3 {
        margin: 15px 0 0;
    }
}

.project-list .btn-small {
    padding-right: 6px;
    padding-left: 6px;
}

.project-choice {
    padding: 30px;
    background-color: #dddddd;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.same-height-hack {
    margin-bottom: -99999px;
    padding-bottom: 99999px;
}

.same-height-borderfix {
    margin-top: -15px;
    padding: 0;
}

.project-choice h3 {
    text-align: center;
}



/*
 * Forms & stuff
 */

.control-group.required label:before {
    content: '*';
    color: red;
    padding-right: 5px;
}

.fieldlist, .formfield {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: inline-block;
}

.fieldlist li {
    margin: 0 0 2px 0;
    padding: 0;
}

.formfield li {
    display: inline;
    margin-right: 3px;
}

.formfield li .bootstrap-select {
    width: 190px;
}

.formfield li .bootstrap-select .filter-option {
    font-size: 0.9em !important;
}

.formfield li .bootstrap-select .dropdown-menu li {
    display: list-item;
}

.input-middle input:first-of-type {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.input-middle input:last-of-type {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.form-horizontal .help-block {
    margin-top: 0 !important;
}

pre#validator {
    height: 500px;
    background-color: white;
    overflow-x: auto;
    font-family: inconsolata, monospace;
    font-size: 13px;
    background-color: #333333;
    color: #ffffff;
}

/**
 * Schema Spec / RST
 */

#format_spec {
    margin-bottom: 30px;
}

.rst .docinfo-name {
    text-align: left;
    padding-right: 7px;
}

.rst .title {
    font-size: 2.2em;
    line-height: normal;
    margin: 0;
}

.rst .subtitle {
    font-size: 1.5em;
    line-height: normal;
    margin: 0 0 25px 0;
}

.rst .section > :first-child {
    margin-top: 15px;
}
