/**
 *
 * Copyright 2015 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.header {
  width: 100%;
  height: 56px;
  color: #FFF;
  background: $primary;
  position: fixed;
  font-size: 20px;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 2px 9px 1px rgba(0, 0, 0, 0.12),
    0 4px 2px -2px rgba(0, 0, 0, 0.2);
  padding: 16px 16px 0 16px;
  will-change: transform;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: center;
  transition: transform 0.233s cubic-bezier(0,0,0.21,1) 0.1s;
}

.header--collapsed {
  transition: transform 0.233s cubic-bezier(0,0,0.21,1) 0.13s;
  transform: translateY(-56px);
}

.header__menu {
  background: url(/images/ic_menu_24px.svg) center center no-repeat;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  text-indent: -30000px;
  overflow: hidden;
  opacity: 0.54;
  transition: opacity 0.333s cubic-bezier(0,0,0.21,1);
  border: none;
  outline: none;
}

.header__menu:focus,
.header__menu:hover {
  opacity: 1;
  border: 1px solid white;
}

.header__title {
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  flex: 1;
}

@media(min-width: 600px) {
  .header {
    padding: 16px 32px 0 24px;
    height: 144px;
    flex-direction: column;
    align-content: space-between;
    align-items: flex-start;
  }

  .header__menu {
    margin: 4px 0 20px 0;
  }

  .header__title {
    font-size: 34px;
    height: 80px;
    line-height: 80px;
  }

  .header--collapsed {
    transition: none;
    transform: none;
  }
}

@media(min-width: 960px) {
  .header__title {
    width: 888px;
    margin: 0 auto;
  }
}
