*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-moz-selection { /* Code for Firefox */
    color: white;
    background: rgb(255, 79, 79);
}

::selection {
    color: white;
    background: rgb(255, 79, 79);
}

body{
    font-family: 'Lato', sans-serif !important;
}

.everytransition{
    transition: .3s ease-in;
}

/* ----Navbar---- */
nav,a,h1,h2,h3,h4,h5,h6{
    font-family: 'Montserrat', sans-serif !important;
}

section h1{
    font-family: 'Teko', sans-serif !important;
    font-size: 70px !important;
}

nav li{
    margin-left: 10px;
    margin-right: 10px;
}

nav ul li a{
    color: white;
    border-bottom: 1px solid transparent;
    transition: .3s ease-in-out;
}

.navbar-brand img{
    width: 60px;
    height: auto;
}

.navbar-toggler:focus{
    box-shadow: none !important;
}



/* ----Cover----- */

#my{
    background: url('img/webp/cover.webp');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
}

#header p{
    /* background-color: rgba(255,255,255,0.7); */
    text-align: center;
    padding-top: 350px;
    font-size: 450%;
    font-family: 'Faster One', cursive;
    color: white;
}

#nazoviNav{
    width: 250px;
    height: auto;
    position: absolute;
    text-align: center;
    background: rgb(255, 79, 79);
    border: 1px solid transparent;
    color: white;
    padding: 15px;
    text-decoration: none;
    transition: .3s ease;
    font-weight: bold;    
    margin-top: 40px;
    margin-left: 43%;
    font-size: 100%;
}

#nazoviNav:hover{
    background: white;
    color: black;
    border: 1px solid black;
}

#arrowdown{
    width: 80px;
    height: auto;
    margin-top:10%;
    margin-left: 48%;
}

#drugiRed{
    margin-top: 100px;
}

@media(max-width: 1400px)
{
    #nazoviNav{
        margin-left: 40%;
    }
}

@media(max-width: 770px)
{
    #my{
        margin-top: -100px;
    }
    #header p{
        width: 100%;
        margin: 100px 0 0 0;
        font-size: 180%;
    }

    #nazoviNav{
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    #arrowdown{
        margin-top: 70px;
        margin-left: 42%;
    }
}

/* ----About---- */

#about
{
    font-size: 130%;
}

#aboutimg{
    width: 100%;
    height: auto;
}

#aboutnaslov{
    font-size: 230%;
}

#abouttxt a{
    color: rgb(255, 79, 79);
    transition: .3s ease;
}

#abouttxt a:hover{
    color: black;
}

.section-padding-100{
    padding: 100px 0;
}

.aboutimg img{
    width: 150px;
}

#drugired div{
    display: block;
}

#secondRow{
    margin-top: 50px !important;
}

.card{
    border-radius: 0 !important;
    margin: 5px !important;
    box-sizing: content-box !important;
}

.card-img-top{
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;

    padding-top: 5px;
}

#secondRow .btn-primary{
    background-color:rgb(255, 79, 79);
    border: 1px solid transparent;
    transition: .3s ease;
}

#secondRow .btn-primary:hover{
    background-color: white;
    border: 1px solid black;
    color: black;
}

@media(max-width: 770px)
{
    #aboutimg{
        width: 70%;
    }

    #drugired{
        margin-top: 10px;
        margin-right: 120px;
        margin-left: 90px;
    }

    .card{
        height: auto !important;
    }
}

#about h1{
    padding-bottom: 50px;
}

.blockquote-footer{
    padding-top: 20px;
}

/* ----Radovi---- */

#radovi h1{
    padding-bottom: 100px;
}

/* CSS-columns masonry — nikad ne preklapa slike jer su u toku dokumenta */
.masonry{
    column-count: 3;
    column-gap: 16px;
}

@media (max-width: 991px){
    .masonry{ column-count: 2; }
}

@media (max-width: 575px){
    .masonry{ column-count: 1; }
}

.masonry-item{
    break-inside: avoid;        /* moderni browseri */
    page-break-inside: avoid;   /* legacy */
    -webkit-column-break-inside: avoid;
    margin: 0 0 16px;
    overflow: hidden;           /* secemo scale(1.1) na okviru */
    border: 1px solid #dee2e6;
    padding: 4px;
    background: #fff;
    border-radius: 4px;
    display: block;
}

.masonry-item img{
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform 0.5s ease;
    cursor: pointer;
}

.masonry-item:hover img{
    transform: scale(1.1);
}

@media(max-width: 770px)
{
    #radovi{
        margin-top: 200px
    }
    
    .blockquote-footer{
        padding-top: 50px;
        float: right;
    }
}

.modal {
    display: none; /* Hidden by default; JS koristi 'flex' za prikaz */
    position: fixed;
    z-index: 1050; /* Iznad navbara (fixed-top je 1030) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    touch-action: pan-y;
    /* Flex centriranje slike kad je modal otvoren */
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    box-sizing: border-box;
}

@media (max-width: 700px){
    .modal { padding: 50px 50px; }
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 16px 20px;
    transition: color 0.3s;
    z-index: 1051;
    line-height: 1;
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.modal-nav:hover { color: #bbb; }

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #f1f1f1;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

@media (max-width: 700px){
    .modal-nav { font-size: 34px; padding: 10px 12px; }
    .modal-prev { left: 4px; }
    .modal-next { right: 4px; }
}

/* Modal Content (image) */
.modal-content {
    display: block;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Add Animation */
.modal-content, #caption {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ----Kontakt---- */

#contact h1{
    padding-top: 100px;
    margin-bottom: 50px;
}


#nazovi{
    width: 250px;
    height: auto;
    text-align: center;
    background: rgb(255, 79, 79);
    border: 1px solid transparent;
    color: white;
    padding: 15px;
    text-decoration: none;
    transition: .3s ease;
    font-weight: bold;
    position: absolute;
    margin-top: 40px;
}

#nazovi:hover{
    background: white;
    color: black;
    border: 1px solid black;
}

#posaljiMejl{
    width: 250px;
    height: auto;
    text-align: center;
    background: rgb(255, 79, 79);
    border: 1px solid transparent;
    color: white;
    padding: 15px;
    text-decoration: none;
    transition: .3s ease;
    font-weight: bold;
    position: absolute;
    margin-top: 120px;
}

#posaljiMejl:hover{
    background: white;
    color: black;
    border: 1px solid black;
}

@media(max-width: 770px)
{
    iframe{
        margin-top: 300px;
        width: 300px;
    }

    #nazovi, #posaljiMejl{
        margin-left: -125px;
    }
}

/* Footer */
footer{
    margin-top: 100px
}

footer a{
    color: black;
    font-weight: bold;
    transition: .3s ease;
}

footer a:hover{
    color: rgb(255, 79, 79);
}