@charset "utf-8";
/* CSS Document */

/* ----------------------------------------------------------------------------- *
 *                           Style by www.a-krueger.eu                           *
 * ----------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------------- *
 *                                   snowfall                                    *
 * ----------------------------------------------------------------------------- */

.snow-container {
    color:#fff;
    min-block-size: 100vh;
    display: grid;
    place-content: center;
    position: relative;
    background: linear-gradient(#8dd4f7, #9080fa 85%) no-repeat,
    url(../img/hero/IMG_20210131_092943.jpg) fixed no-repeat center / cover;
    background-blend-mode: soft-light;
}

.snow-container h1 {
	font-size: clamp(2rem, 6vw + 1rem, 5rem);
	font-family: "Montserrat", "Segoe UI", sans-serif;
	color: transparent;
	font-weight: 900;
	line-height: 1.3;
	text-transform: uppercase;
	background-image: linear-gradient(to right, #8dd4f7, #9080fa, #8dd4f7 85%);
  z-index: 5;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
	.snow-container h1 {
		background-image: linear-gradient(to right, #8dd4f7, #9080fa, #8dd4f7 85%);
		-webkit-background-clip: text;
		background-clip: text;
		background-size: 200%;
		animation: gradient-animation-text 4s ease-in-out infinite alternate;
	}
}

@keyframes gradient-animation-text {
	from {
		background-position: 0% 50%;
	}
	to {
		background-position: 100% 50%;
	}
}

@property --y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -1%;
}

.snowfall,
.snowfall::before,
.snowfall::after {
    position: absolute;
    inset: 0;
    content: "";
    overflow: hidden;
    pointer-events: none;

    background-image: 
    radial-gradient(
        circle at 5% calc(var(--y) * 1),
        #fff 3px,
        transparent 6px
    ),
    radial-gradient(
        circle at 65% calc(var(--y) * 1.3),
        #fff 2px,
        transparent 4px
    ),
    radial-gradient(
        circle at 65% calc(var(--y) * 1.3),
        #fff 2px,
        transparent 4px
    ),
    radial-gradient(
        circle at 5% calc(var(--y) * 1),
        #fff 3px,
        transparent 6px
    );
}

.snowfall {
  animation: snowfall 20s linear infinite;
  background-size: 65% 100%;
}

.snowfall::before {
  inset: -4rem 0 0;
  opacity: 0.7;
  animation: snowfall 27s linear infinite, wind 27s ease-in-out infinite;
  background-size: 45% 100%;
}

.snowfall::after {
  inset: -8rem 0 0;
  opacity: 0.8;
  animation: snowfall 37s linear infinite, wind 47s ease-in-out infinite;
  background-size: 32% 100%;
}

@keyframes snowfall {
  0% {
    --y: -1%;
  }
  100% {
    --y: 101%;
  }
}

@keyframes wind {
  50% {
    translate: 200px;
  }
}
