body {
  margin: 0;
  height: 100vh;
  background: url("https://i.pinimg.com/originals/ae/dc/8f/aedc8fd834bb47325556acc63b52b441.jpg")
    no-repeat center center fixed;
  background-size: cover;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 200px;
  margin:20px;
}

.option {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.option:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

/* Скрываем радиокнопки */
.filter-input {
  display: none;
}

/* Активная кнопка */
.filter-input:checked ~ .controls .option:hover,
#blur:checked ~ .controls label[for="blur"],
#brightness:checked ~ .controls label[for="brightness"],
#contrast:checked ~ .controls label[for="contrast"],
#grayscale:checked ~ .controls label[for="grayscale"],
#opacity:checked ~ .controls label[for="opacity"],
#sepia:checked ~ .controls label[for="sepia"],
#huerotate:checked ~ .controls label[for="huerotate"],
#invert:checked ~ .controls label[for="invert"] {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.overlay {
  width: 400px;
  min-height: 200px;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Применяем фильтры через :checked */
#blur:checked ~ .overlay {
  backdrop-filter: blur(15px);
}
#brightness:checked ~ .overlay {
  backdrop-filter: brightness(150%);
}
#contrast:checked ~ .overlay {
  backdrop-filter: contrast(200%);
}
#grayscale:checked ~ .overlay {
  backdrop-filter: grayscale(100%);
}
#opacity:checked ~ .overlay {
  backdrop-filter: opacity(50%);
}
#sepia:checked ~ .overlay {
  backdrop-filter: sepia(100%);
}
#huerotate:checked ~ .overlay {
  backdrop-filter: hue-rotate(90deg);
}
#invert:checked ~ .overlay {
  backdrop-filter: invert(80%);
}

h1 {
  margin-top: 0;
  font-size: 2.5rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.5;
}