:root {
  --blue: #5297ff;
  --blue-alt: #5269ff;
  --blue-deep: #5999ff;
  --blue-muted: #5269ff;
  --cyan: #11c2f7;
  --pink: #ffc6c3;
  --content-blue: #455163;
  --bg: white;
  --bg-soft: rgb(253, 253, 253);
  --bg-panel: rgb(250, 250, 250);
  --bg-panel-alt: rgb(254, 254, 254);
  --bg-footer: rgb(40, 40, 40);

  --border-light: rgb(240, 240, 240);
  --border-dotted: rgb(200, 200, 200);

  --text: #5297ff;
  --text-muted: #5297ff;
  --text-placeholder: rgb(100, 100, 100);
  --text-on-accent: white;

  --shadow-blur: 100px;
}

[data-theme="dark"] {
  --blue: #6699ff;
  --blue-alt: #7a94ff;
  --blue-deep: #6f9fff;
  --blue-muted: #7a94ff;
  --cyan: #33cbff;
  --pink: #ff9a95;
  --content-blue: #bcd7ff;
  --bg: #121212;
  --bg-soft: #1b1b1b;
  --bg-panel: #1a1a1a;
  --bg-panel-alt: #171717;
  --bg-footer: #0a0a0a;

  --border-light: rgb(50, 50, 50);
  --border-dotted: rgb(90, 90, 90);

  --text: #5297ff;
  --text-muted: #5297ff;
  --text-placeholder: rgb(160, 160, 160);
  --text-on-accent: white;
}

/* ==========================================================================
   BASE
   ========================================================================== */
body {
  touch-action: manipulation;
  background: var(--bg);
  font-family: "Elms Sans", sans-serif !important;
  color: var(--content-blue);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  touch-action: manipulation; /* prevents double-tap zoom/long-press gestures */
}
button {
  cursor: pointer !important;
}

input, textarea, select {
  font-size: 16px !important;
}
.title {
  text-align: center;
  font-size: 30px;
  font-weight: bolder;
}
#body-web {
  width: 100%;
  margin: 0 auto;
  margin-top: 10%;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* ==========================================================================
   MODE TOGGLE
   ========================================================================== */
#mode {
  width: 80%;
  border: 1px solid var(--blue);
  height: 30px;
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
}
.darkmode, .lightmode{
  flex: 1;
  border: none;
  background: var(--bg);
  color: var(--blue);
  height: 100%;
}
.darkmodeA, .lightmodeA {
  color: var(--text-on-accent) !important;
  background: var(--blue) !important;
} 
/* ==========================================================================
   TITLE BAR
   ========================================================================== */
#title-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 0 10px;
  padding-right: 10px !important;
  gap: 5px;
  backdrop-filter: blur(var(--shadow-blur));
  overflow: hidden;
}
@scope (#title-bar) {
  > div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
    aspect-ratio: 1/1;
  }
  img {
    height: 55px;
    margin: auto 0;
    opacity: 0.8;
    z-index: -100;
  }
  p {
    flex: 0.7;
  }
  .logo {
    height: 40px;
    opacity: 0.8;
    border: none !important;
  }
  button {
    font-size: 8px;
    padding: 5px 7px;
    border-radius: 1px;
    border: 1px solid var(--cyan);
    font-family: "Elms Sans", sans-serif;
    font-weight: 800;
  }
  .home-btn {
    background: var(--cyan);
    color: var(--text-on-accent);
  }
  .heightcal-btn {
    color: var(--cyan);
    background: var(--bg);
  }
}

/* ==========================================================================
   HAMBURGER MENU
   ========================================================================== */
.ham-menu {
  height: 50% !important;
  aspect-ratio: 1/1 !important;
  margin: auto;
  border: none;
  display: flex;
  position: relative;
  z-index: 10000000000;
}
.active1 {
  animation: stick1 0.4s ease-in-out forwards;
  transform-origin: left;
}
.active2 {
  animation: stick2 0.4s ease-in-out forwards;
  transform-origin: left;
}
@keyframes stick1 {
  from { transform: translateY(-25%) rotate(0deg); }
  to   { transform: translateY(-25%) rotate(27deg); }
}
@keyframes stick2 {
  from { transform: translateY(-75%) rotate(0deg); }
  to   { transform: translateY(-75%) rotate(-27deg); }
}
@scope (.ham-menu) {
  div {
    transition: 0.6s ease-in-out;
    border-radius: 5px;
  }
  > div:first-child {
    position: absolute;
    top: 25%;
    transform: translateY(-25%);
    height: 10%;
    width: 100%;
    background: var(--blue);
  }
  > div:nth-child(2) {
    position: absolute;
    height: 10%;
    width: 100%;
    background: var(--blue);
    top: 75%;
    transform: translateY(-75%);
  }
}

