html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: none;
    overflow-x: hidden;
    overflow-y: hidden;
}

* {
    cursor: none !important;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    padding: 20px;
    transition: background 0.5s ease, color 0.5s ease;
}

:root {
    --link-color: #3a8edc;
    --link-hover-color: #2f6fb3;
    --box-border-color: #333;
}

body.dark-theme {
    background-color: #181a1b;
    color: #eee;
    --box-border-color: #888;
    --link-color: #8fc1e3;
    --link-hover-color: #5b9ecb;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.3s;
}

a:hover {
    color: var(--link-hover-color);
}

#custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 2147483647;
    transform: translate(-1px, -1px);
    user-select: none;
    image-rendering: pixelated;
}

#cursor-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    user-select: none;
    image-rendering: pixelated;
}

#current-cursor {
    width: 50px;
    height: 50px;
    border: 2px solid var(--box-border-color);
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.5s ease, border-color 0.5s ease;
    image-rendering: pixelated;
}

#current-cursor img {
    width: 100%;
    height: 100%;
}

#cursor-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 0;
    opacity: 0;
    transform: translateY(8px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 1000ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease, transform 1000ms cubic-bezier(.2, .8, .2, 1);
}

#cursor-selector:hover #cursor-options {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#cursor-options img {
    width: 40px;
    height: 40px;
    border: 1px solid var(--box-border-color);
    background: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1), opacity 260ms ease, border-color 160ms ease, background-color 0.5s ease;
}

#cursor-selector:hover #cursor-options img {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#cursor-options img:nth-child(1) {
    transition-delay: 100ms;
}

#cursor-options img:nth-child(2) {
    transition-delay: 150ms;
}

#cursor-options img:nth-child(3) {
    transition-delay: 250ms;
}

#cursor-options img:nth-child(4) {
    transition-delay: 300ms;
}

#cursor-options img:nth-child(5) {
    transition-delay: 350ms;
}

#cursor-options img:nth-child(6) {
    transition-delay: 400ms;
}

#cursor-options img:nth-child(7) {
    transition-delay: 450ms;
}

#cursor-options img:nth-child(8) {
    transition-delay: 500ms;
}

#cursor-options img:nth-child(9) {
    transition-delay: 550ms;
}

#cursor-options img:nth-child(10) {
    transition-delay: 600ms;
}

#cursor-options img:nth-child(11) {
    transition-delay: 650ms;
}

#cursor-options img:hover {
    border-color: var(--box-border-color);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 15px;
}

.bottom-box {
    width: 100%;
    max-width: 500px;
    height: 200px;
    border: 2px solid var(--box-border-color);
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.top-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 50px;
    border: 2px solid var(--box-border-color);
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.top-box,
.bottom-box {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.top-box-icon {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
    transform: translate(-325%, -86%);
    image-rendering: pixelated;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-box,
.bottom-box {
    opacity: 0;
    animation: fadeInDown 0.5s ease-out forwards;
}

.theme-toggle-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    width: 20px;
    height: 20px;
    transform-origin: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.themeToggle {
    color: #bbb;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-sunMoonThemeToggleBtn {
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-sunMoonThemeToggleBtn .themeToggleInput {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    aspect-ratio: 1;
}

.st-sunMoonThemeToggleBtn svg {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    transform: rotate(40deg);
    font-size: 2em;
}

.st-sunMoonThemeToggleBtn svg .sunMoon {
    transform-origin: center center;
    transition: inherit;
    transform: scale(1);
}

.st-sunMoonThemeToggleBtn svg .sunRay {
    transform-origin: center center;
    transform: scale(0);
}

.st-sunMoonThemeToggleBtn svg mask>circle {
    transition: transform 0.64s cubic-bezier(0.41, 0.64, 0.32, 1.575);
    transform: translate(0px, 0px);
}

.st-sunMoonThemeToggleBtn svg .sunRay2 {
    animation-delay: 0.05s !important;
}

.st-sunMoonThemeToggleBtn svg .sunRay3 {
    animation-delay: 0.1s !important;
}

.st-sunMoonThemeToggleBtn svg .sunRay4 {
    animation-delay: 0.17s !important;
}

.st-sunMoonThemeToggleBtn svg .sunRay5 {
    animation-delay: 0.25s !important;
}

.st-sunMoonThemeToggleBtn svg .sunRay6 {
    animation-delay: 0.29s !important;
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked+svg {
    transform: rotate(90deg);
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked+svg mask>circle {
    transform: translate(16px, -3px);
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked+svg .sunMoon {
    transform: scale(0.55);
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked+svg .sunRay {
    animation: showRay1832 0.4s ease 0s 1 forwards;
}

@keyframes showRay1832 {
    0% {
        transform: scale(0);
    }

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

body.dark-theme .top-box,
body.dark-theme .bottom-box {
    background-color: rgba(35, 39, 42, 0.8);
    border-color: #888;
    color: #eee;
}

body.dark-theme #current-cursor,
body.dark-theme #cursor-options img {
    background-color: #23272a;
}

.st-sunMoonThemeToggleBtn,
.st-sunMoonThemeToggleBtn svg {
    pointer-events: none;
}

.st-sunMoonThemeToggleBtn .themeToggleInput {
    pointer-events: auto;
}

.top-link {
    position: relative;
    color: gray;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    transition: color 0.3s ease;
}

.top-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background-color: gray;
    transition: width 0.3s ease;
}

.top-link:hover::after {
    width: 100%;
}

.top-link.active::after {
    width: 100%;
}

.top-link.active {
    color: var(--link-hover-color);
}

.bottom-box p {
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    text-align: center;
}