body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1e1e2f 0%, #2e2e4e 100%);
    color: #2e2e4e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.container {
    max-width: 700px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

h1 {
    font-size: 2.7em;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    margin-bottom: 10px;
    min-height: 1.0em;
    word-break: break-all;
}

p {
    font-size: 1.0em;
    line-height: 1.6;
    color: #a6accd;
    margin-bottom: 10px;
}

a {
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #00cc66;
    text-decoration: underline;
}

.tagline {
    color: #7f849c;
    margin-bottom: 40px;
    letter-spacing: 1px;
    font-size: 0.85em;
    /*min-height: 2.0em;*/
}

.footer, .easter-egg {
    color: #7f849c;
    margin-bottom: 5px;
    letter-spacing: 1px;
    /*min-height: 2.0em;*/
}

.footer {
    font-size: 0.9em;
    color: #5e6278;
    margin-top: 10px;
}

.easter-egg {
    font-size: 0.7em;
    color: #1e1e2f;
    margin-top: 5px;
    opacity: 0.6;
    white-space: pre;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }

    p, .tagline {
        font-size: 1em;
    }

    .container {
        margin: 20px;
    }
}

/* --- Стили для курсора и терминала --- */
.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: #00ff88;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

#terminal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    background: rgba(20, 20, 35, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.4s ease-in-out;
    z-index: 100;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.terminal-hidden {
    transform: translateY(-100%);
}

.terminal-visible {
    transform: translateY(0);
}

#terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    color: #d4d4d8;
    font-size: 1em;
    line-height: 1.5;
}

#terminal-output::-webkit-scrollbar {
    width: 8px;
}

#terminal-output::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 4px;
}

#terminal-output .prompt-guest {
    color: #88aadd;
}

#terminal-output .prompt-root {
    color: #ff7b72;
}

#terminal-output .output-text {
    white-space: pre-wrap;
    word-break: break-all;
}

#terminal-output .output-error {
    color: #ff7b72;
}

#terminal-input-line {
    display: flex;
    align-items: center;
}

.prompt {
    font-weight: bold;
}

.prompt-guest {
    color: #88aadd;
}

.prompt-root {
    color: #ff7b72;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #d4d4d8;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    flex-grow: 1;
}

/* --- НОВЫЕ СТИЛИ ДЛЯ БЛОКА КОНТАКТОВ --- */
.contact-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Для переноса на маленьких экранах */
    gap: 20px; /* Расстояние между ссылками */
    margin: 0 0 40px 0; /* Устанавливаем отступы: верх 0, право 0, низ 40px, лево 0 */
}

.contact-block a {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом */
    font-size: 1.0em;
    color: #a6accd; /* Цвет текста как у параграфа */
    font-weight: normal; /* Убираем жирность по умолчанию для этого блока */
    transition: color 0.3s, text-shadow 0.3s;
}

.contact-block a:hover {
    color: #00ff88; /* Цвет при наведении как у основных ссылок */
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    text-decoration: none; /* Убираем подчеркивание */
}

.contact-block svg {
    color: #7f849c; /* Нейтральный цвет иконки */
    transition: color 0.3s, transform 0.3s;
}

.contact-block a:hover svg {
    color: #00ff88; /* Иконка тоже подсвечивается */
    transform: scale(1.1); /* Небольшое увеличение для динамики */
}