
body,
html,
ul {
    margin: 0;
    padding: 0;

}

html, body {
    height: 100%;
}



.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("o_univerzitetu.png");
    height: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.hero-image2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("international.png");
    height: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.upis-slika {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("pocetna-upis.png");
    height: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.upis-text {
    text-align: center;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 5px 10px 15px black;
    
}


.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 5px 10px 15px black;
}





/* Stilizujemo padajući meni */
nav {
    background-color: #004E98;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 10px 20px;
}



.menu {
    list-style: none;
    display: flex;
    align-items: center;
}


.menu li {
    margin-right: 20px;
}

.menu a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.menu a:hover {
    color: #f00;
}

/* Stilizujemo mobilni meni */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    order: 2;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 2px 0;
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: #004E98;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 1;
        float: right;

    }

    .menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    li:hover>ul {
        position: relative;
    }
}










.navigacija {
    text-align: left;
    display: flex;
    width: auto;
    background: #004E98;
}

.navigacija li ul li {
    border-top: 0;
    z-index: 1;

}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #004E98;
    z-index: 1;
}

ul li {
    display: block;
    position: relative;
    float: left;
    background: #004E98;
}

li ul {
    display: none;
}

ul li a {
    position: relative;
    display: block;
    padding: 1em;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
}

ul li a:hover {
    background: #2c3e50;

}

li:hover>ul {
    position: absolute;
    display: block;
}

li:hover li {
    float: none;
}

li:hover a {
    background: #004E98;
}

li:hover li a:hover {
    background: #2c3e50;

}


ul ul ul {
    left: 100%;
    top: 0;
}

ul:before,
ul:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

ul:after {
    clear: both;
}

.zastavice {
    padding: 5px;
    padding-top: 15px;
    opacity: 0.7;
}

.zastavice:hover {
    opacity: 1;
    cursor: pointer;
}

.aktivno {
    opacity: 1;
}

.social {
    padding: 5px;
    padding-top: 15px;
    opacity: 0.7;
}

.social:hover {
    opacity: 1;
    cursor: pointer;
}



/* Stilovi za sekciju vesti */
.vesti {
    display: grid;
    height: 100%;
    width: 70%;
    margin-left: auto;
    margin-right: auto;


    grid-template: 1fr 1fr / 1fr 1fr 1fr ;

}


.vest {
    border: 0px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
}

.vest h2 {
    margin-top: 0;
}

.procitaj-vise {
    color: #007bff;
    text-decoration: none;
}

.vest p {
    max-height: 100px;
    overflow: hidden;
}

.vest .procitaj-vise {
    color: #007bff;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.vest.expanded p {
    max-height: none;
}

.vestSlika {
    width: 300px; /* Širina kontejnera */
    height: 200px; /* Visina kontejnera */
    overflow: hidden; /* Sakrivanje dela slike koji prelazi granice kontejnera */
    position: relative;
}

.vestSlika::before {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.vestSlika:hover::before {
    opacity: 1;
}


.vestSlika:hover {
    opacity: 0.7;
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
    transition: transform 0.5s ease;
}





/* slideshow */
.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slide {
    display: none;
    animation: fade 5s infinite;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}


.slide.active .tekst {
    opacity: 1; 
}


.tekst {
    position: absolute;
    top: 60%;
    left: 40%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 30px 50px;
    font-size: 24px;
    opacity: 1;
    transition: opacity 2s ease; 
}

.slide.active .tekst {
    opacity: 1;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
}

.next {
    right: 0;
}

.image-container {
    position: relative;
    display: inline-block;
}

.dugme {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 18px;
    padding: 15px 20px;
    cursor: pointer;
}

@keyframes fade {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}




/* NASTAVNO OSOBLJE */

.skrivenSadrzaj {
    display: none;
}

.skriven {
    display: none;
}


.kontakt-kontejner {
    display: grid;
    height: 70%;
    width: 70%;
    margin-left: auto;
    margin-right: auto;


    grid-template: 1fr / 1fr 1fr 1fr ;
}



/* OBEZBEDJENJE KVALITETA */
.obezKval-kontejner {
    margin-left: 20%;
    margin-right: 20%;
}

.obezKval-kontejner button {
    padding: 1%;
    font-size: 80%;
}


.dokumenta a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333; 
}

.dokumenta a:hover {
    color: red; 
}


.podnozje {
    background-color: #004E98;
    padding: 2%;
    text-align: center;
    color: white;
    font-size: 1.2em;
}



.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

#timer {
    font-size: 2em;
    margin: 20px;
}