@font-face {
  font-family: "BungeeFont";
  font-weight: normal;
  font-style: normal;
}
*, *:before, *:after {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  box-sizing: border-box;
  cursor: inherit;
  margin: 0;
  padding: 0;
  outline: none;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  text-transform: uppercase;
}
*:focus {
  outline: none;
}


html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: "BungeeFont", sans-serif;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  cursor: default;
  overflow: hidden;
  height: 100%;
  font-size: 5rem;
}

.icon {
  display: inline-block;
  font-size: inherit;
  overflow: visible;
  vertical-align: -0.125em;
  preserveAspectRatio: none;
}

.range {
  position: relative;
  width: 14em;
  z-index: 1;
  opacity: 0;
}
.range:not(:last-child) {
  margin-bottom: 2em;
}
.range__label {
  position: relative;
  font-size: 0.9em;
  line-height: 0.75em;
  padding-bottom: 0.5em;
  z-index: 2;
}
.range__track {
  position: relative;
  height: 1em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  z-index: 3;
}
.range__track-line {
  position: absolute;
  background: rgba(0, 0, 0, 0.2);
  height: 2px;
  top: 50%;
  margin-top: -1px;
  left: -0.5em;
  right: -0.5em;
  transform-origin: left center;
}
.range__handle {
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 0;
  cursor: pointer;
  z-index: 1;
}
.range__handle div {
  transition: background 500ms ease;
  position: absolute;
  left: 0;
  top: 0;
  width: 0.9em;
  height: 0.9em;
  border-radius: 0.2em;
  margin-left: -0.45em;
  margin-top: -0.45em;
  background: #75005c;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}
.range.is-active .range__handle div {
  transform: scale(1.25);
}
.range__handle:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3em;
  height: 3em;
  margin-left: -1.5em;
  margin-top: -1.5em;
}
.range__list {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  position: relative;
  padding-top: 0.5em;
  font-size: 0.55em;
  color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.range--type-color:not(:last-child) {
  margin-bottom: 1em;
}
.range--type-color .range__list {
  display: none;
}
.range--type-color .range__handle > div {
  background: currentColor !important;
}
.range--type-color .range__track-line {
  background: transparent;
}
.range--type-color .range__track-line:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  opacity: 0.5;
}
.range--color-hue .range__handle {
  color: red;
}
.range--color-hue .range__track {
  color: red;
}
.range--color-hue .range__track-line:after {
  background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
}
.range--color-saturation .range__handle {
  color: red;
}
.range--color-saturation .range__track {
  color: red;
}
.range--color-saturation .range__track-line:after {
  background: linear-gradient(to right, rgb(187, 186, 186), currentColor);
}
.range--color-lightness .range__handle {
  color: red;
}
.range--color-lightness .range__track {
  color: red;
}
.range--color-lightness .range__track-line:after {
  background: linear-gradient(to right, black, currentColor, white);
}

.stats {
  position: relative;
  width: 14em;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  opacity: 0;
}
.stats:not(:last-child) {
  margin-bottom: 1.5em;
}
.stats > i {
  display: block;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.9em;
}
.stats > b {
  display: block;
  font-size: 0.9em;
}
.stats > b > i {
  font-size: 0.75em;
}
.stats[name=worst-time] {
  display: none;
}

.text {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 0.75;
  perspective: 100rem;
  opacity: 0;
}
.text i {
  display: inline-block;
  opacity: 0;
  white-space: pre-wrap;
}
.text--title {
  bottom: 75%;
  font-size: 4.4em;
  height: 1.2em;
}
.text--title span {
  display: block;
}
.text--title span:first-child {
  font-size: 0.5em;
  margin-bottom: 0.2em;
}
.text--note {
  top: 87%;
  font-size: 1em;
}
@import url('https://fonts.cdnfonts.com/css/digital-7');
.text--timer {
  bottom: 78%;
  
  font-size: 3.5em;
  line-height: 1;
}
.text--timer {
  color: #000000; /* Black */
      font-family: 'Dancing Script', cursive; /* Floral font */

  font-weight: 700; /* Bold */
  font-size: 2.5em; /* Slightly larger for emphasis */
  color: #000000; /* Black text (can be adjusted if contrast is needed) */
  padding: 8px 15px; /* Compact padding */
  border-radius: 5px; /* Slight rounding */
  display: inline-block; /* Fits content */
  text-shadow: 0 0 5px rgba(42, 1, 66, 0.5); /* Green glow for retro vibe */
}
.text--complete, .text--best-time {
  font-size: 1.5em;
  top: 83%;
  line-height: 1em;
    color: #000000; /* Black */
      font-family: 'Dancing Script', cursive; /* Floral font */

  font-weight: 700; /* Bold */
  font-size: 2.5em; /* Slightly larger for emphasis */
  color: #000000; /* Black text (can be adjusted if contrast is needed) */
  padding: 8px 15px; /* Compact padding */
  border-radius: 5px; /* Slight rounding */
  display: inline-block; /* Fits content */
  text-shadow: 0 0 5px rgba(42, 1, 66, 0.5);
}

.btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border-radius: 0;
  border-width: 0;
  position: absolute;
  pointer-events: none;
  font-size: 1.2em;
  color: rgba(0, 0, 0, 0.25);
  opacity: 0;
}
.btn:after {
  position: absolute;
  content: "";
  width: 3em;
  height: 3em;
  left: 50%;
  top: 50%;
  margin-left: -1.5em;
  margin-top: -1.5em;
  border-radius: 100%;
}
.btn--bl {
  bottom: 0.8em;
  left: 0.8em;
}
.btn--br {
  bottom: 0.8em;
  right: 0.8em;
}
.btn--bc {
  bottom: 0.8em;
  left: calc(50% - 0.5em);
}
.btn svg {
  display: block;
}
.btn--cancel {
  display: none !important;
}

.ui {
  pointer-events: none;
  color: #070d15;
}
.ui, .ui__background, .ui__game, .ui__texts, .ui__prefs, .ui__theme, .ui__stats, .ui__buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ui__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  transition: background 500ms ease;
}

.ui__background:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background-image: url(bg.png);
  background-repeat: no-repeat;
  background-size: cover; /* ya use: background-size: 100% 100%; */
  background-position: center;
  z-index: -1; /* ensure it stays behind other elements */
}

.ui__game {
  pointer-events: all;
  z-index: 2;
}
.ui__game canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.ui__texts {
  z-index: 3;
}
 .ui__stats, .ui__theme {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 4;
}
.ui__theme {
  padding-top: 15em;
  color:#000000;
 font-size: 1em; /* Matches original */
  font-weight: 700; /* Lighter for contrast */
    font-family: 'Dancing Script', cursive; /* Floral font */

}

.ui__buttons {
  z-index: 5;
  color: #000000
}



/* Import Dancing Script Font for a Floral, Cursive Look */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

/* UI Prefs Container Writing Style */
.ui__prefs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
    flex-flow: column nowrap;
     justify-content: center;
      align-items: center;
       overflow: hidden;
         display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 4;
     
    
  font-family: 'Dancing Script', cursive; /* Floral font */
  font-size: 1em; /* Matches original */
  font-weight: 700; /* Lighter for contrast */
  color: #55012f; /* Pink to match parent */
  text-shadow: 0 0 8px rgba(255, 226, 226, 0.6), 0 1px 3px rgba(0, 0, 0, 0.3);
}







/* Buttons Container */
.ui__buttons button {
  font-size: 40px;
  padding: 1rem;
  border-radius: 1rem;
 margin-left: -5px;

}


/* Button Color Styling */
.ui__buttons .btn {
  color: #8d0353; /* Soft cream for text/icon */
  text-shadow: 0 0 10px rgb(77, 80, 77), 0 2px 4px rgba(90, 90, 90, 0.918); /* Cream glow */
}
  .ui__texts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 120rem; /* Maintained for 3D effect */
}

/* Title Styling */
.text--title {
  position: absolute;
  bottom: 75%; /* Moved higher (from 70% to 75%) */
  font-size: 4em; /* Slightly smaller overall title size */
  font-weight: 800; /* Bold for emphasis */
  line-height: 1;
  text-align: center;
  color: #000000; /* White for contrast */
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgb(180, 176, 176); /* Glow and shadow */
  transform: translateZ(0); /* For 3D perspective */
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1; /* Visible by default */
}

/* Span Styling for "Cubic" and "Box" */
.text--title span {
  display: block;
  font-size: 0.55em; /* Same size for both spans */
  color: #b4007e; /* Cyan for both "Cubic" and "Box" */
  margin-bottom: 0.20em;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0); /* Aligned, no offset */
}

/* Hover Animation for Interactive Effect */
.text--title:hover {
  transform: translateZ(20px) scale(1.05); /* Slight 3D pop and scale */
}

