:root {
  --background-color: rgb(255, 0, 242);
  --primary-color: #fff;
  
  /* Main ball colors */
  --ball-gradient-start: #4a4a4a;
  --ball-gradient-mid: #2a2a2a;
  --ball-gradient-dark: #080808;
  --ball-gradient-end: #000000;
  
  /* Window colors */
  --window-bg: #080808;
  --window-border: #000;
  
  /* Cloudy animation colors */
  --cloudy-color-1: rgba(88, 28, 135, 0.4);
  --cloudy-color-2: rgba(59, 7, 100, 0.3);
  --cloudy-color-3: rgba(30, 0, 50, 0.2);
  
  /* Shadow colors */
  --shadow-color: rgba(0, 0, 0, 0.3);
  --inner-shadow-color: rgba(0, 0, 0, 0.8);
  --glow-color: #fff3;
  --text-glow: rgba(255, 0, 255, 0.5);
  
  /* Border colors */
  --border-color: #333;
}

/* Theme: Tiffany's Land of Misfits */
body.theme-tlom {
  --background-color: #ff0073;
  --primary-color: #fff;
  
  /* Main ball colors */
  --ball-gradient-start: #ffff00;
  --ball-gradient-mid: #e6e600;
  --ball-gradient-dark: #cccc00;
  --ball-gradient-end: #b3b300;
  
  /* Window colors */
  --window-bg: #000;
  --window-border: linear-gradient(135deg, #fff 0%, #000 50%, #fff 100%);
  
  /* Cloudy animation colors */
  --cloudy-color-1: rgba(0, 0, 0, .4);
  --cloudy-color-2: rgba(0, 0, 0, .3);
  --cloudy-color-3: rgba(0, 0, 0, .2);
  
  /* Shadow colors */
  --shadow-color: rgba(0, 0, 20, 0.6);
  --inner-shadow-color: rgba(40, 40, 0, .7);
  --glow-color: #4a4a8a33;
  --text-glow: rgba(255, 255, 255, 0.3);
  
  /* Border colors */
  --border-color: #b3b300;
}

/* Theme: Nicole */
body.theme-nb {
  --background-color: #90EE90;
  --primary-color: #fff;
  
  /* Main ball colors */
  --ball-gradient-start: #e6e6fa;
  --ball-gradient-mid: #d8bfd8;
  --ball-gradient-dark: #b19cd9;
  --ball-gradient-end: #9370db;
  
  /* Window colors */
  --window-bg: #000;
  --window-border: linear-gradient(135deg, #fdd9 0%, #000 50%, #fee9 100%);
  
  /* Cloudy animation colors */
  --cloudy-color-1: rgba(255, 0, 0, 1);
  --cloudy-color-2: rgba(0, 0, 0, 1);
  --cloudy-color-3: rgba(0, 0, 0, 1);
  
  /* Shadow colors */
  --shadow-color: rgba(0, 0, 20, 0.6);
  --inner-shadow-color: rgba(40, 40, 0, .7);
  --glow-color: #fff;
  --text-glow: rgba(255, 255, 255, 1);
  
  /* Border colors */
  --border-color: #9370db;
}

* {
  font-family: 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body {
  align-items: center;
  background-color: var(--background-color);
  box-sizing: border-box;
  color: var(--primary-color);
  display: flex;
  height: 100vh;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100vw;
}

header,
footer {
  display: none;
}

@keyframes float {
  0% {
    transform: translateY(8px);
    box-shadow: 
      inset 0 0 50px var(--inner-shadow-color),
      0 15px 35px var(--shadow-color);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 
      inset 0 0 50px var(--inner-shadow-color),
      0 15px 25px var(--shadow-color);
  }
  100% {
    transform: translateY(8px);
    box-shadow: 
      inset 0 0 50px var(--inner-shadow-color),
      0 15px 35px var(--shadow-color);
  }
}

@keyframes shadowFloat {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) translateY(-8px) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(8px) scale(0.96);
  }
  100% {
    opacity: 0.7;
    transform: translateX(-50%) translateY(-8px) scale(1);
  }
}

/* @keyframes cloudy {
  0% {
    background: radial-gradient(circle at 30% 30%,
      var(--cloudy-color-1) 0%,
      var(--cloudy-color-2) 40%,
      var(--cloudy-color-3) 100%);
  }
  50% {
    background: radial-gradient(circle at 50% 50%,
      var(--cloudy-color-1) 0%,
      var(--cloudy-color-2) 40%,
      var(--cloudy-color-3) 100%);
  }
  100% {
    background: radial-gradient(circle at 30% 30%,
      var(--cloudy-color-1) 0%,
      var(--cloudy-color-2) 40%,
      var(--cloudy-color-3) 100%);
  }
} */

main {
  align-items: center;
  aspect-ratio: 1/1;
  background: radial-gradient(circle at 30% 30%, 
    var(--ball-gradient-start) 0%,
    var(--ball-gradient-mid) 30%,
    var(--ball-gradient-dark) 60%,
    var(--ball-gradient-end) 100%);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  width: 68vh;
  transition: transform 0.2s ease;
  animation: float 6s ease-in-out infinite;
  position: relative;
}

main::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse at center, var(--shadow-color) 0%, rgba(0,0,0,0.32) 20%);
  border-radius: 50%;
  filter: blur(10px);
  animation: shadowFloat 6s ease-in-out infinite;
}

