@import url('https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900,300italic,400italic|Work+Sans:100,200,300,400,500,600,700,800,900,300italic,400italic&subset=latin,latin-ext');


/* Menu CSS */

/* Add a black background color to the top navigation */
.topnav {
    background-color: white; /*#d3df41 rgba(255,255,255,1) */
    text-transform: uppercase;
    overflow: hidden;
    width: 100%;
    text-align: center;
    min-height: 30px;
    border-bottom: solid 1px #302683;
}

.smanji_sliku{
    width: 120px !important; 
}

div.submenu_custom:hover{
    display: block !important;
    position: fixed !important;
}

.topnav ul{
    margin: 0px;
    display: flex;
    justify-content: center;
}

/* Style the links inside the navigation bar */
.topnav a {
    display: table-cell;
    color: #e5007d;
    text-align: left; /* center */
    padding: 5px 8px;
    text-decoration: none;
    font-size: 1.1em;
}

.topnav li {
    float: left;
    display: table-cell;
    color: black;
    text-align: center;
    padding: 5px 8px;
    text-decoration: none;
    font-size: 1.2em !important;
    margin: 0;
    vertical-align: super;
}

/* Change the color of links on hover */
.topnav a:hover {
    text-decoration: underline #302683;
    
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}

/* media queries */

/* When the screen is less than 875 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 1050px) {
  .topnav li:not(:last-child) {display: none;} /* not(:first-child) */
  .topnav a.icon {
    display: block;
    float: right;
  }
  .topnav ul{
    justify-content: left;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens
(display the links vertically instead of horizontally) */
@media screen and (max-width: 1050px) {
  /*.topnav.responsive {position: relative;}*/
  .topnav.responsive a.icon {
    position: relative;
  }
  .topnav.responsive li {
    float: left;
    clear:left;
    display: block !important;
    top: 0;
    right: 0;
  }
  
  .topnav.responsive ul{
      display: list-item;
  }
}

/* animated fixed top menu shrink */

.affix {
  padding:0px;
  -webkit-transition:padding 0.2s linear;
  -moz-transition:padding 0.2s linear;  
  -o-transition:padding 0.2s linear;         
  transition:padding 0.2s linear;  

}

.affix-top {
  padding-top:15px;
  padding-bottom:15px;
  -webkit-transition:padding 0.5s linear;
  -moz-transition:padding 0.5s linear;  
  -o-transition:padding 0.5s linear;         
  transition:padding 0.5s linear;  
}

