/**
 * NotFrankLisk.com - Mystery Door Page Styles
 *
 * Interactive door puzzle with riddle reveal animation.
 * Extracted from notfrank/index.template.html for maintainability.
 */

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    font-family: 'Georgia', serif;
    -webkit-tap-highlight-color: transparent;
}

.door-container {
    position: relative;
    cursor: pointer;
    transform: translateX(12%);
}

.door-img {
    position: relative;
    z-index: 1;
    height: clamp(300px, 70vh, 550px);
    width: auto;
    transition: opacity 0.4s ease, transform 0.35s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Switching animation */
.door-img.switching {
    opacity: 0;
    transform: scale(0.95);
}

/* Riddle overlay - centered on viewport */
.riddle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 10;
    background: #8BA4B4;
    padding: 24px 28px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    max-width: 300px;
    text-align: center;
    color: #1a1a1a;
    font-family: 'IM Fell English', serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.5;
    letter-spacing: 0.01em;
    opacity: 0;
    transition: opacity 1.2s ease, transform 0.4s ease;
    pointer-events: none;
    cursor: pointer;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 0, 0, 0.2);
}

.riddle.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.riddle.visible::before {
    content: '?';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'IM Fell English', serif;
    font-size: 14px;
    font-style: normal;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3em;
}

/* Subtle pulse hint on first load */
@keyframes subtleHint {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

.door-img.hint {
    animation: subtleHint 2.5s ease-in-out 1;
}

@media (prefers-reduced-motion: reduce) {
    .door-img, .riddle, .tendril {
        transition: none;
        animation: none;
    }
}
