
header {
  margin: 0px;
  background-color: white;
  position: fixed;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-transition: height 0.25s;
  -o-transition: height 0.25s;
  transition: height 0.25s;
  z-index: 99999;
}

.unscrolled header {
  -webkit-box-shadow: none;
          box-shadow: none;
  height: 4.5625em;
}

.scrolled header {
  -webkit-box-shadow: 0px 0px 0.25em #00000080;
          box-shadow: 0px 0px 0.25em #00000080;
  height: 3em;
}

.logo {
  background: url('../img/logo.svg');
  background-repeat: no-repeat;
  background-size: 78% auto;
  float: left;
  -webkit-transition: width 0.25s, height 0.25s;
  -o-transition: width 0.25s, height 0.25s;
  transition: width 0.25s, height 0.25s;
  margin: 0px;
}

.scrolled .logo {
  width: 7.4144em;
  height: 2.75342em;
}

.unscrolled .logo {
  width: 10.625em;
  height: 4.1875em;
}

.spacer {
  height: 2.375em;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  header nav {visibility: hidden; position: fixed;}
  .logo { background-position: -1% 43%;}
  .flagwrapper {visibility: hidden; position: fixed;}
  .menuContainer {visibility: visible; position: relative;}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  header nav {visibility: hidden; position: fixed;}
  .logo { background-position: -1% 43%;}
  .flagwrapper {visibility: hidden; position: fixed;}
  .menuContainer {visibility: visible; position: relative;}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  header nav {visibility: visible; position: relative;}
  .logo { background-position: 102% 43%;}
  .flagwrapper {visibility: visible; position: relative;}
  .menuContainer {visibility: hidden; position: fixed;}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  header nav {visibility: visible; position: relative;}
  .logo { background-position: 102% 43%;}
  .flagwrapper {visibility: visible; position: relative;}
  .menuContainer {visibility: hidden; position: fixed;}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  header nav {visibility: visible; position: relative;}
  .logo { background-position: 102% 43%;}
  .flagwrapper {visibility: visible; position: relative;}
  .menuContainer {visibility: hidden; position: fixed;}
}

header nav {
    font-family: 'BebasNeueRegular';
    font-weight: normal;
    font-style: normal;
    color: var(--dark-color);
}

header nav ul {
  list-style-type: none;
  margin: 0px;
}

header nav ul li {
  float: left;
  padding: 0px 1.5625em;
  /*line-height: 3.35em;*/
  font-size: 1.25em;
  height: inherit;
  border-top-style: solid;
  border-top-width: 0.22em;
  border-top-color: white;
  -webkit-transition: line-height 0.25s;
  -o-transition: line-height 0.25s;
  transition: line-height 0.25s;
}

.scrolled nav ul li {
  line-height: 2em;
}

.unscrolled nav ul li {
  line-height: 3.35em;
}

header nav ul a{
  color: var(--dark-color);
}

header nav ul li:hover, .mobileMenu ul li:hover, .aktivni {
    color: var(--main-color) !important;
    border-top-color: var(--main-color) !important;
    border-left-color: var(--main-color) !important;
}

header nav ul li b {
  color: inherit;
}

.menuContainer {
  display: inline-block;
  cursor: pointer;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  -webkit-transition: 0.25s;
  -o-transition: 0.25s;
  transition: 0.25s;
}

.unscrolled .menuContainer {
  margin-right: 2em;
}

.scrolled .menuContainer {
  margin-right: 1em;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 3px;
  background-color: #333;
  margin: 6px 0;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.change .bar1 {
  -webkit-transform: translate(-10px, 0px) rotate(-45deg) translate(0px, 13px) ;
      -ms-transform: translate(-10px, 0px) rotate(-45deg) translate(0px, 13px) ;
          transform: translate(-10px, 0px) rotate(-45deg) translate(0px, 13px) ;
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  -webkit-transform: translate(-10px, 0px) rotate(45deg) translate(0px, -13px) ;
      -ms-transform: translate(-10px, 0px) rotate(45deg) translate(0px, -13px) ;
          transform: translate(-10px, 0px) rotate(45deg) translate(0px, -13px) ;
}

.flagwrapper {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-left: auto;
  margin-right: 2em;
}

.horizontalflexwrap {
  height: 1em;
  display: block;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.flag {
  -webkit-transition: 0.25s;
  -o-transition: 0.25s;
  transition: 0.25s;
  -webkit-box-shadow: 0 0 0.5px #00000040;
          box-shadow: 0 0 0.5px #00000040;
  height: 0.95em;
  margin: 0 0.18em;
}

.mobileMenu {
  position: fixed;
  -webkit-transition: 0.25s;
  -o-transition: 0.25s;
  transition: 0.25s;
  z-index: 99990;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: white;
  visibility: visible;
  opacity: 1;
  padding-top: 2.1875em;
  font-family: 'BebasNeueRegular';
  font-weight: normal;
  font-style: normal;
}

.mobileMenu ul
{
  list-style-type: none;
  padding-left: 0px;
}

.mobileMenu ul a {
  text-decoration: none;
}

.mobileMenu ul li {
  line-height: 3.35em;
  font-size: 1.25em;
  border-left-style: solid;
  border-left-width: 0.22em;
  border-left-color: white;
  padding-left: 1.5em;
  margin-bottom: 0.2em;
  background-color: #F7F7F7;
}

.mobileMenu ul li b {
  color: inherit;
}

.mobileMenu ul li {
  color: black;
  border-left-color: black;
}

header nav ul li:hover, .aktivni {
  color: var(--main-color);
  border-left-color: var(--main-color);
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.ScrollLock
{
  overflow: hidden;
}

.mobileMenu p
{
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  margin-left: 1.5em;
  margin-top: 1.5em;
}

.mobileMenu a
{
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mobileMenu .horizontalflexwrap p
{
  display: inline;
  color: black;
  margin-left: 0.5em;
  margin-top: 0em;
}

.flagtextwrapp
{
  margin-left: 1.5em;
  margin-top: 1em;
}
