/* ========================================================================
   Argent Security Center shared styles
   ======================================================================== */
main {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  flex: 1;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

header {
  padding-top: 40px;
  margin-bottom: 4em;
}

.sidebar {
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
  flex: 0 0 auto;

  transition: all 500ms cubic-bezier(0.665, 0.025, 0, 0.995);
}

.content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background-color: var(--argent-mayo);

  transition: all 500ms cubic-bezier(0.665, 0.025, 0, 0.995);
}

@media (min-width: 576px) {
  header {
    padding-top: 80px;
  }

  main .sidebar,
  main .content {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media (min-width: 900px) {
  main .sidebar {
    width: 50%;
    min-width: auto;
  }
}

@media (min-width: 992px) {
  main .sidebar {
    width: 41.66667%;
  }
}

@media (min-width: 1620px) {
  main .sidebar {
    width: 33.33333%;
  }
}

/*
 * QR code and full address
 */
.qr-and-address {
  max-width: 368px;
  padding: 48px;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  margin: 1em auto 2em;
}

.qr-code {
  width: 100% !important;
  height: auto !important;
  max-width: 240px;
  margin: 1em auto;
}

.full-address {
  font-size: 0.875em;
  color: var(--argent-dark-charcoal);
  word-wrap: break-word;
}

.code-block {
  display: block;
  max-width: 75vw;
  background-color: var(--argent-sand);
  border-radius: 8px;
  text-align: left;
  padding: 16px;
}

/*
 * Prepare guardian brand images for animation (e.g. Ledger / Trezor illustrations
 */
.guardian-brand-image {
  will-change: transition;
  transition: all 500ms cubic-bezier(0.665, 0.025, 0, 0.995);
}

/*
 * Action confirmation
 */
main.show-confirmation .content {
  background-color: white !important;
  text-align: center;
}

main.show-confirmation .sidebar {
  margin-left: -100%;
}

@media (min-width: 900px) {
  main.show-confirmation .sidebar {
    margin-left: -50%;
  }
}

@media (min-width: 992px) {
  main.show-confirmation .sidebar {
    margin-left: -41.66667%;
  }
}

@media (min-width: 1620px) {
  main.show-confirmation .sidebar {
    margin-left: -33.33333%;
  }
}

/*
 * Lock wallet confirmation
 */
.guardian-action-wrapper {
  flex: 1;
  padding: 40px;
  text-align: center;
  width: 100%;
  max-width: 480px;
  min-height: 480px;
  transform: translateX(100%);
  opacity: 0;
  position: absolute;

  will-change: transition;
  transition: all 500ms cubic-bezier(0.665, 0.025, 0, 0.995);
}

main.show-confirmation .guardian-action-wrapper {
  transform: translateX(0);
  opacity: 1;
}

.guardian-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.confirmation {
  position: absolute;
}

/*
 * Transaction status icons
 */
.icon-error {
  display: inline-block;
  width: 64px;
  height: 64px;
  background: url(../images/icons/icon-error.svg) no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 10px;
}

.icon-in-progress {
  display: inline-block;
  width: 64px;
  height: 64px;
  background: url(../images/icons/icon-in-progress.svg) no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 10px;

  animation: rotating 2s linear infinite;
}

.icon-success {
  display: inline-block;
  width: 64px;
  height: 64px;
  background: url(../images/icons/icon-success.svg) no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 10px;
}

/*
 * Show / hide wallet state
 */
.wallet-state {
  opacity: 0;

  transform: scale(0);

  will-change: transition;
  transition: all 500ms cubic-bezier(0.665, 0.025, 0, 0.995);
}

.wallet-state h2,
.wallet-state h3 {
  margin: 1em 0;
}

.show-wallet-state .confirmation {
  opacity: 0;
  transform: scale(0);
}

.show-wallet-state .wallet-state {
  opacity: 1;
  transform: scale(1);
}

/*
 * Wallet states
 */
.wallet-state--in-progress {
  will-change: transition;
  transition: all 500ms cubic-bezier(0.665, 0.025, 0, 0.995);
}

.wallet-state--success {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*
 * Wallet state illustrations
 */
.illustration-frozen-wallet {
  width: 220px;
  height: 266px;
  background: url(../images/illustrations/illustration-frozen-wallet.svg)
    no-repeat;
  background-size: contain;
}

.illustration-approved-stamp {
  width: 220px;
  height: 266px;
  background: url(../images/illustrations/illustration-approved-stamp.svg)
    no-repeat;
  background-size: contain;
}

.illustration-joyful-girl {
  width: 220px;
  height: 266px;
  background: url(../images/illustrations/illustration-joyful-girl.svg)
    no-repeat;
  background-size: contain;
}

.illustration-supergirl {
  width: 220px;
  height: 266px;
  background: url(../images/illustrations/illustration-supergirl.svg) no-repeat;
  background-size: contain;
}
