/* *********** */
/*    forms    */
/* *********** */
input[type="text"], input[type="password"], input[type="date"],
input[type="datetime"], input[type="email"], input[type="number"],
input[type="search"], input[type="tel"], input[type="time"],
input[type="url"], textarea {
    background-color: white;
    border: 1px solid #CCCCCC;
    border-radius: 2px 2px 2px 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
    color: rgba(0, 0, 0, 0.75);
    display: block;
    font-family: inherit;
    font-size: 14px;
    height: 56px;
    margin: 0 0 14px;
    padding: 7px;
    width: 100%;
}
textarea {
    height: inherit;
}
select {
    width: 100%;
    background-color: #fff;
    height: 28px;
    line-height: 28px;
    color: rgba(0, 0, 0, 0.75);
    border: 1px solid #ddd;
}
select[multiple="multiple"] {
    height: auto;
}
.button, input[type="submit"] {
    display: block;
    width: 100%;
    background-color: SeaGreen;
    color: #fff;
    border: none;
    margin-bottom: 14px;
    text-align: center;
    min-height: 56px;
    line-height: 56px;
    border-radius: 2px;
    font-weight: normal;
    cursor: pointer;
}
.button:hover, input[type="submit"]:hover {
    background-color: MediumSeaGreen;
}
.help-text, .helptext {
    display: block;
    padding: 7px 7px;
    margin-top: -14px;
    margin-bottom: 14px;
    background: #ddd;
    color: #6f6f6f;
    font-size: 11px;
    border-radius: 0 2px;
}
.formbox {
    border: 1px #ddd solid;
    min-height: 28px;
    line-height: 28px;
    padding-left: 14px;
    margin-bottom: 14px;
}
.formbox select {
    width: calc(100% - 14px);
}
label {
    display: block;
    font-size: 14px;
    line-height: 21px;
    width: 100%;
}
input[type="checkbox"] + label, input[type="radio"] + label {
    display: inline;
    padding: 0 14px; 
}
select + .error,
input + .error {
    display: block;
    padding: 7px 7px;
    margin-top: -14px;
    margin-bottom: 14px;
    background: #ddd;
    color: #fff;
    background-color: #cc0000;
    font-size: 11px;
    border-radius: 0 2px;
}
input[type="file"] + .error {
    margin-top: 0;
}
fieldset.toggle > * {
    display: none;
}
fieldset.toggle {
    border-top: 1px solid #999;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 0 10px;
}
fieldset.toggle.on {
    border: 1px solid #999;
    padding-bottom: 5px;
}

fieldset.toggle .more_style_options,
fieldset.toggle legend {
    display: block;
    cursor: pointer;
}
fieldset.toggle .more_style_options:before {
    content: "…";
}
fieldset.toggle legend:before {
    content: "▶";
    padding-right: 5px;
    color: #666;
    font-size: 0.9em;
    vertical-align: middle;
}
fieldset.toggle.on legend:before {
    content: "▼";
}
fieldset.toggle.on > * {
    display: block;
}
fieldset.toggle.on .more_style_options {
    display: none;
}



/* *********** */
/*    Panel    */
/* *********** */

