/**
 * ANF Cinemateca - Header Component
 */

#header {
  position: relative;
  width: 950px;
  margin: 0 auto;
  background-color: #ffffff;
}

#header-wrapper {
  position: relative;
  padding: 30px 0;
}

#header-first {
  float: left;
}

.logo {
  padding-left: 15px;
}

.logo img {
  height: 50px;
}

#header-middle {
  float: left;
  padding-top: 25px;
}

.logo-name {
  display: inline;
  font-weight: bold;
  font-size: 25px;
  padding-left: 15px;
  position: relative;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-style: italic;
  margin: 0;
}

.logo-name a {
  color: #000000;
  text-decoration: none;
}

.logo-name a:hover {
  color: #cc6600;
}

/* Search box */
#header-wrapper #search-box {
  margin: 4px 14px;
  position: absolute;
  right: 0;
  top: 50px;
  white-space: nowrap;
}

#header-wrapper #search-box #search {
  display: inline-block;
}

#header-wrapper #search-box .form-item {
  display: inline-block;
  margin: 0;
}

#header-wrapper #search-box label {
  display: inline;
  font-size: 12px;
  margin-right: 5px;
}

#header-wrapper #search-box input.form-text {
  border: 1px solid #d5d5d5;
  width: 10em;
  padding: 2px 4px;
  font-size: 13px;
}

#header-wrapper #search-box input.form-submit {
  padding: 2px 8px;
  font-size: 13px;
}

/* Authorize section */
#authorize {
  position: absolute;
  right: 14px;
  top: 5px;
}

#authorize ul {
  display: inline;
  list-style: none;
  margin: 0;
  padding: 0;
}

#authorize ul li {
  margin: 0 10px 0 0;
  padding: 0 0 0 10px;
  display: inline;
  list-style: none;
  border-left: 1px solid #5a5a5a;
  background-image: none;
}

#authorize ul li.first {
  border: 0;
}

#authorize ul li,
#authorize ul li a {
  font-size: 12px;
  line-height: 13px;
}

#authorize a {
  color: #005a8c;
  text-decoration: none;
}

#authorize a:hover {
  color: #cc6600;
}

#authorize a.feed-icon {
  padding-right: 20px;
}

/* Responsive header - Tablet (769px - 950px) */
@media (min-width: 769px) and (max-width: 950px) {
  #header {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    padding: 30px 0;
  }

  #header-wrapper {
    padding: 20px 0;
  }

  .logo img {
    height: 45px;
  }

  #header-middle {
    padding-top: 20px;
  }

  .logo-name {
    font-size: 22px;
  }

  #header-wrapper #search-box {
    position: absolute;
    right: 20px;
    top: 40px;
  }

  #header-wrapper #search-box input.form-text {
    width: 8em;
  }
}

/* Responsive header - Mobile */
@media (max-width: 768px) {
  #header {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }

  #header-wrapper {
    padding: 10px 0;
  }

  #header-first {
    float: none;
    text-align: center;
    margin-bottom: 10px;
  }

  .logo {
    padding-left: 0;
  }

  .logo img {
    height: 46px !important;
    width: auto;
    margin-bottom: 40px;
  }

  #header-wrapper #search-box {
    position: static;
    margin: 15px auto;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
  }

  #header-wrapper #search-box #search {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #header-wrapper #search-box .form-item {
    width: 100%;
    margin-bottom: 10px;
  }

  #header-wrapper #search-box label {
    display: none;
  }

  #header-wrapper #search-box input.form-text {
    width: 100%;
    max-width: none;
    padding: 12px 15px;
    margin: 0;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    max-width: 350px;
  }

  #header-wrapper #search-box input.form-text::placeholder {
    color: #999;
  }

  #header-wrapper #search-box input.form-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #1B2D52 13%, #1D325A 20%, #2E5C9D 80%, #072A5A 103%);
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    max-width: 350px;
  }

  #header-wrapper #search-box input.form-submit:hover {
    background: linear-gradient(to bottom, #0f1e38 13%, #152447 20%, #1f4a7d 80%, #051d42 103%);
  }

  #authorize {
    position: static;
    text-align: center;
    margin-top: 10px;
  }

  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .site-branding {
    flex-direction: column;
  }

  .site-name {
    font-size: 1.5rem;
  }

  .region-search input[type="text"],
  .region-search input[type="search"] {
    min-width: 100%;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .logo img {
    height: 46px !important;
  }

  #header-wrapper {
    padding: 8px 0;
  }

  #header-wrapper #search-box input.form-text {
    padding: 10px 12px;
    font-size: 15px;
  }

  #header-wrapper #search-box input.form-submit {
    padding: 10px 15px;
    max-width: 350px;
  }
}