main:hover {
  transform: scale(1.02);
}

@media (max-aspect-ratio: 1/1) {
  main {
    width: 68vw;
    border-radius: 50%;
  }
}

.window {
  aspect-ratio: 1/1;
  background: var(--window-bg);
  border-radius: 50%;
  width: 32vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--glow-color);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--window-border);
  border: 2px solid transparent;
  background-image: 
    var(--window-border);
  background-origin: border-box;
  background-clip: content-box, border-box;
  /* background: linear-gradient(-45deg, rgba(88, 28, 135, 0.2), rgba(59, 7, 100, 0.3), rgba(30, 0, 50, 0.1)); */
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

/* .window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: cloudy 20s ease-in-out infinite;
  z-index: 1;
  will-change: background;
} */

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@media (max-aspect-ratio: 1/1) {
  .window {
    width: 32vw;
  }
}

#answer {
  text-align: center;
  width: 48%;
  position: relative;
  z-index: 2;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--text-glow);
  transition: opacity 0.5s ease-in-out;
}




/* body {
    background: linear-gradient(135deg, #222 0%, #5a2121 100%);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    margin: 0;
  }
  .container {
    max-width: 400px;
    margin: 48px auto;
    padding: 32px 20px 16px 20px;
    background: rgba(0,0,0,0.85);
    border-radius: 2rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.7);
    text-align: center;
  }
  h1 {
    margin-bottom: 0;
    font-size: 2.4rem;
    letter-spacing: 1px;
  }
  .subtitle {
    color: #f77979;
    margin-top: 0;
    margin-bottom: 30px;
    font-style: italic;
  }
  .eight-ball {
    background: radial-gradient(circle at 40% 35%, #444 70%, #111 100%);
    border-radius: 50%;
    width: 170px;
    height: 170px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px #32000080 inset, 0 0 24px #000;
    position: relative;
    border: 4px solid #222;
  }
  .eight-ball .window {
    background: #222;
    border-radius: 50%;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px #8b0000cc;
    border: 3px solid #770d0d;
    font-size: 1.09rem;
    color: #ffe6e6;
    text-align: center;
    padding: 8px;
  }
  #answer {
    transition: opacity 0.2s;
  }
  form {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
  input[type="text"] {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    background: #2c1e1e;
    color: #fff;
    box-shadow: 0 0 6px #5a212133 inset;
  }
  button {
    background: #a1001a;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px #5a2121cc;
    transition: background 0.18s;
  }
  button:hover {
    background: #cc0033;
  }
  footer {
    margin-top: 32px;
    font-size: 0.92rem;
    color: #db7e7e;
    opacity: 0.77;
  }
  @media (max-width: 480px) {
    .container {
      max-width: 96vw;
      padding: 16px 6px 6px 6px;
    }
    .eight-ball {
      width: 120px;
      height: 120px;
    }
    .eight-ball .window {
      width: 56px;
      height: 56px;
      font-size: 0.92rem;
    }
  }
   */