/* Linux Terminal Style Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background-color: #0d0d0d;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.terminal {
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background-color: rgba(26, 26, 26, 0.85);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* CRT-эффекты */
.terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

.terminal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.9);
    pointer-events: none;
    z-index: 11;
}

.terminal-header {
    background-color: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #00ff00;
    position: relative;
    z-index: 5;
}

.title {
    font-weight: bold;
    color: #ccc;
    margin-right: auto;
}

.buttons {
    display: flex;
    gap: 8px;
}

.buttons div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background-color: #ff5f56; }
.minimize { background-color: #ffbd2e; }
.maximize { background-color: #27c93f; }

.terminal-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    z-index: 5;
}

.output-line {
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
    z-index: 5;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
    margin-right: 8px;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: #00ff00;
}

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

/* Ссылка на сайт друзей в стиле команды с мерцанием */
.friend-site-link {
    display: inline-block;
    margin-top: 12px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    background-color: rgba(52, 152, 219, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    }
    20%, 24%, 55% {
        opacity: 0.5;
        box-shadow: none;
    }
}

.friend-site-link:hover {
    background-color: rgba(52, 152, 219, 0.4);
    text-decoration: underline;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    animation: none;
}

/* Красный цвет для цифр в таймере */
#timer {
    color: #ff0000;
}

/* Зелёный цвет для 'Countdown:' и даты */
#timer-label {
    color: #00ff00;
}

#launch-date {
    color: #ff0000;
}

/* CRT-эффект свечения текста */
.output-line, .prompt, #timer, #timer-label {
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.7);
}

#timer, #launch-date {
    text-shadow: 0 0 3px rgba(255, 0, 0, 0.8);
}

/* Анимация появления текста */
.fade-in {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Отступ после ссылки на uvmr.ru */
.margin-after-link {
    margin-top: 20px;
}

/* Подвал с информацией об авторских правах */
.terminal-footer {
    background-color: #333;
    padding: 10px 15px;
    text-align: center;
    border-top: 2px solid #00ff00;
}

.footer-text {
    color: #ccc;
    font-size: 0.9rem;
}