/* Currently supporting IE10+ */

@media (max-width: 599px) {
    #pageNotesContent {
        margin: 0 8px;
    }

    #links {
        margin: 0px;
        padding: 4px;
    }

    #links ul {
        margin-left: 4px;
        margin-right: 4px;
    }

    #reportImgs {
        display:none;
    }

    #links p {
        margin: 0 0 0 12px;
        text-indent: -12px;
        padding: 4px;
    }

    #links a:first-child {
        font-size: 1.1em;
        margin-right: 4px;
    }

    .subLinks {
        margin-left: 16px;
    }

    .taxon {
        margin-left: 8px;
        margin-top: 4px;
        text-indent: -4px;
    }

    .detailImages img {
        /* If you apply full margin, then in the case where the image
           is scaled down and the following image wraps to the next
           line, the image on this line overflows to the right :/ */
        margin-bottom: 4px;
        margin-right: 4px;
    }

    #detailAnimal p {
        margin: 4px 16px 12px 16px;
    }

    #detailAnimal span {
        line-height: 1.2;
    }

    .classification {
        padding-left: 12px;
    }
}

@media (min-width: 600px) {
    h1 {
        font-size: 2.8em;
    }

    #pageNotesContent {
        max-width: 85%;
        margin: 0 auto;
    }

    #links {
        margin: 0px 15px;
        padding: 8px;
    }

    #links p {
        margin: 0 0 0 16px;
        text-indent: -16px;
        padding: 2px 8px;
    }

    #links ul {
        margin-left: 17px;
    }

    #links a:first-child {
        font-size: 1.2em;
        margin-right: 8px;
    }

    .subLinks {
        margin-left: 2em;
    }

    .taxon {
        margin-left: 2em;
        margin-top: 4px;
        text-indent: -1em;
    }

    #detailAnimal p {
        margin: 4px 32px 12px 32px;
    }

    .detailImages img {
        margin-right: 8px;
        margin-bottom: 8px;
    }
}

@media (max-width: 799px) {
    #treeFauna .evenSolid, #treeFauna .evenSoft,
    #treeFauna .oddSolid, #treeFauna .oddSoft {
        margin-left: 2px;
        border-left: none;
    }

    #treeFauna {
        margin: 0 -15px;
    }

    div.treeAnimal {
        margin-right: 8px;
        max-width: 100%;
    }

    .treeAnimal .title {
        text-align: center;
    }

    div.treeThumbs {
        display: block;
        margin-bottom: 12px;
    }
}

@media (min-width: 800px) and (max-width: 1199px) {
    #treeFauna .evenSolid, #treeFauna .evenSoft,
    #treeFauna .oddSolid, #treeFauna .oddSoft {
        margin-left: 1em;
    }
}

body {
    margin: 0px;
    margin-bottom: 55px;
    padding: 0px;
    font-family: verdana, arial, helvetica, sans-serif;
}

select {
    border: 1px solid black;
}

textarea {
    margin-top: 4px;
    margin-bottom: 4px;
}

button {
    margin: 10px;
}

input {
    margin: 3px;
}

img {
    max-width: 100%;
    border: 2px solid #444444;
}

p {
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    font-style: oblique;
    color: #2A2A2A;
    padding: 8px;
    font-family: georgia, 'times new roman', times, serif;
}

h1 a {
    color: #409C46;
    font-size: 1.3em;
}

a {
    word-wrap: break-word;
}

#treeViewBox {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

#treeViewBoxTarget {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
}

#treeViewBoxTarget + span {
    /* sigh */
    position: relative;
    bottom: -1px;
    left: -4px;
}

#treeViewCheckboxControl {
    margin-bottom: 16px;
}

#fixedSelect {
    position: fixed;
    visibility: hidden;
    top: 0px;
}

.faunaSelect {
    z-index: 2;
}

.faunaSelectHolder {
    position: relative;
}

.faunaSelectBackground {
    background: green;
    opacity: 0.1;
}

.selectForm {
    position: absolute;
    left: 35%;
    margin-left: auto;
    margin-right: auto;
}

#treeForm p {
    margin-left: 8px;
}

.pageNotesTitle {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 8px;
}

