html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    /*font-family: 'Kanit', sans-serif;*/
    font-family: 'Exo 2', sans-serif;
}

header {
    position: absolute;
    height: 120px;
    color: #B50303;
    z-index: 1000;
    padding: 5px;
    max-width: 60%;

    -webkit-filter: drop-shadow( 3px 3px 3px rgba(200, 200, 200, .7));
    filter: drop-shadow( 3px 3px 3px rgba(200, 200, 200, .7));
}

.title {
    font-size: larger;
    line-height: 20px;
    padding: 5px;
}


#mars-logo {
    height: 80px;
    padding: 5px;
}

#map {
    height: 100%;
    width: 100%;
    background-color: black;
}

#map .pointer {
    background-size: cover;
    z-index: 5000 !important;
}

#map .pointer.curiosity {
    background-image: url("../img/pointer-curiosity.svg");
}

#map .pointer.spirit {
    background-image: url("../img/pointer-spirit.svg");
}

#map .circle.curiosity {
    background: #00691D;
    border: none /*1px solid #323232*/;
    border-radius: 50%;
    opacity: 0.2;
}

#map .circle.spirit {
    background: #074369;
    border: none /*1px solid #323232*/;
    border-radius: 50%;
    opacity: 0.2;
}

#map .leaflet-top.leaflet-left {
    top: 130px;
}

.leaflet-control
{
    color: #dfd4d1;
    background-color: #B50303;
    border: none;
}

.leaflet-control-scale /*to not have red at the scale*/
{
    color: black;
    background-color: rgba(255,255,255,.1);
}

.leaflet-bar a, .leaflet-bar a:hover
{
    color: #dfd4d1;
    background-color: #B50303;
}

.leaflet-control-layers.leaflet-control
{
    border: none;
}

.leaflet-control-zoom.leaflet-bar.leaflet-control
{
    border: none;
}

#map .message-control {
    display: none;
    color: white;
}

#map path {
    stroke: rgb(179, 30, 38);
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
}

.overlay .close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 44px;
    font-size: 3rem;
    color: #ffffff;
    height: 44px;
    line-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: -14px;
    margin-right: -14px;
    z-index: 10900;
}

.overlay .flex-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.overlay .rover-schema {
    flex: 1 1 600px;
}

.overlay .rover-schema-wrapper {
    position: relative;
    width: 600px;
    margin: auto;
}

.overlay .rover-schema-img {
    height: 100%;
    width: 100%;
    margin: auto;
}

.overlay .rover-schema-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.overlay .rover-schema .camera {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('../img/camera-icon.svg');
    background-size: cover;
    opacity: .9;
    cursor: pointer;
}

.overlay.curiosity .rover-schema .camera {
    background-image: url('../img/camera-icon-green.svg');
}


.overlay.spirit .rover-schema .camera {
    background-image: url('../img/camera-icon-blue.svg');
}

.overlay .rover-schema .camera:hover {
    opacity: 1;
    width: 40px;
    height: 40px;
    margin-left: -5px;
    margin-top: -5px;
}

.overlay .rover-schema .camera.disabled, .overlay .rover-schema .camera.disabled:hover {
    filter: grayscale(100%);
    opacity: .5;
}

.overlay .rover-images {
    flex: 0 1 200px;
}

.overlay .rover-schema .camera .tooltip {
    display: none;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    width: 100px;
    margin-left: 50px;
    z-index: 11000;
}

.overlay .rover-schema .camera:hover .tooltip {
    display: block;
}

.overlay .sol-chooser {
    flex: 0 1 200px;
    direction: rtl;
    overflow: auto;
    height: 100%;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.overlay .sol-chooser div {
    background-color: #dfd4d1;
    color: #000000;
    text-align: center;
    padding: 5px 0;
    margin: 8px 20px;
    border-radius: 6px;
    z-index: 11000;
    cursor: pointer;
    direction: ltr;
}

.overlay.curiosity .sol-chooser div.selected {
    background-color: #00691D;
    color: #ffffff;
}

.overlay.curiosity .sol-chooser div:hover {
    background-color: #74a77f;
}

.overlay.spirit .sol-chooser div.selected {
    background-color: #074369;
    color: #ffffff;
}

.overlay.spirit .sol-chooser div:hover {
    background-color: #8cb6de;
}

.overlay .sol-chooser div span {
    font-size: small;
}

.overlay .image-sidebar {
    width: 33%;
    min-width: 238px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 16px 5px 5px;
    box-sizing: border-box;
    color: #B50303;

    /*looks a bit terrible right now and the closing-cross doesn't work if it's enabled:
    -webkit-filter: drop-shadow( 2px 2px 8px rgba(200, 200, 200, .7));
    filter: drop-shadow( 2px 2px 8px rgba(200, 200, 200, .7));   */
}

.overlay.curiosity .image-sidebar
{
    color: #00691D;
}

.overlay.spirit .image-sidebar
{
    color: #074369;
}


.overlay .image-sidebar .image-area
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.overlay .image-sidebar .image-area img.rover {
    width: 100%;
    max-width: 100px;
    padding: 5px;
}

header, aside, footer {
    margin: 0;
    padding: 0.3rem;
    color: #B50303;
}

body {
    background: #000000;
}

footer {
    background: #272727;
    text-align: right;
}

.content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flex-container {
    flex-grow: 1;
    display: flex;
    min-height: 0;
}

.content {
    flex: 1;
}

/* fixes for simplelightbox */
.sl-wrapper {
    z-index: 12040;
}

.sl-overlay {
    z-index: 12000;
}

.sl-spinner {
    z-index: 12007;
}

.sl-wrapper .sl-close
{
    z-index: 12060;
    background: none;
    border: none;
}

.sl-wrapper .sl-image
{
    z-index: 15000;
}

.sl-wrapper .sl-navigation button {
    z-index: 15060;
}

@media screen and (max-width: 992px) {
    .overlay .rover-schema {
        order: 1;
    }

    .overlay .sol-chooser {
        order: 2;
        direction: ltr;

        flex: 0 1 200px;
        flex-direction: row;
        justify-content: center;
        overflow: auto;
        flex-wrap: wrap;
    }

    .overlay .sol-chooser div {
        margin: 5px;
        height: 22px;
        min-width: 100px;
    }

    .overlay .image-sidebar {
        order: 3;
        width: 100%;
    }
}

@media screen and (orientation: portrait) {
    .overlay .rover-schema-wrapper {
        max-width: 80%;
    }

    .overlay .flex-wrapper {
        flex-direction: column;
    }

    .overlay .rover-schema {
        order: 1;
        max-height: 40%;
    }

    .overlay .sol-chooser {
        order: 2;
    }

    .overlay .image-sidebar {
        order: 3;
    }
}

@media screen and (orientation: landscape) {
    .overlay .rover-schema {
        order: 2;
        max-width: 40%;
    }

    .overlay .rover-schema-wrapper {
        max-width: 100%;
    }

    .overlay .sol-chooser {
        order: 1;
    }

    .overlay .image-sidebar {
        order: 3;
    }
}

@media screen and (max-width: 650px) {
    .title {
        font-size: medium;
    }

    #mars-logo {
        width: 120px;
        height: auto;
    }

    #header {
        height: auto;
    }
}

@media screen and (max-width: 650px) and (orientation: portrait) {
    .overlay .rover-schema-wrapper {
        max-width: 50%;
    }
}