/* ================================================================
   EXIT WOUND DIARIES — 2000s EMO WEBSITE THEME
   CRT, glitch, noise, blood-red edges, heavy atmosphere
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

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

/* -------------------------------------------------------------
   BODY — NEW BACKGROUND IMAGE + CRT OVERLAY
------------------------------------------------------------- */
body {
    background: url("background.jpg") no-repeat center top fixed,
                linear-gradient(to bottom,#000,#0c0002,#200006,#320008,#3f0009,#320008,#200006,#0c0002,#000);
    background-size: cover;
    color: #e5e5e5;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;

    line-height: 1.7;
    text-shadow: 0 0 2px #000;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
}

/* -------------------------------------------------------------
   SCREEN SHAKE
------------------------------------------------------------- */
@keyframes screenShake {
    0% { transform: translate(0,0); }
    20% { transform: translate(-3px,2px); }
    40% { transform: translate(3px,-2px); }
    60% { transform: translate(-2px,-3px); }
    80% { transform: translate(2px,3px); }
    100% { transform: translate(0,0); }
}
body.shake {
    animation: screenShake 0.5s ease;
}

/* -------------------------------------------------------------
   WRAPPER
------------------------------------------------------------- */
#wrapper {
    width: 92%;
    max-width: 1400px;
    margin: auto;
    padding-bottom: 100px;
}

/* -------------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------------- */
header {
    text-align: center;
    padding: 40px 0 20px;
    border-bottom: 3px double #5a0000;
    box-shadow: 0 0 20px #2d0000;
}

#logo {
    width: 60%;
    max-width: 700px;
    filter: drop-shadow(0 0 12px #9b0000) contrast(140%);
    transition: .3s;
}
#logo:hover {
    transform: scale(1.05) rotate(-1deg);
    filter: hue-rotate(20deg);
}

nav {
    margin-top: 20px;
    padding: 14px;
    background: rgba(20,0,0,.55);
    border: 3px ridge #6a0000;
    box-shadow: inset 0 0 12px #2a0000;
}

nav a {
    color: #ffcbcb;
    margin: 0 18px;
    text-decoration: none;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 8px;
    transition: .3s;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px #ff0000, 0 0 4px #ff6666;
    transform: scale(1.2);
}

/* -------------------------------------------------------------
   HERO
------------------------------------------------------------- */
#hero {
    text-align: center;
    margin-top: 35px;
    padding: 50px 0;
    background: rgba(0,0,0,.55);
    border: 3px solid #600000;
    box-shadow: inset 0 0 20px #300000, 0 0 15px #450000;
    backdrop-filter: blur(2px);
}

#hero h1 {
    font-size: 4rem;
    color: #ffebeb;
    letter-spacing: 3px;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;

    text-shadow: 0 0 12px #ff0000, 0 0 6px #a80000, 2px 2px 2px #000;
    animation: glitch 1s infinite;
}

#hero p {
    font-size: 1.3rem;
    margin-top: 12px;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;

    opacity: .85;
}

/* -------------------------------------------------------------
   BUTTONS
------------------------------------------------------------- */
.btn {
    display: inline-block;
    margin: 20px 10px 0;
    padding: 12px 24px;
    border: 3px outset #8a0000;
    background: linear-gradient(#4a0000,#200000);
    color: #ffe5e5;
    text-decoration: none;
    letter-spacing: 1px;
    transition: .25s;
    position: relative;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;
}

.btn:hover {
    border: 3px inset #ff0000;
    background: linear-gradient(#8a0000,#2a0000);
    transform: scale(1.15) skewX(-2deg);
    text-shadow: 0 0 8px #ff2222;
    animation: sparkEffect .5s;
}

/* -------------------------------------------------------------
   BULLETIN
------------------------------------------------------------- */
#main-bulletin {
    margin-top: 50px;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit,minmax(330px,1fr));
}

.bulletin-block {
    background: rgba(0,0,0,.6);
    border: 3px ridge #4a0000;
    box-shadow: inset 0 0 18px #200000, 0 0 10px #300000;
    padding: 20px;
    transition: .3s;
}
.bulletin-block:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px #500000, inset 0 0 20px #300000;
}

.bulletin-block h2 {
    color: #ffdede;
    font-size: 2rem;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;

    text-shadow: 0 0 8px #ff0000;
    margin-bottom: 12px;
}

/* -------------------------------------------------------------
   FORMS (Mailing List & Guestbook)
------------------------------------------------------------- */

#mailingForm input,
#guestbookForm input,
#guestbookForm textarea {
    width: 95%;
    padding: 8px;
    margin-bottom: 8px;
    background: #000;
    border: 2px solid #5a0000;
    color: white;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;

    outline: none;
    transition: .2s;
}

#mailingForm input:focus,
#guestbookForm input:focus,
#guestbookForm textarea:focus {
    border-color: #ff0000;
    box-shadow: 0 0 8px #ff0000;
}

#mailingForm button,
#guestbookForm button {
    padding: 8px 16px;
    border: 3px outset #7a0000;
    background: #2a0000;
    color: white;
    cursor: pointer;
    transition: .2s;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;
}

#mailingForm button:hover,
#guestbookForm button:hover {
    border: 3px inset #ff0000;
    background: #7a0000;
    transform: scale(1.1);
    animation: sparkEffect .5s;
}

/* Guestbook Entries */
.guestbook-entry {
    background: rgba(10,0,0,.6);
    border: 3px solid #600000;
    padding: 18px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 15px #200000;
    animation: fadeInUp .6s ease-out;
}

