﻿html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    min-width: 320px;
}

#mapDiv, #leftMapDiv, #rightMapDiv {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

.mapContainer {
    position: relative;
    width: 100%;
    height: 100%;
}

.splitContainer {
    display: flex;
    width: 100%;
    height: 100%;
}

.splitContainer > #leftMapDiv,
.splitContainer > #rightMapDiv {
    flex: 1 1 50%;
    height: 100%;
}

.splitContainer > #rightMapDiv {
    border-left: 1px solid black;
}

.maintab {
    width: 100%; 
    height: 100%; 
    border-collapse: collapse;
}

.toprow {
    border-bottom: 2px solid black;
    background-color: rgb(175,207,175);
}

.maintitle {
    font-size: x-large;
    color: Black;
    font-weight: bold;
    padding-left: 10px;
}

.subtitle {
    padding-left: 10px;
}

.logotuzvo {
    width: 100px;
    height: 51px; 
    float: left;
    padding-left: 4px;
    padding-bottom: 4px;
}

.linktab {
    width: auto; 
    float: right; 
    padding-right: 4px;
    border-collapse: collapse;
}

.linkpanel {
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
    font-size: small;
}

.legendPanel {
    position: absolute;
    top: 72px;
    right: 12px;
    width: 220px;
    background-color: white;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border-radius: 4px;
    display: block;
    z-index: 100;
}

.legendSectionTitle {
    margin: 8px 0 4px 0;
    padding-bottom: 2px;
    border-bottom: 1px solid #d4d4d4;
    color: #2f4f2f;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.legendSectionTitle:first-child {
    margin-top: 0;
}

.legendBasemapSelect {
    margin: 4px 0 8px 0;
}

.legendBasemapSelect select {
    width: 100%;
    box-sizing: border-box;
    font-size: small;
    padding: 3px 4px;
}

.legendItem {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin: 2px 0;
}

.legendItem label {
    font-size: small;
    line-height: 1.25;
}

.legendLeftPanel {
    left: 12px;
    right: auto;
    max-height: calc(100% - 110px);
    overflow: auto;
}

.legendRightPanel {
    right: 12px;
    left: auto;
    max-height: calc(100% - 110px);
    overflow: auto;
}

.leftLegendPanel {
    position: absolute;
    float: left;
    top: 92px;
    left: 2px;
    width: 220px;
    background-color: White;
    padding-right: 10px;
    padding-bottom: 4px;
    display: block;
    z-index: 100;
}

.logoPanel
{
    position: absolute;
    float: left;
    bottom: 26px;
    left: 2px;
    display: none;
    z-index: 100;
}

.logoefrr
{
    float: left;
    width: 120px;
    height: 110px;
    clear: both;
    margin-bottom: 4px;
    margin-left: 2px;
}

.logoopvav
{
    float: left;
    width: 120px;
    height: 120px;
    clear: both;
    margin-left: 2px;
}

.contactPanel {
    position: absolute;
    float: left;
    bottom: 6px;
    left: 2px;
    z-index: 100;
}

.contactImg {
    float: left;
    width: 180px;
    height: 18px;
    opacity: 0.7;
    clear: both;
}

p.slogan {
    font-size: small;
    background: white;
    opacity: 0.7;
    float: left;
    clear: both;
    margin-top: 4px;
    margin-bottom: 4px;
    margin-left: 2px;
}

.attributionPanel {
    position: fixed;
    float: left;
    bottom: 2px;
    left: 350px;
    right: 350px;
    z-index: 100;
    text-align: center;
}

.attributionPanel p {
    float: none;
    clear: none;
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 2px;
    text-align: center;
}

.mapinfoPanel {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    padding: 4px 6px;
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.scalebarPanel {
    position: relative;
    width: 200px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.coordinatesPanel {
    position: relative;
    width: 200px;
    z-index: 100;
}

.coordinatesPanel p {
    font-size: small;
    padding-left: 4px;
    padding-right: 4px;
    text-align: left;
    margin-top: 0px;
    margin-bottom: 0px;
}

.anchorIcon {
    background-image: url(img/anchor.png);
    width: 16px;
    height: 16px;
}

.zoominIcon {
    background-image: url(img/nav_zoomin.png);
    width: 16px;
    height: 16px;
}

.zoomoutIcon {
    background-image: url(img/nav_zoomout.png);
    width: 16px;
    height: 16px;
}

.zoomfullextIcon {
    background-image: url(img/nav_fullextent.png);
    width: 16px;
    height: 16px;
}

.zoomprevIcon {
    background-image: url(img/nav_previous.png);
    width: 16px;
    height: 16px;
}

.zoomnextIcon {
    background-image: url(img/nav_next.png);
    width: 16px;
    height: 16px;
}

.panIcon {
    background-image: url(img/nav_pan.png);
    width: 16px;
    height: 16px;
}

.swipeIcon {
    background-image: url(img/nav_swipe.png);
    width: 16px;
    height: 16px;
}

.viewMapIcon {
    background-image: url(img/view_map.png);
    width: 16px;
    height: 16px;
}

.viewSwipeIcon {
    background-image: url(img/view_swipe.png);
    width: 16px;
    height: 16px;
}

.viewTileIcon {
    background-image: url(img/view_tile.png);
    width: 16px;
    height: 16px;
}

.linkIcon {
    background-image: url(img/nav_link.png);
    width: 16px;
    height: 16px;
}

.facebookIcon {
    background-image: url(img/facebook16.png);
    width: 16px;
    height: 16px;
}

.cnamesIcon {
    background-image: url(img/view_flagy.png);
    width: 16px;
    height: 16px;
}

.epochIcon {
    background-image: url(img/view_epoch.png);
    width: 16px;
    height: 16px;
}

.eulogoIcon {
    background-image: url(img/nav_eulogo.png);
    width: 16px;
    height: 16px;
}

.legend1Icon {
    background-image: url(img/nav_legend1.png);
    width: 16px;
    height: 16px;
}

.actionBar {
    position: absolute;
    top: 6px;
    right: 12px;
    z-index: 110;
    display: block;
    background: var(--calcite-color-foreground-1, #fff);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    overflow: hidden;
}

.esri-attribution,
.esri-attribution__sources,
.esri-attribution__powered-by {
    display: none !important;
}

.measurementPanel {
    position: absolute;
    right: 12px;
    width: 220px;
    min-height: 40px;
    background-color: white;
    padding: 4px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    border-radius: 3px;
    z-index: 100;
    display: none;
}

.bookLinkIcon {
    background-image: url(img/book_link.png);
    width: 16px;
    height: 16px;
}

@media (max-width: 700px) {
    .maintitle {
        font-size: medium;
    }

    .subtitle,
    .linkpanel {
        font-size: x-small;
    }

    .logotuzvo {
        width: 80px;
        height: auto;
    }

    .actionBar {
        left: 8px;
        right: 8px;
        overflow-x: auto;
    }

    .legendPanel {
        top: 64px;
        width: 200px;
        max-height: calc(100% - 140px);
        overflow: auto;
    }

    .legendLeftPanel {
        left: 8px;
    }

    .legendRightPanel {
        right: 8px;
    }

    .measurementPanel {
        right: 8px;
        width: 210px;
    }

    .attributionPanel {
        display: block;
        left: 8px;
        right: 8px;
        bottom: 62px;
        text-align: center;
    }

    .attributionPanel p {
        display: inline-block;
        max-width: calc(100vw - 16px);
        font-size: xx-small;
        line-height: 1.2;
        text-align: center;
    }

    .mapinfoPanel {
        right: 8px;
        bottom: 8px;
    }
}
