:root {
    --primary-color: #1f1f1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#text {
    color: white;
    margin: 2vw;
    font-size: 5vw;
    width: 50vw;
}

.line {
    display: flex;
    justify-content: space-between;
}

.line.center {
    justify-content: center;
    margin-bottom: 2vw;
}

.word {
    color: white;
    font-size: 6vw;
    font-weight: 450;
    font-family: "Space Grotesk", "Rubik", sans-serif;
    margin: 0;
    text-transform: uppercase;
    transition: opacity 250ms ease;
    text-decoration: none;
}

#text:has(.fancy:hover) .word:not(.fancy:hover) {
    opacity: 0.2;
}

#game-link {
    transition: color 1s ease, opacity 250ms ease;
}

#game-link:hover {
    color: #FF00FF;
}

/* Fancy hover animations */
@keyframes float {
    from, to { transform: translateY(0); }
    50% { transform: translateY(-3%); }
}

@keyframes background-pan {
    from { background-position: 1000% center; }
    to { background-position: 0 center; }
}

.fancy span {
    display: inline-block;
}

.fancy > .outer {
    transition: transform 350ms ease;
}

.fancy:hover > .outer {
    transition-duration: 800ms;
}

.fancy:hover > .outer > .inner {
    animation: float 5s ease infinite;
}

.fancy:hover > .outer > .inner > .letter {
    background: linear-gradient(to right, rgb(41, 121, 255), rgb(42, 252, 152), rgb(41, 121, 255));
    background-size: 1000%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: background-pan 150s linear infinite;
}

.fancy:hover > .outer:nth-child(1) {
    transform: translate(-80%, 60%) rotate(8deg);
}
.fancy:hover > .outer:nth-child(2) {
    transform: translate(-40%, 20%) rotate(4deg);
}
.fancy:hover > .outer:nth-child(3) {
    transform: translate(-10%, 60%) rotate(-6deg);
}
.fancy:hover > .outer:nth-child(4) {
    transform: translate(0%, 8%) rotate(-8deg);
}
.fancy:hover > .outer:nth-child(5) {
    transform: translate(0%, -20%) rotate(5deg);
}
.fancy:hover > .outer:nth-child(6) {
    transform: translate(0%, 20%) rotate(-3deg);
}
.fancy:hover > .outer:nth-child(7) {
    transform: translate(0%, -40%) rotate(-5deg);
}
.fancy:hover > .outer:nth-child(8) {
    transform: translate(0%, 15%) rotate(10deg);
}
.fancy:hover > .outer:nth-child(9) {
    transform: translate(0%, -50%) rotate(8deg);
}
.fancy:hover > .outer:nth-child(10) {
    transform: translate(0%, 15%) rotate(-6deg);
}
.fancy:hover > .outer:nth-child(11) {
    transform: translate(50%, -10%) rotate(-3deg);
}
.fancy:hover > .outer:nth-child(12) {
    transform: translate(120%, -30%) rotate(-10deg);
}
.fancy:hover > .outer:nth-child(13) {
    transform: translate(70%, 30%) rotate(13deg);
}
.fancy:hover > .outer:nth-child(14) {
    transform: translate(90%, -10%) rotate(2deg);
}