.sporedna-navigacija {
    margin-bottom: 10vh;
}

.legende {
    margin: 2vh 12.5vw;
    width: 75vw;
    display: flex;
    justify-content: space-between;
    gap: 1vw;
}

.legenda-slicica {
    height: 41vh;
}

.legenda-pozadina {
    width: 20vw;
    height: 22vh;
    padding-top: 0.5vh;
    background: rgb(0,21,217);
    background: radial-gradient(circle, rgba(0,21,217,1) 0%, rgba(0,0,41,1) 100%); 
    display: flex;
    justify-content: center;
}

.legenda-slika {
    width: 16vw;
}

.legenda-slicica {
    border: 0.5px solid rgba(87, 83, 83, 0.699);
}    

.tekst {
    background-color: white;
    transition-duration: 500ms;
}

.tekst, .tekst h2, .tekst p {
    width: 20vw;
}

.tekst h2 {
    font-size: 1.2rem;
    font-weight: bolder;
    text-align: center;
    padding-top: 2rem;
}

.tekst p {
    font-size: 0.8rem;
    font-weight: lighter;
    text-align: center;
    padding-top: 1rem;
}

.tekst:hover {
    transform: translate(0, -4rem);
}


.overlay {
    background-color: white;
    width: 20vw;
    height: 10vh;
    position: relative;
    bottom: 6vh;
}

@media (max-width: 950px) {
    .legenda-slicica{
       max-height: 100px;
       overflow: auto;
       width: 40vw;
    }
    
}

@media (max-width: 700px) {
    .legenda-slicica{
       width: 50vw;
    }
}

@media (max-width: 600px) {
    .legenda-slicica{
       width: 100vw;
    }
}