/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

.cr-dialog-container {
  -webkit-box-align: center;
  -webkit-box-pack: center;
  display: -webkit-box;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  transition: opacity 250ms linear;
  user-select: none;
  width: 100%;
  z-index: 9999;
}

.cr-dialog-frame {
  -webkit-box-orient: vertical;
  -webkit-box-shadow: 5px 5px 5px rgba(100, 100, 100, 0.5);
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2),
              0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: default;
  display: -webkit-box;
  padding: 14px 17px;
  position: relative;
  width: 460px;
}

.cr-dialog-frame:focus {
  outline: none;
}

@keyframes pulse {
 0% {
   transform: scale(1);
 }
 40% {
   transform: scale(1.02);
  }
 60% {
   transform: scale(1.02);
  }
 100% {
   transform: scale(1);
 }
}

.cr-dialog-frame.pulse {
  animation-duration: 180ms;
  animation-iteration-count: 1;
  animation-name: pulse;
  animation-timing-function: ease-in-out;
}

.shown > .cr-dialog-frame {
  opacity: 1;
  transform: perspective(500px) scale(1)
             translateY(0) rotateX(0);
}

.cr-dialog-frame {
  opacity: 0;
  transform: perspective(500px) scale(0.99)
             translateY(-20px) rotateX(5deg);
  transition: all 180ms;
  transition-duration: 250ms;
}

.cr-dialog-shield {
  background-color: white;
  bottom: 0;
  display: block;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 500ms;
}

.shown > .cr-dialog-shield {
  opacity: 0.75;
  transition: opacity 500ms;
}

[hidden] {
  display: none;
}

.cr-dialog-title {
  -webkit-margin-end: 20px;
  display: block;
  font-size: 120%;
  font-weight: bold;
  margin-bottom: 10px;
  white-space: nowrap;
  word-wrap: normal;
}

.cr-dialog-text {
  margin: 13px 0;
}

.cr-dialog-text,
.cr-dialog-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-dialog-frame input {
  -webkit-box-sizing: border-box;
  width: 100%;
}

.cr-dialog-buttons {
  -webkit-box-orient: horizontal;
  -webkit-box-pack: end;
  display: -webkit-box;
  padding-top: 10px;
}

.cr-dialog-close {
  background: url(chrome://theme/IDR_CLOSE_DIALOG) center no-repeat;
  display: inline-block;
  height: 44px;
  opacity: 0.7;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
}

.cr-dialog-close:hover {
  background-image: url(chrome://theme/IDR_CLOSE_DIALOG_H);
}

.cr-dialog-close:active {
  background-image: url(chrome://theme/IDR_CLOSE_DIALOG_P);
}
