@charset "utf-8"; @import url("https://fonts.googleapis.com/css2?family=Great+Vibes:wght@400;700&display=swap"); /* @import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap"); */ /* */ /* This is a single-line comment */ :root { /* --gradient: linear-gradient(45deg, #ee6352, purple, #ee6352); */ --gradient: linear-gradient(45deg, rgb(255, 0, 0), purple, #ee6352); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Dancing Script", cursive; font-family:"Great Vibes", cursive } /*originele body */ body { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; position: relative; height: 100vh; /*background: #c50e0e; */ background:#ffd700; overflow: hidden; /*background-image: url(http://i.imgur.com/AEkdnJJ.jpg); */ } /* from codepen */ body { font-family: basic-sans, sans-serif; min-height: 100vh; display: flex; justify-content: center; align-items: center; font-size: 1.125em; line-height: 1.6; color: #333; background: #ddd; background-size: 300%; background-image: var(--gradient); animation: bg-animation 25s infinite alternate; } @keyframes bg-animation { 0% {background-position: left} 50% {background-position: right} 100% {background-position: left} } .box { position: relative; width: 500px; height: 500px; background: #fb0f0f; border: 5px solid #000; border-radius: 50%; box-shadow: inset 0 0 100px rgba(255, 255, 255, 1), 0 20px 50px rgba(0, 0, 0, 0.5); overflow: hidden; } .box::before { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: #fff; } .box::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 350px; height: 250px; background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.2)); border-radius: 50%; z-index: 1; } h2 { width: 50%; padding-left: 20px; text-shadow: 0 20px 20px rgba(0, 0, 0, 0.5); font-size: 120px; font-weight: 700; color: #eaac11; text-align: center; } h1 { width: 50%; font-size: 80px; font-weight: 700; color: #000; margin-top:0px; margin-left:100px; } .snow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url(https://n-rick2972.github.io/codepen/christmas-snow-effectct/snow.jpg); z-index: 2; mix-blend-mode: screen; } .snow:nth-child(1) { background-position-x: 50px; animation: fallSnow 10s linear infinite; } .snow:nth-child(2) { background-position-x: 100px; animation: fallSnow2 15s linear infinite; } .snow:nth-child(3) { background-position-x: -100px; transform: scale(1.5); animation: fallSnow3 20s linear infinite; } .snow:nth-child(4) { background-position-x: 100px; animation: fallSnow2 14s linear infinite; } .snow:nth-child(5) { background-position-x: 50px; animation: fallSnow 16s linear infinite; } @keyframes fallSnow { 0% { background-position-y: 0; } 100% { background-position-y: 600px; } } @keyframes fallSnow2 { 0% { background-position-y: 0; } 100% { background-position-y: 600px; } } @keyframes fallSnow3 { 0% { background-position-y: 0; } 100% { background-position-y: 600px; } } .box img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 400px; } ::-webkit-scrollbar{ width: 30px; } ::-webkit-scrollbar-thumb{ background: linear-gradient(#1c79dd, #193b95, #16166b); border-radius: 30px; box-shadow: inset 2px 2px 2px rgba(255,255,255,.25); } ::-webkit-scrollbar-track{ background-color: #000; }