body {
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15rem;
    left: 0;
}

#navigation {
    position: absolute;
    left: 0rem;
    top: 0;
    z-index: 1;
    text-align: center;
}

#toolbox {
    position: absolute;
    right: 15rem;
    top: 0;
    z-index: 1;
    text-align: center;
}

.tool {
    background-color: white;
    border-radius: 5px;
    margin: 0.5rem;
    box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
    cursor: pointer;
    transition: all 200ms ease;
}

.tool:hover {
    background-color: gainsboro;
}

.tool_image {
    height: 0.75rem;
    margin: 0.5rem;
}

.theme_title {
    line-height: 1;
    font-size: medium;
}


.link_text {
    line-height: 1;
    background-color: whitesmoke;
    padding: 0.5rem;
    margin-top: 1rem;
    text-align: justify;
}

.link_title {
    cursor: pointer;
}

.link_title:hover {
    cursor: pointer;
    background-color: gainsboro;
    text-decoration: underline;
}

.maplibregl-popup {
    transition: display 3s;
}

#tooltip {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width:15rem;
    background-color: white;
    border-radius: 0.25rem;
    z-index: 2;
    padding: 2rem 1rem 0 1rem;
}

#attribution {
    position: absolute;
    right: 0;
    bottom: 0;
    width:15rem;
    z-index: 3;
    padding: 1rem;
    line-height: 1;
    font-size: small;
}

#timeline {
    position: absolute;
    right: 16rem;
    left: 1rem;
    bottom: 1rem;
    background-color: white;
    border-radius: 0.25rem;
    z-index: 2;
    padding: 0.25rem 1rem;
}

@media (orientation: portrait)  {

    #tooltip {
        position: absolute;
        right: 0.5rem;
        bottom: unset;
        top: 0.5rem;;
        width:14.5rem;
        background-color: white;
        border-radius: 0.25rem;
        z-index: 2;
        padding: 1rem;
    } 

    #map {
        right: 0;
    }

    #attribution {
        right: 0.5rem;
        background-color: white;
        border-radius: 0.25rem;
        bottom: 10rem;
        width:14.5rem;
    }

    #toolbox {
        left: 0rem;
        right: unset;
    }

    #navigation {
        top: 2.5rem;
    }

    #timeline {
        right: 0.5rem;
    }

}