/* ==========================================================================
   MENU PANEL
   ========================================================================== */
.menu-display {
  position: fixed;
  z-index: 1000000;
  top: 50px;
  right: -55vw;
  height: calc(100vh - 50px);
  width: 60%;
  backdrop-filter: blur(var(--shadow-blur));
  border-left: 1px solid var(--border-light);
  display: none;
  flex-direction: column;
  background: var(--bg-soft);
  opacity: 0.8;
  padding-left: 0;
}
.activemenu {
  animation: swipeMenu 0.4s ease-in-out forwards;
}
.unactivememu {
  animation: unswipeMenu 0.4s ease-in-out forwards;
}
@scope (.menu-display) {
  h4 {
    text-align: center;
    border-bottom: 3px solid var(--blue-muted);
    padding-bottom: 10px;
    margin-top: 0;
  }
  > div:nth-child(2),
  > div:nth-child(3),
  > div:nth-child(4) {
    display: flex;
    flex-direction: row;
    padding: 0 0 15px 8px;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--blue-muted);
    margin-left: 1%;
    height: 50px;
  }
  > div:nth-child(5) {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    justify-content: center !important;
    margin: 0 auto;
    border-bottom: 1px solid var(--blue-muted);
    padding: 0 0 20px 0;
    div {
      text-align: center;
      font-weight: 500;
    }
    button {
      width: 90%;
      height: 35px;
      border-radius: 2px;
      background: rgb(79, 158, 255);
      color: var(--bg);
      border: none;
      font-weight: 1000;
      margin: 0 auto;
    }
  }
}
@scope (.div1) {
  > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    color: var(--text) !important;
    button {
      background: var(--bg);
      border: 1px solid var(--blue);
      color: var(--blue);
      height: 23px;
      border-radius: 5px;
      margin: 0 3px;
    }
    div {
      width: 10vw;
      background: var(--bg);
      color: var(--text);
      border: none;
      display: grid;
      text-align: center;
    }
  }
  p {
    color: var(--text) !important;
    font-weight: bolder !important;
  }
  .p {
    color: var(--text) !important;
    font-weight: bolder !important;
  }
}
@keyframes swipeMenu {
  from { right: -55vw; opacity: 0.5; }
  to   { right: 0vw;   opacity: 1;   }
}
@keyframes unswipeMenu {
  from   { right: 0vw;   opacity: 1;   }
  to { right: -55vw; opacity: 0.5; }
}

/* ==========================================================================
   HEIGHT DISPLAY
   ========================================================================== */
#height-display {
  width: 100%;
  height: 480px;
  background-color: var(--bg-panel-alt);
  border: 1px solid var(--border-light);
  margin: 0 auto;
  margin-top: 60px;
  position: relative !important;
  overflow: hidden;
  user-select: none;

-webkit-user-select: none;

-webkit-touch-callout: none;

-webkit-user-drag: none;

touch-action: manipulation;
}
#display-person {
  width: 92%;
  height: 480px;
  position: absolute;
  right: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  z-index: 100;
  display: flex;
  justify-content: safe center;
  align-items: flex-end;
  transition: 0.5s ease-in-out;
  user-select: none;

-webkit-user-select: none;

-webkit-touch-callout: none;

-webkit-user-drag: none;

touch-action: manipulation;
}
.newperson {
  flex-shrink: 0;
}
#height-info {
  width: 95%;
  background-color: var(--bg-panel);
  margin: 0 auto;
}
.nav-options {
  width: 95%;
  height: 50px;
  margin: 0 auto;
  margin-top: 29px;
  display: flex;
  justify-content: space-between;
  column-gap: 5px;
  border: 3px solid var(--blue);
  border-radius: 25px;
  background: var(--bg);
  font-family: "Elms Sans", sans-serif;
  user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
-webkit-user-drag: none;
touch-action: manipulation;
}

