:root {
    --header-height: 3rem;
    --beige: #ede4cd;
    --red: #e38d8a;
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body, div {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

main {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background-color: var(--red);
    padding: 0.75rem;
    border-bottom: 1px solid #333;
}


header nav a {
    display: inline-block;
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 0.2rem 1rem;
    border-left: 2px solid var(--beige);
}

header nav a:first-child {
    border-left: none;
}

#map {
    position: absolute;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    background-color: teal;
}


#tooltip {
    position: absolute;
    display: inline-block;
    height: auto;
    width: auto;
    z-index: 100;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    left: 50%;
    transform: translateX(3%);
    visibility: hidden;
    pointer-events: none;
}


#map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20rem;
    height: auto;
    background-color: var(--beige);
    z-index: 100;
    padding: 1rem;
}


#map-controls h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

#map-controls div {
    margin-bottom: 0.2rem;
}

#map-controls input {
    margin-right: 0.4rem;
}

#map-controls label {
    display: block;
}

#map-controls select {
    display: block;
}


#video {
    position: absolute;
    top:0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: none;
    padding: 1rem 22rem 1rem 1rem;
    background-color: rgba(0.4, 0.4, 0.4, 0.4);
}

#video video {
    max-width: 100%;
    max-height: 100%;
}

#video .video-header {
    background-color: #ccc;
    padding: 0.4rem;
}

#video .close {
    width: 24px;
    float: right;
}

/* #video .close-button {
    position: absolute;
    top: 1.1rem;
    right: 22.1rem;
} */
