/* universal */
body {
    margin: 0;
    padding: 0;
}

/* grey text */
p {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.4);
    margin: auto;
}

/* blue links */
a,
a:focus,
a:hover {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #1CD6D9;
    text-decoration: none;
}

/* get list items to be colored with same grey as text */
li {
    color:rgba(255, 255, 255, 0.4);
}

/* part of button styling here, part in mapbox override section */
button {
    outline: white;
    background-color: rgba(30, 33, 40, 1);
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    border-style: solid;
    border-width: 1px;
    display: block;
}

/* turquise headings with Space Grotesk font */
h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    color:#1CD6D9;
}

/* special formatting for "x" on buttons (currently not used) */
.x {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #FFF;
    margin: auto;
    font-size: 20pt;
}

/* map canvas styling */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

/* initial state of graph/info toggles  */
#toggleGraph {
    width: 29px;
    height: 29px;
    display: none;
    /* this changes when a chart is rendered and a button is necessary */
}
#toggleInfo {
    width: 29px;
    height: 29px;
    /* this changes when a chart is rendered and a button is necessary */
}

/* additional justification/alignment/size adjustment for link in graph window */
#usgs-link {
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: smaller;
}

/* this controls the outer container for both graph and info modals */
.media-box {
    background-color: rgba(137, 43, 226, 0);
    opacity: 0;
    transition: max-width 0.3s;
    transition: opacity 0.3s;
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 6%;
    left: 0;
    right: 0;
    padding: .5%;
    pointer-events: none;
}

/* inner info container */
.info {
    background-color: rgba(30, 33, 40, 1);
    outline: 4px solid rgba(255, 255, 255, 0.4);
    outline-width: 1px;
    z-index: 9999;
    border-radius: 2rem;
    margin: 20px;
    margin-right: 49px;
    padding: 20px;
    height: 85vh;
    flex: 1 1 auto;
    pointer-events: visiblePainted;
    overflow-y: scroll;
}

/* inner chart container */
.chart {
    background-color: rgba(30, 33, 40, 1);
    outline: 4px solid rgba(255, 255, 255, 0.4);
    outline-width: 1px;
    z-index: 9999;
    border-radius: 2rem;
    margin: 20px;
    padding: 20px;
    height: 100%;
    flex: 1 1 auto;
    /* this will make the charts grow and shrink as necessary */
    min-width: calc(100% / 4 - 2%);
    /* adjust the fraction based on the number of charts you want to display */
    max-width: calc(100% / 1 - 2%);
    pointer-events:all;
}

/* styling for the svgs inside buttons (see mapbox override section) */
.icon {
    height: 17px;
    width: 17px;
    background-repeat: no-repeat;
    display: block;
    rotate: 0deg;
    transition: rotate .3s;
    margin: auto;
}

/* using the "plus" icon (rotated 45deg in index.js) to create an X for when buttons are in open state */
#graph {
    background-image: url(../img/plus.svg);
}
#info {
    background-image: url(../img/info.svg);
}

/* space out socials div evenly */
.contact {
    
    display: flex;
    justify-content: space-evenly;
}

/* MAPBOX OVERRIDES */
.mapboxgl-ctrl-icon {
    display: none !important;
}

/* change icon */
.mapboxgl-ctrl-zoom-in {
    background-image: url(../img/plus.svg);
    background-repeat: no-repeat;
    background-position: center;
}
.mapboxgl-ctrl-zoom-out {
    background-image: url(../img/minus.svg);
    background-repeat: no-repeat;
    background-position: center;
}
.mapboxgl-ctrl-compass {
    background-image: url(../img/north.svg);
    background-repeat: no-repeat;
    background-position: center;
}
.mapboxgl-ctrl-geolocate {
    background-image: url(../img/crosshair.svg);
    background-repeat: no-repeat;
    background-position: center;
}

/* change colors to dark grey to emphasize icon */
.mapboxgl-ctrl-group {
    outline: solid rgba(255, 255, 255, .4) !important;
    outline-width: 1px !important;
    border-radius: 2.5vh !important;
    background: rgba(30, 33, 40, 1) !important;
}
.mapboxgl-ctrl-group button+button {
    border-top: 0px solid #ddd !important;
}