
:root {
    --color-main: #006699;
    --color-main-background: #f5f5f5;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#map {
    position: relative;
    width: 100.0%;
    height: 100.0%;
    left: 0.0%;
    top: 0.0%;
}

#exportButton {
    position: absolute;
    top: 100px;
    left: 505px;
    z-index: 1000;
    background-color: white;
    border: 2px solid black;
    padding: 10px;
    cursor: pointer;
    height: 48px;
} 

#spinner {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 10px solid #f3f3f3;
    border-top: 10px solid #0629c5;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blockpfeile für die Zählstellen */
.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5px;
    width: 70px;
    height: 25px;
    color: white;
    clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%);
    font-size: 18px;
}
.arrow-icon-oev {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5px;
    width: 70px;
    height: 25px;
    color: white;
    clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%, 20% 50%);
    font-size: 18px;
}
.arrow-value {
    position: absolute;
    top: 0;
    transform-origin: center;
    white-space: nowrap;
}
.custom-arrow-icon div {
    font-size: 50px;
    color: #000;
}

/* Test für die Zoomstufe der Pfeile*/
.arrow-icon-container {
    transform-origin: center center;
    transition: transform 0.2s ease;
}

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

/* Dropdowns */
.dropdown-container {
    position: fixed;
    top: 20px;
    left: 100px;
    z-index: 1000;
    border: 2px solid #000; /* Bounding box border */
    padding: 10px; /* Space inside the bounding box */
    background-color: #fff; /* Background color of the bounding box */
    display: flex; /* To align items horizontally */
    gap: 20px; /* Space between dropdowns */
    font-size: 14px;
    font-weight: bold;
}
.dropdown {
    position: relative;
}

/* Suchleiste */
.search-container {
    position: fixed;
    top: 100px;
    left: 100px;
    width: 380px;  /* 388 */
    height: 52px; /* 48 */
    z-index: 1000;
    border: 2px solid #000; /* Bounding box border */
    padding: 10px; /* Space inside the bounding box */
    background-color: #fff; /* Background color of the bounding box */
    font-size: 14px;
    font-weight: bold;
}

/*  Legende */
.legend {
    background: white;
    padding: 10px;
    line-height: 18px;
    color: #555;
    font-size: 15px;
    max-height: calc(100vh - 104px);
    overflow-y: auto; /* Vertikales Scrollen aktivieren */
}
.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}
.legend img {
    vertical-align: middle;
    margin-right: 5px;
    width: 20px; /* Set the width */
    height: 20px; /* Set the height */
}

.number {
    position: absolute;
    top: 50%;
    left: 100%; /* Position the number to the right of the arrow */
    transform: translateY(-50%);
    white-space: nowrap; /* Prevent the number from wrapping */
    margin-left: 5px; /* Adjust the distance between the arrow and the number */
}

.value {
    font-size: 15px; /* Adjust the font size as needed */
    writing-mode: vertical-rl;
    font-weight: bold;
}   

.custom-div-icon .leaflet-marker-icon {
    transform: rotate(90deg); /* Rotate the marker icon by 90 degrees */
}

.number-label {
    color: black;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

/* ÖV */
.oev-popup {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding: 5px;
}

/* Leaflet controls */
.leaflet-control-layers-overlays label,
.leaflet-control-layers-base label {
    font-size: 15px; /* Increase font size */
    line-height: 20px; /* Adjust line height to match the new font size */
}

/* .leaflet-control-layers {
    z-index: 20000;
  }  */

.leaflet-control-scale {
    font-size: 16px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    padding: 8px 12px;
}

.custom-marker {
    width: 0;
    height: 0;
    border-left: 10px solid transparent; /* Half of the arrow width */
    border-right: 10px solid transparent; /* Half of the arrow width */
    border-top: 20px solid red; /* Arrow height and color */
    transform: rotate(180deg); /* Rotate arrow to face downward */
    transform-origin: center; /* Rotate around the center */
}

/* Stau */
.stau-icon-arrow {
    width: 30px;
    height: 30px;
    background-image: url('bilder/arrow.png');
    background-size: contain;
    transform-origin: center center; 
}
.stau-icon-klammer {
    width: 15px;
    height: 30px;
    background-image: url('bilder/eckigeKlammer.png');
    background-size: contain;
    transform-origin: center center; 
}

/* Printscreen button */
.easy-button-button {
    z-index: 1000 !important; /* Higher than other map controls */
}

