
.username {
    font-size: 110%;
    font-weight: 600;
}

.msg {
    color: #000000;
}

#chat {
    width: 400px;
    height: 600px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color:#A0522D;
}

#messages {
    height: 530px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

#message-input {
    width: 70%;
}

#send-button {
    width: 25%;
}

		body {
	background-image: url("https://masterpiecer-images.s3.yandex.net/5fb67b6defd9f63:upscaled"), radial-gradient(#6e4aff, #49A16C);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden; /* Чтобы не было полосы прокрутки */
}

.flies-container {
	position: relative;
	width: 100%;
	height: 100vh; /* Занимает всю высоту окна */
}

.lepeshka {
	width: 100px; /* Ширина квадрата */
	height: 60px; /* Высота квадрата */
	background-color: #8B4513; /* Цвет квадрата */
	border-radius: 50%; /* Закругляем углы для создания формы */
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); /* Внутренняя тень для эффекта раздавленности */
	transform: rotate(-15deg); /* Немного поворачиваем элемент */
	position: relative; /* Для позиционирования псевдоэлементов */
}

.lepeshka::before,
.lepeshka::after {
	content: '';
	position: absolute;
	background-color: #8B4513; /* Цвет раздавленной мухи */
	border-radius: 50%; /* Закругляем углы */
}

.lepeshka::before {
	width: 30px; /* Ширина одного крыла */
	height: 10px; /* Высота одного крыла */
	top: -5px; /* Позиция крыла сверху */
	left: 10px; /* Позиция крыла слева */
	transform: rotate(-30deg); /* Поворот крыла */
}

.lepeshka::after {
	width: 30px; /* Ширина другого крыла */
	height: 10px; /* Высота другого крыла */
	top: -5px; /* Позиция крыла сверху */
	right: 10px; /* Позиция крыла справа */
	transform: rotate(30deg); /* Поворот крыла */
}


.fly {
    overflow: hidden;
	transition: left 0.6s, top 0.6s;
	position: absolute;
	width: 100px; /* Ширина мухи */
	height: 100px; /* Высота мухи */
	background-image: url('fly1.png');
	background-size: cover;
	animation: fly-animation 3s infinite linear;
	filter: drop-shadow(2px 2px 10px rgba(0, 255, 0));
}


@keyframes fly-animation {
    0% {
        transform: translate(0, 0); /* Начальная позиция */
    }
    25% {
        transform: translate(calc(20vw - 50px), -10vh); /* Перемещение с учетом ширины и высоты мухи */
    }
    50% {
        transform: translate(calc(40vw - 50px),0); /* Перемещение с учетом ширины и высоты мухи */
    }
    75% {
        transform: translate(calc(20vw - 50px),10vh); /* Перемещение с учетом ширины и высоты мухи */
    }
    100% {
        transform: translate(0, 0); /* Возврат в начальную позицию */
    }
}

.click {
	display: inline-block;
	cursor: pointer;
	height: 70px;
	font-size: 1vw;
	height: 4vw;
	color: rgb(60, 179, 113);
	background-image: url("https://sun9-10.userapi.com/impg/iZPGiCDYjnCMNl_oxcKyIZw0X9z-Vlf8m49syw/NKM0WMdhgUA.jpg?size=228x177&quality=96&sign=30d6034381e25b9cd6b81917dae5c6de&type=album");
	background-size: cover; 
	background-repeat: no-repeat; 
	background-position: center; 
	text-shadow: 2px 2px 5px rgba(60, 179, 113, 1); /* Увеличено смещение и размытие */
}

.clear {
    font-size: 1vw;
	height: 4vw;
	display: inline-block;
	cursor: pointer;
	margin-left: 10%;
	font-size: 130%;
	color: rgb(60, 179, 113);
	background-image: url("https://sun9-10.userapi.com/impg/iZPGiCDYjnCMNl_oxcKyIZw0X9z-Vlf8m49syw/NKM0WMdhgUA.jpg?size=228x177&quality=96&sign=30d6034381e25b9cd6b81917dae5c6de&type=album");
	text-shadow: 5px 5px 5px rgba(0, 255, 0, 0.8);
}

