/**
 * http://keystation.cosmostation.io/
 * Since : 2019.08.19
 * Author : Lee Song-hyeon
 * Updated :2019.08.22
 */

/* web fonts */
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+KR|Open+Sans");

/* Custom
   ========================================================================== */

html {
  height: 100%;
}

body {
  min-width: 320px;
  height: 100%;
  line-height: 1.4;
  font-size: 14px;
  font-family: "Open Sans", "Noto Sans KR", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.not-scroll {
  overflow: hidden;
}

p {
  /*word-break: keep-all;*/
}

textarea {
  outline: none;
  border: 1px solid transparent;
  resize: none;
}

/* float 해제 */
.clear:after {
  content: "";
  display: block;
  clear: both;
}

/* 긴 글 생략 */
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 팝업 백그라운드 */
.over-win {
  visibility: hidden;
  z-index: 1000;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
}

.over-win.open {
  visibility: visible;
}

/* word break */
.word-break-all {
  word-break: break-all;
}


/* go
 ========================================================================== */
#app {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 40px 26px 40px;
}

.inner>h1 {
  font-size: 0;
  margin-bottom: 30px;
}

.inner>h2 {
  font-weight: normal;
  font-size: 16px;
  margin-bottom: 40px;
}

#session-page-title {
  font-weight: normal;
  font-size: 16px;
  margin-bottom: 10px;
}

.keystation-form {
  position: relative;
  margin-bottom: 20px;
}

.keystation-form .input {
  display: block;
  max-width: none;
  padding: 0;
  margin: 8px 0;
  width: 100%;
}

.keystation-form .input__field {
  font-family: "Open Sans", "Noto Sans KR", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.keystation-form input {
  width: 100%;
  height: 50px;
  border: 1px solid transparent;
  background: #f5f5f5;
  border-radius: 6px;
}

.keystation-form textarea {
  width: 100%;
  height: 120px;
  border: 1px solid transparent;
  background: #f5f5f5;
  border-radius: 6px;
  line-height: 1.6;
}

/* .keystation-form input:focus{
  background-color: #fff;
  border-color: #9c6cff;
} */

.keystation-form .icon--fumi {
  padding-top: 1.26em;
}

.keystation-form .input__label-content--fumi {
  font-size: 14px;
  font-weight: 400;
  padding: 1.12em 0;
}

.input__field--fumi {
  color: #000;
}

.input__field--fumi:focus+.input__label--fumi .input__label-content--fumi,
.input--filled .input__label-content--fumi {
  padding: 0.9em 0;
}

@keyframes anim-fumi-1 {
  50% {
    transform: translate3d(0, 3em, 0);
  }

  51% {
    transform: translate3d(0, -3em, 0);
  }

  100% {
    color: #a3a3a3;
    font-size: 12px;
    transform: translate3d(0, -0.5em, 0);
  }
}

.keystation-form>button {
  display: block;
  width: 50%;
  margin: 46px auto 0;
  background: #2d2c2c;
  height: 50px;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
}

.keystation-form>button:hover {
  background-color: #000;
}

.keystation-form>button>i {
  font-size: 20px;
  color: #05d2dd;
}

.keystation-form>p {
  text-align: left;
  font-size: 13px;
}

.keystation-form>p.error {
  display: none;
  color: #F44336;
}

.keystation-form>p.information-text {
  color: #cccccc;
}

.keystation-form>p>i {
  font-size: 20px;
  vertical-align: bottom;
}

.tx-btn-wrap {
  margin-top: 30px;
  overflow: hidden;
}

.tx-btn-wrap>button {
  float: right;
  width: 30%;
  /*background: #2d2c2c;*/
  background: #9c6cff;
  height: 50px;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
}

.tx-btn-wrap>button:hover {
  /*background-color: #000*/
  background-color: #8354e4;
}

.tx-btn-wrap>button.cancel {
  float: left;
  background: #eaeaea;
  color: #484848;
}

.tx-btn-wrap>button.cancel:hover {
  background-color: #e2e2e2;
}

.inner>a {
  text-decoration: underline;
}

.form-fotter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  text-align: right;
  font-size: 20px;
}

