.sticky-header {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 9999;
    background-color: #00509B;
    border-bottom: 1px solid #dee2e6;
    color: white;
}

.sticky-header h1 {
    font-size: 2rem;
    margin: 0;
}

.sticky-header .nav-link {
    color: white;
}

.sticky-header .nav-link:hover {
    color: #C8D317;
}

.sticky-header .logo {
    height: 40px;
    width: auto;
}

.sticky-header .nav-item .nav-link.active-item {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sticky-header .nav-link.active-item:hover {
    color: #C8D317;
}

body {
    background-color: #e5e5e5;
}

#map {
    height: calc(100vh - 80px);
    width: 100%;
    position: relative;
}

.left-panel {
    overflow-y: auto;
    background-color: #e5e5e5;
    padding: 20px;
}

.left-panel button {
    background-color: #00509B;
    color: white;
    border: none;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.left-panel button:hover {
    background-color: #003F73;
}

.right-panel {
    padding: 0;
    background-color: #e5e5e5;
}

.admin-panel {
    height: calc(100vh - 70px);
    overflow-y: auto;
    background-color: #e5e5e5;
    padding: 20px;
}

.selected-dataset {
    color: white;
}

#speedProfileChart {
    flex-grow: 1;
    width: 100%;
    height: calc(100% - 40px);
}

        #speedProfileContainer {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 450px;
            height: 225px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #ccc;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            padding: 5px;
            display: none;
        }

.disabled-link {
    pointer-events: none;
    color: gray;
    text-decoration: none;
}
        
.leaflet-control-layers {
    font-size: 14px;
}

.leaflet-control-layers-selector {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

.leaflet-control-layers-base label {
    padding: 5px 10px;
}

.leaflet-control-layers-toggle {
    width: 48px;
    height: 48px;
    background-size: cover;
    border-radius: 4px;
    background-color: white;
    transform: scale(1.2);
}

#random-images-container {
    display: grid;
    grid-template-areas:
        "top-left top top-right"
        "left central right"
        "bottom-left bottom bottom-right";
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    height: calc(100vh - 100px);
    position: relative;
    gap: 0px;
    margin-top: 20px;
    margin-right: 10px;
    margin-left: 10px;
    padding: 5px;
}

#central-image-container {
    grid-area: central;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;    
    position: relative;
    background-size: cover;
    background-position: center;
    width: 95%;
    height: 95%;
}

#central-image {
    width: 100%;
    height: 100%;
    border: 5px solid #000;
    border-radius: 10px;
}

.grid-item.random-image {
    background-size: cover;
    background-position: center;
    width: 95%;
    height: 95%;
    z-index: 1;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    overflow: hidden;
}

.random-image:hover {
    transform: scale(1.1);
    z-index: 3;
}

.random-image.clicked {
    z-index: 2;
}

.random-image.clicked .image-text {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    z-index: 4;
    width: 80%;
    overflow: visible;
    text-overflow: ellipsis;
}

.image-text {
    display: none;
}

.random-image:not(.clicked) {
    filter: none;
}

.image-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    font-size: 12px;
    border-radius: 5px;
}

.grid-item.random-image:hover .image-credit {
    background-color: rgba(0, 0, 0, 0.7);
}

#slider .noUi-connect {
    background: #00509B;
}

.noUi-target.noUi-disabled {
    opacity: 0.5;
    pointer-events: none;
}

#celebrationOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: rgba(0,0,0,0.5);
  
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  
    z-index: 9999;
  }
  
  #celebrationOverlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .overlay-content {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    width: min(600px, 90%);
    max-height: 80vh;
    overflow-y: auto;
  
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  }

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
  }
  
  .card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    user-select: none;
  }
  
  .card:hover {
    transform: translateY(-4px);
  }
  
  .card.selected {
    border-color: #4CAF50;
    background: #e8f5e9;
    transform: scale(1.03);
  }
  
  .card.correct {
    border-color: #2e7d32;
    background: #c8e6c9;
  }
  
  .card.wrong {
    border-color: #c62828;
    background: #ffcdd2;
  }
  
  .submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
  }