#storage-ui-container {
    width: 400px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 0 20px 40px 20px;
    border-left: 1px solid #ddd;
    display: none;
    overflow-x: auto;
    z-index: 1000;
    background-color: #fff;
    opacity: 0.93;
}
#storage-ui-container.fullwidth {
    width: 100%;
    z-index: 10000;
    padding-left: 0;
    padding-right: 0;
}
.storage-edit-enabled #storage-ui-container {
    top: 46px;
}
.storage-caption-bar-enabled #storage-ui-container {
    bottom: 46px;
}
.storage-ui #storage-ui-container {
    display: block;
}
.storage-ui .leaflet-right {
    right: 400px;
}
#storage-ui-container,
#storage-alert-container,
#storage-tooltip-container {
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing: border-box;
}
#storage-ui-container .storage-popup-content img {
    /* See https://github.com/Leaflet/Leaflet/commit/61d746818b99d362108545c151a27f09d60960ee#commitcomment-6061847 */
    max-width: 99% !important;
}
#storage-ui-container .storage-popup-content {
    max-height: inherit;
}
#storage-ui-container .body {
    clear: both;
    height: calc(100% - 46px); /* Minus size of toolbox */
}
#storage-ui-container .toolbox li {
    color: #464646;
    line-height: 46px;
    cursor: pointer;
    float: right;
    display: inline;
    padding: 0 5px;
}
#storage-ui-container .toolbox li:hover {
    text-decoration: underline;
}
#storage-ui-container .toolbox li + li {
    margin-left: 10px;
}

/* *********** */
/*   Alerts    */
/* *********** */
.storage-alert .leaflet-top {
    top: 30px;
}
#storage-alert-container {
    height: 46px;
    line-height: 46px;
    padding-left: 10px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 1px 7px #999999;
    display: none;
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
    font-weight: bold;
    color: #fff;
    font-size: 0.8em;
    z-index: 1002;
}
#storage-alert-container.error {
    background-color: #c60f13;
}
.storage-alert #storage-alert-container {
    display: block;
}
.storage-alert div.storage-main-edit-toolbox {
    display: none;
}
.storage-alert .storage-action {
    margin-left: 10px;
    background-color: #fff;
    color: #999;
    padding: 5px;
    border-radius: 4px;
}
.storage-alert .storage-action:hover {
    color: #000;
}
.storage-alert .error .storage-action {
    background-color: #666;
    color: #eee;
}
.storage-alert .error .storage-action:hover {
    color: #fff;
}

/* *********** */
/*   Tooltip   */
/* *********** */
#storage-tooltip-container {
    line-height: 20px;
    padding: 5px 10px;
    width: auto;
    position: absolute;
    top: 60px;
    left: 10px;
    box-shadow: 0 1px 7px #999999;
    display: none;
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8em;
    border-radius: 2px;
    z-index: 1004;
    font-weight: normal;
    white-space: nowrap;
}
.storage-tooltip #storage-tooltip-container {
    display: block;
}


/* *********** */
/* Close link  */
/* *********** */
.storage-close-icon {
    background-repeat: no-repeat;
    background-image: url('/static/storage/src/img/16.png?d388bd3f8a5e');
    background-position: -52px -9px;
    display: inline;
    padding: 0 10px;
}
.storage-alert .storage-close-link {
    color: #fff;
    float: right;
    padding-right: 10px;
}
.storage-alert .storage-close-icon {
    background-position: -128px -90px;
}


/* *********** */
/*    Mobile   */
/* *********** */
@media all and (orientation:portrait) {
    #storage-ui-container {
        height: 50%;
        max-height: 400px;
        width: 100%;
        top: inherit!important;
        bottom: 0;
        right: 0;
        left: 0;
    }
    .storage-ui .leaflet-right {
        right: 0;
    }
}

/* ************************************************* */
/* *********************** FONT ******************** */
/* ************************************************* */


@font-face {
    font-family: 'fira_sansbold';
    src: url('/static/umap/font/FiraSans-Bold.eot?5a8555902689');
    src: url('/static/umap/font/FiraSans-Bold.eot?&5a8555902689#iefix') format('embedded-opentype'),
         url('/static/umap/font/FiraSans-Bold.woff?5a8555902689') format('woff'),
         url('/static/umap/font/FiraSans-Bold.ttf?5a8555902689') format('truetype');
    font-weight: normal;
    font-style: normal;

}


