/*
LAYOUT
*/

body{
    min-height: 100vh;
    position: relative;
    font-family: "Open sans", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    /*min-width: fit-content;*/
}

.content{
    padding-bottom: 50px;
}

/* Header */

header{
    /*padding: 15px;*/
    background-color: #fafafa;
}

.title-logo h1{
    font-size: 16px;
    margin: 7px 0 0 20px;
    width: 130px;
    font-weight: lighter;
}

.title-logo > *{
    float: left;
}

.title-logo{
    width: 240px;
    float: left;
    padding: 5px;
}

.title-logo:link{
    color:#18386b;
}

.title-logo:hover,.title-logo:focus{
    text-decoration: none;
    background-color: #eeeeee;
}

ul.nav{
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    display: inline;
    float: right;
}

ul.nav li{
    float: left;
}

.active{
    /*background-color: #e3f2f7;*/
    background-color: #0d82ad;
    color:white;
}

.title{
    z-index: 1;
    position: absolute;
    font-weight: bold;
    font-style: italic;

    color: white;
    padding: 5px;
    text-shadow: 2px 2px 7px rgba(0,0,0,0.3);
}

.img-header{
    background-color: #2b2b2b;
}

.img-header > .container{
    position: relative;
    height: 300px;
    overflow: hidden;
}

.img-header > .container > img{
    position: absolute;
    top: -9999px;
    bottom: -9999px;
    left: -9999px;
    right: -9999px;
    margin: auto;
}

/*
FOOTER
*/

footer{
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-top: 100px;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100vw;
}


/*
GENERAL
*/

a, a:hover{
    color:#0d82ad;
}

.btn{
    margin-top: 10px;
}

.logout{
    background-color: darkred;
    color:white;
}

/*
SPECIES SHOW
*/


aside{
    background-color: #fafafa;
    padding-bottom: 20px;
    padding-top: 20px;
}

aside > h2:first-child{
    margin-top: 0;
}

h2{
    font-size: 26px;
}

.references{
    font-size: small;
    word-wrap: break-word;
    background-color: #fafafa;
}

table ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.maps-container{
    text-align: center;
}

.species-map{
    margin: 5px;
}

.species-map img{
    /*width: 100%;*/
}

.grid:after {
    content: '';
    display: block;
    clear: both;
}
.grid{
    margin-right: -5px;
}

.grid-sizer,
.grid-item {
    width: 50%;
    padding: 0 5px 5px 0;
}
.grid-item {
    float: left;
}

img {
    /*display: block;*/
    max-width: 100%;
}

.ref-mobile{
    display: none;
}

/*
MEDIA QUERIES
*/

@media (max-width: 992px){

    .ref-mobile{
        display: block;
    }

    .ref-desktop{
        display: none;
    }
}

@media (min-width: 450px) and (max-width: 992px){

    .species-map{
        width: 50%;
        display: inline;
    }

    .species-map img{
        width: 40%;
    }

    .grid-sizer,
    .grid-item{
        width: 33%;
    }
}

@media (max-width: 450px){
    /*.grid-item{*/
        /*width: 100%;*/
    /*}*/

    .species-map img{
        width: 100%;
    }
}

/*
SPECIES EDIT
*/

.editor h2, .editor h3{
    margin:20px 0 10px 0;
}

.image-edit{
    margin: 10px 0 10px 0;
}

.mce-edit-area > iframe{
    height: 50vh !important;
}