body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.background-image {
    background-image: url('fon.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.text {
    line-height: 1.5;
}

nav {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
}

.content-container {
    flex-grow: 1;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.content-box {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin-bottom: auto;
    line-height: 1.5;
}

.content-wrapper {
    display: flex;
    flex-grow: 1;
    padding: 20px;
    margin: 20px;
    margin: 20px auto;
    max-width: 1200px; 
}


footer {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    text-align: center;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

.topic-container {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 60%;
}

.topic-item {
    margin-bottom: 20px;
}

.topic-title {
    font-size: 18px;
    font-weight: bold;
}

.topic-content {
    font-size: 16px;
}

hr {
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.content-area {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.content-area .topic {
    margin-bottom: 20px;
}

.content-area .topic h3 {
    font-size: 18px;
    font-weight: bold;
}

.content-area .topic p {
    font-size: 16px;
}


.topic {
    border: none;
    padding: 10px;
    margin-bottom: 20px;
}

.topic h3 {
    margin-top: 0;
}

.topic .content {
    word-wrap: break-word; /* Разрыв длинных слов, чтобы текст не выходил за рамки */
}



/* По кнопке в начало страницы */

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #000000;
    color: rgb(255, 255, 255);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.scroll-to-top.show {
    opacity: 1;
}




@media (max-width: 768px) {

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin-right: 10px;
    }

    .content-box {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    .content-box {
        max-width: 90%;
    }
}

/* Для админ панели */
.container {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 40px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.8); /* Белый фон с 80% прозрачностью */
  border-radius: 8px; /* Добавляем скругление углов */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Добавляем небольшую тень */
}


/* Стили для заголовков */
.container h1, .container h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Стили для таблицы */
.container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.container th, .container td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #000000;
}

.container th {
  background-color: ;
}

/* Стили для формы */
.container form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container form label {
  margin-bottom: 10px;
}

.container form input,
.container form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.container form button {
  background-color: #4CAF50;
  color: ;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.container form button:hover {
  background-color: ;
}



select{
    visibility: hidden;
}