

/* menu styles */

nav.menu {
    background-color: white;
    color: black;
    padding: 10px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid #ccc;
}
nav.menu .left, nav.menu .right {
    display: flex;
    align-items: center;
    gap: 10px;
}
nav.menu img.naviation-logo {
    height: 75px;
}
nav.menu img.vinnova-logo {
    height: 30px;
}
nav.menu .center {
    flex: 1;
    text-align: center;
}
nav.menu .center a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 8px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: black;
    text-decoration: none;
    transition: background-color 0.3s;
}
nav.menu .center a:hover {
    background-color: #ddd;
}
nav.menu .center a.active {
    background-color: #004c97;
    color: white;
}








/* body styles */


body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
}
h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
}
p {
    max-width: 900px;
    margin: 10px auto;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}
#container {
    width: 95%;
    margin: 0 auto;
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 30px;
    line-height: 1.6;
}

/* API Documentation Styling */
#container h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

#container h3 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#container h4 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#container hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #ecf0f1, #bdc3c7, #ecf0f1);
    margin: 30px 0;
    border-radius: 1px;
}

#container ul {
    margin: 10px 0;
    padding-left: 20px;
}

#container li {
    margin: 8px 0;
    color: #2c3e50;
}

#container li strong {
    color: #2c3e50;
    font-weight: 600;
}

#container pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

#container code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

#container p {
    color: #495057;
    margin: 15px 0;
    text-align: left;
}

/* Optional parameter styling - using classes instead of pseudo-selectors */
#container .optional-param {
    color: #6c757d;
    font-style: italic;
}

#container .required-param {
    color: #2c3e50;
    font-weight: 500;
}

/* Code highlighting */
#container pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* JSON syntax highlighting */
#container pre {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
}

/* Parameter list styling */
#container ul li {
    position: relative;
    padding-left: 5px;
}

#container ul li strong {
    display: inline-block;
    min-width: 120px;
}
#map {
    height: calc(100vh - 250px);
    position: relative;
}
.overlay {
    background: white;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}
.filters-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.operator-filters, .date-filters {
    width: 230px;
}
.legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 230px;
}
.legend hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #ccc;
}
.legend span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    vertical-align: middle;
}
.section-title {
    margin-top: 10px;
    font-weight: bold;
    text-decoration: underline;
}
.filter-actions {
    margin: 5px 0 10px;
}
.filter-actions a {
    font-size: 13px;
    margin-right: 10px;
    text-decoration: underline;
    color: #007BFF;
    cursor: pointer;
}
.color-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid #ccc;
}

.pane-toggle-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 4px;
}

#container img {
    display: block;
    margin: 20px auto;
    width: 250px;
    height: 250px;
    object-fit: contain;
}
#container.about hr {
    width: 89%;
    margin: 30px auto;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, #ccc, #999, #ccc);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}
i {
    font-size: 85%;
}
.operator-logos {
    display: flex;
    justify-content: space-evenly; /* jämn fördelning men inte för långt isär */
    align-items: center;
    gap: 10px;
    max-width: 600px;  /* maxbredd för att hålla ihop loggorna */
    margin: 20px auto; /* centrerar loggorna på sidan */
}

.operator-logos img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}
#map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

.orange {
    color:orange;
}
