html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
}

#map {
    height: 100%;
    width: 100%;
}

/*#header {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 8px;
    z-index: 1000;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}*/

#timestamp {
    position: absolute;
    top: 10px;
/*    top: 50px;
    right: 50%;*/
    transform: translateX(50%);
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 16px;
    z-index: 1000;
}

#disclaimer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 80%;
    background: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 1000;
    color: darkred;
    font-weight: bold;
}

#disclaimer-dismiss{
    float:right;
    cursor: pointer;
    padding-left: 8px;
}

.passed {
    background-color: #c8e6c9;
}

.delayed {
    color: red;
}

.onTime {
    color: rgb(2, 134, 2)
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

td, th {
    padding: 4px 6px;
    border: 1px solid #ccc;
    text-align: center;
}

.marker-container {
    position: relative;
    width: 26px;
    height: 26px;
}

.marker-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: black;
    font-size: 12px;
    pointer-events: none;
}

.triangle-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    transform-origin: center center;
    z-index: 0; /* Behind the circle */
}

.triangle {
    position: absolute;
    top: -8px; /* Adjust to make tip just peek out */
    left: 3px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid black; /* Tip downwards */
}

.circle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--color);
    border: 1px solid black;
    transform-origin: center center;
    border-radius: 50%;
    z-index: 1;
}


.popup-table-container {
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 5px;
}

.legend {
    background: rgba(255,255,255,0.7);
    padding: 6px;
    line-height: 18px;
    color: #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.legend i {
    padding: 2px;
    width: 12px;
    height: 12px;
    float: left;
    margin-right: 8px;
    border-radius: 50%;
    opacity: 0.8;
}

.leaflet-tooltip {
    border-radius: 15px;
    max-width: 430px;
    overflow: hidden;
}

#side-popup {
    position: absolute;
    border-radius: 20px;
    top: 8px;
    right: 8px;
    bottom: 8px;
    height: fit-content;
    width: 360px;
    max-height: 95vh;
    background: white;
    word-wrap: break-word;
    border-left: 1px solid #ccc;
    padding: 10px 10px 0px 10px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.closeButton{
    position: absolute;
    top: 9px;
    right: 9px;
    color: red;
    font-weight: bold;
    cursor: pointer;
    padding: 3px;
}

/*.leaflet-popup {
    max-height: 100vh;
    overflow-y: scroll;
}*/

@media (max-width: 690px) {
    #side-popup{
        top: 50px;
        max-height: 88vh;
    }
/*  .leaflet-popup {
      bottom: -50px !important;
      left: -175px;
  }*/
}

@font-face {
    font-family: MNR2007;
    src: url(/fonts/MNR2007.ttf)
}

.MNR2007 {
    font-family: MNR2007;
    font-size: 16px;
}

.timetableRow td {
    font-weight: bold;
}

.crossed {
    text-decoration: line-through;
}

.emmaTripDIV {
    padding-top: 10px;
    padding-bottom: 5px;
}

.emmaStop {
    text-decoration: none;
}

.alerts-container {
    background-color: #f6f7f9;
    padding: 1rem;
    border-radius: 6px;
}

.alerts-header {
    color: #c00;
    font-weight: bold;
    margin-bottom: 1rem;
}

.alert-item {
    margin-bottom: 1.5rem;
}

.alert-text {
    font-weight: 500;
}

.alert-dates {
    font-style: italic;
    margin-top: 0.5rem;
}

.alert-separator {
    border: none;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

.calculatedDelay{
    font-weight: bold;
    color: red;
}

.lastUpdated{
    margin-top: 10px;
    margin-bottom: 8px;
}