html {
    display: grid;
    height: 100%;
    grid-template-rows: 100%;
}
body {
	display: inherit;
	grid-template-rows: 0px 100% auto;
}
body>header, body>main {
	padding: 0;
}
body header {
	text-align: center;
	padding-inline: 80px 350px;
	z-index: 1;
}
body header > * {
	margin: 5px 0;
}
main {
	display: grid;
	grid-template-columns: minmax(0,1fr) 350px;
}
main > section {
	margin-bottom: 0;
	z-index: 2;
}
main > section:first-child {
    margin: 100px 3rem 0 calc(80px + 3rem);
}
main > section:first-child p {
    text-wrap: balance;
    text-align: center;
}
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;
    width: 100%;
}
main section:last-child a {
	text-align: center;
    display: block;
    font-size: 15px;
    padding: 0.5em 0;
}
small {
	display: inline-block;
}
#demo {
  height: 40vh;
  min-height: 250px;
  background: linear-gradient(45deg in hsl, #2a9d8f, #a7c957);
  clip-path: polygon(0 0,0 calc(100% - 30px),4.17% calc(100% - 41px),6.94% calc(100% - 10px),9.72% calc(100% - 53px),12.5% calc(100% - 24px),15.28% calc(100% - 39px),18.06% calc(100% - 24px),20.83% calc(100% - 53px),23.61% calc(100% - 5px),26.39% calc(100% - 34px),29.17% calc(100% - 22px),31.94% calc(100% - 45px),34.72% calc(100% - 5px),37.5% calc(100% - 43px),40.28% calc(100% - 8px),43.06% calc(100% - 52px),45.83% calc(100% - 27px),48.61% calc(100% - 57px),51.39% calc(100% - 1px),54.17% calc(100% - 42px),56.94% calc(100% - 21px),59.72% calc(100% - 40px),62.5% calc(100% - 20px),65.28% calc(100% - 33px),68.06% calc(100% - 18px),70.83% calc(100% - 57px),73.61% calc(100% - 16px),76.39% calc(100% - 59px),79.17% calc(100% - 27px),81.94% calc(100% - 50px),84.72% calc(100% - 8px),87.5% calc(100% - 56px),90.28% calc(100% - 9px),93.06% calc(100% - 43px),95.83% calc(100% - 5px),100% calc(100% - 30px),100% 0);
  transition: clip-path .3s, border-shape .3s;
}
body:has(input[value="wav-2"]:checked) #demo {
  border-shape: var(--c);
  clip-path: none;
  background: none;
  border: 8px solid #2a9d8f;
}
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;
}
main .code {
	overflow: auto;
	padding-bottom: 80px;
}
main .code code {
	font-size: 0.75em;
	cursor: text;
	color: var(--color);
}
pre[class*=language-] {
	margin: 0;
}
.code-e {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.grid > *{
  margin: 0!important;
}
.border-type {
    position: absolute;
    z-index: 3;
    left: 20px;
    top: 100px;
    display: grid;
    grid-gap: 10px;
}
.border-type label {
    position: relative;
    width: 70px;
    aspect-ratio: 1;
    display: grid;
    --mask-size: 18px;
}
.border-type label input {
    opacity: 0;
    grid-area: 1/1;
}
.border-type label span {
    position: absolute;
    left: 105%;
    top: 50%;
    translate: 0 -50%;
    white-space: nowrap;
    font-size: .9em;
    color: #fff;
    background: #000;
    padding: 2px 5px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: .3s;
}
.border-type label:hover span {
    opacity: 1;
}
.border-type label i {
    grid-area: 1/1;
    display: grid;
    border: 1px solid var(--pico-form-element-color);
    border-radius: 5px;
}
.border-type label i:before {
	content: "";
    display: grid;
    margin: 5px;
    background: var(--pico-form-element-color);
}
.border-type label input:checked + i:before {
	background: var(--pico-primary);
	border-color: var(--pico-primary);
}
.border-type label input:checked + i {
	box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
    border: 1px solid var(--pico-primary);
}
.border-type label:nth-child(1) i:before{
	clip-path: polygon(0 0,100% 0,100% 80%,60% 40%,30% 75%,0 60%);
}
.border-type label:nth-child(2) i:before {
 	border: 5px solid var(--pico-form-element-color);
 	background: none!important;
 	margin-bottom: 20px;
 	border-shape: shape(from 100% 80%,line to 60% 40%,line to 30% 75%,line to 0 60%);
}
@media (max-width: 900px) {
	html {
		height: auto;
		min-height: 100%;
	}
	body {
		grid-template-rows: auto auto 1fr;
	}
	body header {
		padding: 0;
		order: -2;
	}
	main {
		grid-template-columns: 1fr;
	}
	main .code {
		padding-bottom: 15px;
	}
	.grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
	main > section:first-child {
		resize: none;
	    border: none;
	    padding: 25px;
	    margin: 0;
	}
	main section:last-child {
		height: auto;
	}
	main > section:first-child:before,
	main > section:first-child:after {
		content: none;
	}
	.border-type {
	    position: static;
	    display: flex;
	    justify-content: center;
	}
	.border-type label span {
		bottom: 105%;
		left: 50%;
		top: auto;
		translate: -50% 0;
	}
}
@supports not (clip-path: shape(from 0 0,curve to 0 0 with 0 0)) {
	body::before {
		content:"⚠️ Sorry but there is no waves for you using this browser ⚠️";
		position: fixed;
		inset: 0;
		display: grid;
		place-content: center;
		text-align: center;
		background:#fffc;
	    z-index: 999;
   		color: #000;
    	font-size: 30px;
    	font-weight: bold;
	}
}
@supports not (border-shape: shape(from 0 0,curve to 0 0 with 0 0)) {
	.border-type {
		display: none;
	}
}