/* 
            /\_/\
           ( o.o )   
            > ^ <
*/

:root {
  --primary-color: #007bff;
  --secondary-color: #b40;
  --tertiary-color: #088800;
  --background-color: #f8ddc2;
  --text-color: #061722;
  --white-color: #fff;
  --font-size-base: 16px;
  --spacing-base: 16px;
  --border-radius-base: 6px;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  --box-shadow-base: 0 0 10px rgba(0, 0, 0, 0.1);
  --opacity-color: rgba(0, 0, 0, 0.2);
}

/* base */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--background-color);
}

body {
  position: relative;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: var(--font-size-base);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  resize: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-size: inherit;
  color: var(--primary-color);
  overflow-wrap: break-word;
}

p {
  margin-top: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
}

/* monospace */
code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

.monospace {
  font-family: var(--font-mono);
}

@media (prefers-color-scheme: dark) {
}

@media (min-width: 768px) {
}

/* common */

.block {
  display: block;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-1 {
  flex: 1;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.content-end {
  align-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.font-bold {
  font-weight: 700;
}

.text-primary {
  color: var(--primary-color);
}

.text-success {
  color: var(--tertiary-color);
}

.text-warn {
  color: var(--secondary-color);
}

.text-center {
  text-align: center;
}

.text-xs {
  font-size: calc(var(--font-size-base) * 0.75);
}

.text-sm {
  font-size: calc(var(--font-size-base) * 0.8);
}

.text-md {
  font-size: calc(var(--font-size-base) * 1.1);
}

.text-lg {
  font-size: calc(var(--font-size-base) * 1.2);
}

.text-xl {
  font-size: calc(var(--font-size-base) * 2);
}

.text-2xl {
  font-size: calc(var(--font-size-base) * 2.2);
}

.mb-4 {
  margin-bottom: var(--spacing-base);
}

.mr-4 {
  margin-right: var(--spacing-base);
}

.ml-4 {
  margin-left: var(--spacing-base);
}

.mx-auto {
  margin: 0 auto;
}

.border {
  border: 1px solid var(--text-color);
}

.border-b {
  border-width: 0 0 1px 0;
}

.space-x > * + * {
  margin-left: var(--spacing-base);
}

.space-y > * + * {
  margin-top: var(--spacing-base);
}

.space-x-sm > * + * {
  margin-left: calc(var(--spacing-base) * 0.5);
}

.space-x-md > * + * {
  margin-left: var(--spacing-base);
}

.space-x-lg > * + * {
  margin-left: calc(var(--spacing-base) * 1.5);
}

.space-y-sm > * + * {
  margin-top: calc(var(--spacing-base) * 0.5);
}

.space-y-md > * + * {
  margin-top: var(--spacing-base);
}

.space-y-lg > * + * {
  margin-top: calc(var(--spacing-base) * 1.5);
}

.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--opacity-color);
}

.modal-content {
  position: relative;
  background-color: #fff;
  width: 90%;
  max-width: 700px;
  margin: var(--spacing-base);
  border-radius: 1rem;
  box-shadow: var(--box-shadow-base);
}

.modal-close {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -1rem;
  right: -1rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-color);
  background: var(--white-color);
  border-radius: 100px;
}

.modal-close:hover {
  opacity: 1;
}

.modal-hd {
  padding: var(--spacing-base);
  border-bottom: 0.01rem solid rgba(0, 0, 0, 0.1);
}

.modal-ft {
  position: relative;
  padding: var(--spacing-base);
  background: rgba(129, 185, 236, 0.1);
}

