/* =====================================================
   Домашняя страничка Dim@n'а :: Новосибирск, 2001
   ===================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #000022;
    color: #c0c0c0;
    font-family: "Times New Roman", Times, serif;
    font-size: 13px;
    line-height: 1.55;
}

/* Звёздный фон */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at  5% 10%, rgba(255,255,255,.8) 0%,transparent 100%),
        radial-gradient(1px 1px at 15% 42%, rgba(200,200,255,.7) 0%,transparent 100%),
        radial-gradient(1px 1px at 27% 78%, rgba(255,255,255,.9) 0%,transparent 100%),
        radial-gradient(1px 1px at 38% 25%, rgba(255,255,200,.8) 0%,transparent 100%),
        radial-gradient(1px 1px at 50% 65%, rgba(255,255,255,.6) 0%,transparent 100%),
        radial-gradient(1px 1px at 62% 15%, rgba(200,200,255,.9) 0%,transparent 100%),
        radial-gradient(1px 1px at 73% 58%, rgba(255,255,255,.7) 0%,transparent 100%),
        radial-gradient(1px 1px at 82% 33%, rgba(255,255,200,.8) 0%,transparent 100%),
        radial-gradient(1px 1px at 91% 72%, rgba(255,255,255,.5) 0%,transparent 100%),
        radial-gradient(1px 1px at  8% 55%, rgba(255,255,255,.8) 0%,transparent 100%),
        radial-gradient(1px 1px at 43% 88%, rgba(200,200,255,.6) 0%,transparent 100%),
        radial-gradient(1px 1px at 67% 95%, rgba(255,255,255,.7) 0%,transparent 100%),
        radial-gradient(2px 2px at 20%  5%, rgba(170,170,255,.9) 0%,transparent 100%),
        radial-gradient(2px 2px at 58% 82%, rgba(255,255,170,.8) 0%,transparent 100%),
        radial-gradient(2px 2px at 79% 20%, rgba(170,255,255,.7) 0%,transparent 100%);
    z-index: -1;
    pointer-events: none;
}

/* ========== Анимации ========== */