.male-opt, .female-opt, .cel-opt, .obj-opt, .img-opt,
.mals-opt {
  flex: 1;
  background-color: var(--bg);
  border: none;
  color: var(--blue);
  font-size: 8px;
  border-radius: 21.4px;
  animation: unactiveOption 0.5s ease-in-out;
  cursor: pointer;
  font-family: "Elms Sans", sans-serif;
  font-weight: 700;
}
.female-opt-active,
.male-opt-active,
.cel-opt-active,
.obj-opt-active,
.mals-opt-active,
.img-opt-active{
  background-color: var(--blue);
  color: var(--text-on-accent);
  border: none;
  flex: 2.7;
  font-size: 10px;
  border-radius: 21.4px;
  animation: activeOption 0.5s ease-in-out;
  cursor: pointer;
  font-family: "Elms Sans", sans-serif;
  font-weight: 1000;
}
@keyframes activeOption {
  0%   { background-color: var(--bg); transform: scale(0.4, 0.2); color: var(--blue); font-size: 8px; }
  30%  { background-color: var(--blue); color: var(--text-on-accent); }
  70%  { flex: 3.1; transform: scaleY(0.85); }
  100% { background-color: var(--blue); flex: 2.7; color: var(--text-on-accent); font-size: 10px; }
}
@keyframes unactiveOption {
  0%   { flex: 2.7; color: var(--text-on-accent); font-size: 10px; }
  30%  { background-color: var(--bg); color: var(--blue); }
  100% { background-color: var(--bg); flex: 1; color: var(--blue); font-size: 8px; }
}

/* ==========================================================================
   UNIT OPTION
   ========================================================================== */
#unit-option {
  width: 100%;
  height: 60px;
  display: flex;
  padding: 0px;
  align-items: center;
}
@scope (#unit-option) {
  div {
    border: 1px solid var(--blue);
    display: flex;
    width: 100%;
    height: 30px;
  }
  button {
    flex: 1;
    border: 1px solid var(--blue);
    height: 30px;
  }
  p {
    color: var(--text) !important;
    font-weight: bolder !important;
  }
}
version {
  position: absolute;
  bottom: 0;
  left: 0;
  color: var(--text);
  font-weight: bolder;
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--border-dotted);
}
.mbtn, .ubtn {
  background: var(--bg);
  color: var(--blue-muted);
}
.mbtn-active, .ubtn-active {
  background: var(--blue-deep);
  color: var(--text-on-accent);
}
#metric-hBox {
  display: block;
}
#us-hBox {
  display: none;
}

/* ==========================================================================
   OPTION DISPLAY (forms)
   ========================================================================== */
