body {
    font-family: monospace;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #00ff41;
    text-align: center;
}


header {
    background-color: rgba(0, 0, 0, 0.6);
    color: #00ff41;
    padding: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

nav a {
    color: #00ff41;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

button {
    background-color: transparent;
    color: #8b4513; /* коричневый цвет текста кнопки */
    border: 2px solid #8b4513; /* коричневая рамка */
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #8b4513; /* коричневый фон при наведении */
    color: #fff; /* белый текст при наведении */
}

footer {
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}
.center-text {
    text-align: center;
}

/* Контейнер для всего содержимого поверх видео */
.content-overlay {
    position: relative;
    z-index: 2;
    color: #8b4513; /* коричневый цвет текста */
    text-shadow: none;
    padding: 20px;
}

/* Фоновое видео */
.background-video {
    position: fixed;   /* или absolute, если внутри контейнера с relative */
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover; /* обрезает видео, заполняя весь экран без искажений */
}

/* Чтобы всё тело занимало весь экран */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Стили для about.html — кнопка зеленая */
.about-page button {
    background-color: transparent;
    color: #00ff41;
    border: 2px solid #00ff41;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.about-page button:hover {
    background-color: #00ff41;
    color: #000;
}

/* chat */

.chat {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    z-index: 10;

    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    color: white;
    min-width: 400px;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.messages {
    flex: 1 1 0%;
    overflow-y: auto;       /* включает вертикальную прокрутку */
    padding: 10px;
    min-height: 0;
}

.chat input {
    width: 300px;
    color: #00ff41;
    padding: 10px;
    border: 2px solid #00ff41;
    outline: none;
    background-color: #000;
}

.chat button {
    color: #00ff41;
    padding: 10px;
    border: 2px solid #00ff41;
}

.chat ul {
    max-height: 200px;   /* или height: 200px; — фиксированная высота */
    overflow-y: auto;
}

.chat form {
    flex-shrink: 0;
}