html, body {
  font-family: sans-serif;
  margin: 0;
  -ms-user-select: none;
      user-select: none;
  -webkit-user-select: none;
  height: 100%;
  width: 100%;
}

* {
  box-sizing: border-box;
}

#root {
  /*border-radius: 12px;*/
  height: 100%;
  border: 1px solid #d8d8d8;
  box-sizing: border-box;
}

.page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid transparent;
  /*border-radius: 12px;*/
}

.header {
  width: 100%;
  padding: 1px 32px;
  background: #FAFAFA;
  position: relative;
  -webkit-app-region: drag;
}

h2 {
  margin: 0;
  font-size: 24px;
  margin-top: 0.9em;
  font-weight: 400;
  color: #444;
}

p {
  font-size: 14px;
  line-height: 1.5333;
  margin: 0.8em 0;
}

button:hover, button:active {
  outline: none!important;
  text-decoration: none!important;
  outline: none!important;
  box-shadow: none!important;
}

button:focus-visible {
  outline: -webkit-focus-ring-color auto 1px;
}

.logo {
  display: block;
  position: absolute;
}

.logo{
  transition: all ease 0.3s;
}

.header-title {
  transition: top ease 0.3s, left ease 0.3s, transform ease 0.3s;
  position: absolute;
  
  left: 0;
  font-size: 24px;
  line-height: 26px;

  margin: 0;
  width: auto;
}

.stage-0 .logo {
  width: 128px;
  top: 60px;
  left: calc(50% - 66px);
}

.stage-0 .header{
  height: 335px;
  overflow: hidden;
}

.stage-0 h2 {
  top: 222px;
  text-align: center;
  transform: translateX(-50%);
  left: 50%;
}

.stage-0 p {
  color: #333;
  position: absolute;
  width: 525px;
  top: 246px;
  left: 0;

  font-size: 14px;
  line-height: 46px;

  margin: 0;
  text-align: center;
}

.stage-0 .header-msg {
  line-height: 16px;
  margin: 0 auto;
  opacity: 0.6;
  top: 296px;
  font-size: 12px;
  white-space: pre-wrap;
  -webkit-animation: fadeIn2 ease 0.5s;
  animation: fadeIn2 ease 0.5s;
}

@keyframes fadeIn2 {
  0% {opacity:0;}
  50% {opacity:0;}
  100% {opacity:0.6;}
}

@-webkit-keyframes fadeIn2 {
  0% {opacity:0;}
  50% {opacity:0;}
  100% {opacity:0.6;}
}

.footer {
  height: 90px;
  background: #FAFAFA;
  display: flex;
  justify-content: space-between;
  position: fixed;
  bottom: 1px;
  left: 1px;
  right: 1px;
  /*border-radius: 0 0 12px 12px;*/
}

.footer-left {
  min-width: 20px;
  align-self: center;
}

.footer-right {
  align-self: center;
  padding-right: 32px;
}

button {
  cursor: pointer;
  font-size: 13.3333px;
}

.default-btn {
  min-width: 106px;
  height: 32px;

  background: #555555;
  border-radius: 4px;
  outline: none;

  color:white;
  border: none;
}

.default-btn:hover {
  background: #000;
}

.primary-btn {
  background: #5B58AD;
  margin-left: 12px;
}

.dangerous-btn {
  background: #e82c1e;
  margin-left: 32px;
}

.secondary-btn {
  background: #7D7C7C;
  color: #F8FAFB;
  margin-left: 32px;
  padding: 6px 16px;
}

.text-btn {
  margin-left: 12px;
  background: transparent;
  color: #555;
  border: none;
  outline: none;
}

.text-btn:not(:disabled):hover {
  text-decoration: underline;
  color: black;
}

.text-btn:disabled {
  color: #999;
  cursor: not-allowed;
}

.count-down {
  font-size: 24px;
}

.stage-1 .header,
.stage-2 .header {
  height: 122px;
  transition: height ease 0.3s;
}

.stage-1 .logo,
.stage-2 .logo {
  width: 70px;
  position: absolute;
  top: 25px;
  left: 22px;
}

.body {
  height: 0;
  transition: height ease 0.3s;
}

.stage-1 .body,
.stage-2 .body  {
  height: 203px;
}

.stage-1 h2,
.stage-2 h2 {
  top: 25px;
  left: 108px;
  transform: none;
}


@keyframes fadeIn {
  0% {opacity:0;}
  50% {opacity:0;}
  100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity:0;}
  50% {opacity:0;}
  100% {opacity:1;}
}

.stage-1 p,
.stage-2 p {
  position: absolute;
  top: 63px;
  left: 108px;
  right: 36px;

  color: #555;

  margin: 0;
  -webkit-animation: fadeIn ease 0.5s;
  animation: fadeIn ease 0.5s;
}

.license-form {
  -webkit-animation: fadeIn ease 0.5s;
  animation: fadeIn ease 0.5s;
  padding: 0 32px;
}

.license-form label {
  display: block;
  font-size: 14px;
  line-height: 16px;
  color: #333;
  padding: 18px 0 0;
}

.license-form input,
.license-form textarea {
  display: block;
  border: 1px solid #BEBEBE;
  box-sizing: border-box;
  border-radius: 4px;
  height: 36px;
  line-height: 36px;
  padding-left: 8px;
  width: 100%;
  font-size: 13.3333px;
  margin-top: 8px;
}

.license-form.editable {
  padding-top: 24px;
}

.license-form.editable label {
  display: none;
}

.license-form.readonly #email2-input-row {
  display: none;
}

.l-msg-row {
  margin-top: 16px;
  font-size: 12px;
}

.l-help {
  display: block;
  float: right;
}

.l-error-msg {
  color: #e91e63;
}

.has-error input {
  border: #e91e63 1px solid;
}

@media (prefers-color-scheme: dark) {
  body, .header, .footer {
    background: #535353;
    color: #fff;
  }
  .body {
    background: #3c3c3c;
  }

  h2, .license-form label, .text-btn:hover {
    color: #fff;
  }

  .text-btn:hover  {
    font-weight: bold;
  }

  .text-btn {
    color: #eee;
  }

  .stage-1 p,
  .stage-0 p,
  .stage-2 p  {
    color: #eee;
  }


  .license-form input,
  .license-form textarea {
    background: #3c3c3c;
    color: #fff;
    border-color: #777;
  }
  
  .license-form input:focus,
  .license-form textarea:focus {
    outline: auto 1px #9fa8da;
    border: solid 1px #9fa8da;
  }

  a, .l-help {  
    color: #eeb9f7;
  }

  .dangerous-btn {
    background: #d40a4f;
  }

  .l-error-msg {
    color: #f59088;
  }
  
  .has-error input {
    border: #f59088 1px solid;
  }

  #root {
    border: none;
  }
  .page {
    border: none;
  }
}

.l-input-row {
  position: relative;
}

.input-float-button {
  position: absolute;
  bottom: 6px;
  right: 6px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: #dfdfdf;
  color: #2d373c;
  font-size: 12.6px;
  cursor: pointer;
  min-width: 60px;
}

.input-float-button:hover {
  background: #9e9e9e;
  color: #fbfbfb;
}