#option-display {
  width: 95%;
  margin: 0 auto;
  margin-top: 20px;
  border: 2px solid var(--blue-muted);
  border-radius: 30px;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  display: block;
  font-family: "Elms Sans", sans-serif;
}
@scope (#option-display) {
  button {
    display: block;
    padding: 10px 20px;
    border: 1px solid red;
    background-color: var(--bg);
    color: red;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    border-radius: 10px;
    font-family: "Elms Sans", sans-serif;
  }
  button:active {
    transform: scale(1.2);
    border-radius: 20px;
    border: 2px solid red;
    font-weight: bold;
  }
  label {
    padding-left: 40px;
    font-size: 17px;
    font-family: "Elms Sans", sans-serif;
    margin-bottom: 7px;
    color: var(--blue);
  }
  input {
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    width: 80%;
    margin-bottom: 13px;
    margin-left: 5%;
    background: var(--bg);
    color: var(--text);
  }
  input::placeholder {
    font-size: 17px !important;
    color: var(--text-placeholder);
    opacity: 0.7;
    padding-left: 20px;
    font-family: "Elms Sans", sans-serif;
  }
}
#gender-option {
  height: 40px;
  width: 80%;
  margin: 0 auto;
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  border: 1px solid var(--blue);
  overflow: hidden;
  border-radius: 7px;
  gap: 0;
  > div {
    flex: 1;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bolder;
  }
}
.male-option,.female-option {
  color: var(--blue);
  background: var(--bg);
}
.male-option-ac{
  background: var(--blue);
  color: var(--bg);
}
.female-option-ac {
  background: var(--pink);
  color: var(--bg);
}
#ruler {
  position: absolute;
  width: 100%;
  bottom: 0;
}
@scope (#ruler) {
  .cm::after {
    content: "";
    width: 95%;
    height: 1px;
    background: var(--border-dotted);
    opacity: 0.6;
    margin-right: 0;
  }
  div {
    font-size: 7px;
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    padding-right: 3px;
    width: 100%;
    z-index: 8;
    font-family: "Elms Sans", sans-serif;
    font-weight: 800;
    opacity: 1;
    color: var(--blue);
    display: flex;
    flex-direction: row !important;
  }
  .cm0   { height: 20px; border-top: none; border-bottom: 1px solid green; display: flex; align-items: end;}
  .cm10  { height: 20px; }
  .cm20  { height: 40px; }
  .cm30  { height: 60px; }
  .cm40  { height: 80px; }
  .cm50  { height: 100px; }
  .cm60  { height: 120px; }
  .cm70  { height: 140px; }
  .cm80  { height: 160px; }
  .cm90  { height: 180px; }
  .cm100 { height: 200px; }
  .cm110 { height: 220px; }
  .cm120 { height: 240px; }
  .cm130 { height: 260px; }
  .cm140 { height: 280px; }
  .cm150 { height: 300px; }
  .cm160 { height: 320px; }
  .cm170 { height: 340px; }
  .cm180 { height: 360px; }
  .cm190 { height: 380px; }
  .cm200 { height: 400px; }
  .cm210 { height: 420px; }
  .cm220 { height: 440px; }
  .cm230 { height: 460px; }
  .cmText { height: 480px; font-size: 10px; font-weight: bolder !important; color: lightblue; border: none !important}
}

/* ==========================================================================
   CELEBRITY DISPLAY
   ========================================================================== */
#celebrity-display,
#celebrities-display {
  margin: 0 auto;
  margin-top: 20px;
  top: 0;
  width: 90%;
  height: 400px;
  z-index: 20;
  background-color: var(--bg);
  border: 2px solid var(--blue-muted);
  border-radius: 30px;
  display: none;
  flex-direction: column;
  padding: 10px;
  transition: 0.5s;
  position: relative;
  overflow: hidden;
}
@scope (#celebrities-display) {
  > div:first-child {
    height: 35px;
    width: 80%;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    border: 1px solid var(--blue);
    background: none;
    border-radius: 5px;
    overflow: hidden;
    gap: 0;
    button {
      flex: 1;
      border: none;
    }
  }
  > div:nth-child(2) {
    margin-top: 50px;
  }
}
.cel-btn {
  background: var(--blue);
  color: var(--bg);
}
.anime-btn {
  background: var(--bg);
  color: var(--blue);
}
#image-upload {
  color: var(--bg);
  background: var(--blue);
}
#cel-display,#anim-display {
  overflow-x: hidden;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
  height: 320px;
  width: 100%;
  padding-bottom: 20px;
}
  .cel-box,.celeb {
    height: 40px !important;
    width: 90%;
    padding: 10px 0 10px 20px;
    padding-right: 0 !important;
    display: flex;
    align-items: center;
    background: var(--bg);
    color: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 5px;
    font-weight: 800;
  }
#celBox {
  width: 95%;
  height: 260px;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 20;
  background-color: var(--bg);
  display: grid;
  grid-template-columns: 1fr;
  position: absolute;
  bottom: 8px;
  left: 5px;
  right: 5px;
  z-index: 21;
  border: none !important;
}

/* ==========================================================================
   OBJECT DISPLAY
   ========================================================================== */