#pageNotesHeader {
    margin-left: auto;
    margin-right: auto;
    margin-top: 16px;
    text-align: center;
}

#pageNotesButton {
    font-size:1.2em;
    cursor: pointer;
}

#pageNotesImg {
    border: none;
}

#pageNotesContent {
    padding: 8px;
    margin-bottom: 16px;
    background: #f4f4f4;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: none;
}

.expand_collapse_section {
    cursor: pointer;
    vertical-align: middle;
}

#links {
    border: 1px solid black;
    background: white;
}

#links img {
    margin-bottom: -2px;
    margin-top: 5px;
}

#links ul {
    list-style-type: none;
    text-indent: -2em;
    margin-top: 8px;
    margin-bottom: 8px;
}

#links > ul > li {
    margin-top: 9px;
}

#titleImage {
    padding: 0 8px;
    text-align: center;
}

#titleImage img {
    border: 2px solid black;
    box-sizing: border-box;
}

.imageInfo {
    text-align: center;
    font-size: .9em;
}

#thumbsDetailDiv {
    display: none;
    border: 4px solid black;
    margin-left: -5px;
    margin-right: -5px;
    background: white;
    position: relative;
}

#thumbsDetailMarker {
    position: absolute;
    top: -16px; /* -(height of marker + thumbs detail border - 1) */
    border: none;
}

.detailImages {
    text-align: center;
}

#treeFauna p {
    margin: 4px 30px 12px 30px;
}

.treeThumbs {
    background: white;
    border: 1px solid #999;
    padding: 3px;
    margin: 2px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    position: relative;
    margin-top: 24px;
}

.treeThumbs > img {
    margin: 3px;
}

#detailAnimal {
    overflow: auto;
    text-align: left;
    background: white;
    width: 100%;
}

.treeAnimal, .treeAnimalWide {
    background: #f1f1f1;
    margin-bottom: 4px;
    padding-bottom: 5px;
    padding-left: 2px;
    padding-top: 2px;
    padding-right: 2px;
    border: 2px solid #ccc;
}
.treeAnimal {
    max-width: 900px;
}
.treeAnimalWide {
    max-width: 100%;
}

.thumbsContainer {
    position: relative;
    display: inline-block;
}

.zoomButtonIn, .zoomButtonOut {
    cursor: pointer;
    width: 34px;
    height: 34px;
    position: absolute;
    left: 3px;
    top: 0px;
}
.zoomButtonIn {
    background: url(images/zoomIn.png);
}
.zoomButtonOut {
    background: url(images/zoomOut.png);
}

#thumbsDetailClose {
    border: none;
    position: absolute;
    right: 3px;
    top: 8px;
    cursor: pointer;
}

.thumbs {
    display: inline-block;
    vertical-align: middle;
    background: white;
    border: 4px solid black;
    margin: 12px;
    padding: 6px;
    cursor: pointer;
    position: relative;
}

.thumbContainer, .wideThumbContainer {
    position: relative;
    vertical-align: middle;
    display: inline-block;
    margin: 6px;
}
.thumbContainer {
    height: 204px;
    width: 204px;
}

.thumbContainer > img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

#instructions {
    display: none;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
}

.verified, .unverified {
    padding-left: 12px;
    margin-right: 8px;
    vertical-align: 4px;
    font-size: .5em;
    border: 1px solid black;
}

.verified {
    background: green;
}

.unverified {
    background: yellow;
}

#warning {
    margin: 12px;
    border: 2px solid #999999;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #2435D9;
}

#innerWarning {
    background: white;
    margin: 2px;
    border: 1px solid black;
}

#innerWarning strong {
    font-size: 1.2em;
}

#innerWarning p {
    margin: 8px;
}

.title {
    clear: both;
    font-size: 1.8em;
    color: #444444;
    background: #DCDCE1;
    border: 2px solid #555555;
    margin-bottom: 3px;
    padding: 4px 10px;
}

.title b {
    color: black;
}

#thumbsDetailTitle {
    font-size: 1.8em;
    color: #444444;
    background: #dcdce1;
    border-bottom: 1px solid #555555;
    min-height: 44px;
    padding: 4px 10px;
    padding-right: 40px;
    display: flex;
    justify-content: center; /* align horizontal */
    align-items: center; /* align vertical */
}

