
body {
    font-family: Tahoma, sans-serif;
    margin: 0;
    background-color: #EEE2DC;
}
h1 {
    font-family: 'Permanent Marker', cursive;
}


.pageContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, auto));
  gap: 20px;
}

/* header styles */
header {
    margin-bottom: 1em;
    padding-bottom: 1em;
    background-color: #0251a0;
    color: #fff;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.logo {
    width: 160px;
    padding-top: 20px;
}
.header-text-container {
    padding: 0 1em;
}

/* styles relating to the crab tiles */
.crab-tile-container {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8em;
}
.crab-tile {
    width: 250px;
    height: 260px;
    margin: .75em;;
    /* border: 3px #0251a0 solid; */
    border-radius: 10px;
    background-color: #e5d6cf;
    /* padding: 3px; */
    overflow: hidden;
    -moz-box-shadow:    5px 5px 4px 0px #888;
    -webkit-box-shadow: 5px 5px 4px 0px #888;
    box-shadow:         5px 5px 4px 0px #888;
}
.crab-title {
    font-size: 1.2em;
    /* some of the crabbies don't have common names, so we're going to lazily force the height on this */
    height: 36px;
    background-color: #03295e;
    color: #fff;
    margin-bottom: 2px;
    padding: 2px 0;
}
.crab-scientific-name {
    padding: 0 0.25em;
    padding-bottom: 2px;
}
.crab-common-name {
    padding: 0 0.25em;
    background-color: #06459d;

}
.crab-tile .crab-image {
    max-width: 250px;
    max-height: 190px;
}
.-image-trigger {
    position: absolute;
    right: -10;
    top: 50px;
    user-select: none;
    display: none;
}
.previous-image-trigger {
    position: absolute;
    left: -10;
    top: 50px;
    user-select: none;
    display: none;
}
.crab-detail-container .next-image-trigger, .crab-detail-container .previous-image-trigger {
    height: 160px;
}


.crab-image-container{
    height: 185px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: #626262;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crab-links {
    margin-top: 5px;
    cursor: pointer;
    position: relative;
    color: #343434;
}
.crab-links-right {
    position: absolute;
    right: 5px;
    top: 0;
}
.crab-links a:link, .crab-links a:visited, .crab-links a:active {
    color: #343434;
}
.crab-links a:hover {
    color: #534;
}
.crab-link:hover {
    color: #534;
}
.crab-link {
    display: inline-block;
}

.crab-image {
    max-width: 100%;
    max-height: 100%;
}
.image-count-display {
    position: absolute;
    right: 0px;
    background-color: #36453B;
    color: #ebebeb;
    padding: 0 6px;
    opacity: 0.7;
    z-index: 10;
    top: 0;
    font-size: 1.4em;
}
.crab-image-container:hover .previous-image-trigger, .crab-image-container:hover .next-image-trigger {
    display: block;
}
.previous-image-trigger, .next-image-trigger {
    display: none;
    position: absolute;
    background-color: white;
    top: 0;
    height: 110px;
    padding-top: 80px;
    z-index: 5;
    opacity: 0.6;
    user-select: none;
}

.previous-image-trigger {
    left: 0px;
}
.next-image-trigger {
    right: 0px;
}
.image-attribution-container {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: #ffffff82;
    padding: 0 3px;
}
.image-attribution-container a:link, .image-attribution-container a:visited, .image-attribution-container a:active {
    color: #000;
    text-decoration: none;
}

