@import url('helvetica.css');

body {
	margin: 40px;
    width: auto;/*calc(100% - 40px);*/
	display: flex;
	flex-direction: column;
}

a {
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Helvetica', Arial, sans-serif;
}

h1 {
    font-family: 'Helvetica-Mono';
    color: #e0e0e0 !important;
}



.sub-fig-text {
    color: #e0e0e0 !important;
}

.scroll-view {
    height: 100%;
    overflow-y: auto;
    height: calc(100vh - 80px); /* Adjust height to fit within the viewport */
}



#map-container {
    display: flex;
    flex-grow: 1;
	max-height: calc(100% - 30px);
    min-height: calc(100% - 110px);
	margin-top: 0;
    margin-right: -40px;
	position: relative;
	background-color: transparent;
}

#map_51c87d061bb72d92a7bebed85ec3294d {
	position: relative;
	width: calc(75% - 40px);
	min-width: calc(100% - 200px - 4px);
    max-width: 100%;
	height: 100%;
	max-height: calc(100% - 4px);
	margin: 0;
	background-color: transparent;
	outline: 2px solid #e0e0e0;
	outline-offset: 0px;
    user-select: none;
}





#sidebar {
    font-family: 'Helvetica';
    width: 25%;
    max-width: 200px;
    height: 100%;
    right: 0;
    position: relative;
    background-color: transparent;
    color: #e0e0e0;
    padding: 20px;
    background-color: transparent;
}

#sidebar h3 {
    font-family: 'Helvetica-Compressed';
    margin-top: 0;
}

#sidebar p {
    font-family: 'Helvetica';
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

#sidebar .map-description {
    position: absolute;
    /*! bottom: 20px; */ /* Adjust according to the desired margin */
    left: 20px; /* Adjust according to the desired margin */
    right: 20px; /* Adjust according to the desired margin */
    margin-bottom: 0;
}

#sidebar .info-container {
    display: flex;
    flex-direction: column;
}





.leaflet-container {
    font-size: 1rem;
}



#point-count {
    position: relative;
    z-index: 1000;
    background-color: transparent;
}



#switch-view-btn {
    background-color: #e0e0e0; /* Hintergrundfarbe */
    color: #1a1a1a; /* Textfarbe */
    border: none; /* Kein Rahmen */
    padding: 10px 20px; /* Innenabstand */
    text-align: center; /* Text zentrieren */
    text-decoration: none; /* Keine Unterstreichung */
    display: inline-block; /* Inline-Block-Element */
    font-size: 16px; /* Schriftgröße */
    margin: 10px 0px 0px 0px; /* Außenabstand */
    cursor: pointer; /* Mauszeiger als Zeiger */
    width: 100%; /* Feste Breite von 80% des Sidebars */
    max-width: 100%; /* Maximale Breite von 80% des Sidebars */
    line-height: 1.2; /* Zeilenhöhe für Text */
    word-wrap: break-word; /* Zeilenumbruch bei Bedarf */
    white-space: normal; /* Erlaubt Zeilenumbruch */
}

#switch-view-btn:hover {
    background-color: #a0a0a0; /* Dunklere grüne Hintergrundfarbe beim Hover */
}



.map-description{
    color: #e0e0e0;
    font-size: 0.7rem;
    margin-top: auto;
    bottom: 0;
    position: relative;
}

.custom-tooltip {
    background: #1a1a1a;
    color: #ff0000;
    border: 2px solid #ff0000;
    font-size: 14px;
    font-family: 'Helvetica-Compressed', Arial, sans-serif;
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}


@media (max-aspect-ratio: 1/1) {

    body {
        margin: 0px;
        width: auto;/*calc(100% - 40px);*/
        display: flex;
        flex-direction: column;
    }

    #switch-view-btn {
        background-color: #e0e0e0; /* Hintergrundfarbe */
        color: #1a1a1a; /* Textfarbe */
        border: none; /* Kein Rahmen */
        padding: 10px 20px; /* Innenabstand */
        text-align: center; /* Text zentrieren */
        text-decoration: none; /* Keine Unterstreichung */
        display: inline-block; /* Inline-Block-Element */
        font-size: 16px; /* Schriftgröße */
        margin: 10px 0px 0px 0px; /* Außenabstand */
        cursor: pointer; /* Mauszeiger als Zeiger */
        width: 100%; /* Feste Breite von 80% des Sidebars */
        max-width: 100%; /* Maximale Breite von 80% des Sidebars */
        line-height: 1.2; /* Zeilenhöhe für Text */
        word-wrap: break-word; /* Zeilenumbruch bei Bedarf */
        white-space: normal; /* Erlaubt Zeilenumbruch */
    }


    #switch-view-btn:hover {
        background-color: #808080; /* Noch dunklere Hintergrundfarbe beim Hover für Hochkant-Ausrichtung */
    }

    #map-container {
        display:flex;
        flex-grow: 1;
	    margin-top: 0;
        margin-right: 0;
	    position: relative;
	    background-color: transparent;
        min-height: 100vh;
        max-height: 100vh;
    }

    #map_51c87d061bb72d92a7bebed85ec3294d {
    	position: absolute;
    	width: 100%;
        max-width: 100%;
        height: 70vh;
        min-height: unset;
    	/*! max-height: 70%; */
    	margin: 0;
    	background-color: transparent;
    	outline: 2px solid #e0e0e0;
    	outline-offset: 0px;
        user-select: none;
    }





    #sidebar {
        width: 100%;
        max-width: 100%;
        height: auto;
        /*! max-height: 30%; */
        position: absolute;
        background-color: transparent;
        bottom: 0;
        /*! margin-top: 0px; */
        color: #e0e0e0;
        padding: 20px;
        background-color: transparent;
        min-height: 30vh;
    }

    #sidebar h3 {
        margin-top: 10px;
    }

    #sidebar p {
        margin: 0;
        padding: 0;
        display: inline-block;
        vertical-align: middle;
    }

    #sidebar .map-description {
        position: absolute;
        top: 20px; /* Adjust according to the desired margin */
        left: 4px; /* Adjust according to the desired margin */
        right: 20px; /* Adjust according to the desired margin */
        margin-top: -20px;
        bottom: auto;
    }
}