.form-fotter>a {
  color: #6e6d6d;
}

.form-fotter>a:hover {
  color: #000;
}

.keystation-url-info {
  margin-top: -24px;
  font-size: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eeeeee;
}

.keystation-url-info>strong {
  display: block;
}

.keystation-url-info>strong i {
  color: #3aae1e;
}

.keystation-tx-info {
  height: 216px;
  overflow-y: auto;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 12px;
  padding-top: 12px;
}

.keystation-tx-info>h3 {
  font-weight: normal;
  color: #9c6cff;
  padding: 2px 0px 2px 32px;
  margin-bottom: 6px;
}

.keystation-tx-info>h3.send {
  background: url(https://www.mintscan.io/static/media/send_ic.902591a0.svg) no-repeat left center;
}

.keystation-tx-info>span {
  color: #9e9e9e;
}

.keystation-tx-info>p {
  margin-bottom: 4px;
  color: #222;
  word-break: break-all;
}

.keystation-tx-info>p>span {
  margin-right: 3px;
}

.keystation-tx-json {
  height: 96px;
  overflow-y: auto;
  text-align: left;
  font-size: 13px;
  padding-bottom: 12px;
  padding-top: 12px;
  padding-left: 12px;
  padding-right: 12px;
  background: #222;
  color: #ccc;
  border-radius: 6px;
  margin-top: 18px;
  word-break: break-all;
}

.keystation-form>button.tx-sign-btn {
  margin-top: 30px;
}

/* PIN
 ========================================================================== */
.pin-wrap {
  display: none;
  z-index: 100;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 20px 30px;
}

.pin-wrap.open {
  display: flex;
}

.pin-wrap>button {
  position: absolute;
  right: 0px;
  top: 0px;
  font-size: 20px;
  padding: 10px 14px;
  color: #ccc;
}

.pin-wrap>button:hover {
  color: #000;
}

.pin-cont {
  width: 100%;
}

.pin-cont>h2 {
  font-size: 16px;
  margin-bottom: 18px;
}

.pin-cont>p {
  margin-bottom: 40px;
  font-size: 13px;
}

.pin-cont>p>span {
  color: #f44336;
}


.dots-cointainer {
  position: relative;
  width: 100%;
}

.dots {
  position: relative;
  left: 50%;
  width: 60%;
  transform: translate(-50%, -50%);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-around;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  align-items: center;
  padding: 1em;
  padding-top: 3em;
  padding-bottom: 2em;
}

.dot {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.8em;
  width: 1em;
  height: 1em;
  -webkit-transform: scale3d(0.7, 0.7, 0.7);
  transform: scale3d(0.7, 0.7, 0.7);
}

.dot.active {
  -webkit-animation: growDot .5s ease;
  animation: growDot .5s ease;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  /* position: relative;
  background: rgba(0, 0, 0, 1);
  border-radius: 0.8em;
  width: 1em;
  height: 1em;
  -webkit-transform: scale3d(0.7, 0.7, 0.7);
  transform: scale3d(0.7, 0.7, 0.7); */
}

.dot.wrong {
  -webkit-animation: wrong .9s ease;
  animation: wrong .9s ease;
}

.dot.correct {
  -webkit-animation: correct .9s ease;
  animation: correct .9s ease;
}

.wrapper-number {
  display: grid;
  grid-template-columns: 33.3% 33.3% 33.3%;
}

.grid-number {
  /*background: #3aae1e;*/
  height: 60px;
  line-height: 3.5em;
  font-size: 18px;
}

.grid-number:active {
  background: #f0f0f0;
}

.finger {
  cursor: pointer;
}

.wrapper-alphabet {
  /*display: grid;*/
  display: none;
  grid-template-columns: 14.2% 14.2% 14.2% 14.2% 14.2% 14.2% 14.2%;
}

@-webkit-keyframes growDot {
  100% {
    /*background: #9c6cff;*/
    background: #000;
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }
}

@keyframes growDot {
  100% {
    background: #000;
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }
}

@-webkit-keyframes wrong {
  20% {
    background: #f44336;
  }

  40% {
    -webkit-transform: translate(-5px, 0);
    transform: translate(-5px, 0);
  }

  60% {
    -webkit-transform: translate(3px, 0);
    transform: translate(3px, 0);
  }

  80% {
    -webkit-transform: translate(-1px, 0);
    transform: translate(-1px, 0);
  }
}

@keyframes wrong {
  20% {
    background: #f44336;
  }

  40% {
    -webkit-transform: translate(-5px, 0);
    transform: translate(-5px, 0);
  }

  60% {
    -webkit-transform: translate(3px, 0);
    transform: translate(3px, 0);
  }

  80% {
    -webkit-transform: translate(-1px, 0);
    transform: translate(-1px, 0);
  }
}

@-webkit-keyframes correct {
  20% {
    background: limegreen;
  }

  40% {
    -webkit-transform: translate(0, -5px);
    transform: translate(0, -5px);
  }

  60% {
    -webkit-transform: translate(0, 3px);
    transform: translate(0, 3px);
  }

  80% {
    -webkit-transform: translate(0, -1px);
    transform: translate(0, -1px);
  }
}

@keyframes correct {
  20% {
    background: limegreen;
  }

  40% {
    -webkit-transform: translate(0, -5px);
    transform: translate(0, -5px);
  }

  60% {
    -webkit-transform: translate(0, 3px);
    transform: translate(0, 3px);
  }

  80% {
    -webkit-transform: translate(0, -1px);
    transform: translate(0, -1px);
  }
}


.re-enter-form {
  display: none;
}

.re-enter-form>p {
  text-align: center;
}

.re-enter-form>a {
  display: block;
  text-align: left;
  font-size: 13px;
  color: #a7a7a7;
}

.re-enter-form>a:hover {
  text-decoration: underline;
}

.re-enter-form>a>i {
  margin-right: 4px;
}

.pw-nnemonics {
  background: #f5f5f5;
  border-radius: 6px;
  margin: 14px 0 10px;
  text-align: left;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.pw-nnemonics>div {
  position: relative;
  padding: 6px 14px;
  border-bottom: 1px solid #e8e8e8;
}

.pw-nnemonics>div>span {
  font-size: 13px;
  color: #696969;
}

.pw-nnemonics>div>span>i {
  margin-right: 6px;
}

.pw-nnemonics>div>button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 14px;
  border-left: 1px solid #e8e8e8;
}

.pw-nnemonics>div>button:hover {
  background-color: #e8e8e8;
}

.pw-nnemonics>div>button>i {
  margin-right: 6px;
}

.pw-nnemonics>span {
  display: block;
  padding: 10px 14px;
  word-break: break-all;
}

#encrypted-mnemonics-for-copy {
  position: absolute;
  top: 0;
  left: -10px;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
}


