body {
    margin: 0;
    font-family: 'Georgia', serif;
    color: white;
    background-color: black;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

#slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: flex-start;
    background-color: black;
    margin: min(25vw, 25vh) 0 0 calc(50% - min(25vw, 25vh));
}

#slideshow-container img {
    position: absolute;
    width: min(50vw, 50vh);
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 6s linear;
    pointer-events: none;
}

#slideshow-container img.active {
    opacity: 1;
}

#title-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    max-height: 50vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.word-display {
    position: absolute;
    width: 100%;
    height: calc(min(75vw, 75vh) - 2rem);
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.main-word {
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.9);
    margin-bottom: 0.5rem;
}

.word-key {
    font-size: 2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 8px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
}

.etymology-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.etymology-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.3s ease;
}

.etymology-stage-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.etymology-stage-value {
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    letter-spacing: 0.05em;
}

.pixel {
    display: inline-block;
    opacity: 0;
}

#content {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: calc(50% - min(25vw, 25vh));
    /* margin-top: min(75vh, 75vw); */
    bottom: 3rem;
    padding: 1rem;
    max-width: min(50vw, 50vh);
    line-height: 2rem;
}

#content a {
    text-decoration: none;
    color: inherit;
    border: 2px solid white;
    border-radius: 3px;
    display: inline-table;
}
#content a svg {
    vertical-align: middle;
    padding: 0.5rem;
}
#content p {
    margin: 0.3rem 0;
}

.cursor-effect {
    position: fixed;
    width: min(60vh, 60vw);
    height: min(60vh, 60vw);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: normal;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    background: radial-gradient(circle, 
        rgba(255, 34, 255, 0.6) 0%,
        rgba(42, 230, 255, 0.5) 20%,
        rgba(255, 191, 71, 0.4) 40%,
        rgba(59, 255, 186, 0.3) 60%,
        rgba(255, 247, 0, 0.5) 80%,
        transparent 100%
    );
    filter: blur(30px);
    animation: iridescent 1s linear infinite;
}

@keyframes iridescent {
    0%, 100% {
        filter: blur(25px) hue-rotate(0deg);
    }
    33% {
        filter: blur(30px) hue-rotate(120deg);
    }
    66% {
        filter: blur(22px) hue-rotate(240deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .word-display {
        gap: 0.3rem;
    }

    .main-word {
        font-size: 3rem;
    }
    
    .word-key {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .etymology-stage-value {
        font-size: 1rem;
    }
    
    .etymology-stage-label {
        font-size: 0.6rem;
    }
}