
/* ~ This is for the phone's function and design */

:root {
  --fontSpace: "Berry", "ShinRetroMaruGothic", Courier, monospace;
  --headerSpace: "Penograph", "ShinRetroMaruGothic", Courier, monospace;

  --cursorDefault: auto;
  --cursorPointer: pointer;
  --cursorText: text;
  --cursorGrab: grab;
  --cursorGrabbing: grabbing;
  --cursorNotAllowed: not-allowed;
  --cursorHelp: help;
  --cursorMove: move;
  --cursorCrosshair: crosshair;
  --cursorCell: cell;
  --cursorCopy: copy;
  --cursorContextMenu: context-menu;
  --cursorNoDrop: no-drop;
  --cursorVerticalText: vertical-text;
  --cursorZoomIn: zoom-in;
  --cursorZoomOut: zoom-out;
  --cursorEwResize: ew-resize;
  --cursorNsResize: ns-resize;
  --cursorNeswResize: nesw-resize;
  --cursorNwseResize: nwse-resize;
}

@font-face {
  font-family: Berry;
  src: url('/Assets/fonts/BerryRegular.ttf');
}
@font-face {
  font-family: Penograph;
  src: url('/Assets/fonts/Penograph.ttf');
}
@font-face {
  font-family: ShinRetroMaruGothic;
  src: url('/Assets/fonts/ShinRetroMaruGothic-Regular.ttf');
  /* ? unicode-range means this only kicks in for Japanese characters, same as MaruMonica in globals.css */
  unicode-range: U+3000-303F, U+3041-3096, U+309B-30FF, U+31F0-31FF, U+3220-3243, U+3280-337F, U+FF00-FFEF, U+4E00-9FFF, U+20000-2A6DF;
}

body {
  overflow: auto;
  cursor: var(--cursorDefault);
}

a,
button:not(:disabled),
label,
[onclick] {
  cursor: var(--cursorPointer);
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input:not([type]),
textarea,
[contenteditable="true"] {
  cursor: var(--cursorText);
}

button:disabled,
[disabled] {
  cursor: var(--cursorNotAllowed);
}

body.overlayLock {
  overflow: hidden;
}

body.builtIn {
  background-color: var(--spaceDust);
  font-family: var(--fontSpace);
}

body.builtIn.dark {
  background-color: var(--nightSky);
}

#detailBarObject {
  display: block;
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: var(--detailBarHeight);

  margin: 0;
  padding: 0;
}

.detailBar {
  display: flex;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;

  z-index: 999;

  height: 20px;
  padding: 0 10px;

  background: rgba(0, 0, 0, 0.171);

  font-family: cafesweet, Helvetica, sans-serif;
}

body.dark .detailBar {
  background: rgba(0, 0, 0, 0.3);

  color: white;
}

#time {
  flex: 1 1;
  font-size: larger;
  padding: 2px 0;
}

.iconWrapper {
  flex: 1 1;
  font-size: 1.2em;

  display: flex;
  justify-content: flex-end;

  gap: 5px;

  padding: 1px 2px;
}

/* ~ Built In App Styling */

.builtIn header {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding: 20px 5px 10px;
  font-size: 25px;

  color: white;
  font-family: var(--headerSpace);
  font-weight: bold;

  background: url("/Assets/myAssets/idolLineLogo/headerDesign.png") center/cover;

  box-shadow: 0 1px 4px rgba(0, 0, 10, 0.24);
}

.builtIn {
  color: black;
}

.builtIn.dark {
  color: white;
}

.builtIn header::before {
  content: "";
  width: 20px;
  height: 20px;

  background: url(/Assets/myAssets/idolLineLogo/IdolLineDetail.png)
    center/contain no-repeat;
  margin-right: 3px;

  color: white;
  text-shadow:
    2px 2px 0 var(--wisteria),
    2px -2px 0 var(--wisteria),
    -2px 2px 0 var(--wisteria),
    -2px -2px 0 var(--wisteria),
    2px 0px 0 var(--wisteria),
    0px 2px 0 var(--wisteria),
    -2px 0px 0 var(--wisteria),
    0px -2px 0 var(--wisteria);
}

.builtIn .brandButton {
  background-color: var(--wisteria);
  color: white;
  border-radius: 7px;
  border: 2px solid white;

  cursor: var(--cursorPointer);
}

.builtIn.dark .brandButton {
  background-color: var(--nightSky);
  color: white;
  border-radius: 7px;
  border: 2px solid white;

  cursor: var(--cursorPointer);
}