/* loader
 ========================================================================== */

.loader-wrap {
  display: none;
  z-index: 100;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 20px 30px;
}

.loader-wrap.open {
  display: flex;
}

.loader-wrap>div {
  padding: 50px;
}

.spinner,
.spinner:before,
.spinner:after {
  width: 4px;
  height: 20px;
  background-color: #9c6cff;
  border-radius: 2px;
}

.spinner {
  display: inline-block;
  position: relative;
}

.spinner:before,
.spinner:after {
  content: "";
  position: absolute;
  display: block;
  top: 0px;
}

.spinner:before {
  left: -6px;
}

.spinner:after {
  left: 6px;
}

/* ============================ */
/* SPINNER BOUNCE MIDDLE        */
/* ============================ */
@-webkit-keyframes bounce-middle {
  0% {
    height: 4px;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  50% {
    height: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  100% {
    height: 4px;
    margin-top: 8px;
    margin-bottom: 8px;
  }
}

@keyframes bounce-middle {
  0% {
    height: 4px;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  50% {
    height: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  100% {
    height: 4px;
    margin-top: 8px;
    margin-bottom: 8px;
  }
}

.spinner-bounce-middle {
  -webkit-animation: bounce-middle 0.6s ease 0.1s infinite;
  animation: bounce-middle 0.6s ease 0.1s infinite;
}

.spinner-bounce-middle:before,
.spinner-bounce-middle:after {
  top: 50%;
  -webkit-transform: translateY(-10px) translateZ(0);
  transform: translateY(-10px) translateZ(0);
}

.spinner-bounce-middle:before {
  -webkit-animation: bounce-middle 0.6s ease 0s infinite;
  animation: bounce-middle 0.6s ease 0s infinite;
}

.spinner-bounce-middle:after {
  -webkit-animation: bounce-middle 0.6s ease 0.2s infinite;
  animation: bounce-middle 0.6s ease 0.2s infinite;
}

/* ============================ */
/* SPINNER BLINK                */
/* ============================ */
@-webkit-keyframes glow {
  0% {
    background-color: transparent;
  }

  50% {
    background-color: #9c6cff;
  }

  100% {
    background-color: transparent;
  }
}

@keyframes glow {
  0% {
    background-color: transparent;
  }

  50% {
    background-color: #9c6cff;
  }

  100% {
    background-color: transparent;
  }
}

.spinner-blink {
  -webkit-animation: glow 0.6s 0.1s infinite;
  animation: glow 0.6s 0.1s infinite;
}

.spinner-blink:before {
  -webkit-animation: glow 0.6s 0s infinite;
  animation: glow 0.6s 0s infinite;
}

.spinner-blink:after {
  -webkit-animation: glow 0.6s 0.2s infinite;
  animation: glow 0.6s 0.2s infinite;
}














/* test */
/* compleat
 ========================================================================== */

.test-wrap {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity .3s 0s;
}

.test-wrap.open {
  opacity: 1;
  visibility: visible;
}
/* Transition Layer */
.cd-transition-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}
.cd-transition-layer .bg-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translateY(-50%) translateX(-2%);
  transform: translateY(-50%) translateX(-2%);
  /* its dimentions will be overwritten using jQuery to proportionally fit the viewport */
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.cd-transition-layer.visible {
  opacity: 1;
  visibility: visible;
}
.cd-transition-layer.visible .bg-layer {
  -webkit-transform: translateY(-50%) translateX(-98%);
  transform: translateY(-50%) translateX(-98%);
}
.cd-transition-layer.opening .bg-layer, .cd-transition-layer.closing .bg-layer {
  -webkit-animation-duration: .8s;
  animation-duration: .8s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}
.no-cssanimations .cd-transition-layer {
  display: none;
}

/* --------------------------------

Gummy Effect

-------------------------------- */
.gummy-transition .cd-btn {
  background: #3f5074;
  color: #f2f2f2;
  border-radius: 50em;
}
.gummy-transition .cd-main-content {
  background: #001d5b;
}
.gummy-transition .cd-modal {
  background: #ef8692;
}
.gummy-transition .cd-modal .modal-content {
  color: #f2f2f2;
}
.gummy-transition .cd-modal .modal-close::before,
.gummy-transition .cd-modal .modal-close::after {
  background: #f2f2f2;
}
.gummy-transition .cd-modal .modal-close {
  background: #cb727c;
}
.gummy-transition .cd-modal .modal-close:hover {
  background: #a75e66;
}
.gummy-transition .cd-transition-layer .bg-layer {
  /* sprite composed of 25 frames */
  width: 2500%;
  background-image: url(../img/gummy.png);
}
.gummy-transition .cd-transition-layer.opening .bg-layer {
  -webkit-animation: cd-sequence 0.8s steps(24) forwards;
  animation: cd-sequence 0.8s steps(24) forwards;
}
.gummy-transition .cd-transition-layer.closing .bg-layer {
  -webkit-animation: cd-sequence 0.8s steps(24) forwards reverse;
  animation: cd-sequence 0.8s steps(24) forwards reverse;
}


/* --------------------------------

Animations

-------------------------------- */
@-webkit-keyframes cd-sequence {
  0% {
    /* translateX(-2%) is used to horizontally center the first frame inside the viewport */
    -webkit-transform: translateY(-50%) translateX(-2%);
    transform: translateY(-50%) translateX(-2%);
  }
  100% {
    /* translateX(-98%) (2% + 96) is used to horizontally center the last frame inside the viewport  */
    -webkit-transform: translateY(-50%) translateX(-98%);
    transform: translateY(-50%) translateX(-98%);
  }
}
@keyframes cd-sequence {
  0% {
    /* translateX(-2%) is used to horizontally center the first frame inside the viewport */
    -webkit-transform: translateY(-50%) translateX(-2%);
    transform: translateY(-50%) translateX(-2%);
  }
  100% {
    /* translateX(-98%) (2% + 96) is used to horizontally center the last frame inside the viewport  */
    -webkit-transform: translateY(-50%) translateX(-98%);
    transform: translateY(-50%) translateX(-98%);
  }
}
@-webkit-keyframes cd-sequence-2 {
  0% {
    -webkit-transform: translateY(-50%) translateX(-1.3158%);
    transform: translateY(-50%) translateX(-1.3158%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-98.6842%);
    transform: translateY(-50%) translateX(-98.6842%);
  }
}
@keyframes cd-sequence-2 {
  0% {
    -webkit-transform: translateY(-50%) translateX(-1.3158%);
    transform: translateY(-50%) translateX(-1.3158%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-98.6842%);
    transform: translateY(-50%) translateX(-98.6842%);
  }
}
@-webkit-keyframes cd-sequence-3 {
  0% {
    -webkit-transform: translateY(-50%) translateX(-2.5%);
    transform: translateY(-50%) translateX(-2.5%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-97.5%);
    transform: translateY(-50%) translateX(-97.5%);
  }
}
@keyframes cd-sequence-3 {
  0% {
    -webkit-transform: translateY(-50%) translateX(-2.5%);
    transform: translateY(-50%) translateX(-2.5%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-97.5%);
    transform: translateY(-50%) translateX(-97.5%);
  }
}




/* Media query
 ========================================================================== */

@media (max-width: 500px) {
  .pin-wrap>button {
    position: fixed;
  }
  .cd-transition-layer {
    position: fixed;
  }
}

@media (min-width: 501px) {
  .inner {
    max-width: 500px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
  }
}

/* Account Setting
 ========================================================================== */

.accountSetting {
  color: #cccccc;
  text-decoration-line: none !important;
  font-size: 12px;
}

.logoOnAccountSetting {
  margin-bottom: 10px !important;
}

.subTitleOnAccountSetting {
  /*margin-bottom: 20px !important;*/
}

.subTitleRecoveryOnAccountSetting {
  display: none;
}

.subTextOnAccountSetting {
  color: #cccccc !important;
}

.recoverMnemonicsBtn {
  display: block;
  width: 70%;
  margin: 15px auto 0;
  background: #9c6cff;
  height: 50px;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
}

.keystation-account-setting {
  height: 320px;
  overflow-y: auto;
  text-align: left;
  font-size: 13px;
  padding-bottom: 12px;
  padding-top: 12px;
}

.backBtnOnAccountSetting {
  position: absolute;
  left: 0px;
  top: 0px;
  font-size: 20px;
  padding: 10px 14px;
  color: #ccc;
  text-decoration: none !important;
  display: none;
}

.recoveryOnAccountSetting {
  display: none;
  height: 320px;
}

.recoveryResultUl {
  display: flex;
}

.recoveryResultUl li:nth-child(1) {
  width: 90%;
}

.recoveryResultUl li:nth-child(2) a img {
  margin-top: 3px;
  margin-left: 3px;
}

.copied {
  display: none;
  margin-top: 20px;
  color: #03cdd8;
  font-size: 24px;
}

.recoverySubTitle {
  text-align: left;
  color: #ccc;
  margin-bottom: 10px;
  margin-top: 12px;
}

.recoveryPrivateKeySubTitle {
  text-align: left;
  color: #ccc;
  margin-bottom: 10px;
  margin-top: 12px;
  display: none;
}

.recoveryText {
  text-align: left;
  overflow-wrap: break-word;
}

.closeBtnOnAccountSetting {
  position: absolute;
  right: 0px;
  top: 0px;
  font-size: 20px;
  padding: 10px 14px;
  color: #ccc;
  text-decoration: none !important;
}

.hdPathInputOnAccountSetting {
  width: 100%;
  height: 40px !important;
  border: 1px solid transparent !important;
  background: #f5f5f5;
  border-radius: 6px;
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 12px;
}