#object-display {
  margin: 0 auto;
  margin-top: 20px;
  width: 90%;
  height: 400px;
  z-index: 20;
  background-color: var(--bg);
  border: 2px solid var(--blue-muted);
  border-radius: 30px;
  display: none;
  flex-direction: column;
  padding: 10px;
  transition: 0.5s;
  > div:first-child {
    display: flex;
    column-gap: 5px;
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
    button {
      flex: 1;
      color: var(--blue);
      background: var(--bg);
      border: 1px solid var(--blue);
      border-radius: 5px;
      cursor: pointer;
    }
  }
  #objBox {
    width: 100%;
    flex: 1;
    overflow: hidden;
    > div {
      width: 100%;
      height: 100%;
      overflow-y: scroll !important;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      gap: 5px;
      .obj-box {
        border: 1px solid var(--blue);
        color: var(--blue);
        background: var(--bg);
        z-index: 10;
        padding: 5px;
        border-radius: 5px;
        cursor: pointer;
      }
    }
  }
}
.img-display {
  position: relative !important;
  margin: 0 auto;
  margin-top: 20px;
  width: 90%;
  height: 400px;
  z-index: 20;
  background-color: var(--bg);
  border: 2px solid var(--blue-muted);
  border-radius: 30px;
  display: none;
  flex-direction: column;
  padding: 10px;
  transition: 0.5s;
  overflow-x: hidden;
  overflow-y: scroll;
  div:nth-child(2) {
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
  }
}
  .img-option {
    display: flex;
    position: absolute !important;
    top: 10px !important;
    left: 50%;
    transform: translate(-50%);
    height: 40px;
    width: 90%;
    border: 1px solid var(--blue);
    border-radius: 10px;
    overflow: hidden;
    button {
      flex: 1;
      border: none;;
      height: 100%;
    }
  }
.ai-generator-box {
  display: none;
  flex-direction: column;
  padding-top: 45px;
  gap: 7px;
  input {
    background: var(--bg);
    width: 90%;
    height: 35px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    color: var(--blue);
  }
  textarea {
    background: var(--bg);
    width: 90%;
    height: 65px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    color: var(--blue);
  }
  button {
    width: 50%;
    height: 40px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    color: var(--blue);
    background: var(--bg);
    margin: 0 auto;
  }
}
#upload-option {
  padding-top: 45px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  input {
    width: 90%;
    background: var(--bg);
    height: 35px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    color: var(--blue);
  }
  button {
    width: 40%;
    height: 40px;
    color: var(--blue);
    background: var(--bg);
    border: 1px solid var(--blue);
    border-radius: 8px;
    margin: 0 auto;
  }
}
.upload-btn,.create-imgBtn {
  background: var(--bg);
  color: var(--blue);
}
.upload-btnA,.create-imgBtnA {
  background: var(--blue);
  color: var(--bg);
}
.statue-btn, .building-btn, .astro-btn {
  color: var(--blue);
  background: var(--bg);
  border: 1px solid var(--blue);
}
.Sbtn, .Bbtn, .Abtn {
  background: var(--blue) !important;
  color: var(--text-on-accent) !important;
  border: none !important;
}
#statue {
  display: flex;
  position: relative;
}
.boxblabla {
  display: flex;
  input:first-child {
    flex: 1;
  }
  input:nth-child(2) {
    flex: 2;
  }
}
#building {
  display: none;
}
@scope (#building) {
  input {
    margin-top: 0 !important;
    height: 30px;
    width: 90%;
    border: 1px solid var(--blue);
    border-radius: 15px;
    background: var(--bg);
    color: var(--text);
  }
  input::placeholder {
    padding-left: 10px;
    color: var(--text-placeholder);
  }
  button {
    display: block;
    padding: 10px 20px;
    border: 1px solid var(--blue-muted);
    background-color: var(--bg);
    color: var(--cyan);
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    border-radius: 10px;
    font-family: "Elms Sans", sans-serif;
  }
  button:active {
    transform: scale(1.2);
    border-radius: 20px;
    border: 2px solid var(--blue);
    font-weight: bold;
  }
  section {
    width: 75%;
    height: 400px;
    flex-shrink: 0;
    padding: 10% 5%;
    margin: 0 auto;
    min-height: 400px;
    border: 2px solid blue;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: scroll;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 10px;
    div {
      aspect-ratio: 1/1;
      border: 1px solid blue;
      border-radius: 15px;
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        height: auto;
        width: 50%;
        aspect-ratio: 1/1;
      }
    }
  }
}
#universe {
  display: none;
  position: relative;
}

/* ==========================================================================
   ANIMAL DISPLAY
   ========================================================================== */
#animal-display {
  position: static;
  margin: 0 auto;
  margin-top: 20px;
  top: 0;
  width: 92%;
  height: 400px;
  overflow-y: scroll;
  z-index: 20;
  background-color: var(--bg);
  border: 2px solid var(--blue-muted);
  border-radius: 30px;
  display: none;
  grid-template-columns: calc(1fr - 15%);
  transition: 0.5s;
  padding: 10px;
}

