
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;900&display=swap');

/* Reset */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

* {
    box-sizing: border-box;
}

iframe {
    width: 100%;
    height: 100%;
}

/* colours */
body {
    background-color: black;
    color: white;
}

/* fonts */
body, h1 {
    font-family: 'Work Sans', sans-serif;
}

h1, h2, h3, h4 {
    text-transform: uppercase;
    font-weight: 900;
}

/* Layout */

body {
    padding: 1em;
    display: flex;
    flex-direction: column;
}

#map-wrapper {
    height: 100%;
    flex-grow: 3;
    position: relative
}

#toggle-button {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 10000;
    background: black;
    color:white;
    border: white solid 2px;
    border-right: 0;
    border-radius: 4px 0px 0px 4px;
    height: 3em;
}

#toggle-button:hover {
    background-color: grey;
}

#map {
    height: 100%;
}

#content-wrapper {
    display: flex;
    position: relative;
    height: 0; /*weird hack: https://stackoverflow.com/questions/14962468/how-can-i-combine-flexbox-and-vertical-scroll-in-a-full-height-app */
    flex-grow: 1;
}

#site-list {
    display:block;
    padding:0;
    width: 10em;
    overflow-y: scroll;
    transition: ease width 0.5s;
}

#site-list.collapsed {
    width: 0;
}

#site-list > li {
    display: block;
    list-style: none;
    height: 4em;
}

#site-list > li:hover {
    background-color: grey;
}
