body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    overflow: hidden;
    text-align: center;
    font-family: Arial, sans-serif;
}
.scrollable-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling */
    border: 1px solid #ccc;
}
.container {
    position: relative;
    width: 100%;
    height: 100%;
}
img {
    display: block;
    width: 100%;
    object-fit: contain; /* Maintain aspect ratio */
    display: block;
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* Prevent interfering with clicks */
}
.marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid #000; /* Add a black border around the circle */
    cursor: pointer;
    transform: translate(-50%, -50%);
}

/* .popup {
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none;
    z-index: 10;
    font-size: 14px;
}  */

.popup {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    display: none;
}
.header {
    display: flex;
    align-items: center;
}
.icon {
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
}
.tram-info {
    font-weight: bold;
    margin-left: 10px;
    margin-right: 10px;
}
.delay {
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Switch container */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Labels */
.label {
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
}

.zvv {
    color: #e7000e; /* Blue */
}

.vbz {
    color: #009fdf; /* Red */
}

/* Switch button */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider (Switch button) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #009fdf; /* Default ZVV color */
    transition: 0.4s;
    border-radius: 34px;
}

/* Circle inside switch */
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Change background and move circle when toggled */
input:checked + .slider {
    background-color: #e7000e; /* VBZ color */
}

input:checked + .slider:before {
    transform: translateX(26px);
}

@media only screen and (max-width: 1000px) {
    .marker {
        width: 5px;
        height: 5px;
        border: 1px solid #000; /* Add a black border around the circle */
    }
    .popup {
        font-size: 3px;
        padding: 2px;
        border-radius: 4px;
    }
    .icon {
        padding: 2px;
        border-radius: 2px;
    }
    .tram-info {
        margin-left: 2px;
        margin-right: 2px;
    }
    .delay {
        padding: 2px;
        border-radius: 2px;
    }
}
