:root {
	--font-size: 17px;
}
html {
    display: grid;
    height: 100%;
    grid-template-rows: 100%;
}
body {
	display: inherit;
	grid-template-rows: 0px 1fr auto;
	background: repeating-linear-gradient(-45deg, #fff 0 20px, #f9f9f9 0 40px);
}
body>header, body>main {
	padding: 0;
}
body header {
	text-align: center;
	padding-right: 350px;
}
body header > * {
	margin: 5px;
}
h1 {
	font-style: normal;
    font-weight: 700;
    font-size: 50px;
    font-family: 'Montserrat', sans-serif;
    line-height: 56px;
    text-transform: none;
    letter-spacing: -2px;
    color: #505050;
    white-space: nowrap;
}
@media only screen and (prefers-color-scheme: dark) {
	body {
		background: repeating-linear-gradient(-45deg, #000 0 20px, #0e0e0e 0 40px);
	}
	h1 {
		color:#fff;
	}
}
h1 span {
    font-size: 70px;
    vertical-align: middle;
}
h1 span:first-child {
    letter-spacing: -14px;
}
h1 span:nth-child(2) {
    position: relative;
    letter-spacing: -15px;
    z-index: 1;
}
h1 span:nth-child(3) {
    color: #c39f76;
    filter: blur(2px);
}
h1 span:nth-child(2):before {
    content: "";
    position: absolute;
    top: 10px;
    height: 28px;
    border-left: 1.5px solid var(--background-color);
    border-top: 1.5px solid var(--background-color);
    width: 44px;
    left: 2px;
    border-top-left-radius: 41px 24px;
}
h1 span:nth-child(2):after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 4.5px;
    height: 37px;
    border-left: 1.5px solid var(--background-color);
    z-index: 5;
}
body header h1 + p {
	text-indent: 130px;
    margin-top: -22px;
    font-size: 15px;
}
[data-ea-publisher] {
    position: fixed;
    width: fit-content;
    inset: auto 350px 0 45px;
    margin: auto;
    text-align: center;
}
a.tweet {
    background-color: #1095c1;
    border-radius: 0 50px 50px 0;
    display: grid;
    place-content: center;
    width: 46px;
    height: 46px;
    position: fixed;
    left: 0;
    bottom: 70px;
    box-shadow: rgb(0 0 0 / 40%) 0px 4px 8px;
}
a.how {
    bottom: 130px;
    color: #fff;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 40px;
    text-decoration: none;
}
.credit {
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    transform-origin: right top;
    transform: translate(-30%) rotate(-45deg);
    color: #fff;
    border-image: linear-gradient(var(--primary) 0 0) fill 0//0 100vw;
    text-decoration: none;
}

main {
	display: grid;
	grid-template-columns: minmax(0,1fr) 350px;
	overflow: hidden;
}
main > section {
	margin-bottom: 0;
	z-index: 2;
}
main > section:first-child {
	margin: 110px auto auto;
	height: 50vh;
	width: 50vw;
	max-height: 100%;
	max-width: 100%;
	min-height: 350px;
}
main section:last-child {
    display: grid;
    grid-auto-rows: auto minmax(0,1fr);
    height: 0;
    min-height: 100%;
}
main section:last-child button {
	margin: 0;
	font-size: 1em;
    padding: 10px;
}
#demo {
  border-radius: var(--radius);
  height: 100%;
  box-shadow: 0 0 0 3px inset;
  position: relative;
  transform-style: preserve-3d;
}
#demo::before {
  content: "";
  position: absolute;	
  inset: calc(-1*var(--inset,0px));
  background: var(--gradient,conic-gradient(from 90deg at 40% -25%, #ffd700, #f79d03, #ee6907, #e6390a, #de0d0d, #d61039, #cf1261, #c71585, #cf1261, #d61039, #de0d0d, #ee6907, #f79d03, #ffd700, #ffd700, #ffd700));
  filter: blur(var(--blur,10px));
  transform: translate3d(var(--x,0),var(--y,0),-1px);
  clip-path: polygon(-100vmax -100vmax,100vmax -100vmax,100vmax 100vmax,-100vmax 100vmax,-100vmax -100vmax,calc(var(--inset,0px) - var(--x,0px)) calc(var(--inset,0px) - var(--y,0px)),calc(var(--inset,0px) - var(--x,0px)) calc(100% - var(--y,0px) - var(--inset,0px)),calc(100% - var(--x,0px) - var(--inset,0px)) calc(100% - var(--y,0px) - var(--inset,0px)),calc(100% - var(--x,0px) - var(--inset,0px)) calc(var(--inset,0px) - var(--y,0px)),calc(var(--inset,0px) - var(--x,0px)) calc(var(--inset,0px) - var(--y,0px)));
  pointer-events: none;
}
#demo.trans {
   background: var(--card-background-color);
 }
