/* GLOBAL FONT */
@font-face {
    font-family: 'SeamReaper PXL';
    src: url('Fonts/SeamReaperPXLBoldRegular.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    background-color: black;
    color: white;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

/* --- WRAPPER & LOGO --- */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo {
    max-width: 400px;
    width: 60vw;
    height: auto;
    margin-top: 2vh;
    margin-bottom: 1vh;
}

/* --- TITLE STYLES (UPDATED FOR READABILITY) --- */
h1 {
    width: 100%;
    z-index: 15;
    font-family: 'SeamReaper PXL', sans-serif;
    font-weight: normal; /* Font file is already bold */
    color: white;
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Responsive font size */
    line-height: 1.3;
    margin: 0 0 2vh 0;
    padding: 0 15px; /* Prevent text from touching screen edges */
    
    /* Creative Outline using text-shadow */
    text-shadow: 
        3px 3px 0px #2a0a2a,
        -1px -1px 0 #2a0a2a,  
         1px -1px 0 #2a0a2a,
        -1px  1px 0 #2a0a2a,
         1px  1px 0 #2a0a2a;
}

/* Specific style for the highlighted word */
h1 .highlight {
    color: #158910; /* Kickstarter Green */
    /* Inherits the text-shadow from the parent h1 */
}

/* --- LIGHTNING FLASH EFFECT --- */
#lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    background-color: hsla(277, 100%, 11%, 0.1);
    opacity: 0;
    transition: opacity 0.20s;
}

/* --- SIMPLIFIED BACKGROUND LOGIC --- */
.background-box {
    position: relative; /* Changed from fixed for better flow */
    width: 90vw;
    max-width: 600px; /* Max width for large screens */
    height: 65vh;
    max-height: 700px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-image-rotator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('box.png'); /* Default to vertical image */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;

}

/* --- WITCH CONTAINER (ADJUSTED POSITION) --- */
.witch-container {
    position: fixed;
    bottom: 2vh;
    left: 20%;
    transform: translateX(-50%);
    z-index: 20; /* Above the content wrapper */
    pointer-events: none; /* Let clicks pass through container */
}

.witch-container a {
    pointer-events: auto; /* Make the link itself clickable */
    display: inline-block;
    cursor: pointer;
}

/* --- MEDIA QUERY: Swap background for wide screens --- */
@media (min-width: 768px) {
   .background-image-rotator {
        background-image: url('box-w.png'); /* Swap to horizontal image */
    }
    .background-box {
        max-width: 800px;
        height: 60vh;
    }
}

@media (max-width:1800px) {
    .witch-container {
        position: fixed;
        bottom: 10vh;
        left: 25%;
        transform: translateX(-45%);
        z-index: 20; /* Above the content wrapper */
        pointer-events: none; /* Let clicks pass through container */
    }
    .contact-footer {
        margin-left: 200px;
    }
}


.frankiebackgroundwitch {
    display: block;
    max-width: 40vw;
    max-height: 25vh;
    height: auto;
    opacity: 0.9;
}

/* --- PARTICLE STYLES --- */
.particle {
    position: fixed;
    width: 20px;
    height: 10px;
    pointer-events: none;
    z-index: 25; /* Above witch */
    opacity: 1;
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* --- CTA HUB STYLES --- */
.cta-container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.social-prompt {
    font-family: 'SeamReaper PXL', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: white;
    text-shadow: 
        2px 2px 0 #2a0a2a,
        -1px -1px 0 #2a0a2a,  
         1px -1px 0 #2a0a2a,
        -1px  1px 0 #2a0a2a,
         1px  1px 0 #2a0a2a;
}

/* --- KICKSTARTER BUTTON --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(21, 137, 16, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 20px rgba(21, 137, 16, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(21, 137, 16, 0);
    }
}

.kickstarter-btn {
    font-family: 'SeamReaper PXL', sans-serif;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    background-color: #158910;
    padding: 15px 30px;
    border-radius: 8px;
    border: 3px dashed white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: transform 0.2s ease-out;
}

.kickstarter-btn:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.kickstarter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 80%);
    transition: left 0.6s ease-in-out;
}

.kickstarter-btn:hover::before {
    left: 100%;
}

/* --- SOCIAL MEDIA LINKS --- */
.social-links-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow icons to wrap on small screens */
    justify-content: center;
}

.social-links-container a {
    color: white;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.social-links-container a:hover {
    opacity: 1;
    transform: scale(1.15);
}

.social-links-container svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* --- NEW CONTACT FOOTER STYLES --- */
.contact-footer {
    margin-top: 15px; /* Space between CTA box and footer */
    padding: 10px 15px;
    position: relative;
    z-index: 10;
}

.contact-prompt {
    font-family: 'SeamReaper PXL', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: white;
    margin-bottom: 8px;
    text-shadow:
        2px 2px 0px #2a0a2a,
        -1px -1px 0 #2a0a2a,
        1px -1px 0 #2a0a2a,
        -1px  1px 0 #2a0a2a,
        1px  1px 0 #2a0a2a;
}

.contact-email {
    font-family: 'SeamReaper PXL', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #158910; /* Kickstarter Green to match the highlight */
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
    padding-bottom:10vh;
}

.contact-email:hover {
    color: white;
    text-shadow:
        0 0 5px #158910,
        0 0 10px #158910;
}


/* --- MEDIA QUERY: CTA Hub Layout for Desktop --- */
@media screen and (min-width: 1000px) {
    .witch-container {
      /* Pushes the witch down just enough to clear the buttons on wide displays */
      left: 30%;
    }
}

@media (min-width: 768px) {
   .cta-container {
        gap: 25px;
    }

   .kickstarter-btn {
        font-size: 1.8rem;
    }

   .social-links-container {
        gap: 25px;
    }

   .social-links-container svg {
        width: 38px;
        height: 38px;
    }
}
/* Replaces the kickstarter-btn class */
.encyclopedia-btn {
    display: inline-block;
    background-color: #8b2c8b;
    color: #ffffff;
    padding: 15px 30px;
    font-family: 'SeamReaperPXLBoldRegular', sans-serif; /* Keeping your font */
    font-size: 1.5rem;
    text-decoration: none;
    border: 3px solid #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, background-color 0.2s;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000000; /* Keeping the pixel-art drop shadow look */
     font-family: 'SeamReaper PXL', sans-serif;
}

.encyclopedia-btn:hover {
    transform: scale(1.05);
    background-color: #a536a5; /* Slightly lighter purple on hover */
}