body{
    margin:0;
    font-family: 'Ubuntu', sans-serif;
}

#map{
    width: 85vw;
    height:100vh;
    margin:0;
    flex-grow: 2;
}

#root{
    display:flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

/* Sidebar */

#sidebar{
    width: 18vw;
    padding: 2vw;
    position: relative;
    background-color: rgb(241, 241, 241);

    display: flex;
    flex-direction: column;
}

#filter{
    width: 100%;
}

#filter > #expand{
    color:grey;
}

#filter > #expand:hover{
    cursor: pointer;
    color: black;
}

#explorer{
    flex-grow: 2;
}

#eventsList{
    display: flex;
    height: 34.5vh;
    flex-direction: column;
    gap: 5vh;
    overflow-y: auto;
    margin-top: 2vh;
}

.eventBox{
    background-color: white;
    min-height: 10vh;
    box-shadow: 0 0.5vh 0.5vh 0 rgba(0,0,0,0.2);
    border: 1px black solid;
    display:flex;
    align-items: center;
}

.eventBox:hover{
    cursor: pointer;
    background-color: rgb(241, 241, 241);
}

.eventBox > span{
    margin: 1em;
}

.eventBox h3{
    margin: 0 0 1em 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width:9vw;
    display:inline-block;
}

.boxDescription{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width:9vw;
    display:inline-block;
}

#title{
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#title > h1{
    font-size:2vw;
}

footer{
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgb(241, 241, 241);
    padding-bottom: .5em;
}

/* Modal */

#modalBG{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

#info{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    max-height: 50vh;
    min-height: 30vh;
    background-color: white;
    z-index: 2;


    display:flex;
    flex-direction: column;
    padding: 2em;
}

#info > #main{
    flex-grow:2;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
}

#eventDate{
    margin: 1em 0 .25em 0;
}

#eventTracker{
    max-height: 20vh;
    width: 90%;
    overflow: hidden;
    overflow-y: scroll;
    border: black 1px solid;
    padding: 0;
}

#eventIMG{
    width: 100%;
    display:flex;
    align-items: center;
    justify-content: center;
    min-height: 10vh;
    max-height: 20vh;
}

#eventIMG > img{
    max-height: 15vh;
    object-fit: cover;
    margin: 1em;
}

#eventIMG > span{ /* icon */
    font-size: 2em;
}

#eventTracker li{
    list-style:none;
    background-color: lightgrey;
}

#eventTracker li:nth-child(even){
    background-color: rgb(241, 241, 241);
}

/* Marker Colors */

.severeStorms{
    color: skyblue;
}

.earthquakes {
    color: lightsalmon;
}

.volcanoes{
    color: orange;
}

.drought{
    color: tan;
}

.floods{
    color: #4486ff;
}

.landslides{
    color: rgb(88, 13, 13);
}

.tempExtremes{
    color: lightsalmon;
}

.manmade{
    color: #1e1e1e;
}

.seaLakeIce{
    color: lightsteelblue;
}

.waterColor{
    color: turquoise;
}

.wildfires{
    color: orange;
}

.snow{
    color:lightgray;
}
