@font-face {
    font-family: 'SilkRemington';
    src: url('SilkRemington-SBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

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

html,
body {
    width: 100%;
    height: 100%;
    background: black;
    overflow: hidden;
    cursor: none;
    font-family: 'SilkRemington', Arial, sans-serif;
}

/* Image */
.image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 64vh;
    aspect-ratio: 9/16;
    z-index: 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Words */
.words-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.word {
    position: absolute;
    color: #eaeaea;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    opacity: 0;
    filter: blur(4px) contrast(0.6) brightness(0.6);
    transition:
        opacity 0.15s ease-out,
        filter 0.2s ease-out;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.05);
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.word.visible {
    opacity: 0.75;
    filter: blur(0.5px) contrast(1.2) brightness(1);
}

.word:not(.visible) {
    opacity: 0 !important;
    filter: blur(4px) contrast(0.6) brightness(0.6);
}

.word.bottom-message {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    padding-bottom: 5vh;
}

/* Title container */
.title-container {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.title-container h1 {
    color: #eaeaea;
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    opacity: 1;
    filter: none;
}

.title-container .subtitle {
    color: #eaeaea;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    opacity: 1;
    filter: none;
}

/* Flashlight canvas on top of words */
#flashlight {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
