body {
    display: grid;
    position: fixed; /* lets screen size correctly on mobile where url bar hides*/
    transition: grid-template-columns 500ms;
}
@media screen and (max-width: 5in) {
    body.expanded {
        grid-template-columns: 100vw 0vw;
    }
    /*top bar collapses when sidebar expands*/
    #top-bar.collapsed {
        height: 0; 
        overflow: hidden;
    }
}
@media screen and (min-width: 5in) and (max-width: 10in) {
    body.expanded {
        grid-template-columns: 50vw 50vw;
    }
}
@media screen and (min-width: 10in) {
    body.expanded {
        grid-template-columns: 25vw 75vw;
    }
}
body.collapsed {
    grid-template-columns: 0vw 100vw;
}

#top-bar {
    /* 40=25%, 80=50%, C0=75%*/
    background-color: #efae99ff;
    background-image: url("paper_texture.jpg");
    background-blend-mode: multiply;
    border-radius: 0 0 8px 8px;

    transition: height 500ms;
}

#top-bar #map-link { display: none; }

#sidebar-button {
    position: absolute;
    z-index: 10;
    margin: 0;
    top: 0;
    left: 0;
    width: 1cm;
    height: 1cm;

    transition: transform 500ms;
}

#sidebar-button.collapsed {
}
#sidebar-button.expanded {
    transform: rotate(180deg);
}

#map-container{
    grid-column: 2;
    z-index: 0;
}

.legend {
    padding: 2mm;
    background-color: white;
    border-radius: 5px;
    border: 1px solid lightgray;
}
.legend .item {
    padding: 0.8mm;
}
.legend .title {
    font-weight: bold;
    text-align: center;
}

#left-sidebar{
    grid-column: 1;
    background-color: #efae99;
    background-image: url("paper_texture.jpg");
    background-blend-mode: multiply;
    display: flex;
    flex-direction: column;
    justify-items: flex-start;
    align-items: stretch;
    overflow-y: auto;
}
#left-sidebar>* { margin-bottom: 1mm; }
#left-sidebar .hidden{
    height: 0 !important;
}

#left-sidebar #response-image {
    width: 100%;
    /* border-radius: 10px; */
}
#left-sidebar #response-image.hidden{
    margin-top: 1cm; /* prevent sidebar button overlapping other elements when there' no image*/
}
#left-sidebar #response-audio{
    width: auto;
    height: auto;
    padding: 2mm;
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 1mm;
    justify-items: center;
    align-items: center;
}
#left-sidebar #response-audio-label{
    grid-row: 2;
}
.audio-icon{
    height: 6mm;
    width: 6mm;
    display: inline-block;
    vertical-align: middle;
}
.audio-name{
    margin-left: 1em;
    display: inline-block;
    vertical-align: middle;
}
#left-sidebar #response-audio-controls{
    grid-row: 1;
    width: 100%;
}

#left-sidebar #response-note {
    margin: 2mm;
    text-align: center;
    font-size: 1.2em;
}

#left-sidebar #response-report{
    margin: 1em;
    display: block;
    color: #303030;
    text-decoration: none;
    font-size: 0.8em;
    align-self: center;
    justify-self: flex-end;
}
#left-sidebar #response-report.hidden{
    display: none; /* make report link hide since height:0 doesn't work*/
}
#left-sidebar #response-report:hover{
    color:blue;
}

/* style leaflet layers control*/
.leaflet-control-layers-list{
    font-size: 1.1em; /* larger font*/
}

.icon-selected .body{fill:cornflowerblue !important;}
.icon-selected .halo{stroke:white !important;}
.icon-white .body {fill:white;}
.icon-white .halo {stroke: white;}

.icon-red .body {fill: red;}
.icon-red .halo {stroke: white;}
.icon-blue .body {fill: blue;}
.icon-blue .halo {stroke: white;}
.icon-green .body {fill: green;}
.icon-green .halo {stroke: white;}
.icon-yellow .body {fill: yellow;}
.icon-yellow .halo {stroke: white;}
.icon-magenta .body {fill: magenta;}
.icon-magenta .halo {stroke: white;}
.icon-gray .body {fill: gray;}
.icon-gray .halo {stroke: white;}