/* Global Reset & Basic Styling */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 12px;
    background-color: #000080; /* Dark Blue Background */
    color: #FFFFFF; /* White Text */
    background-image: url('https://www.gifss.com/espacio/estrellas/images/estrellas-movimiento-10.gif'); /* Starry Background */
}

/* Main Container */
.container {
    width: 960px;
    margin: 0 auto;
    background-color: #C0C0C0; /* Silver */
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #000000;
    border-top: 2px solid #FFFFFF;
    border-bottom: 2px solid #000000;
    padding: 10px;
    color: #000000;
}

/* Header */
.header {
    background: #0000FF; /* Blue */
    padding: 10px;
    text-align: center;
    border: 2px outset #FFFFFF;
}

.header h1 {
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: 48px;
    color: #FFFF00; /* Yellow */
    text-shadow: 2px 2px 0 #FF0000; /* Red Shadow */
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-5px); }
}

.tagline {
    font-size: 14px;
    color: #FFFFFF;
    font-style: italic;
}

.warning-banner {
    background: #FF0000;
    color: #FFFFFF;
    padding: 5px;
    margin-top: 10px;
    font-weight: bold;
    border: 2px dashed #FFFF00;
    animation: blink 1s step-end infinite;
}

/* Navigation Bar */
.navbar {
    display: flex; 
    justify-content: center;
    padding: 5px;
    background: #808080; /* Gray */
    border-top: 2px solid #FFFFFF;
    border-bottom: 2px solid #000000;
}

.nav-link {
    background-color: #C0C0C0;
    color: #000000;
    padding: 5px 10px;
    text-decoration: none;
    font-weight: bold;
    border: 2px outset #FFFFFF;
    margin: 0 5px;
}

.nav-link:hover {
    background-color: #A0A0A0;
    border-style: inset;
}

.nav-link.active {
    background: #FFFF00; /* Yellow for active link */
    border-style: inset;
}

@keyframes blink {
    50% { visibility: hidden; }
}

/* Subscribe Banner & Marquee */
.subscribe-banner {
    padding: 10px;
    text-align: center;
    background: #008000; /* Green */
    border: 2px solid #000000;
}

.subscribe-text {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 0 #000000;
}

.marquee {
    background: #000000;
    color: #00FF00; /* Green Text */
    padding: 5px;
    font-weight: bold;
    font-size: 14px;
}

.marquee span {
    display: inline-block;
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Krzysiek Ad Overlay */
.krzysiek-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 0, 0.95); /* Yellow, mostly opaque */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.krzysiek-ad-text {
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: 6em;
    font-weight: 900;
    color: red;
    text-shadow: 4px 4px 0 black;
    text-align: center;
    animation: ad-text-bounce 1s infinite alternate;
}

@keyframes ad-text-bounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.krzysiek-ad-close {
    margin-top: 40px;
    padding: 15px 30px;
    font-size: 2em;
    background: red;
    color: yellow;
    border: 5px outset black;
    cursor: pointer;
}

/* Pop-ups */
.popup {
    position: fixed;
    width: 80vw;
    height: 80vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #C0C0C0;
    border: 10px solid red;
    padding: 20px;
    font-weight: bold;
    z-index: 1000;
    font-size: 5em; /* Znacznie większa czcionka */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.close-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #C0C0C0;
    color: #000000;
    border: 1px outset #FFFFFF;
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    line-height: 12px;
}

.close-btn:active {
    border-style: inset;
}

/* Sections */
.news-section,
.info-section,
.ads-section {
    background: #E0E0E0;
    border: 2px inset #FFFFFF;
    padding: 10px;
    margin: 10px 0;
}

.news-section h2,
.info-section h2,
.ads-section h2 {
    font-family: "Arial Black", Gadget, sans-serif;
    color: #000080;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #808080;
    padding-bottom: 5px;
}

/* Content Blocks */
.news-grid, .info-section, .fake-ads, .hot-topics, .stats-grid, .chicken-types, .facts-list, .gallery-grid, .cities-grid, .attractions-list, .voivodeships-grid, .forum-categories, .threads-list, .rules-list, .contact-info-grid, .social-media, .faq-list {
    display: block;
}

.news-item, .info-box, .ad, .topic-card, .stat-box, .type-card, .facts-list li, .gallery-item, .city-card, .attractions-list li, .voivodeship, .category-card, .thread, .rule, .contact-info-card, .social-link, .faq-item {
    background: #D0D0D0;
    border: 1px solid #808080;
    padding: 10px;
    margin-bottom: 10px;
}

.news-item h3, .info-box h3, .topic-card h4, .stat-number, .type-card h4, .gallery-item, .city-card h4, .voivodeship, .category-card h3, .thread-header h4, .rule h4, .contact-info-card h3, .social-link h3, .faq-item h4 {
    color: #FF0000;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-box ul { list-style-type: square; margin-left: 20px; }

#weather, #currency { background: #FFFFFF; padding: 10px; border: 1px inset #808080; }

.ad { animation: adBlink 0.5s step-end infinite; }
@keyframes adBlink { 50% { color: #0000FF; background: #00FF00; } }

/* Table Styles */
.info-table { width: 100%; border-collapse: collapse; border: 1px solid #000; }
.info-row { display: table-row; }
.info-label, .info-value { display: table-cell; padding: 5px; border: 1px solid #808080; }
.info-label { font-weight: bold; background-color: #B0B0B0; }

/* Form Styles */
.contact-form, .auth-container { background: #C0C0C0; border: 2px outset #FFFFFF; padding: 20px; }
.form-group input, .form-group select, .form-group textarea { width: 98%; padding: 5px; border: 1px inset #808080; font-family: Tahoma, Verdana, sans-serif; font-size: 12px; }
.submit-btn, .social-btn { background-color: #C0C0C0; color: #000000; padding: 5px 10px; text-decoration: none; font-weight: bold; border: 2px outset #FFFFFF; margin: 5px; cursor: pointer; }
.submit-btn:active, .social-btn:active { border-style: inset; }

/* Auth Page Specifics */
.auth-tabs { display: flex; gap: 5px; margin-bottom: 10px; }
.auth-tab { flex: 1; padding: 8px; background: #A0A0A0; border: 2px outset #FFFFFF; cursor: pointer; font-weight: bold; text-align: center; }
.auth-tab.active { background: #E0E0E0; border-style: inset; }
.error-message, .success-message { padding: 10px; border: 1px solid #000; margin-bottom: 10px; font-weight: bold; }
.error-message { background-color: #FF8080; color: #000; }
.success-message { background-color: #80FF80; color: #000; }

/* Responsive - Simplified for Retro Look */
@media (max-width: 980px) {
    .container { width: auto; margin: 0 5px; border: none; padding: 5px; }
    body { font-size: 14px; }
    .navbar { flex-direction: column; align-items: center; }
    .nav-link { margin-bottom: 5px; }
    .header h1 { font-size: 32px; }
    .subscribe-text { font-size: 18px; }
}
