/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;

  background: #0e0e12;

  color: white;

  padding: 60px;
}

/* TITLE */

h1 {
  text-align: center;

  font-size: 42px;

  font-weight: 600;

  margin-bottom: 60px;

  letter-spacing: -0.5px;
}

/* LAYOUT */

.container {
  max-width: 900px;

  margin: auto;

  display: flex;

  flex-direction: column;

  gap: 35px;
}

/* CARD */

.card {
  background: #15151b;

  border-radius: 16px;

  padding: 25px;

  transition: all 0.25s ease;

  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-4px);

  border-color: rgba(255, 255, 255, 0.15);
}

/* TITLES */

h2 {
  font-size: 18px;

  font-weight: 500;

  opacity: 0.85;

  margin-bottom: 20px;
}

/* PREVIEW AREA */

.preview {
  height: 220px;

  border-radius: 12px;

  overflow: hidden;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 20px;

  position: relative;

  isolation: isolate;
}

/* MIX BLEND DEMO */

.mix-preview {
  background:
    radial-gradient(circle at 30% 40%, #ff4d6d, transparent 40%),
    radial-gradient(circle at 70% 60%, #4d9fff, transparent 40%),
    linear-gradient(120deg, #ff2d55, #5856d6);
}

.shape {
  position: absolute;

  width: 120px;
  height: 120px;

  border-radius: 50%;

  background: #ffd60a;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  mix-blend-mode: normal;

  pointer-events: none;
}

/* second shape */

.mix-preview::before {
  content: "";

  position: absolute;

  width: 140px;
  height: 140px;

  border-radius: 30px;

  background: #00ffc8;

  top: 40%;
  left: 35%;

  transform: translate(-50%, -50%);

  mix-blend-mode: inherit;
}

/* BACKGROUND BLEND DEMO */

.bg-preview {
  background:
    linear-gradient(45deg, #ff2d55, #ff9f0a),
    radial-gradient(circle at 70% 40%, #00ffc8, transparent 50%),
    radial-gradient(circle at 30% 60%, #5856d6, transparent 50%);

  background-blend-mode: normal;
}

/* BACKDROP DEMO */

.backdrop-preview {
  background:
    radial-gradient(circle at 20% 30%, #ff2d55, transparent 40%),
    radial-gradient(circle at 80% 60%, #00ffc8, transparent 40%),
    linear-gradient(120deg, #1e1e2f, #3a3a60);
}

.glass {
  width: 240px;
  height: 140px;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px) saturate(120%);

  border: 1px solid rgba(255, 255, 255, 0.25);
}

.filter-preview {
  background: linear-gradient(45deg, #ff2d55, #ff9f0a, #00ffc8, #5856d6);

  position: relative;
}

/* formes fixes pour voir les filtres */

.filter-preview::before {
  content: "";

  position: absolute;

  width: 160px;
  height: 160px;

  border-radius: 50%;

  background: #ffffff40;

  top: 30%;
  left: 30%;

  transform: translate(-50%, -50%);
}

.filter-preview::after {
  content: "";

  position: absolute;

  width: 120px;
  height: 120px;

  border-radius: 20px;

  background: #00000040;

  bottom: 20%;
  right: 20%;
}

.colorBlock {
  width: 100%;
  height: 100%;

  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.2),
    transparent 60%
  );
}

/* CONTROLS */

.controls {
  display: flex;

  flex-direction: column;

  gap: 10px;

  margin-bottom: 15px;
}

label {
  font-size: 13px;

  opacity: 0.7;
}

input,
select {
  width: 100%;
}

/* CODE BLOCK */

pre {
  background: #0b0b10;

  padding: 15px;

  border-radius: 8px;

  font-family: monospace;

  font-size: 14px;

  color: #8be9fd;
}

/* ANIMATION */

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.backdrop-preview {
  background: #1a1a22;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  overflow: hidden;
}

/* texte derrière */

.backdrop-text {
  position: absolute;

  font-size: 36px;

  font-weight: 700;

  letter-spacing: 3px;

  color: white;

  opacity: 0.9;
}

/* glass card */

.glass {
  width: 260px;
  height: 140px;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px) saturate(120%);

  border: 1px solid rgba(255, 255, 255, 0.25);

  display: flex;
  align-items: center;
  justify-content: center;
}
/* glass card centré */
.backdrop-preview .glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-54%, -50%);
}