/* ==========================================================================
   SEARCH BAR / CUSTOM CELEBRITY SEARCH
   ========================================================================== */
.search-bar {
  position: sticky;
  top: 2px;
  width: 95%;
  height: 35px;
  display: flex;
  gap: 3px;
  border: none !important;
  margin-bottom: 20px;
  z-index: 15;
  padding: 0 !important;
  backdrop-filter: blur(30000px);
  background: var(--bg) !important;
}
#cel-custom {
  width: 90%;
  position: sticky;
  top: 0;
  left: 5px;
  right: 5px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 30px 10px;
  row-gap: 10px;
  border: none;
  justify-content: center;
  padding: 0 !important;
  background: color-mix(in srgb, var(--bg) 20%, transparent);
  z-index: 100000000000000;
  backdrop-filter: blur(1000px);
  div {
    border: none;
  }
  div:first-child {
    display: flex;
    gap: 5px;
    input {
      flex: 3;
      border: 1px solid var(--blue);
      border-radius: 10px;
      background: var(--bg);
      color: var(--text);
    }
    button {
      flex: 1;
      background: var(--blue);
      color: var(--text-on-accent);
      border-radius: 10px;
      height: 30px;
    }
  }
  div:nth-child(2) {
    opacity: 1;
    div {
      opacity: 1;
    }
  }
}
@scope (.search-bar) {
  input {
    flex: 3;
    border: 1px solid var(--blue-deep);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
  }
  input::placeholder {
    color: var(--blue-deep);
    opacity: 0.5;
    font-size: 16px;
    padding-left: 5px;
  }
  button {
    flex: 1;
    border: 1px solid var(--blue-deep);
    border-radius: 10px;
    background-color: var(--blue-deep);
    height: 100%;
    color: var(--text-on-accent);
  }
}
@scope (#animal-display) {
  div {
    border: 1px solid var(--blue-muted);
    border-radius: 7px;
    padding-left: 10px;
    color: var(--blue-muted);
    display: flex;
    cursor: pointer;
    font-family: "Elms Sans", sans-serif;
    height: 40px;
    text-align: start;
    flex: 1;
    align-items: center;
    opacity: 1;
    font-weight: 800;
  }
}
.pre {
  color: #AE8625 !important;
}
@scope (#celebrity-display) {
  div {
    border: 1px solid var(--blue-muted);
    border-radius: 7px;
    padding-left: 10px;
    color: var(--blue-muted);
    display: flex;
    cursor: pointer;
    font-family: "Elms Sans", sans-serif;
    height: 20px;
    text-align: start;
    flex: 1;
    align-items: center;
    opacity: 0.7;
  }
}

/* ==========================================================================
   ZOOM CONTROLS
   ========================================================================== */