#demo.trans::before {
  clip-path: none;
  border-radius: inherit;
}
#demo.radius::before {
  content: none;
}
#demo.radius div {
  position: absolute;
  inset: -300px;
  border: 300px solid #0000;
  border-radius: calc(300px + var(--radius));
  -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transform: translateZ(-1px);
  pointer-events: none;
}
#demo.radius div::before {
  content: "";
  position: absolute;
  inset: calc(-1*var(--inset,0px));
  border-radius: var(--radius);
  background: var(--gradient,conic-gradient(from 90deg at 40% -25%, #ffd700, #f79d03, #ee6907, #e6390a, #de0d0d, #d61039, #cf1261, #c71585, #cf1261, #d61039, #de0d0d, #ee6907, #f79d03, #ffd700, #ffd700, #ffd700));
  filter: blur(var(--blur,10px));
  transform: translate(var(--x,0),var(--y,0));
}
main article {
	margin: 0;
    padding-block: 10px;
    text-align: center;
    border-radius: 0;
}
main article form {
	text-align: left;
	margin-bottom: 0;
}
fieldset:last-child {
	margin-bottom: 0;
}
form legend {
	text-decoration: underline;
	font-size: 1.2em;
}
form label {
	cursor: pointer;
}
form legend span {
	display: inline-block;
	margin-left: 10px;
}
form fieldset {
	margin:  0;
}
[style*="display"][style*="none"] + hr {
	display: none;
}

main .code {
	overflow: auto;
}
main .code code {
	font-size: 0.75em;
	cursor: text;
	color: var(--color);
}
pre[class*=language-] {
	margin: 0;
}
.toolbar {
    position: sticky;
    bottom: 0;
}
.gradient-container,
.h-offset,.v-offset,
.transparency {
    position: absolute;
    inset: 140px calc(350px + 17vw) auto 17vw;
    margin: auto;
    text-align: center;
}
.h-offset {
	inset: 250px calc(350px + 17vw) auto 17vw;
}
.v-offset {
	inset: 330px calc(350px + 17vw) auto 17vw;
}
.transparency {
 	inset: 410px calc(350px + 17vw) auto 17vw
}

@media (max-width: 900px) {
	html {
		height: auto;
		min-height: 100%;
	}
	body {
		grid-template-rows: auto  auto 1fr;
	}
	[data-ea-publisher] {
        position: static;
        order: -1;
    }
	body header {
		padding-right: 0;
		order: -2;
	}
	main {
		grid-template-columns: 1fr;
	}
	body footer {
		display: none;
	}
	main > section:first-child {
		resize: none;
	    border: none;
	    padding: 25px;
	    margin: auto;    
	    width: 90%;
	    height: 250px;
	    min-height: 0;
	}
	main section:last-child {
		height: auto;
	}
	form {
		display: grid;
		grid-gap: 5px;
	}
	.gradient-container {
		position: static;
    	margin: 0;
    	order: -1;
    	text-align: left;
	}
	.h-offset,.v-offset,.transparency {
		position: static;
		text-align: left;
		margin: 0;
	}
	.credit {
	    position: relative;
	    transform: none;
	    color: var(--primary);
	    border-image: none;
	    padding: 20px;
	    text-align: center;
	}
}