:root{
    --def-font-color: black;
    --def-font-type: 1.1em 'Roboto', sans-serif;
    --def-font-numbers: 2em 'Abril Fatface', sans-serif;
}
body {
    margin-top: 0;
    background-color: white;
    font: var(--def-font-type);
}
html, body {height: 100%;}
main {height: 100%;}
#glavni_kontejner {max-width: 100%;}
figure {margin: 0;}
.margin_padding_reset {padding: 0;margin: 0;}
#karusel {margin-top: 2em;}

/*Links*/
a:link {text-decoration: none;color: var(--def-font-color);}
a:visited {text-decoration: none;color: var(--def-font-color);}
a:hover {text-decoration: none;color: var(--def-font-color);}
a:active {text-decoration: none;color: var(--def-font-color);
}

/*Nav bar*/
ul{
    width: 100%;
    list-style-type: none;
}
nav {margin: 1.5em 0;background-color: white;}
nav ul li {
    font: var(--def-font-type); 
    color: var(--def-font-color);
    list-style-type: none;
    border-right: 1px solid #000;
    font-weight: bold;
}
nav li:last-child {border: none;}
.dropdown:hover>.dropdown-menu {display: block;}
.custom-dropdown-item {font-weight: bold;}

.custom-dropdown-menu {
    position: absolute !important;
    min-width: .5rem !important;
}

/*Sredina*/
#sredina {font: var(--def-font-type);}
#sredina_kontejner {max-width: 100%;}
aside{
    display: flex;
    flex-direction: column;
}
aside>img {padding-left: 2em;}
#baner {margin: 2em 0;}

/*Footer*/
footer {
    margin-bottom:3em;
    font: .7em 'Roboto', sans-serif;
}
footer>figure {margin-bottom: 1.5em;}

/*Članovi*/
#clanovi>h1 {text-align: center;margin-bottom: .5em;}
#clanovi {text-align: center;}

/*Priključi se*/
#prikljucise_paragraf{
    text-align: left;
    margin: 2.5em 0;
}

/*Finanstije*/
.stanje_finansije{
    border: 1px solid black;
    max-width: 45%;
    margin: 0 auto 1em auto;
    font: 1em 'Roboto', sans-serif;
    font-weight: bold;
    padding: .5em;
}
.isplaceno_finansije {
    border: 1px solid black;
    max-width: 45%;
    margin: 1em auto 2em auto;
    font: 1em 'Roboto', sans-serif;
    font-weight: bold;
    padding: .5em;
}
.font_numbers {font: var(--def-font-numbers);color: grey;}
#sredina_finansije {
    text-align: center;
    font: var(--def-font-type);
    margin-top: 2em;
}
#sredina_finansije_izvestaji{
    font-weight: bold;
    margin: 2em 0;
}
#uplate-inostranstvo {margin: .5em 0;}
#uplate-inostranstvo>.row a:nth-child(4)>figure>img {border: 1px solid grey;}
#uplate-inostranstvo h3 {
    font-weight: bold;
    margin: 1em 0;
}
#uplate-inostranstvo .row {margin-bottom: 1.5em;}

/*Stipendije*/
.stipendije-sredina p {text-align: justify;}

/*Stipendisti*/
.galerija_temp{text-align: center;font: var(--def-font-type);}
.custom-card-container, .card-custom-front, .card-custom-back{
    height: 365px;
    width: 246px;
}
.custom-card-container{margin: 2em auto 2em auto;}
.card-custom-front img {
    /*zoom: 2;
    margin: auto;
    display: block;
    max-height: 100%;
    max-width: 100%;
    */
    height: 365px;
    width: 246px;
}
.card-custom-back h4 {font-weight: bold;}
#stipendisti hr{margin: 4em 0;}
#stipendisti h1 {font-size: 3em;margin-bottom:1em}

/*O fondaciji*/
#osnivaci {margin-bottom: 1em;}
#osnivaci img {width: 100%;}
#osnivaci p {
    margin-top: .5em;
    text-align: justify;
}
#osnivaci h4,
#moto h4,
#akt h4,
#statut h4 {
    padding-left: .5em;
    color: #808080;
    font-weight: bold;
    margin-bottom: 1.5em;
}
#osnivaci h5 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 1em;
}
#moto p, #akt p, #statut p {
    padding-left: .5em;
    text-align: justify; 
}
#statut h3,#statut h5 {
    padding-left: .5em;
    font-weight: 600;
}
#statut ul {list-style-type: square;}

/*Vesti*/
#vesti {margin: 0 .5em 1em .5em;}
#vesti img {
    width: 100%;
    margin: .5em 0 .7em 0;
}
#vesti p {text-align: justify;}
#info {margin-bottom: 1em;}
#mediji {text-align: center;}