.guestbook-entry span {
    color: #ffbbbb;
    font-weight: bold;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;
}

/* -------------------------------------------------------------
   MARQUEE
------------------------------------------------------------- */
#marquee {
    margin-top: 40px;
    border-top: 3px double #5a0000;
    border-bottom: 3px double #5a0000;
    padding: 10px 0;
    background: rgba(0,0,0,.5);
    box-shadow: inset 0 0 8px #400000;
}
marquee {
    color: #ffcece;
    text-shadow: 0 0 6px #ff0000;
    font-size: 1.2rem;

    /* FIXED FONT NAME */
    font-family: 'Special Elite', monospace;
}

/* ============================================================
   FUN, CHAOTIC, 2000s-STYLE ANIMATIONS
   More expressive, more character, more movement
============================================================ */

/* --- CRT GLITCH (Improved) --- */
@keyframes glitch {
    0%   { text-shadow: 2px 0 red, -2px 0 cyan; transform: skewX(0deg); }
    10%  { text-shadow: -4px 0 red, 4px 0 cyan; transform: skewX(4deg); }
    20%  { text-shadow: 3px 0 purple, -3px 0 lime; transform: skewX(-4deg); }
    30%  { text-shadow: -2px 0 red, 2px 0 cyan; }
    40%  { text-shadow: 6px 0 blue, -6px 0 yellow; transform: skewX(6deg); }
    50%  { text-shadow: -5px 0 magenta, 5px 0 cyan; transform: skewX(-3deg); }
    60%  { text-shadow: 2px 0 red, -2px 0 cyan; }
    70%  { text-shadow: -3px 0 purple, 3px 0 lime; }
    80%  { text-shadow: 4px 0 red, -4px 0 cyan; }
    90%  { text-shadow: -2px 0 yellow, 2px 0 blue; }
    100% { text-shadow: 2px 0 red, -2px 0 cyan; transform: skewX(0deg); }
}

/* --- POST-IT WIGGLE (for notes, flyers, taped elements) --- */
@keyframes wiggleNote {
    0%   { transform: rotate(-1deg) translateY(0); }
    25%  { transform: rotate(1.5deg) translateY(-2px); }
    50%  { transform: rotate(-0.5deg) translateY(2px); }
    75%  { transform: rotate(1deg) translateY(-1px); }
    100% { transform: rotate(-1deg) translateY(0); }
}

/* You can apply this to any post-it element: */
.postit, .taped-note {
    animation: wiggleNote 4s ease-in-out infinite;
}

/* --- NEON TWITCH (Links + interactive stuff) --- */
@keyframes neonTwitch {
    0%   { filter: drop-shadow(0 0 2px #ff0000); }
    10%  { filter: drop-shadow(0 0 4px #ff3333); }
    20%  { filter: drop-shadow(0 0 1px #ff0000); }
    25%  { filter: drop-shadow(0 0 6px #ff9999); }
    40%  { filter: drop-shadow(0 0 3px #ff0000); }
    60%  { filter: drop-shadow(0 0 7px #ff6666); }
    80%  { filter: drop-shadow(0 0 2px #ff0000); }
    100% { filter: drop-shadow(0 0 4px #ff3333); }
}

/* Example usage:
nav a:hover { animation: neonTwitch 0.35s infinite; }
*/

/* --- GHOST JUMP (Floating bounce, subtle & cute) --- */
@keyframes ghostJump {
    0%   { transform: translateY(0); }
    25%  { transform: translateY(-6px); }
    50%  { transform: translateY(0); }
    75%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* For buttons or elements you want more personality in */
.btn:hover {
    animation: ghostJump 0.6s ease-out, neonTwitch 0.5s infinite;
}

/* --- PIXEL JITTER (MySpace / Geocities retro shake) --- */
@keyframes pixelJitter {
    0%   { transform: translate(0,0); }
    20%  { transform: translate(1px,-1px); }
    40%  { transform: translate(-1px,1px); }
    60%  { transform: translate(1px,1px); }
    80%  { transform: translate(-1px,-1px); }
    100% { transform: translate(0,0); }
}

/* Add to images, logos, scribbles: */
img:hover {
    animation: pixelJitter 0.3s steps(2) infinite;
}

/* --- ELECTRIC SHOCK FLASH (for clicks / hover impacts) --- */
@keyframes shockFlash {
    0%   { box-shadow: 0 0 0px #ff0000; }
    20%  { box-shadow: 0 0 10px #ff3333; }
    50%  { box-shadow: 0 0 20px #ff0000; }
    80%  { box-shadow: 0 0 10px #ff5555; }
    100% { box-shadow: 0 0 0px #ff0000; }
}

/* -------------------------------------------------------------
   NEOCITIES BADGE (BOTTOM FIXED)
------------------------------------------------------------- */
#neocities-badge {
    position: fixed;
    bottom: 10px;
    right: 10px;
    opacity: 0.9;
    z-index: 9999;
    transition: .3s;
}
#neocities-badge:hover {
    transform: scale(1.1);
}

/* -------------------------------------------------------------
   MOBILE
------------------------------------------------------------- */
nav a {
    display: inline-block; /* ← Ensures horizontal layout */
    color: #ffcbcb;
    margin: 0 18px;
    text-decoration: none;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 8px;
    transition: .3s;
    font-family: 'Special Elite', monospace;
}
@media (max-width:700px){
    #logo { width: 85%; }
    nav a { display: block; margin: 8px 0; }
    #hero h1 { font-size: 3rem; }
    #main-bulletin { grid-template-columns: 1fr; }
}