/* Animation for Span Elements on Load */
.text--title span {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Keyframes for Fade-In Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Animation Delay for Spans */
.text--title span:first-child {
  animation-delay: 0.2s;
}
.text--title span:nth-child(2) {
  animation-delay: 0.4s;
}



/* Import Dancing Script Font for a Floral, Cursive Look */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

/* Note Text Styling */
.text--note {
  position: absolute;
  top: 90%; /* Below the title (bottom: 75%) */
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Dancing Script', cursive; /* Floral, handwritten font */
  font-size: 1.8em; /* Larger for an elegant, prominent effect */
  font-weight: 700; /* Bold for a stronger cursive impact */
  color: #000000; /* Soft pink for a floral, feminine vibe */
  text-shadow: 0 0 12px rgba(104, 22, 67, 0.8), 0 2px 5px rgba(0, 0, 0, 0.3); /* Pink glow with shadow */
  letter-spacing: 0.04em; /* Subtle spacing for elegance */
  text-transform: none; /* No transform for natural cursive flow */
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
  opacity: 1; /* Visible by default for immediate impact */
  animation: sparkle 2s ease-in-out infinite; /* Sparkling animation for a magical effect */
}

/* Hover Effect for Interactivity */
.text--note:hover {
  color: #fef3c7; /* Soft cream on hover for warmth */
  transform: scale(1.05); /* Subtle scale for emphasis */
  text-shadow: 0 0 15px rgba(254, 243, 199, 1), 0 2px 5px rgba(0, 0, 0, 0.4); /* Cream glow on hover */
}

/* Sparkle Animation */
@keyframes sparkle {
  0% {
    text-shadow: 0 0 12px rgba(145, 1, 80, 0.8), 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 20px rgb(126, 0, 69), 0 2px 7px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
  }
  100% {
    text-shadow: 0 0 12px rgba(110, 1, 61, 0.8), 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
}

/* Individual Stats Styling */
.stats {
  position: relative;
  width: 14em; /* Matches original width */
  z-index: 1;
  display: flex;
  justify-content: space-between;
  opacity: 0; /* Matches original, starts hidden */
  font-family: 'Dancing Script', cursive; /* Floral, handwritten font to match text--note */
  font-size: 1.2em; /* Slightly larger than original 0.9em for prominence */
  font-weight: 700; /* Bold for cursive impact */
  color: #000000; /* Soft pink to match text--note */
  text-shadow: 0 0 10px rgba(249, 168, 212, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3); /* Pink glow with shadow */
  letter-spacing: 0.04em; /* Subtle spacing for elegance */
  text-transform: none; /* Natural cursive flow */
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
  animation: sparkle 2s ease-in-out infinite; /* Sparkling animation to match text--note */
}

/* Margin Between Stats */
.stats:not(:last-child) {
  margin-bottom: 1.5em; /* Matches original spacing */
}

/* Styling for <i> (Labels like "Cube:", "Total solves:") */
.stats > i {
  display: block;
  color: #790344; /* Soft pink, adjusted from original rgba(0, 0, 0, 0.5) to match text--note */
  font-size: 0.9em; /* Matches original */
  font-weight: 400; /* Lighter weight for contrast */
  text-shadow: 0 0 8px rgba(214, 0, 118, 0.6), 0 1px 3px rgba(0, 0, 0, 0.3); /* Subtle pink glow */
}

/* Styling for <b> (Values like "3x3x3", "-") */
.stats > b {
  display: block;
  color: #000000; /* Soft cream for contrast, matching text--note hover */
  font-size: 0.9em; /* Matches original */
  font-weight: 700; /* Bold for emphasis */
  text-shadow: 0 0 10px rgba(254, 243, 199, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3); /* Cream glow */
}

/* Styling for <b> Inner <i> (if any) */
.stats > b > i {
  font-size: 0.75em; /* Matches original */
  font-weight: 400; /* Lighter for contrast */
  color: #55012f; /* Pink to match parent */
  text-shadow: 0 0 8px rgba(249, 168, 212, 0.6), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hide Worst Time as per Original */
.stats[name=worst-time] {
  display: none; /* Matches original */
}

/* Hover Effect for Interactivity */
.stats:hover {
  color: #ffffff; /* White on hover for brightness */
  transform: scale(1.05); /* Subtle scale for emphasis */
  opacity: 1; /* Ensure visibility on hover */
  text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 2px 4px rgba(0, 0, 0, 0.4); /* White glow */
}

/* Hover Effect for <i> and <b> */
.stats:hover > i {
  color: #000000;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.stats:hover > b {
  color: #000000;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Sparkle Animation to Match text--note */
@keyframes sparkle {
  0% {
    text-shadow: 0 0 10px rgba(249, 168, 212, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 18px rgba(249, 168, 212, 1), 0 2px 6px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
  }
  100% {
    text-shadow: 0 0 10px rgba(249, 168, 212, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
}