@font-face {
    font-family: 'fira_sansregular';
    src: url('/static/umap/font/FiraSans-Regular.eot?5a8555902689');
    src: url('/static/umap/font/FiraSans-Regular.eot?&5a8555902689#iefix') format('embedded-opentype'),
         url('/static/umap/font/FiraSans-Regular.woff?5a8555902689') format('woff'),
         url('/static/umap/font/FiraSans-Regular.ttf?5a8555902689') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'fira_sanslight';
    src: url('/static/umap/font/FiraSans-Light.eot?5a8555902689');
    src: url('/static/umap/font/FiraSans-Light.eot?&5a8555902689#iefix') format('embedded-opentype'),
         url('/static/umap/font/FiraSans-Light.woff?5a8555902689') format('woff'),
         url('/static/umap/font/FiraSans-Light.ttf?5a8555902689') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/*
* Generic
*/
body, div, ul, li, a, section, nav,
h1, h2, h3, h4, h5, h6, label,
hr, input, textarea {
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'fira_sanslight', sans-serif;
}
a {
    text-decoration: none;
    color: SeaGreen;
}
hr {
    clear: both;
    width: 100%;
    height: 0;
    max-width: 980px;
    margin: 28px auto;
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: #ddd;
    border-image: none;
    border-style: solid;
    border-width: 1px 0 0;
}
h1, h2, h3, h4, h5 {
    font-family: 'fira_sansbold', sans-serif;
    font-weight: normal;
}
h1, h2 {
    margin-bottom: 28px;
}
h3, h4, h5 {
    margin-bottom: 14px;
}
p {
    line-height: 21px;
    margin-top: 14px;
    margin-bottom: 14px;
}
strong {
    font-family: 'fira_sansbold';
    font-weight: normal;
}

/*
* List
*/
ul {
    list-style-image:none;
    list-style-position:inside;
    list-style-type:none;
}

/* ************************************************* */
/* *********************** GRID ******************** */
/* ************************************************* */
.wrapper {
    width: 100%;
    clear: both;
}
.wrapper:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}
.row {
    width: 100%;
    max-width: 1200px;
    clear: both;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}
.col {
    float: left;
}
.right {
    float: right;
}
.col + .col {
    padding-left: 20px;
}
.half {
    width: 50%;
}
.third {
    width: 33.33%;
}
.two-third {
    width: 66.66%
}
.quarter {
    width: 25%;
}
.wide {
    width: 100%;
}
.col + .wide {
    padding-left: inherit;
}
.mshow, .tshow {
    display: none;
}
.center {
    margin-left: auto;
    margin-right: auto;
    float: none;
}

/*
* Content
*/
.tintbox, .tintbox a {
    font-family: serif;
}
.tintbox {
    background-color: #f2f2f2;
    padding: 28px;
}
.tintbox p {
    color: #6f6f6f;
}


/*
    Foundation use a position:relative; on body, which break the 100% rule
    on #map
*/
body.map_detail {
    width: 100%;
    height: 100%;
    position: inherit;
}

/* Global alert */
.alert-box.global {
    z-index: 1001;
    margin-right: auto;
    margin-left: auto;
}

/* Search form */
input::-webkit-input-placeholder, ::-webkit-input-placeholder {
   color: #a5a5a5;
}

input:-moz-placeholder, :-moz-placeholder {
   color: #a5a5a5;
}

#storage-ui-container textarea {
    height: 100px;
    margin-bottom: 14px;
}
#storage-ui-container select {
    margin-bottom: 10px;
}

#storage-ui-container.warning .button {
    background-color: #c60f13;
    border: 1px solid #7f0a0c;
}
#storage-ui-container.warning .button:hover {
    background-color: #970b0e;
}


/* **************** */
/*    Login icons   */
/* **************** */
.login-grid li,
.login-grid a {
    display: inline-block;
}