/*Kontakt*/
#kontakt {margin: 2em 0;}
.kontakt-bckg {
    background-image: url(../img/kontakt.jpg);
    background-size: cover;
    background-repeat: repeat;
}
.kontakt-adresa form {margin: 21em auto 0 18em;}
.kontakt-adresa input {margin: .5em 0}

/*Mediji*/
#mediji article {margin-bottom: 1.5rem;}
#mediji figcaption {background-color: lightgray;}
.indent {
    text-indent: 5%;
    text-align: justify;
}
#mediji span {
    background-color: lightgray;
}
.mediji-detaljno {
    margin-top: 1em;
    text-align: justify;
}
.logo-mediji {max-height: 1.5em;}

/*Media Queries*/

@media (max-width:1366px) {
    .custom-card-container, .card-custom-front, .card-custom-back{
        height: 298px;
        width: 200px;
    }
    .custom-card-container{margin: .5em 0;}
    .card-custom-front img {
        height: 298px;
        width: 200px;
    }
    .card-custom-back {font-size: .8em}
    #stipendisti h1 {margin-left: -2em;}
    /*.mediji-span {display: inline !important;}*/
    .mediji-p {display: none !important;}
    .kontakt-adresa form {margin: 18em auto 0 15em;}

}
@media (max-width:769px ) {
    h3 {font-size: 1.5em}
    h4 {font-size: 1.25em}
    nav ul li, .custom-dropdown-item {font: .9em 'Roboto', sans-serif;}
    nav ul {flex-direction: row!important;}
    .card-custom-front, .card-custom-back{ height: 271px;}
    .card-custom-front img {
        height: 271px;
        width: 200px;
    }
    #uplate-inostranstvo img {padding: 0;}
    .card-custom-back {font-size: .9em}
    #clanovi li{font-size: .8em;}
    #stipendisti h1 {margin-left: .5em;}
    #mediji p {font-size: .85em;}
    .kontakt-adresa form {margin: 12em auto 0 6em;}
}
@media (max-width: 720px ) {
    main{max-width: 83.2%;}
    header {padding: 0 .5em;}
    /*.place-holder {background-color: lightgray;}*/
    #sredina {padding: 0 .5em;}
    nav ul li, .custom-dropdown-item {
        font: .9em 'Roboto', sans-serif;
        border-right: none;
    }
    .custom-card-container, .card-custom-front, .card-custom-back{
        height: 223px;
        width: 150px;
    }
    .card-custom-front img {
        height: 223px;
        width: 150px;
    }
    .custom-card-container{margin: 1em;}
    #ofondaciji-sredina h4,
    #statut h3,
    #statut h5,
    #moto p,
    #akt p,
    #statut p {
        padding-right: .5em;
    }
    #osnivaci h5 {font-size: 1em;}
    #osnivaci h4 {text-align: center;}
    .stipendije-sredina p,
    .stipendije-sredina h1,
    .stipendije-sredina h2,
    .stipendije-sredina h3,
    .stipendije-sredina h4,
    .stipendije-sredina h5,
    footer, .fin-kose-crte {padding: 0 .5em;
    }
    #uplate-inostranstvo img {padding: 0;}
    #uplate-inostranstvo {margin-top: 0;}
    .custom-col {padding-left: 0;}
    .title {margin-bottom: 35px;}
    .card-custom-back {font-size: .6em}
    #clanovi {text-align: center;}
    #clanovi ul {padding: 0;}
    #clanovi li{font-size: 1em;}
    .kontakt-adresa form {margin: 10em auto 0 3em;}
}

@media (max-width: 360px){
    nav ul li, .custom-dropdown-item {font: .6em 'Roboto', sans-serif;}
    .custom-card-container, .card-custom-front, .card-custom-back{
        height: 260px;
        width: 175px;
    }
    .card-custom-front img {
        height: 260px;
        width: 175px;
    }
    .custom-card-container{margin: 1em auto;}
    #uplate-inostranstvo img {padding: 0;}
    #uplate-inostranstvo {margin-top: 0;}
    .font_numbers { font: 2em 'Abril Fatface', sans-serif;}
    .stanje_finansije {
        max-width: 50%;
        font: .6em 'Roboto', sans-serif;
    }
    .isplaceno_finansije {
        max-width: 75%;
        font: .6em 'Roboto', sans-serif;
    }
    #stipendisti h1 {
        margin: auto;
        font-size: 2em;
    }
    #stipendisti hr {margin: 1em 0;}
    .custom-col {padding-left: 15px;}
    .kontakt-adresa form {margin: 10em auto 0 1.5em;}
    .kontakt-adresa {font: .6em 'Roboto', sans-serif;}
    .kontakt-adresa legend {font: 1.2em 'Roboto', sans-serif;}

    
}



