/* Styles for the homepage (hub screen) of Dictionary Duel. */
body {
  background: #111;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: system-ui, sans-serif;
}

#menu-btn-container {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  width: 100%;
}

.game-modes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: center;
  width: 100%;
}

.endless-expansions {
  margin-bottom: 3rem;
}

#fun-clicker-container {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 50;
}

/* Base Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ffd93d;
    --text-color: #333;
    --bg-color: #fff;
    --modal-bg: #fff;
    --modal-border: #ddd;
}

[data-theme="dark"] {
    --primary-color: #ff6b6b;
    --secondary-color: #ffd93d;
    --text-color: #fff;
    --bg-color: #1a1a1a;
    --modal-bg: #2d2d2d;
    --modal-border: #444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.title {
    font-size: 3.6rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* Theme Switch Styles */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Game Mode Buttons */
.game-modes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
    align-items: center;
}

/* Uiverse Daily Duel Button */
.container-button {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "bt-1 bt-2 bt-3" "bt-4 bt-5 bt-6";
    position: relative;
    perspective: 800;
    padding: 0;
    width: 135px;
    height: 47px;
    transition: all 0.3s ease-in-out;
}

.container-button:active {
    transform: scale(0.95);
}

.hover {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 200;
}

.bt-1 { grid-area: bt-1; }
.bt-2 { grid-area: bt-2; }
.bt-3 { grid-area: bt-3; }
.bt-4 { grid-area: bt-4; }
.bt-5 { grid-area: bt-5; }
.bt-6 { grid-area: bt-6; }

