/* style.css */
@font-face {
    font-family: 'Comic Sans MS';
    src: local('Comic Sans MS');
}

body {
    background-color: #ff00ff;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><text x="10" y="25" font-size="20">💩</text></svg>');
    background-repeat: repeat;
    color: #00ff00;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Hide scrollbars for flying pigeons */
}

h1 {
    text-align: center;
    text-shadow: 4px 4px 0px #000, 
                 -2px -2px 0px #000,
                 2px -2px 0px #000,
                 -2px 2px 0px #000;
    font-size: 3rem;
    color: yellow;
    animation: blink 1s infinite alternate;
}

marquee {
    background-color: blue;
    color: yellow;
    font-size: 2rem;
    font-weight: bold;
    border-top: 5px solid lime;
    border-bottom: 5px solid lime;
    padding: 10px 0;
    text-shadow: 2px 2px #000;
}

.top-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.bottom-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: red;
    color: white;
    z-index: 1000;
}

.webcam-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 10;
}

.tv-frame {
    border: 20px ridge #8b4513;
    padding: 10px;
    background: #000;
    position: relative;
    box-shadow: 10px 10px 30px #000;
    transform: rotate(-2deg);
}

.webcam-feed {
    display: block;
    max-width: 600px;
    width: 100%;
    filter: contrast(1.5) sepia(0.5) hue-rotate(-30deg) saturate(2);
}

.vhs-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 2;
    animation: scanlines 5s infinite linear;
}

.rec-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    color: red;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.5rem;
    animation: blink 1s steps(2, start) infinite;
    z-index: 3;
    text-shadow: 2px 2px #000;
}

.timestamp {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    z-index: 3;
    text-shadow: 2px 2px #000;
}

.mid-marquee {
    width: 600px;
    margin-top: -10px;
    background-color: cyan;
    color: magenta;
    border: 3px dashed black;
    transform: rotate(1deg);
    z-index: 12;
}

.pigeon {
    position: absolute;
    width: 150px;
    cursor: pointer;
    z-index: 1; /* Pigeons in the background */
    transition: transform 0.2s;
    user-select: none;
    opacity: 0.8; /* Slightly transparent so they blend into the background better */
}

.pigeon:active {
    transform: scale(1.5) rotate(180deg);
}

@keyframes blink {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}