.count {
	color: white;
	width: 20%;
	background-color: #BDB76B;
	box-shadow: 10px 5px 5px white;
}

.count a{
	color: #A52A2A;
}

.clear:hover, .click:hover {
	box-shadow: 
		0 0 20px rgba(0, 255, 0, 0.5),
		0 0 40px rgba(139, 69, 19, 1),
		0 0 60px rgba(139, 69, 19, 1);
}

.div {
	display: flex;
	justify-content: center; 
	align-items: center;
	height: 10%;
	width: 50%;
	background-color: #BDB76B;
	margin-top: 10px;
	box-shadow: 10px 5px 5px white;
}

:root{
  --percentage: 30%;
  --main-color: 255,255,255;
  --el-bg-color: 220,220,220;
}

#sound-slider__container{
  display: flex;
  width: 300px;
  height: 20px;
  padding: 20px 40px;
  background: rgba(var(--main-color),0.07);
  border: 1px solid rgba(var(--main-color),0.03);
  border-radius: 1in;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#sound-slider__container::after{
  content:"";
  height: 100%;
  opacity: 0;
  left: 0px;
  position: absolute;
  top: 0px;
  transition: opacity 500ms;
  width: 100%;
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y), 
    rgba(var(--main-color), 0.06),
    transparent 40%
  );
  z-index:-1;
}

#sound-slider__container:hover::after{
  opacity:1;
}

#sound-picto{
  fill: rgb(var(--el-bg-color));
  margin-right: 1em;
  cursor: pointer;
}

#sound-slider {
  margin: 0 10px;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 1in;
  outline: none;
  transition: .2s;
  cursor: pointer;
  background: rgba(var(--el-bg-color),0.5);
  background-image: linear-gradient(rgb(var(--main-color)),rgb(var(--main-color)));
  background-size: calc(var(--percentage) - 9px) 100%;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* round the volume progress */

#sound-slider::after{
  position: absolute;
  content: "";
  height: 100%;
  width: 10px;
  border-radius: 0 1in 1in 0;
  background-color:rgb(var(--main-color));
  transition: .2s;
  left: calc(var(--percentage) - 10px);
}

#sound-slider::-webkit-slider-thumb{
  appearance: none;
  visibility:hidden;
  width: 1px;
  height: 10px;
}

#sound-slider:hover{
  height: 1em;
}

#volume{
  font-family: sans-serif;
  color: rgb(var(--el-bg-color));
  min-width: 2em;
  text-align: right;
}

.slider {
	position: relative;
	opacity: 0;
	animation: slider-anim 10s infinite linear;
	position: absolute; 
	left: 30%;
	top: 0;
	overflow: auto;
}

.slider:hover {
	opacity: 1;
}

body {
    overflow: hidden;
}


@keyframes slider-anim {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20vw, 0); /* 50% ширины окна */
  }
  50% {
    transform: translate(45vw, 0); /* 100% ширины окна */
  }
  75% {
    transform: translate(20vw, 0); /* 50% ширины и 10% высоты окна */
  }
  100% {
    transform: translate(0, 0);
  }
}

.ksd-cont {
	width: 100%;
    height: 100vh;
	overflow: hidden;
}

.ksd-item {
	position: absolute; /* Устанавливаем абсолютное позиционирование для изображения */
    top: 1vw; /* Смещаем к верхней части контейнера */
    right: 1vw; /* Смещаем к правой части контейнера */
    width: 10%; /* Ширина будет автоматически подстраиваться */
    height: auto; /* Высота будет автоматически подстраиваться */
    max-width: 100%; /* Ограничиваем максимальную ширину до 100% */
    max-height: 100%; /* Ограничиваем максимальную высоту до 100% */
}

.ksd-text {
	display: inline;
	color:white;
	font-size: 1vw;
}

.asd {
    opacity: 0;
}

.asd:hover {
    opacity: 1;
}

.dev {
    text-align: end;
    font-size: 1vw;
    color: #FFE4C4;
    position: absolute; 
    bottom: 0.5%; 
    right: 0.5%;
    width: 10%;
    height: auto; 
    max-width: 100%;
    max-height: 100%;
}
