/* COLORS
#000    - Black
#272727 - StudioR dark grey
#DDD    - Lighter grey
#F3F3F3 - Very light grey */


header {
  display: block;
  position: relative;
  /*border-bottom: solid 3px #272727;*/
  width: 100%;
  font-size: 0; /* for white-space between extraMenu icons */
  background: linear-gradient(white,#DDD);
}

div.headerWrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  text-align: center;
}

/* SITE TITLE */
div.siteTitle {
  display: block;
  float: left;
  height: 50px;
  width: 210px;
  text-align: center;
}

div.siteTitle:hover {background: #DDD;}

img.siteTitleLogo {
  position: relative;
  float: left;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}

span.siteTitleText {
  display: inline-block;
  width: 150px;
  margin-left: 10px;
  padding: 5px 0;
  line-height: 20px;
  font-size: large;
  font-weight: 800;
  text-align: left;
}

/* SITE NAVIGATION */
nav.mainMenu {
  display: inline-block;
  float: none;
  height: 50px;
  text-align: center;
}

nav.mainMenu ul {margin: 0 auto;}

li.mainMenuItem {
  display: inline;
  vertical-align: middle;
  width: 24%;
  line-height: 50px;
  font-size: 16px; /* for IE */
  font-size: initial;
  font-weight: bold;
}

li.mainMenuItem a {
  text-decoration: none;
  color: black;
}

div.mainMenuButton  {
  display: inline-block;
  max-width: 100px;
  margin: 0 10px;
  padding: 0 10px;
  text-align: center;
}

.hoverBG {-webkit-animation: hoverOutBG 1s ease-in forwards;}
.hoverBG:hover {-webkit-animation: hoverInBG 1s ease-out forwards;}

/* EXTRA NAVIGATION */
div.extraMenu {
  display: block;
  position: static;
  top: 0; right: 0;
  float: right;
  width: 70px;
  height: 50px;
  text-align: right;
  text-decoration: none;
}

img.iconFacebook, img.iconLanguage {
  display: inline-block;
  position: relative;
  top: 50%;
  width: 25px;
  height: 25px;
  border: solid 2px;
  border-color: #AAA;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -webkit-animation: hoverOutBorder 1s ease-in forwards;
}
img.iconFacebook {margin-right: 5px;}
img.iconFacebook:hover, img.iconLanguage:hover {
  -webkit-animation: hoverInBorder 1s ease-out forwards;
}

/* SEARCH */
div.searchBox {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 10px;
  overflow: hidden;
  background: black; /* pomocno */
}

div.searchBox * {
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}
div.searchBox tr {background: #AAA;}

.gsc-control-searchbox-only {
  margin: 0 !important;
  padding: 0 !important;
  background: #272727 !important;)
}

td.gsc-input {
  box-sizing: border-box;
  padding: 2px !important;
  height: 30px;
  width: 80%;
}
input.gsc-input {
  box-sizing: border-box;
  width: 100% !important;
  padding: 0 !important;
  padding-left: 5px !important;
  background: #DDD;
}
input.gsc-input:focus {background:white;}

input.gsc-search-button {
  height: 100% !important;
  width: 100% !important;
  -webkit-border-radius: 0px !important;
  color: black !important;
  -webkit-animation: hoverOutBG 1s ease-in forwards; }
input.gsc-search-button:hover {
  -webkit-animation: hoverInBG 1s ease-out forwards; }

td.gsc-clear-button {display: none;}
.gsc-control-cse {border: solid 1px #000;}

.cse input.gsc-input, input.gsc-input {
background-image:none !important;
}

/* ANIMATIONS */
@-webkit-keyframes hoverOutBG {
  from {background: #DDD;}
  to {background: transparent;} }
@-webkit-keyframes hoverInBG {
  from {background: transparent;}
  to {background: #DDD;} }

@-webkit-keyframes hoverOutBorder {
  from {border-color: #AAA;}
  to {border-color: transparent;} }
@-webkit-keyframes hoverInBorder {
  from {border-color: transparent;}
  to {border-color: #AAA;} }

@-webkit-keyframes hoverOutSize {
  from {font-size: 160%;}
  to {font-size: 100%;} }
@-webkit-keyframes hoverInSize {
  from {font-size: 100%;}
  to {font-size: 160%;}}

/* RESPONSIVE */
@media screen and (max-width: 750px) {
  div.siteTitle {float: none;}
  nav.mainMenu {
    display: block;
    height: auto;
  }
  nav.mainMenu ul {display: block;}
  div.extraMenu {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  div.searchBox {margin: 0;}
}

@media screen and (max-width: 500px) {
  li.mainMenuItem {
    display: block;
    height: 40px;
    width: 100%;
  }
  li.mainMenuItem a {width: 100%;}
  div.mainMenuButton {
    display: block;
    margin: 0;
    max-width: none;
    height: 40px;
    line-height: 40px;
  }

}
