/* Website template from Chris Whong's `responsive-web-map-layout` at https://github.com/chriswhong/responsive-web-map-layout */

html, head, body, #main-container {
    height: 100%;
    width: 100%;
    font-family: Galvji;
    background-color: #234b13;
}

body {
    margin: 0;
    padding: 0;
}

#main-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* menu bar styling */
nav {
    padding: 1rem;
    display: flex;
}

.nav-links {
    flex-grow: 1;
    justify-content: end;
    display: flex;
}

.nav-link {
    display: inline-block;
    font-size: .7rem;
    color: #F3F3F3;
}

.nav-link:hover {
    color: #EEFF41;
}

/* main content holders */
#content-container {
    flex-grow: 1;
    display: flex;
    min-height: 0;
    background-color: #F3F3F3;
    color: #565656;
}
#sidebar {
    width: 310px;
    padding: 1rem;
    font-size: .9rem;
    overflow-y: scroll;
    box-sizing: border-box;
    border-right: 3px solid #292828;
    border-bottom: 3px solid #292828;
    border-top: 3px solid #292828;
}

/* map container */
#map {
    height: 100%;
    flex-grow: 1;
}

/* custom markers for entry points */
.mapboxgl-marker {
    background-size: contain;
    width: 25px;
    height: 25px;
}

/* custom popups for parks */
.mapboxgl-popup {
    max-width: 400px;
    font-family: inherit !important;
    font-size: .9rem;
    text-align: center;
}

/* overriding font within map */
.mapboxgl-map {
    font-family: inherit !important;
}

/* floating legend adapted from Chris Whong's example in class https://github.com/chriswhong/pizza-map-2024/ */
.legend {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: .9rem;
    z-index: 1;
    width: 185px;
    background: #F3F3F3;
    padding: 15px;
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 2px 2px #292828;
    -moz-box-shadow: 0px 0px 2px 2px #292828; 
    box-shadow: 0px 0px 2px 2px #292828;
    display: inline-block
}
/* shape of legend symbols */
.legend-key {
    display: inline-block;
    border-radius: 20%;
    width: 20px;
    height: 10px;
    margin-right: 5px;
}

/* small buttons to collapse legend adapted from classmate Henry Kanengiser's work at https://github.com/henry-kanengiser/fcny-community-solar */
.legend-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #f3f3f3;
    width: 25px;
    height: 25px;
    border-radius: 6px;
}
.reopen-legend-button {
    position: absolute; 
    z-index: 1;
    top: 20px;
    left: 20px; 
    background-color: #f3f3f3;
    width: 25px;
    height: 25px;
    border-radius: 6px;
}

/* text formatting */
.title {
    font-weight: 600;
    font-size: 1.3rem;
    color: #f3f3f3;
}
.h1 {
    font-weight: 600;
    font-size: .9rem;
    padding-top: 10px;
}

/* call to action highlight */
.cta {
    background-color: #b3eab5;
    line-height: 1.15385;
    margin: 4px 4px 4px 0;
    outline: none;
    padding-top: 10px;
    padding: 8px .8em;
    border-radius: 3px;
}

/* regular link styling */
.link {
    background-color: #b3eab5;
    padding: 2px .3em;
    color: #234b13;
}
.link:hover {
    color: #EEFF41;
}

/* responsive template info */
@media only screen and (max-width: 800px) {
    #content-container {
        flex-direction: column-reverse;
    }

    #map {
        height: 70%;
        flex-shrink: 0;
    }

    #sidebar {
        width: 100%;
    }
}