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;
}

        .image-container {
            display: flex;
            flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
            margin: 20px;
        }
		
h1 {
    text-align: center;
    position: relative;
    z-index: 1; /* Помещаем заголовок выше фона */
    color: white; /* Цвет текста заголовка */
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 1.7); /* Добавляем тень */
}

#volumeControl {
    position: fixed;
    top: 60px; /* Поднимаем выше кнопки для удобства */
    right: 100px; /* Позиция в соответствии с кнопкой */
    z-index: 1001;
    width: 115px; /* Ширина ползунка */
}

button {
	transition: color 0.4s ease-in-out;
}

button:hover{
    color: #32CD32;
}

.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); /* Добавляем тень */
}

.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;
}

.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; 
}

.gallery {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 20px;
            position: relative;
            z-index: 1; 
}

.gallery img {
            margin: 10px;
            border: 2px solid #ccc;
            border-radius: 5px;
            max-width: 250px;
            height: auto;
            cursor: pointer;
            transition: transform 0.2s;
			filter: blur(2px);
}

.gallery img:hover {
	        filter: blur(0px);
            transform: scale(1.05);
}

.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);
}

.modal img {
            margin: auto;
            display: block;
            max-width: 80%;
            max-height: 80%;
            margin-top: 5%;
            transition: transform 0.2s; 
            cursor: pointer; 
}

.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 3px rgba(0, 0, 0, 1.7); /* Добавляем тень для текста в футере */
}