/* Early 2000s Chaos Styling */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    background: url('../images/noise.png') repeat;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Glitch Scatter Decorations */
.glitch-scatter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.glitch-img {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: cover;
    opacity: 0.3;
    animation: glitchFloat 8s infinite linear;
}

.glitch-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.glitch-2 {
    top: 60%;
    right: 10%;
    animation-delay: -3s;
}

.glitch-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: -6s;
}

@keyframes glitchFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* Main Content */
main, section, header, footer {
    position: relative;
    z-index: 2;
}

/* Header Styling */
.main-header {
    background: linear-gradient(45deg, #000000, #330000, #660000);
    padding: 20px;
    text-align: center;
    border: 10px solid #ff0000;
    border-style: ridge;
    margin: 10px;
    position: relative;
}

.top-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.top-button {
    background: #ffff00;
    color: #000000;
    border: 2px solid #000000;
    border-style: outset;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-button:hover {
    background: #ffffff;
    border-style: inset;
    transform: translateY(1px);
}

.top-social-buttons {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.glitch-title {
    font-family: 'Impact', Arial Black, sans-serif;
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 
        3px 3px 0px #ff0000,
        -3px -3px 0px #00ff00,
        6px 6px 0px #0000ff;
    animation: titleGlitch 2s infinite;
    margin: 0;
    margin-top: 60px;
    letter-spacing: 8px;
}

@keyframes titleGlitch {
    0% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    50% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

marquee {
    margin-top: 30px;
}

.marquee-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffff00;
    text-shadow: 2px 2px 4px #000000;
}

.clickable-ca {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-ca:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffff00;
    transform: scale(1.1);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.header-video {
    width: 300px;
    height: 200px;
    border: 5px solid #ffffff;
    border-style: outset;
}

.header-image {
    width: 250px;
    height: auto;
    border: 8px solid #ff6600;
    border-style: ridge;
    filter: brightness(1.2) contrast(1.3);
}

.blink-container {
    margin: 20px 0;
}

blink {
    font-size: 2rem;
    color: #ff0000;
    font-weight: bold;
    animation: blinkEffect 1s infinite;
}

@keyframes blinkEffect {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section Styling */
section {
    margin: 30px 10px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.8);
    border: 5px solid #ffff00;
    border-style: groove;
}

.section-title {
    font-family: 'Impact', Arial Black, sans-serif;
    font-size: 2.5rem;
    color: #ffff00;
    text-align: center;
    text-shadow: 3px 3px 6px #000000;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

/* Welcome Transmission */
.transmission-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.prophecy-text {
    flex: 2;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
}

.prophecy-text p {
    margin-bottom: 15px;
}

.signature {
    font-style: italic;
    color: #ff6600;
    text-align: right;
    margin-top: 20px;
}

.creepy-dough {
    flex: 1;
    width: 100%;
    max-width: 300px;
    border: 3px solid #666666;
    filter: sepia(50%) hue-rotate(280deg);
}

/* Revelations */
.revelation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.dough-quote {
    background: #220000;
    border-left: 5px solid #ff0000;
    padding: 15px;
    margin: 20px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.quote-meaning {
    display: block;
    font-size: 0.9rem;
    color: #ff6600;
    font-style: italic;
    margin-top: 10px;
}

.revelation-media {
    text-align: center;
}

.revelation-video {
    width: 100%;
    max-width: 300px;
    border: 3px solid #ff0000;
    margin-bottom: 20px;
}

.poke-me {
    width: 100%;
    max-width: 250px;
    border: 3px solid #00ff00;
}

.revelation-content {
    text-align: center;
}

.revelation-video-main {
    width: 100%;
    max-width: 600px;
    border: 5px solid #ff0000;
    margin: 20px auto;
    display: block;
}

/* Testimonials */
.testimonial-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.testimonial {
    background: #001100;
    border: 2px solid #00ff00;
    padding: 15px;
    border-radius: 0;
    font-family: 'Courier New', monospace;
}

.testimonial.schizo {
    background: #110000;
    border: 3px solid #ff0000;
    border-style: dashed;
    position: relative;
}

.testimonial.schizo::before {
    content: "[CLASSIFIED]";
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ff0000;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(15deg);
}

.testimonial h4 {
    color: #00ff00;
    margin-top: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.testimonial.schizo h4 {
    color: #ff6666;
}

.testimonial.schizo p {
    color: #cccccc;
    line-height: 1.4;
    font-size: 0.95rem;
    text-transform: none;
}

.post-meta {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #333333;
    font-size: 0.7rem;
    color: #666666;
    font-style: italic;
}

.mountain-dough {
    grid-column: span 2;
    width: 100%;
    max-width: 400px;
    justify-self: center;
    border: 5px solid #0066ff;
    margin: 20px 0;
}

.testimonial-video {
    grid-column: span 2;
    width: 100%;
    max-width: 350px;
    justify-self: center;
    border: 3px solid #ffff00;
}

/* Sacred Relics */
.relic-display {
    text-align: center;
}

.relic-display h3 {
    font-family: 'Impact', sans-serif;
    font-size: 2rem;
    color: #ff6600;
    margin-bottom: 15px;
}

.sacred-jacket {
    width: 100%;
    max-width: 400px;
    border: 8px solid #gold;
    border-color: #ffd700;
    border-style: double;
    margin: 20px 0;
}

.relic-warning {
    font-size: 1.5rem;
    color: #ff0000;
    font-weight: bold;
    animation: blinkEffect 2s infinite;
}

/* Knowledge Base */
.knowledge-content {
    text-align: left;
}

.cosmic-column-center {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cosmic-intro {
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Comic Sans MS', cursive;
}

.cosmic-revelation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.image-frame-bordered {
    border: 4px solid #0066ff;
    padding: 8px;
    background: #000000;
    max-width: 400px;
}

.image-frame-bordered img {
    width: 100%;
    height: auto;
    display: block;
}

.revelation-description {
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    max-width: 500px;
    font-family: 'Comic Sans MS', cursive;
    line-height: 1.4;
}

/* Summoning Game Styles */
.summoning-game {
    background: #110000;
    padding: 40px 20px;
    border: 3px solid #ff6600;
    margin: 20px 0;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.chat-window {
    border: 2px solid #666666;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    background: #330000;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #666666;
}

.chat-title {
    color: #ffff00;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #000000;
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #330000;
}

.bot-message, .user-message {
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 5px;
}

.bot-message {
    background: #001a00;
    border-left: 4px solid #00ff00;
}

.user-message {
    background: #1a0000;
    border-left: 4px solid #ff6600;
    text-align: right;
}

.bot-name {
    color: #00ff00;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.user-name {
    color: #ff6600;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.message-text {
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive;
    display: block;
    margin-top: 5px;
}

.chat-input-container {
    display: flex;
    border-top: 2px solid #666666;
}

#chat-input {
    flex: 1;
    padding: 10px;
    background: #222222;
    color: #ffffff;
    border: none;
    font-family: 'Comic Sans MS', cursive;
}

.send-button {
    background: #ff6600;
    color: #000000;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
}

.send-button:hover {
    background: #ff9900;
}

.ritual-status {
    border: 2px solid #666666;
    background: #000000;
    padding: 20px;
    border-radius: 8px;
}

.ritual-status h3 {
    color: #ff6600;
    font-family: 'Comic Sans MS', cursive;
    text-align: center;
    margin-bottom: 20px;
}

.ingredients-list {
    margin-bottom: 20px;
}

.ingredient-item {
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #333333;
    border-radius: 4px;
}

.ingredient-item.collected {
    background: #001100;
    border-color: #00ff00;
}

.summoning-video {
    text-align: center;
    margin-top: 20px;
}

.summoning-video h3 {
    color: #ffff00;
    animation: titleGlitch 2s infinite;
}

.ritual-video {
    width: 100%;
    max-width: 300px;
    border: 3px solid #ff6600;
    border-radius: 8px;
}

.victory-text {
    color: #00ff00;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    margin-top: 15px;
}

/* Mobile responsive for summoning game */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chat-messages {
        height: 250px;
    }
    
    .summoning-game {
        padding: 20px 10px;
    }
}

.cosmic-text {
    text-align: center;
}

.personality-chart {
    width: 100%;
    max-width: 400px;
    border: 4px solid #ffffff;
    margin: 20px 0;
}

.cosmic-videos {
    text-align: center;
}

.cosmic-videos h3 {
    color: #ff6600;
    font-family: 'Impact', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000000;
}

.cosmic-video {
    width: 100%;
    max-width: 300px;
    border: 3px solid #0066ff;
    margin-bottom: 10px;
    display: block;
}

.video-caption {
    font-size: 0.9rem;
    color: #cccccc;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    font-style: italic;
}

/* Parking Prophecy */
.prophecy-content {
    text-align: left;
}

.prophecy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.prophecy-intro {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.prophecy-analysis h3 {
    color: #ff6600;
    font-family: 'Impact', sans-serif;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.analysis-text {
    color: #cccccc;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    margin-bottom: 15px;
}

.evidence-box {
    background: #220000;
    border: 2px solid #ff0000;
    border-style: dashed;
    padding: 15px;
    margin-top: 20px;
    position: relative;
}

.evidence-box::before {
    content: "⚠️ CLASSIFIED ⚠️";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #ff0000;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
}

.evidence-box h4 {
    color: #ff0000;
    margin-top: 0;
    font-family: 'Impact', sans-serif;
    font-size: 0.9rem;
}

.evidence-box p {
    color: #ffcccc;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin: 0;
}

.prophecy-image-section {
    text-align: center;
}

.parking-sign {
    width: 100%;
    max-width: 350px;
    border: 3px solid #ff0000;
    margin-bottom: 15px;
    filter: brightness(1.1) contrast(1.2);
}

.image-caption {
    background: #001100;
    border: 1px solid #00ff00;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.image-caption p {
    margin: 3px 0;
    color: #00ff00;
}

/* The Sacred Pentagram Ritual */
.ritual-section {
    background: linear-gradient(135deg, #001122, #002244);
    border: 5px solid #ff6600;
    border-style: ridge;
    margin: 30px 10px;
    padding: 30px;
}

.ritual-chamber {
    text-align: center;
    position: relative;
}

.ritual-intro {
    font-size: 1.2rem;
    color: #cccccc;
    font-family: 'Courier New', monospace;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px #000000;
}

.pentagram-container {
    position: relative;
    display: inline-block;
    margin: 40px auto;
}

.pentagram {
    animation: pentagramGlow 3s infinite;
    filter: drop-shadow(0 0 10px #ff6600);
}

@keyframes pentagramGlow {
    0%, 100% { filter: drop-shadow(0 0 10px #ff6600); }
    50% { filter: drop-shadow(0 0 20px #ff6600) brightness(1.2); }
}

.drop-zone {
    fill: rgba(255, 102, 0, 0.3);
    stroke: #ff6600;
    stroke-width: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    fill: rgba(255, 102, 0, 0.6);
    stroke-width: 3;
}

.drop-zone.drag-over {
    fill: rgba(255, 255, 0, 0.8);
    stroke: #ffff00;
    stroke-width: 4;
    animation: dropZonePulse 0.5s infinite;
}

.drop-zone.filled {
    fill: rgba(0, 255, 0, 0.8);
    stroke: #00ff00;
    stroke-width: 3;
    animation: filledPulse 2s infinite;
}

@keyframes dropZonePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes filledPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.center-dough {
    display: inline-block;
    width: 120px;
    height: 120px;
    margin: 20px auto;
    position: relative;
}

.ritual-dough-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
}

.dough-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent, #ffff00);
    opacity: 0.3;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.draggable-elements {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.draggable-element {
    background: #330000;
    border: 2px solid #666666;
    border-radius: 10px;
    padding: 10px;
    cursor: grab;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    font-family: 'Comic Sans MS', cursive;
}

.draggable-element:hover {
    border-color: #ff6600;
    background: #440000;
    transform: scale(1.05);
    box-shadow: 0 0 15px #ff6600;
}

.draggable-element:active {
    cursor: grabbing;
}

.draggable-element.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(1.1);
}

.draggable-element.placed {
    opacity: 0.3;
    pointer-events: none;
    background: #006600;
    border-color: #00ff00;
}

.element-emoji {
    font-size: 2rem;
    margin-bottom: 5px;
    display: block;
}

.element-name {
    font-size: 0.8rem;
    color: #cccccc;
    text-align: center;
    line-height: 1;
}

.placed-element {
    position: absolute;
    font-size: 1.5rem;
    z-index: 5;
    animation: elementPlaced 1s ease-out;
    pointer-events: none;
}

@keyframes elementPlaced {
    0% { transform: scale(2) rotate(360deg); opacity: 0; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.ritual-status {
    margin: 30px auto;
    max-width: 400px;
}

.status-bar {
    width: 100%;
    height: 20px;
    background: #000000;
    border: 2px solid #ff6600;
    border-radius: 10px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6600, #ffff00);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 8px;
}

.status-text {
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    color: #ff6600;
    font-size: 1rem;
    text-shadow: 1px 1px 2px #000000;
}

.ritual-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.ritual-button {
    background: #ff6600;
    color: #000000;
    border: 3px solid #000000;
    border-style: outset;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ritual-button:hover {
    background: #ffaa00;
    border-style: inset;
    transform: translateY(2px);
}

.yellow-button {
    background: #ffff00;
    color: #000000;
    border: 3px solid #000000;
    border-style: outset;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.yellow-button:hover {
    background: #ffffff;
    border-style: inset;
    transform: translateY(2px);
}

.social-links {
    text-align: center;
    margin-top: 30px;
}

.social-links p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Footer */
.end-transmission {
    background: linear-gradient(180deg, #000000, #330000);
    border: 8px solid #ff0000;
    border-style: ridge;
    text-align: center;
}

.final-message {
    margin: 30px 0;
}

.final-video {
    width: 100%;
    max-width: 300px;
    border: 5px solid #ffffff;
    margin-bottom: 20px;
}

.final-text {
    font-size: 2rem;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 2px 2px 4px #000000;
    margin: 15px 0;
}

.final-warning {
    font-size: 1.3rem;
    color: #ffff00;
    margin: 10px 0;
}

.final-marquee {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6600;
}

.glitch-footer {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.footer-glitch {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #ffffff;
    opacity: 0.7;
    animation: footerGlitch 3s infinite;
}

@keyframes footerGlitch {
    0%, 90%, 100% { transform: scale(1) rotate(0deg); }
    95% { transform: scale(1.1) rotate(5deg); }
}

.copyright {
    font-size: 0.8rem;
    color: #666666;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
}

/* Responsive Design (keeping the chaos) */
@media (max-width: 768px) {
    .glitch-title {
        font-size: 2.5rem;
    }
    
    .top-buttons {
        justify-content: center;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .transmission-content,
    .revelation-grid,
    .testimonial-container,
    .prophecy-grid,
    .cosmic-grid {
        grid-template-columns: 1fr;
    }
    
    .pentagram-container {
        margin: 20px auto;
    }
    
    .pentagram {
        width: 300px;
        height: 300px;
    }
    
    .draggable-elements {
        gap: 10px;
    }
    
    .draggable-element {
        min-width: 60px;
        padding: 8px;
    }
    
    .element-emoji {
        font-size: 1.5rem;
    }
    
    .element-name {
        font-size: 0.7rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .glitch-footer {
        flex-wrap: wrap;
    }
}

/* Additional early 2000s touches */
::selection {
    background: #ff0000;
    color: #ffffff;
}

a:visited {
    color: #ff00ff;
}

/* Scrollbar styling for authentic feel */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #ff0000;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}
