body {
    margin: 0;
    padding: 0;
    background: #F0F8FF;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

/* Links styling */
a:link {
    color: #0066FF;
    text-decoration: underline;
}

a:visited {
    color: #666666;
    text-decoration: underline;
}

a:hover {
    color: #CC0000;
    text-decoration: none;
}

a:active {
    color: #FF0000;
}

p {
    margin-top: 4px;
    margin-bottom: 4px;
}

ul {
    margin: 6px 0 12px 24px;
    padding-left: 6px;
}

li {
    margin: 3px 0;
}

/* Blink effect for important text (removed unused animation) */

/* Marquee style scrolling text */
.scroll {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.scroll span {
    display: inline-block;
}

/* Cool button styles */
.coolbutton {
    background: #CCCCCC; /* fallback */
    background: linear-gradient(to bottom, #CCCCCC, #999999);
    border: 2px outset #CCCCCC;
    padding: 2px 8px;
    font-family: Arial;
    font-size: 11px;
}

.coolbutton:hover {
    background: #DDDDDD; /* fallback */
    background: linear-gradient(to bottom, #DDDDDD, #AAAAAA);
}

.coolbutton:active {
    border: 2px inset #CCCCCC;
    background: #999999; /* fallback */
    background: linear-gradient(to bottom, #999999, #CCCCCC);
}


/* Glow effect for headers */
.glow {
    text-shadow: 0 0 5px #00FFFF, 0 0 10px #00FFFF, 0 0 15px #00FFFF;
}

/* 3D text effect */
.text3d {
    color: #FFFFFF;
    text-shadow: 1px 1px 0px #000000, 2px 2px 0px #333333, 3px 3px 0px #666666;
}

/* Under construction gif style */
.construction {
    background: #FFFF00; /* fallback */
    background: repeating-linear-gradient(
        45deg,
        #FFFF00,
        #FFFF00 10px,
        #000000 10px,
        #000000 20px
    );
    color: #FF0000;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    border: 2px solid #FF0000;
    animation: construction-blink 0.5s infinite;
}

@keyframes construction-blink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Visitor counter style */
.counter {
    background: #000000;
    color: #00FF00;
    font-family: "Courier New", monospace;
    padding: 2px 5px;
    border: 1px solid #00FF00;
    display: inline-block;
    font-size: 12px;
}

/* Matrix-style text effect */
.matrix {
    background: #000000;
    color: #00FF00;
    font-family: "Courier New", monospace;
    padding: 5px;
    border: 1px solid #00FF00;
}

/* Fire text effect */
.fire {
    color: #FF4500;
    text-shadow: 0 0 5px #FF0000, 0 0 10px #FF4500, 0 0 15px #FF6600;
}

/* Metallic button */
.metal {
    background: #E8E8E8; /* fallback */
    background: linear-gradient(to bottom, #E8E8E8, #A0A0A0, #808080, #606060);
    border: 2px outset #C0C0C0;
    color: #000000;
    text-shadow: 1px 1px 0px #FFFFFF;
    padding: 3px 10px;
}

/* Comic Sans MS because why not */
.comic {
    font-family: "Comic Sans MS", cursive;
    color: #FF00FF;
}

/* Netscape-style HR */
hr.netscape {
    height: 3px;
    background: #FF0000; /* fallback */
    background: linear-gradient(to right, #FF0000, #00FF00, #0000FF);
    border: none;
}

/* Table cell hover effect - disabled for better readability */
/* td:hover {
    background-color: #FFFFCC !important;
    transition: background-color 0.3s;
} */

/* Scrollbar styling for IE */
body {
    scrollbar-face-color: #CCCCCC;
    scrollbar-arrow-color: #666666;
    scrollbar-track-color: #EEEEEE;
    scrollbar-shadow-color: #999999;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-3dlight-color: #DDDDDD;
    scrollbar-darkshadow-color: #333333;
}

/* Flash-style animations */
.flash-logo {
    animation: flash-pulse 3s infinite;
    text-shadow: 0 0 10px #FFFF00, 0 0 20px #FFFF00, 0 0 30px #FFFF00;
}

@keyframes flash-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Floating elements (removed unused animation) */

/* Spinning CD animation */
.cd-spin {
    animation: cd-rotate 2s linear infinite;
    display: inline-block;
}

@keyframes cd-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hit Counter Styles - optimized */
.counter-display {
    text-shadow: 0 0 8px #00FF00;
    letter-spacing: 3px;
    font-weight: bold;
    color: #00FF00;
    /* Убираем тяжелую анимацию - она грузит браузер */
}

/* Простой hover эффект вместо постоянной анимации */
.counter-display:hover {
    text-shadow: 0 0 12px #00FF00, 0 0 20px #00FF00;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Enhanced blink effect */
.blink {
    animation: enhanced-blink 1.5s infinite;
    color: #FFFF00;
    font-weight: bold;
}

@keyframes enhanced-blink {
    0% { opacity: 1; color: #FFFF00; }
    25% { opacity: 1; color: #FFFF00; }
    50% { opacity: 0; color: #FFFF00; }
    75% { opacity: 0; color: #FF6600; }
    100% { opacity: 1; color: #FF6600; }
}

/* Стили для хроник */
.chronicle-item {
    border: 1px solid #CCCCCC;
    background-color: #F8F8F8;
    background: linear-gradient(to bottom, #F8F8F8, #F0F0F0);
    padding: 10px;
    margin: 5px 0;
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Мем-лента */
.memes-feed {
    background: #FFFFFF;
    padding: 8px;
}

.memes-upload {
    border: 2px dashed #003366;
    background: #F5F8FF;
    padding: 12px;
    margin-bottom: 16px;
}

.memes-upload-drop {
    margin-top: 8px;
    padding: 20px;
    background: #FFFFFF;
    border: 2px dashed #9999CC;
    text-align: center;
}

.memes-upload-drop.is-dragover {
    background: #E0ECFF;
    border-color: #003366;
}

.memes-upload-click {
    color: #CC0000;
    text-decoration: underline;
}

.memes-upload-status {
    margin-top: 8px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #003366;
}

.memes-list {
    display: block;
}

.memes-item {
    background: #FFFFFF;
    margin: 12px 0;
    padding: 6px;
}

.memes-img-preview {
    border: 1px solid #FFFFFF;
    height: auto;
    max-width: 100%;
    max-height: 600px;
    display: block;
    margin: 0 auto;
}

.memes-body {
    padding: 8px;
    position: relative;
}

.memes-image-frame {
    padding: 4px;
}

.memes-meta {
    margin-top: 6px;
    padding: 4px;
}

.memes-separator {
    height: 1px;
    background: #CCCCCC;
    margin: 8px 0;
}

.memes-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #CC0000;
    color: #FFFFFF;
    border: 1px solid #660000;
    font-family: "Verdana";
    font-size: 10px;
    padding: 4px 6px;
    cursor: pointer;
}

.memes-delete-btn:hover {
    background: #FF0000;
}

.memes-delete-btn:active {
    background: #990000;
}

.memes-like-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(to bottom, #FFE680, #FFCC00);
    color: #003366;
    border: 1px solid #B58B00;
    border-radius: 6px;
    font-family: "Verdana";
    font-size: 11px;
    padding: 6px 14px;
    cursor: pointer;
    box-shadow: 1px 1px 0 #FFFFFF inset, 1px 1px 3px rgba(0,0,0,0.2);
}

.memes-like-btn:hover {
    background: linear-gradient(to bottom, #FFF0A6, #FFD94D);
}

.memes-like-btn:active {
    background: linear-gradient(to bottom, #FFC940, #FFB700);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.memes-like-btn.is-liked,
.memes-like-btn.is-liked:hover,
.memes-like-btn.is-liked:active {
    background: linear-gradient(to bottom, #EEEEEE, #D9D9D9);
    border-color: #AAAAAA;
    cursor: default;
    color: #666666;
}

.memes-pagination {
    margin-top: 12px;
    text-align: center;
    font-family: "Verdana";
    font-size: 11px;
}

.memes-page-btn,
.memes-page-current {
    display: inline-block;
    margin: 2px 4px;
    padding: 4px 8px;
    border: 1px solid #003366;
    background: #F0F6FF;
    color: #003366;
    text-decoration: none;
}

.memes-page-btn:hover {
    background: #CCDDFF;
}

.memes-page-btn.disabled {
    background: #E5E5E5;
    color: #999999;
    border-color: #CCCCCC;
    cursor: default;
}

.nav-current {
    color: #999999;
    text-decoration: none;
}

.proudly-made-with-box {
    width: 100%;
    table-layout: fixed;
}

.proudly-made-with-box td {
    width: 50%;
    height: 40px;
    vertical-align: middle;
}

.proudly-made-with-box img {
    max-width: 100%;
    max-height: 30px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.memes-empty {
    text-align: center;
    padding: 30px;
    background: repeating-linear-gradient(45deg, #EEEEEE, #EEEEEE 10px, #FFFFFF 10px, #FFFFFF 20px);
    border: 2px dashed #CCCCCC;
}

.chronicle-item:hover {
    background: linear-gradient(to bottom, #FAFAFA, #F2F2F2);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transform: translateX(2px);
}

.chronicle-timestamp {
    color: #003366;
    font-weight: bold;
    font-size: 11px;
}

.chronicle-mood {
    font-size: 14px;
    margin-left: 5px;
}

.chronicle-text {
    margin-top: 3px;
    color: #333333;
    line-height: 1.4;
}

/* Стили для новостей сайта */
.news-item {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px dotted #CCCCCC;
}

.news-date {
    color: #003366;
    font-weight: bold;
    vertical-align: top;
    padding-right: 10px;
}

.news-text {
    color: #333333;
    margin-left: 10px;
}

/* Стили для статей */
.article-item {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #DDDDDD;
}

.article-title {
    font-size: 14px;
    margin-bottom: 3px;
}

.article-meta {
    font-size: 11px;
    color: #666666;
    margin-bottom: 5px;
}

.article-excerpt {
    color: #444444;
    line-height: 1.3;
}

/* Ретро эмодзи стиль */
.retro-emoji {
    font-size: 16px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
}

/* Навигационные ссылки в стиле 2000х */
.nav-link {
    font-size: 11px;
    text-decoration: none;
    color: #0066FF;
    font-weight: bold;
}

.nav-link:hover {
    color: #CC0000;
    text-decoration: underline;
}

/* Теги для статей */
.tag {
    background: #E0E0E0;
    color: #333333;
    padding: 1px 4px;
    font-size: 10px;
    border-radius: 2px;
    margin-right: 3px;
}

.proudly-made-with {
    position: absolute;
    bottom: 0;
    width: 100%;
}