#adjust {
  height: 30px;
  display: flex;
  flex-direction: row;
  width: 80%;
  justify-content: center;
  margin: 0 auto;
  margin-top: 5px;
  gap: 20px;
  font-family: "Elms Sans", sans-serif;
}
.zoomIn-btn, .zoomOut-btn,.adjust-btn {
  width: 30px;
  height: 30px;
  background-image: url('photos/zoomOut.png');
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  user-select: none;

-webkit-user-select: none;

-webkit-touch-callout: none;

-webkit-user-drag: none;

touch-action: manipulation;
}
.zoomOut-btn {
  background-image: url('photos/zoomIn.png');
}
.adjust-btn {
  background-image: url('photos/pen.png');
  width: 27px;
  height: 27px;
}
.adjust-display {
  display: none;
  width: calc(90% - 20px);
  height: 300px;
  margin: 0 auto;
  padding: 0 10px;
  margin-top: 50px;
  flex-direction: column;
  background: var(--bg);
  color: var(--blue);
  border: 3px solid var(--blue);
  border-radius: 10px;
  z-index: -1000;
}
.active-adjust {
  animation: openingAdjust 0.4s ease-in-out forwards;
}
.unactive-adjust {
  animation: openingAdjust 0.4s ease-in-out reverse forwards;
}
@scope (.adjust-display) {
  > div:first-child {
    font-weight: bolder;
    text-align: center;
    border-bottom: 1px solid var(--blue);
    padding: 10px 20px;
    margin-bottom: 10px;
  }
  > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-x: hidden;
    overflow-y: scroll;
    flex-wrap: nowrap;
    > div {
      height: 45px !important;
      width: calc(100% - 20px);
      border: 1px solid;
      border-radius: 5px;
      display: grid;
      grid-template-columns: 20px 1fr 40px;
      grid-gap: 10px;
      align-items: center;
      div:first-child {
        width: 20px;
        text-align: center;
        font-weight: bolder;
      }
      div:nth-child(3) {
        
      }
    }
  }
}
.del-figure,.move-up,.move-down {
  overflow: hidden;
  height: 20px;
  width: 20px;
  background-image: url('photos/delbtn.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
  margin-right: 0px;
  z-index: 50;
}
.move-up {
  background-image: url('photos/moveUp.png');
  height: 20px;
  width: 20px;
  border: 1px solid var(--blue);
  border-radius: 1px;
  padding: 0 10px;
  z-index: 100;
}
.move-down {
  background-image: url('photos/moveDown.png');
  height: 20px;
  width: 20px;
  border: 1px solid var(--blue);
  border-radius: 1px;
  padding: 0 10px;
  z-index: 100;
}
@keyframes openingAdjust {
  from {
    transform: translateY(-70px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@scope (#adjust) {
  button {
    color: var(--blue);
    background: var(--bg);
    border: 1px solid var(--blue);
    padding: 5px 7px;
    border-radius: 15px;
    font-family: "Elms Sans", sans-serif;
  }
}
.clear-btn {
    cursor: pointer;
  user-select: none;
  
  -webkit-user-select: none;
  
  -webkit-touch-callout: none;
  
  -webkit-user-drag: none;
  
  touch-action: manipulation;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */
h2 {
  color: var(--blue) !important;
}
.about-tool-section,
.how-to-use-section,
.faq-section {
  width: 95%;
  margin: 0 auto;
  margin-top: 150px;
  font-size: 18px;
  font-family: "Elms Sans", sans-serif;
}
@scope (.about-tool-section) {
  h2, h3 { color: var(--blue); }
  p, li  { color: var(--text-muted); }
}
@scope (.how-to-use-section) {
  h2 { color: var(--blue); }
  strong, p { color: var(--text-muted); }
  strong { padding-left: 5%; }
  p { padding-left: 10%; }
}
@scope (.faq-section) {
  h2 { color: var(--blue); }
  h3, p { color: var(--text-muted); }
  h3 { padding-left: 5%; }
  p { padding-left: 10%; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer-section {
  display: flex;
  width: 100vw;
  height: 80px;
  align-items: center;
  background: var(--bg-footer);
  margin-left: calc(-50vw + 50%) !important;
}
@scope (#footer-section) {
  div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white !important;
    text-decoration: underline;
  }
  a {
    color: white;
  }
}

/* ==========================================================================
   AVATAR GRIDS
   ========================================================================== */
#male-avatar {
  display: none;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
  overflow-y: scroll !important;
  overflow-x: hidden;
  height: 300px;
  padding: 10px;
  border-top: 3px solid #5297ff;
  border-radius: 30px;
}
@scope (#male-avatar) {
  div {
    aspect-ratio: 1/2;
    border: 1px solid #5297ff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  img {
    height: 60px;
  }
}
#female-avatar {
  display: none;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
  overflow-y: scroll !important;
  overflow-x: hidden;
  height: 300px;
  padding: 10px;
  border-top: 3px solid #ffc0c0;
  border-radius: 30px;
}
@scope (#female-avatar) {
  div {
    aspect-ratio: 1/2;
    border: 1px solid #ffc6c3;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  img {
    height: 60px;
  }
}
.color-bar {
  display: flex;
  margin: 0 auto;
  justify-content: space-evenly;
  padding: 5px 20px;
  div {
    width: 7vw;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    opacity: 1 !important;
  }
}
.red, .cred     { background: red; }
.blue, .cblue   { background: blue; }
.yellow, .cyellow { background: yellow; }
.green, .cgreen { background: green; }
.pink, .cpink   { background: pink; }
.brown, .cbrown { background: brown; }
.black, .cblack { background: black; }
.orange { background: orange; }
.purple { background: purple; }
.aqua   { background: aqua; }