.builtIn .modalBackdrop,
.builtIn .sheetBackdrop {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.builtIn .modalBackdrop.show,
.builtIn .sheetBackdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.builtIn .modalBackdrop {
  align-items: center;
  justify-content: center;
}

.builtIn .modal {
  width: 90%;
  max-width: 320px;
  min-height: 135px;
  padding: 20px;

  background: var(--spaceDust);
  border-radius: var(--globalBorderRadius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

  transform: scale(0.85);
  transition: transform 0.25s, height .25s;
}

.builtIn.dark .modal {
  background: var(--nightSky);
  color: white;
}

.builtIn .modalBackdrop.show .modal {
  transform: scale(1);
}

.builtIn .sheetBackdrop {
  align-items: flex-end;
}

.builtIn .sheet {
  display: flex;
  flex-flow: column;
  width: 100%;
  max-height: 90%;

  padding: 10px;

  background: var(--spaceDust);
  border-radius: var(--globalBorderRadius) var(--globalBorderRadius) 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);

  transform: translateY(100%);
  transition: transform 0.25s;
  overflow-y: auto;
}

.builtIn.dark .sheet {
  background: var(--nightSky);
  color: white;
}

.builtIn .sheetBackdrop.show .sheet {
  transform: translateY(0);
}

.builtIn .overlayActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.builtIn .overlayActions button {
  padding: 8px 16px;
  font-family: var(--fontSpace);
  font-size: 15px;
  border-radius: 7px;
  border: 2px solid var(--wisteria);

  cursor: var(--cursorPointer);
}

.builtIn .overlayActions .cancelButton {
  background: transparent;
  color: var(--wisteria);
}

.builtIn.dark .overlayActions .cancelButton {
  color: white;
  border-color: white;
}

.builtIn .overlayActions .saveButton {
  background: var(--wisteria);
  color: white;
}

.builtIn .confirmModal {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.builtIn .confirmMessage {
  margin: 0;
}

.builtIn .confirmLoader {
  --color-1: var(--nightSky);
  --size: 0.6px;

  width: calc(calc(100 * var(--size)) - calc(24 * var(--size)));
  height: calc(120 * var(--size));
  position: relative;
  animation: flippx 2s infinite linear;
}

.builtIn.dark .confirmLoader {
  --color-1: #fff;
  --size: 0.6px;

  width: calc(calc(100 * var(--size)) - calc(24 * var(--size)));
  height: calc(120 * var(--size));
  position: relative;
  animation: flippx 2s infinite linear;
}

.builtIn .confirmLoader::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(20 * var(--size));
  height: calc(20 * var(--size));
  border-radius: 50%;
  background: var(--color-1);
  transform-origin: calc(-24 * var(--size)) 50%;
  animation: spin 1s infinite linear;
}

.builtIn .confirmLoader::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-1);
  width: calc(48 * var(--size));
  height: calc(48 * var(--size));
  border-radius: 50%;
}

@keyframes flippx {
  0%,
  49.99999% {
    transform: scaleX(1);
  }
  50%,
  100% {
    transform: scaleX(-1);
  }
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.builtIn .confirmCheck {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;

  color: var(--wisteria);
  border-radius: 50%;
  font-size: 60px;

  animation: confirmPop 0.35s ease;
}

@keyframes confirmPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  70% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.miniInfo {
  padding-top: 10px;
  font-size: small;
}

/* ~ Custom input[type=range] */

.builtIn input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: var(--cursorPointer);
}

.builtIn input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--wisteria);
}

.builtIn input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -5px;
  width: 25px;
  height: 25px;
 
  background: url(/Assets/myAssets/idolLineLogo/IdolLineDetail.png) center/contain no-repeat;
  border: none;
}

.builtIn input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--wisteria);
}

.builtIn input[type="range"]::-moz-range-thumb {
  width: 25px;
  height: 25px;
  
  background: url(/Assets/myAssets/idolLineLogo/IdolLineDetail.png) center/contain no-repeat;
  border: none;
}

.builtIn input[type="range"]:focus {
  outline: none;
}

/* ~ Extra */

filler {
  color: transparent;
  font-size: 20px;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar,
*::-webkit-scrollbar-button {
  width: 0;
}

/*
~ <img id="idolLineIcon" src="/Assets/myAssets/idolLineLogo/IdolLineIcon.png">
~ <img id="idolLineType" src="/Assets/myAssets/idolLineLogo/IdolLineType.png">
~ <img id="idolLineFullLogo" src="/Assets/myAssets/idolLineLogo/IdolLineFullLogo.png">
*/

bgOverlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;

  z-index: 0;

  height: 100vh;
  width: 100vw;

  user-select: none;

  filter: blur(4px);
  opacity: 30%;
}

bgOverlay #moon {
  position: absolute;
  top: 2px;
  right: 2px;

  width: 100px;

  animation: moonAni 3s infinite linear;

  /* transform-origin: center center; */
}


@keyframes moonAni {
  0% {
    transform: rotate(0deg);
  }

  33% {
    transform: rotate(10deg);
  }

  66% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

bgOverlay #cloud1 {
  position: absolute;
  top: 1em;
  left: 1em;

  width: 70px;

  animation: cloud1Ani 2s linear infinite;
}

@keyframes cloud1Ani {
  0% {
    transform: rotate(0deg) translateX(0) translateY(4px);
  }

  33% {
    transform: rotate(5deg) translateX(3px) translateY(4px);
  }

  66% {
    transform: rotate(-5deg) translateX(-3px) translateY(4px);
  }

  100% {
    transform: rotate(0deg) translateX(0) translateY(4px);
  }
}

bgOverlay #cloud2 {
  position: absolute;
  top: 2.5em;
  right: 4em;

  width: 70px;

  animation: cloud2Ani 2s linear infinite;
}

@keyframes cloud2Ani {
  0% {
    transform: translateX(0) translateY(0);
  }

  33% {
    transform: translateX(0) translateY(4px);
  }

  66% {
    transform: translateX(0) translateY(-4px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

#cloud3 {
  position: absolute;
  top: 6em;
  left: 1.5em;

  width: 100px;

  animation: cloud3Ani 2s linear infinite;
}

@keyframes cloud3Ani {
  0% {
    transform: translateX(0) translateY(0);
  }

  33% {
    transform: translateX(4px) translateY(0);
  }

  66% {
    transform: translateX(-4px) translateY(0);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

bgOverlay #star1 {
  position: absolute;
  top: 1em;
  left: 6em;

  width: 20px;

  transform: rotate(0deg);
  transition: transform 1s ease;
}

bgOverlay #star2 {
  position: absolute;
  top: 7em;
  right: 7em;

  width: 20px;

  transform: rotate(0deg);
  transition: transform 1s ease;
}

bgOverlay #star1:hover,
bgOverlay #star2:hover {
  transform: rotate(360deg);
}
