/* Phase 2 CSS: Fog Exposure Animations & Spooky 90's Aesthetic */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 5px #ff003c; }
    50% { box-shadow: 0 0 25px #ff003c; }
    100% { box-shadow: 0 0 5px #ff003c; }
}

@keyframes text-flicker {
    0% { opacity: 1; }
    23% { opacity: 1; }
    24% { opacity: 0.2; }
    26% { opacity: 0.2; }
    27% { opacity: 1; }
    70% { opacity: 1; }
    71% { opacity: 0.6; }
    72% { opacity: 0.1; }
    73% { opacity: 1; }
    90% { opacity: 1; }
    91% { opacity: 0.5; }
    92% { opacity: 1; }
}

@keyframes marquee-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.exposed-to-fog {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
    filter: hue-rotate(90deg) contrast(150%);
}

.fog-content {
    color: #ff003c;
    font-family: 'VT323', monospace;
    text-shadow: 2px 2px #000;
}

/* Spooky 90's Fog Pages */
.fog-page {
    background-color: #050000 !important;
    background-image: radial-gradient(#1a0005 15%, transparent 16%), radial-gradient(#1a0005 15%, transparent 16%) !important;
    background-size: 16px 16px !important;
    background-position: 0 0, 8px 8px !important;
    color: #ff3333 !important;
    font-family: 'VT323', monospace !important;
    padding: 25px !important;
    min-height: 100%;
    border: 4px double #ff003c;
    position: relative;
    overflow-x: hidden;
}

.fog-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    color: #ff003c;
    text-shadow: 0 0 10px #ff003c, 2px 2px 0px #000;
    letter-spacing: 3px;
    animation: text-flicker 3s infinite;
}

.fog-subtitle {
    font-size: 1.5rem;
    text-align: center;
    color: #ffcc00;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.fog-text {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #ff8888;
    text-shadow: 1px 1px 1px #000;
}

/* Blinking & Marquee */
.blink-text {
    animation: blinker 0.8s linear infinite;
}

.marquee-container {
    background: #1a0000;
    border: 2px inset #ff003c;
    padding: 5px;
    overflow: hidden;
    white-space: nowrap;
    margin: 15px 0;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 15s linear infinite;
    color: #ff3333;
    font-size: 1.3rem;
}

/* 90's Retro Elements */
.construction-banner {
    background: repeating-linear-gradient(
        -45deg,
        #ffe600,
        #ffe600 10px,
        #000 10px,
        #000 20px
    );
    height: 15px;
    width: 100%;
    margin: 15px 0;
    border: 1px solid #ff003c;
}

.retro-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #000;
    border: 3px outset #ff003c;
}

.retro-table th, .retro-table td {
    border: 2px inset #ff003c;
    padding: 10px;
    text-align: left;
    font-size: 1.2rem;
}

.retro-table th {
    background: #2a0005;
    color: #ffcc00;
}

/* Hit Counter */
.hit-counter-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.hit-counter-label {
    font-size: 1.2rem;
    color: #ffcc00;
}

.hit-counter {
    background: #111;
    border: 2px inset #555;
    padding: 5px 10px;
    display: inline-flex;
    gap: 3px;
}

.hit-digit {
    background: #000;
    color: #ff003c;
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    padding: 0 5px;
    border: 1px solid #333;
    text-shadow: 0 0 5px #ff003c;
}

/* Guestbook */
.guestbook-box {
    border: 3px outset #ff003c;
    background: #100003;
    padding: 15px;
    margin-top: 25px;
}

.guestbook-title {
    font-size: 1.6rem;
    color: #ffcc00;
    border-bottom: 2px double #ff003c;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.guestbook-input {
    background: #000;
    border: 2px inset #ff003c;
    color: #ff8888;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 8px;
    outline: none;
}

.guestbook-input::placeholder {
    color: #551111;
}

.guestbook-submit {
    background: #ff003c;
    color: #000;
    border: 2px outset #ff003c;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 8px;
    cursor: pointer;
}

.guestbook-submit:hover {
    background: #ffcc00;
    border-color: #ffcc00;
}

.guestbook-entries {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 2px inset #ff003c;
    padding: 10px;
    background: #000;
}

.guestbook-entry {
    border-bottom: 1px dashed #55000a;
    padding-bottom: 8px;
}

.guestbook-meta {
    font-size: 1.1rem;
    color: #ffcc00;
    margin-bottom: 3px;
}

.guestbook-msg {
    font-size: 1.2rem;
    color: #ff8888;
}

/* Webring */
.webring-banner {
    border: 2px dashed #ffcc00;
    background: #1a0a00;
    padding: 12px;
    text-align: center;
    margin: 25px 0;
}

.webring-title {
    font-size: 1.2rem;
    color: #ffcc00;
    margin-bottom: 8px;
}

.webring-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
}

.webring-link {
    color: #ff3333;
    text-decoration: underline;
    cursor: pointer;
}

.webring-link:hover {
    color: #ffcc00;
}

/* Interactive Elements */
.glitch-image-box {
    text-align: center;
    margin: 20px 0;
    border: 2px solid #ff003c;
    background: #000;
    padding: 10px;
    cursor: pointer;
}

.glitch-ascii {
    font-family: monospace;
    font-size: 8px;
    line-height: 8px;
    white-space: pre;
    color: #ff3333;
    display: inline-block;
    text-align: left;
    user-select: none;
}

.glitch-ascii:hover {
    color: #ffcc00;
    text-shadow: 0 0 5px #ffcc00;
}

/* Soundboard */
.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.sound-btn {
    background: #2a0005;
    border: 3px outset #ff003c;
    color: #ff3333;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    text-align: center;
}

.sound-btn:hover {
    background: #ff003c;
    color: #000;
}

.sound-btn.active {
    background: #ffcc00;
    color: #000;
    border-style: inset;
}

/* Maze Game */
.maze-container {
    border: 3px outset #ff003c;
    background: #000;
    padding: 15px;
    margin: 20px 0;
}

.maze-screen {
    border: 2px inset #ff003c;
    background: #080001;
    padding: 15px;
    min-height: 120px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #ff8888;
}

.maze-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.maze-btn {
    flex: 1 1 40%;
    background: #1a0000;
    border: 2px outset #ff003c;
    color: #ff3333;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 8px;
    cursor: pointer;
}

.maze-btn:hover {
    background: #ff003c;
    color: #000;
}