.bt-1:hover ~ button { transform: rotateX(15deg) rotateY(-15deg); box-shadow: -2px -2px #00000088; }
.bt-1:hover ~ button::after { animation: shake 0.5s ease-in-out 0.3s; text-shadow: -2px -2px #00000088; }
.bt-3:hover ~ button { transform: rotateX(15deg) rotateY(15deg); box-shadow: 2px -2px #00000088; }
.bt-3:hover ~ button::after { animation: shake 0.5s ease-in-out 0.3s; text-shadow: 2px -2px #00000088; }
.bt-4:hover ~ button { transform: rotateX(-15deg) rotateY(-15deg); box-shadow: -2px 2px #00000088; }
.bt-4:hover ~ button::after { animation: shake 0.5s ease-in-out 0.3s; text-shadow: -2px 2px #00000088; }
.bt-6:hover ~ button { transform: rotateX(-15deg) rotateY(15deg); box-shadow: 2px 2px #00000088; }
.bt-6:hover ~ button::after { animation: shake 0.5s ease-in-out 0.3s; text-shadow: 2px 2px #00000088; }

.hover:hover ~ button::before {
    background: transparent;
}

.hover:hover ~ button::after {
    content: "Daily Duel";
    top: -150%;
    transform: translate(-50%, 0);
    font-size: 34px;
    color: #ffffff;
}

.container-button button {
    position: absolute;
    padding: 0;
    width: 135px;
    height: 47px;
    background: transparent;
    font-size: 17px;
    font-weight: 900;
    border: 3px solid #ccc;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}

.container-button button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 135px;
    height: 47px;
    background-color: #eee;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

.container-button button::after {
    content: "Daily Duel";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 135px;
    height: 47px;
    background-color: transparent;
    font-size: 17px;
    font-weight: 900;
    line-height: 47px;
    color: #000;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    z-index: 2;
}

@keyframes shake {
    0% { left: 45%; }
    25% { left: 54%; }
    50% { left: 48%; }
    75% { left: 52%; }
    100% { left: 50%; }
}

/* From Uiverse.io by doniaskima - btn-23 */
.btn-23,
.btn-23 *,
.btn-23 :after,
.btn-23 :before,
.btn-23:after,
.btn-23:before {
    border: 0 solid;
    box-sizing: border-box;
}

.btn-23 {
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: button;
    background-color: #000;
    background-image: none;
    color: #fff;
    cursor: pointer;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
        Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 100%;
    font-weight: 900;
    line-height: 1.5;
    margin: 0;
    -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
    padding: 0;
    text-transform: uppercase;
    width: 100%;
}

.btn-23:disabled {
    cursor: default;
}

.btn-23:-moz-focusring {
    outline: auto;
}

.btn-23 svg {
    display: block;
    vertical-align: middle;
}

.btn-23 [hidden] {
    display: none;
}

.btn-23 {
    border-radius: 99rem;
    border-width: 2px;
    overflow: hidden;
    padding: 0.8rem 3rem;
    position: relative;
}

.btn-23 span {
    display: grid;
    inset: 0;
    place-items: center;
    position: absolute;
    transition: opacity 0.2s ease;
}

.btn-23 .marquee {
    --spacing: 5em;
    --start: 0em;
    --end: 5em;
    -webkit-animation: marquee 1s linear infinite;
    animation: marquee 1s linear infinite;
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
    opacity: 0;
    position: relative;
    text-shadow: #fff var(--spacing) 0, #fff calc(var(--spacing) * -1) 0,
        #fff calc(var(--spacing) * -2) 0;
}

.btn-23:hover .marquee {
    -webkit-animation-play-state: running;
    animation-play-state: running;
    opacity: 1;
}

.btn-23:hover .text {
    opacity: 0;
}

@-webkit-keyframes marquee {
    0% {
        transform: translateX(var(--start));
    }

    to {
        transform: translateX(var(--end));
    }
}

@keyframes marquee {
    0% {
        transform: translateX(var(--start));
    }

    to {
        transform: translateX(var(--end));
    }
}

/* About Button */
.about-btn {
    position: relative;
    padding: 10px 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    font-size: 16px;
    overflow: hidden;
    transition: 0.2s;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 2rem;
}

.about-btn:hover {
    color: #255784;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color), 0 0 40px var(--secondary-color), 0 0 80px var(--secondary-color);
    transition-delay: 0.1s;
}

/* Coin Fidget */
.coin-fidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
}

.coin {
    width: 50px;
    height: 50px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.coin.flip {
    transform: rotateY(180deg);
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    backface-visibility: hidden;
}

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

.back {
    background: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.modal-content {
    background-color: var(--modal-bg, #222);
    color: var(--text-color, #fff);
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 10px; right: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color, #ff3c3c);
}

/* Sparkle Button Styles */
.sparkle-btn {
    position: relative;
    padding: 12px 35px;
    background: var(--modal-bg);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-color);
    border: 3px solid var(--modal-border);
    border-radius: 8px;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn-label {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.star-1, .star-2, .star-3, .star-4, .star-5, .star-6 {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.star-1 { top: 10%; left: 10%; width: 25px; }
.star-2 { top: 20%; left: 80%; width: 15px; }
.star-3 { top: 60%; left: 15%; width: 5px; }
.star-4 { top: 70%; left: 70%; width: 8px; }
.star-5 { top: 50%; left: 90%; width: 15px; }
.star-6 { top: 5%; left: 50%; width: 5px; }

/* Animate stars on hover */
.sparkle-btn:hover .star-1 { top: -40%; left: -20%; filter: drop-shadow(0 0 10px var(--text-color)); }
.sparkle-btn:hover .star-2 { top: -30%; left: 100%; filter: drop-shadow(0 0 10px var(--text-color)); }
.sparkle-btn:hover .star-3 { top: 100%; left: 0%; filter: drop-shadow(0 0 10px var(--text-color)); }
.sparkle-btn:hover .star-4 { top: 100%; left: 100%; filter: drop-shadow(0 0 10px var(--text-color)); }
.sparkle-btn:hover .star-5 { top: 50%; left: 120%; filter: drop-shadow(0 0 10px var(--text-color)); }
.sparkle-btn:hover .star-6 { top: -30%; left: 60%; filter: drop-shadow(0 0 10px var(--text-color)); }

.fil0 {
    fill: var(--text-color);
}

/* Responsive Design */
@media (max-width: 600px) {
    .title {
        font-size: 2.4rem;
    }
    
    .game-modes {
        gap: 1rem;
    }
    
    .sparkle-btn {
        padding: 10px 25px;
        font-size: 16px;
    }
}

/* Uiverse Button Style for Expansions & Head to Head */
.uiverse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto 1.5rem auto;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  min-width: 260px;
  min-height: 56px;
  z-index: 1;
}
.uiverse .wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  background: var(--modal-bg, #222);
  border: 2px solid var(--modal-border, #444);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.uiverse span {
  position: relative;
  z-index: 2;
  color: var(--text-color, #fff);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 32px;
  transition: color 0.2s;
}
.uiverse .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.6,2,.5,.9), opacity 0.3s;
}
.uiverse .circle-1 { width: 8px; height: 8px; background: #fff; left: 10px; top: 10px; }
.uiverse .circle-2 { width: 12px; height: 12px; background: #fff; left: 40px; top: 6px; }
.uiverse .circle-3 { width: 10px; height: 10px; background: #fff; right: 20px; top: 12px; }
.uiverse .circle-4 { width: 14px; height: 14px; background: #fff; right: 10px; top: 30px; }
.uiverse .circle-5 { width: 8px; height: 8px; background: #fff; left: 20px; bottom: 10px; }
.uiverse .circle-6 { width: 10px; height: 10px; background: #fff; left: 60px; bottom: 8px; }
.uiverse .circle-7 { width: 12px; height: 12px; background: #fff; right: 40px; bottom: 10px; }
.uiverse .circle-8 { width: 8px; height: 8px; background: #fff; right: 20px; bottom: 20px; }
.uiverse .circle-9 { width: 10px; height: 10px; background: #fff; left: 80px; top: 30px; }
.uiverse .circle-10 { width: 12px; height: 12px; background: #fff; right: 60px; top: 18px; }
.uiverse .circle-11 { width: 8px; height: 8px; background: #fff; left: 100px; bottom: 18px; }
.uiverse .circle-12 { width: 10px; height: 10px; background: #fff; right: 80px; bottom: 30px; }

.uiverse:hover .wrapper {
  box-shadow: 0 4px 24px 0 rgba(255,255,255,0.15), 0 1.5px 8px 0 rgba(0,0,0,0.10);
}
.uiverse:hover span {
  color: #222;
}
.uiverse:hover .circle-1 { transform: translate(-8px, -8px) scale(1.2); opacity: 1; }
.uiverse:hover .circle-2 { transform: translate(-12px, -12px) scale(1.3); opacity: 1; }
.uiverse:hover .circle-3 { transform: translate(12px, -10px) scale(1.2); opacity: 1; }
.uiverse:hover .circle-4 { transform: translate(10px, 12px) scale(1.3); opacity: 1; }
.uiverse:hover .circle-5 { transform: translate(-10px, 10px) scale(1.2); opacity: 1; }
.uiverse:hover .circle-6 { transform: translate(-8px, 8px) scale(1.3); opacity: 1; }
.uiverse:hover .circle-7 { transform: translate(8px, 8px) scale(1.2); opacity: 1; }
.uiverse:hover .circle-8 { transform: translate(10px, 10px) scale(1.3); opacity: 1; }
.uiverse:hover .circle-9 { transform: translate(-10px, 10px) scale(1.2); opacity: 1; }
.uiverse:hover .circle-10 { transform: translate(10px, -10px) scale(1.3); opacity: 1; }
.uiverse:hover .circle-11 { transform: translate(-10px, -10px) scale(1.2); opacity: 1; }
.uiverse:hover .circle-12 { transform: translate(10px, 10px) scale(1.3); opacity: 1; }

/* Keep vertical centering and spacing consistent with Daily Duel */
.game-modes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

@media (max-width: 600px) {
  .uiverse {
    min-width: 180px;
    min-height: 44px;
  }
  .uiverse .wrapper {
    height: 44px;
  }
  .uiverse span {
    font-size: 0.95rem;
    padding: 0 16px;
  }
}

/* Pushable Red-Black Neon Button */
.pushable {
  position: relative;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  outline-offset: 4px;
  outline-color: #ff4d4d;
  transition: filter 250ms;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  width: 85%;
  max-width: 400px;
  min-width: 220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.shadow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 80, 80, 0.5);
  border-radius: 12px;
  filter: blur(4px);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}
.edge {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to right,
    #b22222 0%,
    #ff1a1a 8%,
    #b22222 92%,
    #1a1a1a 100%
  );
}
.front {
  display: block;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(to right, #ff4d4d, #1a1a1a);
  padding: 13px 19px;
  color: #fff;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.44rem;
  white-space: nowrap;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
  height: 44px;
  line-height: 44px;
  text-align: center;
  text-shadow: 0 2px 8px #ff4d4d, 0 0 2px #000;
}
.pushable:hover {
  filter: brightness(110%);
}
.pushable:hover .front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}
.pushable:active .front {
  transform: translateY(-2px);
  transition: transform 34ms;
}
.pushable:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}
.pushable:active .shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}
.pushable:focus:not(:focus-visible) {
  outline: none;
}
[data-theme="light"] .front {
  background: linear-gradient(to right, #ff6b6b, #333);
  color: #222;
  text-shadow: 0 2px 8px #fff, 0 0 2px #ff6b6b;
}
[data-theme="light"] .shadow {
  background: rgba(255, 107, 107, 0.4);
}
[data-theme="light"] .edge {
  background: linear-gradient(
    to right,
    #ff6b6b 0%,
    #ff1a1a 8%,
    #ff6b6b 92%,
    #333 100%
  );
}

/* Uiverse Dark Button (brave-mole-100) */
.uiverse-dark {
  position: relative;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  outline-offset: 4px;
  outline-color: deeppink;
  transition: filter 250ms;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  width: 100%;
  max-width: 400px;
  min-width: 220px;
  margin: 0 auto 2.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.uiverse-dark .shadow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: hsl(226, 25%, 29%);
  border-radius: 12px;
  filter: blur(2px);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}
.uiverse-dark .edge {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to right,
    hsl(248, 39%, 19%) 0%,
    hsl(248, 39%, 29%) 8%,
    hsl(248, 39%, 19%) 92%,
    hsl(248, 39%, 9%) 100%
  );
}
.uiverse-dark .front {
  display: block;
  position: relative;
  border-radius: 12px;
  background: hsl(248, 53%, 38%);
  padding: 16px 32px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1rem;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
  height: 48px;
  line-height: 48px;
  text-align: center;
}
.uiverse-dark:hover {
  filter: brightness(110%);
}
.uiverse-dark:hover .front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}
.uiverse-dark:active .front {
  transform: translateY(-2px);
  transition: transform 34ms;
}
.uiverse-dark:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}
.uiverse-dark:active .shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}
.uiverse-dark:focus:not(:focus-visible) {
  outline: none;
}

[data-theme="light"] .uiverse-dark .front {
  background: hsl(248, 53%, 68%);
  color: #222;
}
[data-theme="light"] .uiverse-dark .shadow {
  background: hsl(226, 25%, 69%);
}
[data-theme="light"] .uiverse-dark .edge {
  background: linear-gradient(
    to right,
    hsl(248, 39%, 39%) 0%,
    hsl(248, 39%, 49%) 8%,
    hsl(248, 39%, 39%) 92%,
    hsl(248, 39%, 29%) 100%
  );
}

/* Uiverse Red-Black Gradient Button */
.uiverse-red {
  position: relative;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  min-width: 220px;
  margin: 0 auto 2.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.uiverse-red .wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  background: linear-gradient(to right, #ff3c3c, #1a1a1a);
  border: 2px solid #ff3c3c;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(255,60,60,0.15);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.uiverse-red span.text {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 32px;
  text-shadow: 0 2px 8px #ff3c3c, 0 0 2px #000;
  transition: color 0.2s;
}
.uiverse-red .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.6,2,.5,.9), opacity 0.3s, background 0.3s;
}
.uiverse-red .circle-1 { width: 8px; height: 8px; background: #ff3c3c; left: 10px; top: 10px; }
.uiverse-red .circle-2 { width: 12px; height: 12px; background: #ff6b6b; left: 40px; top: 6px; }
.uiverse-red .circle-3 { width: 10px; height: 10px; background: #b22222; right: 20px; top: 12px; }
.uiverse-red .circle-4 { width: 14px; height: 14px; background: #1a1a1a; right: 10px; top: 30px; }
.uiverse-red .circle-5 { width: 8px; height: 8px; background: #ff3c3c; left: 20px; bottom: 10px; }
.uiverse-red .circle-6 { width: 10px; height: 10px; background: #b22222; left: 60px; bottom: 8px; }
.uiverse-red .circle-7 { width: 12px; height: 12px; background: #ff6b6b; right: 40px; bottom: 6px; }
.uiverse-red .circle-8 { width: 8px; height: 8px; background: #1a1a1a; right: 20px; bottom: 10px; }
.uiverse-red .circle-9 { width: 10px; height: 10px; background: #ff3c3c; left: 80px; top: 18px; }
.uiverse-red .circle-10 { width: 8px; height: 8px; background: #b22222; right: 60px; top: 18px; }
.uiverse-red .circle-11 { width: 12px; height: 12px; background: #ff6b6b; left: 100px; bottom: 18px; }
.uiverse-red .circle-12 { width: 10px; height: 10px; background: #1a1a1a; right: 80px; bottom: 18px; }
.uiverse-red:hover .wrapper {
  box-shadow: 0 0 16px 4px #ff6b3c, 0 2px 16px 0 rgba(255,60,60,0.25);
  border-color: #ff6b3c;
}
.uiverse-red:hover .circle {
  filter: drop-shadow(0 0 8px #ff6b3c);
  opacity: 0.9;
}
.uiverse-red:active .wrapper {
  box-shadow: 0 0 8px 2px #ff3c3c;
  border-color: #ff3c3c;
}
[data-theme="light"] .uiverse-red .wrapper {
  background: linear-gradient(to right, #ff6b6b, #333);
  border-color: #ff6b6b;
}
[data-theme="light"] .uiverse-red span.text {
  color: #222;
  text-shadow: 0 2px 8px #fff, 0 0 2px #ff6b6b;
}

.button {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  cursor: pointer;
}

.box {
  width: 35px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: all 0.8s;
  position: relative;
  background: rgb(192,63,63); /* TEMP — replace later with red */
  overflow: hidden;
  margin: 0 2px;
  border-radius: 6px;
}

.box:before {
  content: "W";
  position: absolute;
  top: 0;
  background: #0f0f0f;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s;
  font-weight: 700;
  color: white;
}

.box:nth-child(1)::before { content: 'R'; }
.box:nth-child(2)::before { content: 'U'; }
.box:nth-child(3)::before { content: 'L'; }
.box:nth-child(4)::before { content: 'E'; }
.box:nth-child(5)::before { content: 'S'; }

.button:hover .box:before {
  transform: translateY(0);
}

/* From Uiverse.io by RiccardoRapelli */ 
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch #input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#input:checked + .slider {
  background-color: black;
}

#input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
} 