/* general popup styles - either the compare dialog or the large image popup */
.popup {
    background-color: #EEE2DC;
    -moz-box-shadow:    5px 5px 4px 0px #888;
    -webkit-box-shadow: 5px 5px 4px 0px #888;
    box-shadow:         5px 5px 4px 0px #888;
    color: #0251a0;
    border: 1px solid #888;
    border-radius: 5px;
    width: 100%;
}
.popup-banner {
    position: relative;
    background-color: #0251a0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    height: 1.5em;
    font-size: 1.2em;
    padding: 5px 20px;
    color: #fff;
}
.popup-close {
    position: absolute;
    right: 5px;
    top: 5px;
    cursor: pointer;
}
.popup-close .material-icons {
    font-size: 1.5em;
}
.popup-content {
    padding: 10px;
    white-space: nowrap;
    overflow-x: auto;
}
.popup-link {
    float: right;
    margin-right: 20px;
    margin-top: 2px;
    /* font-size: 1.2em; */
    color: #ebebeb;
}




/* compare dialog popup styles - called the details popup */
.details-popup-container {
    position: absolute;
    z-index: 100;
    max-width: 100%;
    left: calc(50% - 100vw);
    transform: translate(-50%, 0) translate(100vw, 0);
}

.remove-crab-from-dialog-container {
    position: relative;
    font-size: 0.8em;
    height: 0.8em;
}
.remove-crab-from-dialog-container span {
    position: absolute;
    right: 0.5em;
    text-decoration: underline;
    cursor: pointer;
}

/* crab details within the popup */

.crab-details-container {
    display: flex;
}

.crab-detail-container {
    /* display: inline-block; */
    /* border: 1px solid #36453B; */
    border-radius: 0.3em;
    padding: 5px;
    margin: 3px;
    background-color: #FFF4E8;
    position: relative;
    width: 400px;
    font-size: 0.8em;
    vertical-align: top;
    white-space: normal;
}
.crab-detail-container .previous-image-trigger, .crab-detail-container .next-image-trigger {
    padding-top: 140px;
    width: 30px;
}
.crab-detail-container .crab-image-container {
    height: 300px;
}

.crab-detail-container .common-name {
    font-size: 1em;
}
.crab-detail-container .scientific-name {
    font-size: 1.5em;
}
.references {
    font-size: 0.8em;
}
.crab-detail-container .crab-links {
    border-bottom-left-radius: 0.3em;
    border-bottom-right-radius: 0.3em;
}
.no-list-items {
    margin-bottom: 1em;
}
.details-compare-link {
    font-size: 0.8em;
    padding-left: 0.5em;
    text-decoration: underline;
    cursor: pointer;
}
.view-image-fullsize-trigger {
    position: absolute;
    left: 0;
    top: 0px;
    background-color: #fff;
    opacity: 0.9;
    z-index: 10;
}
.view-image-fullsize-trigger:hover {
    color: #534;
}

/* styles for the large image popup */
.fullsize-image-popup-container {
    position: absolute;
    z-index: 200;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 100%;
}
.fullsize-image-container {
    position: relative;
}



/* footer styles - these have to go at the bottom of the style sheet (that's the rules) */

footer {
    margin-top: 1em;
    padding: 1em;
    background-color: #0251a0;
    color: #fff;
    font-size: 0.8em;
}

.info-link-button {
    color: #24292e;
    background-color: #eff3f6;
    background-image: linear-gradient(180deg, #fafbfc, #eff3f6 90%);
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    border-radius: .25em;
    border: 1px solid;
    border-color: rgba(27,31,35,.2);
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;
    float: right;
    margin-right: 3px;
}
.info-link-button a:link, .info-link-button  a:visited{
    color: #24292e;
    text-decoration: none;
}
.info-link-button img {
    height: 20px;
    width: 20px;
    vertical-align: middle;
}
.info-link-button .material-icons {
    font-size: 20px;
    vertical-align: middle;
}


/* filter styles */

.filters-container{
    margin: 0.75em;
    max-width: 450px;
}
.possible-values-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.possible-value-container{
    margin: 5px;
    padding: 5px;
    background-color: #C5C6C7;
    cursor: pointer;
    color: #fff;
    text-align: center;
    font-size: .8em;
    min-width: 66px;
}

.selected-filter-value {
    background-color: #88b2ff;
}