@keyframes blink        { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes spin         { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes float-ud     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes stripe-move  { from{background-position:0 0} to{background-position:40px 0} }

@keyframes rainbow {
    0%  {color:#ff2222} 15%{color:#ff8800} 30%{color:#ffff00}
    45% {color:#00ff00} 60%{color:#00ccff} 75%{color:#8800ff}
    90% {color:#ff00cc} 100%{color:#ff2222}
}

@keyframes glow-green {
    0%,100%{text-shadow:0 0 4px #00ff00}
    50%    {text-shadow:0 0 14px #00ff00,0 0 28px #00ff00}
}

@keyframes glow-yellow {
    0%,100%{text-shadow:0 0 4px #ffdd00}
    50%    {text-shadow:0 0 14px #ffdd00,0 0 28px #ffdd00}
}

.blink   { animation: blink 1s step-end infinite; }
.rainbow { animation: rainbow 3.5s linear infinite; font-weight:bold; }
.spin    { display:inline-block; animation: spin 2.5s linear infinite; }
.float   { display:inline-block; animation: float-ud 2s ease-in-out infinite; }
.glow    { color:#00ff00; animation: glow-green 2s ease-in-out infinite; }

/* ========== Шапка ========== */

.site-header {
    background: linear-gradient(to bottom, #000044, #000099, #000044);
    border-bottom: 3px solid #0044cc;
    padding: 14px 10px 10px;
    text-align: center;
}

.site-title {
    font-family: "Comic Sans MS", Impact, cursive;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
}

.site-updated {
    font-size: 11px;
    color: #6666bb;
    margin-top: 6px;
    font-family: "Courier New", monospace;
}

/* ========== Навигация ========== */

.navbar {
    background: #000055;
    border-bottom: 2px solid #003399;
    padding: 5px;
    text-align: center;
}

.navbar a {
    color: #00ccff;
    text-decoration: none;
    font-family: "Comic Sans MS", cursive;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 9px;
    margin: 0 1px;
    border: 1px solid transparent;
    display: inline-block;
}

.navbar a:hover {
    color: #ffff00;
    border-color: #ffff00;
    background: #000077;
}

/* ========== Бегущая строка ========== */

.marquee-bar {
    background: #000033;
    border-top: 1px solid #003399;
    border-bottom: 1px solid #003399;
    padding: 3px 0;
    overflow: hidden;
}

/* ========== Основной макет ========== */

.wrapper {
    width: 800px;
    margin: 8px auto;
}

.sidebar   { width: 158px; vertical-align: top; padding-right: 8px; }
.main-col  { vertical-align: top; padding-left: 8px; border-left: 1px solid #001166; }

/* ========== Секции ========== */

.sec-head {
    background: linear-gradient(to right, #000055, #0000aa, #000055);
    color: #ffff00;
    font-family: "Comic Sans MS", cursive;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 10px;
    border: 1px solid #003399;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.sec-body  { padding: 4px 6px 14px; color: #cccccc; }

.divider {
    height: 1px;
    background: linear-gradient(to right,transparent,#003399,#00aaff,#003399,transparent);
    margin: 4px 0 8px;
}

/* ========== Боковая панель — виджеты ========== */

.photo-box {
    width: 124px;
    height: 152px;
    border: 2px solid #00aa00;
    background: #001100 repeating-linear-gradient(
        45deg, transparent, transparent 8px,
        rgba(0,70,0,.4) 8px, rgba(0,70,0,.4) 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #00cc00;
    font-size: 10px;
    text-align: center;
    margin: 0 auto 8px;
    font-family: "Courier New", monospace;
    gap: 4px;
}

.stripe-bar {
    width: 100%; height: 16px;
    background: repeating-linear-gradient(
        45deg, #ffcc00, #ffcc00 8px, #000 8px, #000 16px);
    animation: stripe-move .4s linear infinite;
}

.construction-box {
    border: 2px dashed #ffaa00;
    background: #110000;
    padding: 6px;
    text-align: center;
    margin: 5px 0;
    font-family: "Comic Sans MS", cursive;
    font-size: 11px;
    color: #ffcc00;
    font-weight: bold;
}

.counter-box {
    border: 2px inset #666;
    background: #000;
    padding: 6px;
    text-align: center;
    margin: 7px 0;
}

.counter-num {
    font-family: "Courier New", monospace;
    font-size: 20px;
    font-weight: bold;
    color: #ff3300;
    letter-spacing: 2px;
    border: 1px inset #555;
    padding: 2px 6px;
    display: block;
}

.counter-lbl {
    font-size: 9px;
    color: #666;
    font-family: Arial, sans-serif;
    margin-top: 3px;
    display: block;
}

/* ========== Кнопки 88×31 ========== */

.btn88 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 88px;
    height: 31px;
    border: 1px solid #888;
    font-size: 7px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 3px auto;
    overflow: hidden;
    text-decoration: none;
    gap: 1px;
    line-height: 1.2;
}

.btn-mine  { background:linear-gradient(135deg,#000022,#000066); color:#00ffff; border-color:#0066ff; }
.btn-linux { background:linear-gradient(135deg,#222,#000); color:#fff; border-color:#ffcc00; }
.btn-best  { background:linear-gradient(to right,#cc0000,#880000); color:#ffff00; }
.btn-ns    { background:linear-gradient(to bottom,#003399,#0055bb); color:#fff; }
.btn-anime { background:linear-gradient(135deg,#330033,#660066); color:#ff88ff; border-color:#aa44aa; }

/* ========== Значок NEW ========== */

.new-badge {
    display: inline-block;
    background: #cc0000;
    color: #ffff00;
    font-size: 9px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    padding: 1px 4px;
    animation: blink .6s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
    border: 1px solid #ff5555;
}

/* ========== Списки и ссылки ========== */

a          { color: #0099ff; }
a:visited  { color: #9900ff; }
a:hover    { color: #ffff00; }

.hobby-list        { list-style: none; }
.hobby-list li     { padding: 4px 0; border-bottom: 1px dotted #002200; }
.hobby-list li::before { content: '✦ '; color: #ffcc00; }

.specs-table       { width: 100%; border-collapse: collapse; font-size: 12px; font-family: "Courier New", monospace; }
.specs-table td    { padding: 3px 8px; border: 1px solid #003300; }
.spec-name         { color: #00cc00; background: #001100; width: 155px; }
.spec-val          { color: #88ff88; background: #000900; }

.links-list        { list-style: none; }
.links-list li     { padding: 5px 0; border-bottom: 1px dashed #002244; }
.links-list li a   { color: #00ccff; font-weight: bold; text-decoration: none; font-size: 14px; }
.links-list li a:hover { color: #ffff00; }
.link-desc         { display: block; font-size: 11px; color: #888; margin: 2px 0 0 10px; }

/* ========== Гостевая книга CTA ========== */

.gbook-cta {
    text-align: center;
    padding: 14px;
    border: 2px solid #003399;
    background: linear-gradient(to bottom,#000033,#000055);
    margin: 8px 0;
}

.gbook-cta a {
    color: #ffff00;
    font-family: "Comic Sans MS", cursive;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    animation: glow-yellow 1.5s ease-in-out infinite;
    display: inline-block;
}

/* ========== Вебринг ========== */

.webring {
    width: 800px;
    margin: 0 auto;
    border: 1px solid #003366;
    background: #000022;
    padding: 7px;
    text-align: center;
    font-size: 11px;
    color: #667799;
}

.webring a { color: #5577aa; font-size: 11px; }

/* ========== Подвал ========== */

.footer {
    text-align: center;
    padding: 12px;
    border-top: 2px solid #000055;
    background: #000011;
    font-size: 11px;
    color: #555;
    font-family: "Courier New", monospace;
}

/* ========== Гостевая книга ========== */

.gb-entry {
    border: 1px solid #003366;
    background: #00001a;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.gb-entry-hdr {
    color: #00ccff;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 1px solid #003366;
    padding-bottom: 5px;
    margin-bottom: 7px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.gb-date   { color: #555; font-size: 11px; font-family: "Courier New", monospace; }
.gb-text   { color: #cccccc; font-size: 13px; line-height: 1.5; }
.gb-author-site { color: #999; font-size: 10px; }

.gb-form {
    border: 2px solid #003399;
    background: #000033;
    padding: 14px;
    margin-top: 16px;
}

.gb-form-title {
    color: #ffff00;
    font-family: "Comic Sans MS", cursive;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
    display: block;
}

.gb-form label {
    color: #00ccff;
    font-size: 12px;
    display: block;
    margin: 8px 0 2px;
}

.gb-form input[type="text"],
.gb-form input[type="email"],
.gb-form input[type="url"],
.gb-form textarea {
    width: 100%;
    background: #000011;
    border: 1px solid #003399;
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 12px;
    padding: 5px;
}

.gb-form textarea  { height: 90px; resize: vertical; }

.gb-form button {
    display: block;
    margin: 12px auto 0;
    background: linear-gradient(to bottom,#003399,#0000cc);
    color: #ffff00;
    border: 2px outset #0044cc;
    font-family: "Comic Sans MS", cursive;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 24px;
    cursor: pointer;
}

.gb-form button:hover { background: linear-gradient(to bottom,#0044cc,#0000aa); }

.static-notice {
    color: #ff8800;
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 9px;
    border: 1px dashed #ff8800;
    margin-bottom: 14px;
    background: #110500;
}

.contacts-box {
    border: 1px solid #003333;
    background: #000011;
    padding: 7px;
    font-size: 11px;
    color: #669966;
    margin-top: 10px;
    line-height: 1.7;
}
