/**
 * Copyright 2014 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.
 */

.toast {
  @include typo-base();
  will-change: opacity;
  position: fixed;
  top: 10%;
  width: 100%;
  text-align: center;
}

.toast__message {
  width: 90%;
  max-width: 360px;
  background: rgba(0,0,0,0.6);
  padding: 16px 24px;
  border-radius: 40px;
  font-size: 16px;
  color: #FFF;
  text-align: center;
  line-height: 1.45;
  margin: 0 auto;
}

.toast__hidden {
  opacity: 0;
  -webkit-transition: opacity 1.2s cubic-bezier(0,0,0.21,1) 4s;
  transition: opacity 1.2s cubic-bezier(0,0,0.21,1) 4s;
}

@media (min-width: 530px) {
  .toast__message {
    max-width: 600px;
  }
}

@media (min-width: 960px) {
  .toast {
    top: 36px;
  }
}