#faunaDiv {
    padding: 0px 15px;
    display: none;
}

#titleContainer {
    position: relative;
    margin-left: -10px;
    margin-right: -10px;
    /* Apparently relative position elements z-index-compete with fixed
       elements - this one needs to stay below the fixed position select. */
    z-index: -1;
    font-size: 2em;
    color: #461F00;
    background: #D8DDEB;
    border: 3px solid #6161FF;
}

#faunaTitleLoadingWrapper {
    display: inline-block;
    position: relative;
}

#faunaTitle {
    margin: 0px;
    padding: 4px 40px 4px 6px;
    display: inline-block;
}

#faunaLoading {
    position: absolute;
    right: 14px;
    top: 8px;
    font-size: .8em;
}

#thumbFauna {
    background: #efefef;
    padding: 0px 10px;
    border-left: 2px solid #dddddd;
    border-right: 2px solid #dddddd;
    border-bottom: 2px solid #dddddd;
    text-align: center;
}

.submissionTitle {
    font-size: 1.2em;
}

.submissionBorder {
    width: 8px;
    margin-left: 15px;
    margin-top: 10px;
    padding-left: 8px;
    border-left: 3px solid #dddddd;
    border-top: 3px solid #dddddd;
    border-bottom: 3px solid #dddddd;
}

.submission {
    width: 880px;
}

.notes {
    max-width: 900px;
}

.notesTitle {
    margin-left: 8px;
    font-size: 1.3em;
    color: #5A5B71;
}

.animal {
    margin-bottom: 20px;
    padding-top: 5px;
    margin-left: 12px;
    margin-right: 12px;
}

.animal p {
    max-width: 1000px;
}

.inputDiv {
    padding: 10px;
    margin: 10px;
    margin-top: 15px;
    border: 3px solid #555555;
    position: relative;
}

.inputDiv select {
    margin-top: 6px;
    margin-bottom: 6px;
}

.inputTitle {
    position: absolute;
    padding: 2px 4px;
    left: 12px;
    top: -15px;
    background: white;
    border: 1px solid blue;
}

.submissions {
    clear: both;
}

.submittor {
    font-size: 1.3em;
    font-style: oblique;
}

.date {
    font-style: oblique;
    color: #555555;
}

.nameDate {
    border-bottom: 1px solid blue;
}

.verify_button {
    border: 4px solid #0F6E14;
}

.nameTip {
    position: absolute;
    top: 4px;
    left: 4px;
    margin-right: 4px;
    padding: 4px;
    visibility: hidden;
    border: 2px solid gray;
    background: #F4F5D1;
}

.nameTipOn {
    margin: 4px;
    padding: 4px;
    border: 2px solid gray;
    background: #fffff7;
}

.classification {
    margin-bottom: 8px;
}

#taxonomyButton {
    cursor: pointer;
    display: inline-block;
}
#taxonomyButton img {
    border: none;
    vertical-align: middle;
    margin-left: 2px;
}

.taxonTitle {
    color: #777;
}

.oddSolid {
    margin-left: 2em;
    border-left: 1px solid #333;
}

.oddSoft {
    margin-left: 2em;
    border-left: 1px solid #ccc;
}

.evenSolid {
    margin-left: 2em;
    border-left: 1px dashed #333;
}

.evenSoft {
    margin-left: 2em;
    border-left: 1px dashed #ccc;
}

.treeTaxonTitleDiv {
    position: relative;
    background: white;
    padding: 4px;
}

.treeTaxonTitle {
    color: #777;
}

.solidTitle {
    font-weight: bold;
    font-size: 1.4em;
}

.solidTitle .treeTaxonTitle {
    color: #406293;
}

.Species, .Genus, .Family, .Order, .Class {
    font-weight: bold;
    font-size: 1.4em;
}

.Species .treeTaxonTitle {
    color: #A55650;
}

.Genus .treeTaxonTitle {
    color: #259B23;
}

.Family .treeTaxonTitle {
    font-weight: bold;
    color: #406293;
}

.Order .treeTaxonTitle {
    font-weight: bold;
    color: #6B4578;
}

.Class .treeTaxonTitle {
    font-weight: bold;
    color: #A48236;
}
