/*
 * © 2024 AxonOps Limited. 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.
 */
body,
html {
  background-color: transparent;
}

body {
  pointer-events: none;
  margin-top: -1px;
}

center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 600px;
  border-radius: 20px;
  height: 45px;
  background: #17181a;
  color: #e3e3e3;
  padding: 20px;
  transition: height 0.45s ease-in-out;
  font-size: 90%;

  div.header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    height: fit-content;
    position: relative;

    div.app-info {
      display: flex;
      font-family: 'Brand', 'Main', 'Minor', 'SimplifiedChinese', sans-serif;
      font-size: 135%;
      font-weight: 400;
      margin-right: 40px;
      flex: {
        direction: row;
        wrap: nowrap;
      }
      justify-content: center;
      margin-left: 13px;
      color: #fff;
      text-align: left;
      margin-right: 0;
      position: relative;
      bottom: 0;
      opacity: 0;
      transform: translateX(-7px);
      animation: slideleft 0.7s forwards ease-in-out;
      animation-delay: 0.25s;

      div#version {
        display: inline-block;
        width: fit-content;
        background: #2c2d2f;
        padding: 7px;
        border-radius: 30px;
        font-size: 60%;
        height: 10px;
        line-height: 10px;
        position: relative;
        top: 1px;
        margin-left: 10px;
        font-family: 'Main', 'Minor', 'SimplifiedChinese', sans-serif;
      }
    }

    div.icon img {
      width: 40px;
      opacity: 0;
      transform: translateX(-5px);
      animation: slideleft 0.5s forwards ease-in-out;
    }
  }

  div.loading-spinner {
    width: 100%;
    height: 50px;
    margin-top: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;

    l-squircle {
      opacity: 0;
    }
  }

  div.notice {
    background: rgba(229, 229, 229, 0.06);
    text-align: justify;
    padding: 10px;
    border-radius: 10px;
    font-size: 85%;
    margin-top: 20px;
    opacity: 0;
  }

  div.copyright-acknowledgement {
    text-align: left;
    margin-top: 15px;
    opacity: 0;
    font-size: 85%;

    input,
    label {
      pointer-events: all;
      cursor: pointer;
    }

    label {
      margin-left: -7px;
      padding-left: 10px;
    }

    div.hint {
      background: #7bb5ff36;
      font-size: 90%;
      width: fit-content;
      padding: 0 5px;
      margin-top: 3px;
      margin-left: 7px;
      border-radius: 5px;
      opacity: 0;
    }
  }

  &.show-spinner {
    height: 110px;

    l-squircle {
      animation: show 1.4s forwards ease-in-out;
      animation-delay: 0.2s;
    }
  }

  &.show-notice {
    height: 325px;

    div.notice {
      animation: show 1.4s forwards ease-in-out;
      animation-delay: 0.25s;
    }
  }

  &.show-checkbox {
    height: 395px;

    div.copyright-acknowledgement {
      animation: show 1.4s forwards ease-in-out;
      animation-delay: 0.6s;

      div.hint {
        transform: translateX(-5px);
        animation: slideleft 0.7s forwards ease-in-out, show 1s forwards ease-in-out;
        animation-delay: 0.4s;
      }
    }
  }
}

input[type="checkbox"] {
  transform: translateX(5px) translateY(-2px) scale(0.85);
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}
/**
* Define animations for the intro
*/
@keyframes slideleft {
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}
@keyframes show {
  100% {
    opacity: 1;
  }
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