.login-grid a {
    border: 1px solid #e5e5e5;
    padding: 5px;
    color: #000;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 92px 92px;
    height: 92px;
    width: 92px;
    margin-right: 10px;
}
.login-grid .login-github {
    background-image: url('/static/umap/github.png?5a8555902689');
}
.login-grid .login-bitbucket {
    background-image: url('/static/umap/bitbucket.png?5a8555902689');
}
.login-grid .login-twitter {
    background-image: url('/static/umap/twitter.png?5a8555902689');
}
.login-grid .login-openstreetmap {
    background-image: url('/static/umap/openstreetmap.png?5a8555902689');
}

/*
* Navigation
*/
header {
    margin: 14px 0;
}
header nav {
    min-height: 70px;
    font-size: 0;
    padding-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

nav section, nav h1, nav ul, nav li, nav a {
    display: inline-block;
    font-size: 16px;
    letter-spacing: -1px;
    margin-bottom: 0;
    font-weight: normal;
}

nav ul li {
    height: 100%;
}

nav a {
    display: inline-block;
    height: 100%;
    line-height: 70px;
    padding: 0 14px;
    margin: 0 7px 0 0;
    color: #000;
    text-align: center;
}

nav .menu a:hover {
    text-decoration: underline;
}

nav h1 a {
    background-image: url('/static/umap/img/logo.svg?5a8555902689');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 60px auto;
    font-family: 'fira_sansbold';
    font-size: 30px;
    font-weight: normal;
    height: 70px;
    padding-left: 80px;
    text-align: left;
    color: #3A4259;
}

nav a.logout {
    font-style: italic;
}

nav li.has-button {
    padding-top: 7px;
    margin-bottom: 0;
}
nav li.has-button .button {
    margin-bottom: 0;
}

nav .branding ul, nav .branding li,
nav .branding a, nav .branding h1 {
    width: 100%;
}

footer {
    height: 140px;
    margin-top: 40px;
    background-color: #2E3641;
    text-align: center;
    line-height: 140px;
    color: #8F96A3;
}
footer a {
    background-image: url('/static/umap/img/logo_filigree.png?5a8555902689');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 60px auto;
    font-family: 'fira_sansbold';
    font-size: 30px;
    font-weight: normal;
    height: 140px;
    padding-left: 70px;
    color: #8F96A3;
    display: inline-block;
}


/* **************************** */
/*            home              */
/* **************************** */
.map_fragment {
    width: 100%;
}
.map_list .map_fragment,
.demo_map .map_fragment {
    height: 210px;
}
.map_list .legend {
    padding-top: 7px;
    margin-bottom: 28px;
    text-align: center;
    font-size: 1.2em;
}
.map_list .legend a {
    color: #222;
    font-family: "fira_sansbold";
    font-style: normal;
    font-weight: normal;
}
.map_list .legend em,
.map_list .legend em a {
    color: #444;
    font-family: "fira_sanslight";
    font-style: normal;
}
.map_list hr {
    display: none;
}
.map_list .wide + hr {
    display: block;
}
.umap-features-list ul {
    margin-top: 14px;
}
.umap-features-list li {
    line-height: 21px;
}
.umap-features-list li:before {
    content: "✔";
    color: #323E56;
    padding-right: 5px;
}
.summary {
    background-color: #eee;
}
.summary .row {
    margin-top: 0;
    padding-top: 20px;
}
.search_wrapper {
    background-color: #2E3641;
}
.search_wrapper .row {
    margin-top: 0;
    padding-top: 20px;
}
.showcase-map {
    background-color: #fff;
    padding-bottom: 28px;
}
.showcase-map .row {
    margin-top: 28px;
}
h2.section {
    text-transform: uppercase;
    color: #666;
    text-align: center;
    padding-top: 28px;
}
.showcase-map .map_fragment {
    height: 400px;
}
.highlights {
    text-align: center;
}
.highlights img.colophon {
    display: inline-block;
    height: 128px;
}
.button-bar {
    text-align: center;
}
.button-bar .button {
    display: inline-block;
}
.button-bar .button + .button {
    margin-left: 14px;
}
.button-bar .button.half {
    width: calc(50% - 7px);
}
.demo-instance-warning {
    background-color: #c0392b;
    color: #efefef;
    margin-top: 0;
    padding: 14px 0;
}
.demo-instance-warning .row {
    margin-top: 0;
}
.demo-instance-warning a {
    color: #efefef;
    text-decoration: underline;
}


/* **************************** */
/*            colors            */
/* **************************** */
a {
    color: #689191;
}
.button, input[type="submit"] {
    background-color: #79c1c0;
}
.neutral, input[type="submit"].neutral {
    background-color: #ddd;
    color: #666;
}
.button:hover, input[type="submit"]:hover {
    background-color: #689191;
}
.warning {
    color: #cc0000;
}
.tintbox {
    background-color: #28353D;
}
.tintbox,
.tintbox p,
.tintbox a {
    color: #f8f8f8;
    font-family: sans-serif;
}
.tintbox a {
    text-decoration: underline;
}
.tintbox.warning {
    background-color: #cc0000;
    color: #fff;
}
.tintbox .note, .tintbox .note a {
    line-height: 1.2em;
    font-size: 11px;
    font-style: italic;
}
.darline-autocomplete li.on {
    background-color: #79c1c0;
}
.dark {
    background-color: #2E3641;
    color: #efefef;
    padding-top: 20px;
    margin-top: 20px;
}
.dark .row {
    margin-top: 0;
}


/* **************************** */
/*             404              */
/* **************************** */
.content404 {
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    text-align: center;
}
.content404 a {
    color: #3A4259;
}
.content404 h1 {
    font-size: 10em;
    margin-bottom: 0;
    line-height: 0.5em;
    margin-top: 40px;
}
.content404 h2 {
    font-size: 4em;
    margin-top: 0;
}
.content404 img {
    width: 32%;
}


/* **************************** */
/*         Autocomplete         */
/* **************************** */
ul.umap-autocomplete {
    position: absolute;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 4px 9px #999999;
}
.umap-autocomplete li {
    height: 56px;
    line-height: 28px;
    padding: 14px;
}
.umap-autocomplete li.on {
    background-color: SeaGreen;
    cursor: pointer;
}
.umap-singleresult {
    margin-bottom: 10px;
}
.umap-singleresult div,
.umap-multiresult li {
    width: 100%;
    background-color: #e5e5e5;
    border-radius: 2px;
    padding: 7px;
    color: #464646;
}
.umap-multiresult li + li {
    margin-top: 7px;
}
.umap-singleresult div .close,
.umap-multiresult li .close {
    float: right;
    cursor: pointer;
}



/* **************************** */
/*   Override Leaflet.Storage   */
/* **************************** */
body.content #storage-ui-container {
/*    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: inherit;
    height: 30%;*/
    background-color: #fff;
}
#id_editors + br + span.helptext {
    display: none;
}
.storage-loader {
    background-color: #79c1c0 !important;
}

/* ************************************************* */
/* ********************* MOBILE ******************** */
/* ************************************************* */
@media only screen and (max-width:770px) {
    .row {
        padding-left: 5px;
        padding-right: 5px;
    }
    .twide {
        width: 100%;
        padding-left: 0!important;
    }
    .tthird {
        width: 33.3333%;
    }
    .ttwo-third {
        width: 66.6666%;
    }
    .tshow {
        display: inherit;
    }
    .thide {
        display: none;
    }
    nav .branding h1 {
        text-align: center;
    }
    nav .branding h1 a {
        width: auto;
    }
}
@media only screen and (max-width: 639px) {
    .mwide {
        padding-left: 0!important;
        width: 100%;
    }
    .mwide + .mwide {
        margin-top: 20px;
    }
    .mthird {
        width: 33.3333%;
    }
    .mshow {
        display: inherit;
    }
    .mhide {
        display: none;
    }
    header nav ul {
        display: block;
    }
}