.modal-bd {
  padding: var(--spacing-base);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-white {
  color: var(--white-color);
}

.text-dark {
  color: var(--font-color);
}

.min-h-screen {
  min-height: 100vh;
}

.min-w-screen {
  min-width: 100%;
}

.w-screen {
  width: 100%;
}

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.h-full {
  height: 100%;
}

.w-1-3 {
  width: 33.333333%;
}

.w-2-3 {
  width: 66.66666%;
}

.object-cover {
  object-fit: cover;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-base);
  font-size: var(--font-size-base);
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-play {
  z-index: 10;
  background: #2b437a;
  color: #30d4ff;
  border-radius: 10rem;
  border: 0.15rem solid #30d4ff;
  padding: 0.5rem 1rem;
}

.btn-play img {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
}

.btn-primary {
  color: var(--white-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.animate-bounce {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}
.animate-rotate {
  animation: rotate 6s linear infinite;
}
.animate-rotate-slow {
  animation: rotate 8s linear infinite;
}
.animate-rotate-fast {
  animation: rotate 1s linear infinite;
}
.animate-rotate-reverse {
  animation: rotateReverse 3s linear infinite;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes rotateReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
/* layout */
.app {
  position: relative;
  width: 100%;
  height: 100%;
}

.app-pc {
  display: flex;
  width: 300px;
  height: 100vh;
  box-sizing: border-box;
  margin: 0 auto;
}

.app-pc.app-start {
  width: 100%;
  flex-direction: column;
}

.pc-scan {
  position: fixed;
  top: 1rem;
  left: calc(50% + 210px);
  width: 150px;
  height: 170px;
  padding: .5rem;
  box-sizing: border-box;
  background: #fff;
  box-sizing: border-box;
}

.app-pc.app-start .pc-scan {
  top: 400px;
  left: calc(50% - 75px);
}

.pc-scan-img {
  display: block;
  width: 100%;
}

.pc-scan-title {
  text-align: center;
}

.app-pc .doc {
  width: 400px;
  height: 900px;
}

.app-pc.app-start .doc {
  width: 100%;
  height: 400px;
}

.doc {
  position: absolute;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  /* overflow: hidden; */
}

/* .app.portrait {
  width: 100vh;
  height: 100vw;
  transform: rotate(90deg);
  transform-origin: 50vw 50vw;
} */

.landing {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-mobile .landing {
    width: 100vw;
    height: 100vh;
}

@media screen and (orientation: landscape) {
  .app-mobile .landing {
    width: 100vh;
    height: 100vw;
    transform: rotate(-90deg);
    transform-origin: 50vh 50vh;
  }
}

.main {
  display: block;
  width: auto;
  height: 100%;
  /* background: url(../images/bg.png) repeat-x 50% 100% / auto 100%; */
  /* animation: mainBgScrollLeft 120s linear infinite; */
  will-change: background-position;
}

.main > svg {
  flex-shrink: 0;
  height: 100%;
  flex: none;
}

.main-sea {
  width: auto;
  height: 100%;
  background: url(../images/bg-sea.png) repeat-x 50% 100% / auto 100%;
  animation: mainBgScrollRight 30s linear infinite;
  will-change: background-position;
}

.scene {
  height: 100%;
}

@keyframes mainBgScrollLeft {
  0% {
    background-position: 0 100%;
  }
  100% {
    background-position: -1000px 100%;
  }
}

@keyframes mainBgScrollRight {
  0% {
    background-position: -1000px 100%;
  }
  100% {
    background-position: 0 100%;
  }
}

.bk-text {
  font-weight: 700;
  text-shadow: -1px -1px 0 var(--white-color), 1px -1px 0 var(--white-color),
    -1px 1px 0 var(--white-color), 1px 1px 0 var(--white-color);
}

.img-b {
  height: 100%;
  display: flex;
  align-items: end;
}

.img-b .img {
  width: 100%;
  height: auto;
}

#ship {
  transform-origin: center bottom;
  animation: shipApproach 6s ease-out forwards;
  will-change: transform, opacity, filter;
}

@keyframes shipApproach {
  0% {
    transform: translate(-100px, -100px) scale(0.6);
    opacity: 0.9;
    filter: blur(1px);
  }
  60% {
    opacity: 1;
    filter: blur(0.5px);
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    filter: none;
  }
}

.bk-rotate {
  width: 360px;
  height: 360px;
}

.bk-rotate-img {
  position: absolute;
  z-index: 0;
}

.bk-formula-tips {
  padding: 1rem;
  border: 0.01rem dotted var(--primary-color);
  border-radius: 1rem;
}

.icon-note {
  display: inline-flex;
  vertical-align: baseline;
  width: 1rem;
  height: 1rem;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  background: var(--primary-color);
  color: var(--white-color);
  font-size: 0.7rem;
}

@media screen and (orientation: portrait) {
  .app-mobile .doc {
    width: 100vh;
    height: 100vw;
    transform: rotate(90deg);
    transform-origin: 50vw 50vw;
  }
  .app-mobile .modal {
    width: 100vh;
    height: 100vw;
    transform: rotate(90deg);
    transform-origin: 50vw 50vw;
  }
}