body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto; /* Включение вертикального скроллинга */
    background-color: #313131;
    color: #333;
    background-image: url('background.jpg'); /* Фоновое изображение для всей страницы */
    background-size: cover; /* Сохранение пропорций изображения */
    background-position: center; /* Центрирование изображения */
    background-attachment: fixed; /* Фиксированное положение фона */
}

header {
    text-align: center;
    position: relative;
    background-color: rgba(51, 51, 51, 0.7);
    color: #fff;
    padding: 20px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

nav li {
    margin: 0;
}

.btn-1 {
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: Marvel, sans-serif;
    font-size: 20pt;
    width: 200px;
    height: 45px;
    position: relative;
    border: solid #777 2px;
    color: #777;
    z-index: 1;
    transition: all 0.5s ease-in-out;
    border-radius: 5px;
    background: transparent;
    padding: 0;
    text-align: center;
    line-height: 45px;
}

.btn-1 span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding-top: 5px;
    transition: 0.5s ease-in-out;
}

.btn-1:before, .btn-1:after {
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    background: #838181;
    transition: all 0.5s ease-in-out;
}

.btn-1:before {
    height: 0%;
    width: 2px;
    top: 50%;
}

.btn-1:after {
    width: 0%;
    height: 2px;
    left: 50%;
}

.btn-1:hover:before {
    height: 100%;
    top: 0%;
    background: #838181;
}

.btn-1:hover:after {
    width: 100%;
    left: 0%;
    background: #838181;
}

.btn-1:hover {
    background: transparent;
    border-color: transparent;
}

.btn-1 span:hover {
    color: #838181;
}

.btn-1 span:before, .btn-1 span:after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    background: #333;
    transition: all 0.5s ease-in-out;
}

.btn-1 span:before {
    width: 2px;
    height: 0%;
    top: 50%;
}

.btn-1 span:after {
    height: 2px;
    width: 0%;
    left: 50%;
}

.btn-1 span:hover:before {
    height: 41px;
    top: 0%;
    background: #838181;
}

.btn-1 span:hover:after {
    width: 100%;
    left: 0%;
    background: #838181;
}

.btn-1:active {
    background-color: #00a7fc;
    border-color: #00a7fc;
}

.btn-1:active:before, .btn-1:active:after {
    background-color: #00a7fc;
}

.btn-1 span:active {
    color: #333;
}

.btn-1 span:active:before, .btn-1 span:active:after {
    background-color: #00a7fc;
}

.btn-1:focus {
    outline: none;
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон для контейнера */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scroll {
    overflow: auto; /* Включение скроллинга */
    height: auto;
    padding: 20px;
    border: solid 1px #ccc;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scroll h2 {
    margin-bottom: 10px;
}

.scroll p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.image-container {
    display: block;
    margin: 0 auto 20px;
    width: 600px; /* Увеличенная ширина */
    height: 400px; /* Увеличенная высота */
    background-size: cover; /* Сохранение пропорций изображения */
    background-position: center; /* Центрирование изображения */
    border-radius: 8px;
}

.spacer {
    height: 20px;
}

.background-container {
    position: relative;
    height: 100vh;
    background-image: url('phon.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forum-topics {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.forum-topics ul {
    list-style: none;
    padding: 0;
}

.forum-topics ul li {
    background-color: #f9f9f9;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.forum-topics ul li h3 {
    margin: 0;
}

.forum-topics ul li p {
    margin: 10px 0;
}

.forum-topics ul li a {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.forum-topics ul li a:hover {
    background-color: #555;
}

.new-topic {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.new-topic label {
    display: block;
    margin-bottom: 5px;
}

.new-topic input, .new-topic textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.new-topic button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.new-topic button:hover {
    background-color: #555;
}

#registration {
    position: fixed;
    top: 500px;
    right: 500px;
    background-color: rgba(255, 255, 255, 0.9); /* Полупрозрачный фон для формы регистрации */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#registration h2 {
    margin-bottom: 10px;
}

#registration form label {
    display: block;
    margin-bottom: 5px;
}

#registration form input {
    width: 70%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#registration form button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#registration form button:hover {
    background-color: #555;
}

#login {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#login h2 {
    margin-bottom: 10px;
}

#login form label {
    display: block;
    margin-bottom: 5px;
}

#login form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#login form button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#login form button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Добавленные стили для форума */
.forum-posts {
    margin-bottom: 20px;
}

.forum-post {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.forum-post h3 {
    margin-top: 0;
}

.forum-post .post-meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.forum-post .comments {
    margin-top: 20px;
}

.forum-post .comments h4 {
    margin-bottom: 10px;
}

.forum-post .comment {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.forum-post .comment .comment-meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.forum-post .comment-form {
    margin-top: 20px;
}

.forum-post .comment-form h4 {
    margin-bottom: 10px;
}

.forum-post .comment-form label {
    display: block;
    margin-bottom: 5px;
}

.forum-post .comment-form input,
.forum-post .comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.forum-post .comment-form button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.forum-post .comment-form button:hover {
    background-color: #555;
}

.forum-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.forum-form h2 {
    margin-bottom: 10px;
}

.forum-form label {
    display: block;
    margin-bottom: 5px;
}

.forum-form input,
.forum-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.forum-form button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.forum-form button:hover {
    background-color: #555;
}
