/*NAVIGATION*/


html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height, 70px);
}


.predmeti-box, .predmeti-box-bordered {
    scroll-margin-top: 60px;
}


@media(min-width: 992px){
.dropdown:hover > .dropdown-menu, .dropend:hover > .dropdown-menu{
  display: block;
  margin-top: 0;
  margin-left: 0;
  margin: 0 !important;
} 

.dropdown-menu .dropdown-item:hover{
    background-color: rgb(254, 204, 173) !important;
    border-bottom: 2px solid var(--accent-color);
}

.dropdown-menu .dropdown-item:active{
    background-color: rgb(254, 204, 173) !important;
    border-bottom: 2px solid var(--accent-color);
    color: #ff5f02 !important;
}

.dropdown-menu > li:hover > .dropdown-submenu {
display: block;
}



}

.container-fluid{
    font-family: 'Involve semibold';
    font-size: 90%;
    background-color:var(--primary-color) !important;
}


.navbar .container-fluid{
    background-color:var(--primary-color) !important;
}
.logo{
    width: clamp(40px, 8vw, 70px);
    height: auto;
    margin-left: 10px;
    margin-right: 20px;
}


.navbar .navbar-toggler {
    border-color: transparent;
}
.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2030%2030'%3E%3Cpath%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-miterlimit='10'%20d='M4%207h22M4%2015h22M4%2023h22'/%3E%3C/svg%3E");
}

.navbar{
    background-color:var(--primary-color) !important;
    z-index: 1030;
    width: 100%;
}


.navbar-brand{
    font-family: 'Involve bold';
    font-size: clamp(0.8rem, 3.5vw, 1.5rem) !important; 
}


.navbar, .navbar .nav-boja, .navbar .navbar-brand, .navbar .navbar-toggler {
     color: var(--background-color) !important; 
    }


.navbar .nav-boja:hover, .navbar .navbar-brand:hover, .navbar {
    color: #c7c7b0 !important;
}

.dropdown-menu {
    border-radius: 18px !important;
    margin-top: 10px;
}
.dropdown-item {
    border-radius: 12px !important;
    margin: 0 !important;
}

.dropdown-toggle-uvuceno{
    padding-left: 16px !important;
}

.dropdown-menu.show {
    animation: expandMenu 0.3s ease-out forwards;
    transform-origin: top center;
}

@keyframes expandMenu {
    0% {
        opacity: 0;
        transform: scaleY(0.2);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}



.nav-link:focus, .dropdown-item:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-link {
    position: relative;
    padding-bottom: 3px;
}

.navbar-nav > li > .nav-link {
    position: relative;
}

.navbar-nav > li > .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 0%;
    height: 2px;
    background-color: var(--background-color);
    transition: 0.3s ease;
}

.navbar-nav > li > .nav-link:hover::before {
    width: 100%;
}


.dropdown-menu li {
position: relative;
}
.dropdown-menu .dropdown-submenu {
display: none;
position: absolute;
left: 100%;
top: 0px;
}
.dropdown-menu .dropdown-submenu-left {
right: 100%;
left: auto;
}
/*FOOTER*/

.footer-container{
    background-color: #072c2c;
    padding: 3rem;
    color: #e6e6cf;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    justify-items: center;

    justify-content: center;
    align-content: center;
    gap: 20px;
    grid-template-areas: "box-1 box-2 box-3";
}

.box-1 { grid-area: box-1}
.box-2 { grid-area: box-2}
.box-3 { grid-area: box-3}

@media(max-width: 990px) { 
    
    .dropdown-menu{
        background-color: var(--primary-color) !important;
        
    }

    .nav-link{
        color: var(--background-color)!important;
    }

    .dropdown-item{
        color: var(--background-color)!important;
    }

    .footer-container{
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "box-1 box-2"
            "box-3 box-3";
    }
} 

@media(max-width: 600px) { 
    .footer-container{
        grid-template-columns: auto;
        grid-template-areas: 
            "box-1" 
            "box-2"
            "box-3";
    }
} 

.box-1 p, .box-2 p, .box-3 p{
    font-size: 1.2rem;
    /*font-size: clamp(0.8rem, 3vw, 1.5rem); ovo smanjuje tekst i izgleda gadno*/
    font-family: 'Involve semibold';
}

.box-1 span, .box-2 span, .box-3 span{
    font-size: 1rem;
    /*font-size: clamp(0.5rem, 2vw, 1rem);*/
    font-family: 'Involve semibold';
}

.footer-container > div:nth-child(2) > span,
.footer-container > div:last-child > span {
    display: block;
}

.footer-container > div {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.icon{
    color: #e6e6cf;
}
.fa-brands {
    font-size: 30px;
    margin-top: 15px;
}

.fa-brands:hover{
    color: #ff5f02;
}

.cr{
    font-size: 8px; 
    text-align: left; 
    color: #0d3535;
    background-color: #072c2c;
    margin-top: 0;
}


#backToTop{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 1100;
}

#backToTop.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover{
    background: var(--primary-color);
    color: var(--background-color);
    cursor: pointer;
}
