body {
    font-family: 'Bubblegum Sans', cursive;
    margin: 0;
    padding: 0;
    overflow-y: auto;
	overflow-x: hidden; /* отключает горизонтальный скролл*/
	background-image: url('../images/fon.jpg');
    width: 100%;
    background-repeat: repeat;
} 

body.modal-open {
    overflow: hidden;
}

.sidebar {
            position: fixed;
            top: 0;
            left: -250px; 
            width: 250px;
            height: 100%;
            background-color: rgba(50, 50, 50, 0.9);
            transition: left 0.3s;
            z-index: 1002;
            padding-top: 60px;
}

.sidebar a {
            padding: 10px 15px;
            text-decoration: none;
            color: white;
            display: block;
            transition: background 0.3s;
			transition: color 0.4s ease-in-out;
}

.sidebar a:hover {
            background: rgba(255, 255, 255, 0.2);
			color: #32CD32;
}

#volumeControl {
    position: fixed;
    top: 60px; /* Поднимаем выше кнопки для удобства */
    right: 100px; /* Позиция в соответствии с кнопкой */
    z-index: 1003;
    width: 115px; /* Ширина ползунка */
}

button {
	transition: color 0.4s ease-in-out;
}

button:hover{
    color: #32CD32;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 101%;
    height: 101%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover; 
}

h2 {
	margin: 0 auto;
    text-align: center;
    color: white;
    margin-top: -10px;
    position: relative;
    z-index: 1;
	font-size: 32px;
}

h4 {
	margin: 0 auto;
    text-align: center;
    color: white;
    margin-top: -10px;
    position: relative;
    z-index: 1;
	font-size: 18px;
}

.rgg{
		margin:  auto;
    text-align: center;
    color: white;
    margin-top: 50px;
    position: relative;
    z-index: 1;
   word-wrap: break-word;
   width: 600px;
}

h1 {
    text-align: center;
    position: relative;
    z-index: 1; /* Помещаем заголовок выше фона */
    color: white; /* Цвет текста заголовка */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1.7); /* Добавляем тень */
}

p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1.7); /* Добавляем тень */
}

.col1 {
	transition: color 0.3s ease-in-out;
}

.col1:hover{
	color: #880808;
}

.col2 {
	transition: color 0.3s ease-in-out;
}

.col2:hover{
	color: #32CD32;
}

        .container {
            display: flex;
            flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
            margin: 20px;
        }

        .item {
            display: flex;
            align-items: center; /* Вертикальное выравнивание по центру */
            margin: 10px; /* Отступы между элементами */
            width: calc(50% - 40px); /* Ширина каждой пары изображение + текст */
        }

        .image {
            max-width: 150px; /* Максимальная ширина изображения */
            margin-right: 20px; /* Отступ между изображением и текстом */
			z-index: 1;
        }

        .text-content {
            flex: 1; 
			z-index: 1;
			color: white;
        }

.text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 1; /* Помещаем текст выше фона */
    color: white;
}

.text-block p {
    margin: 10px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    max-width: 600px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 1.7); /* Добавляем тень для текста в текстовых блоках */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
            font-weight: bold;
            cursor: pointer;
}

.modal-description {
            color: white;
            text-align: center;
            margin-top: 10px;
}

.sound-toggle {
            position: fixed;
            top: 20px;
            right: 100px;
            background: rgba(255, 255, 255, 0.8);
            border: none;
            padding: 10px;
            cursor: pointer;
            z-index: 1001;
}

.menu-toggle {
            position: fixed;
            top: 20px;
            left: 20px;
            font-size: 30px;
            z-index: 1003; 
            color: white;
            cursor: pointer;
}

.overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1001;
            display: none;
}

footer {
	margin: 0 auto;
    text-align: center;
    color: yellow;
    margin-top: 20px;
    position: relative;
    z-index: 1; /* Помещаем текст ниже заголовка */
}

footer p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1.7); /* Добавляем тень для текста в футере */
}