.trka{
    width: 50%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    border: 1px solid black;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-top: 20px;
    border-bottom: none;
}

.slike-trka{
    padding: 10px;
    width: 40%;
}

.informacije-trke{
    display: flex;
    flex-direction: column;
    width: 60%;
    margin: 10px;
    margin-left: 0;
    background-color: rgb(248, 248, 248);
    position: relative;
    padding-bottom: 80px;
}

.naziv-trke{
    text-align: center;
    font-size: 38px;
    font-family: 'Monserrat', sans-serif;
}

.opis-trke{
    margin: 2px;
    padding-left: 5px;
    font-size: 24px;
    font-family: 'Monserrat', sans-serif;
}

.link-trke{
    margin: 2px;
    text-align: center;
    padding: 10px;
    font-size: 24px;
    font-family: 'Monserrat', sans-serif;
    text-decoration: none;
    color: white;
    background-color: rgb(77, 160, 77);

    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;

    transition: color 0.3s, background-color 0.3s;
}

.link-trke:hover{
    color: black;
    background-color: white;
}

.link-trke:active{
    background-color: rgba(255, 255, 255, 0.3);
}

.naslov{
    text-align: center;
    font-family: 'Monserrat', sans-serif;
    font-size: 32;
    font-weight: bold;
    border-bottom: 1px solid black;
}

.kontejner-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

.link-trke-2{
    margin: 2px;
    text-align: center;
    padding: 10px;
    font-size: 24px;
    font-family: 'Monserrat', sans-serif;
    text-decoration: none;
    color: white;
    background-color: rgb(77, 160, 77);

    transition: color 0.3s, background-color 0.3s;
}

.link-trke-2:hover{
    color: black;
    background-color: white;
}

.link-trke-2:active{
    background-color: rgba(255, 255, 255, 0.3);
}

.vise{
    border-collapse: collapse ;
    height: 60px;
    width: 50%;
    margin: auto;
    border: 1px solid black;
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: rgb(77, 160, 77);
    padding-bottom: 10px;

    transition: background-color 0.3s;
    cursor: pointer;
}

.more{
    height: 100%;
}

.vise:hover{
    background-color: black;
}

.dodat{
    width: 50%;
    margin: auto;
    border: 1px solid black;
    border-top: 1px solid white;
}

.dodat-tekst{
    padding: 10px;
    font-size: 18px;
    font-family: 'Monserrat', sans-serif;
}

.detalji{
    width: 50%;
    margin: auto;
    margin-top: 2px;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Monserrat', sans-serif;
    font-size: 18px;
    color: white;
}

@media only screen and (max-width: 1040px){
    .trka, .vise, .dodat{
        width: 70%;
    }

    .trka{
        flex-wrap: wrap;
    }

    .informacije-trke, .slike-trka{
        width: 100%;
    }
}

@media only screen and (max-width: 768px){
    .trka, .vise, .dodat{
        width: 70%;
    }

    .trka{
        flex-wrap: wrap;
    }

    .informacije-trke, .slike-trka{
        width: 100%;
    }
}

@media only screen and (max-width: 430px){
    .trka, .vise, .dodat{
        width: 70%;
    }

    .trka{
        flex-wrap: wrap;
    }

    .informacije-trke{
        width: 100%;
    }

    .slike-trka
    {
        width: 80%;
        margin: auto;
    }

    .naziv-trke{
        font-size: 20px;
    }

    .opis-trke, .link-trke, .detalji, .link-trke-2{
        font-size: 15px;
    }

    .kontejner-2{
        grid-template-columns: auto;
    }

}