* {
	box-sizing: border-box;
}

::selection {
	background-color: #6c63ff;
	color: white;
}

html,
body {
	height: 100%;
}

html {
	padding: 10px;
	background: radial-gradient(#fff, #e1e1e1) no-repeat 0 0 / 100% 100%;
	background-attachment: fixed;
}

body {
	margin: 0;
	display: grid;
	place-items: center;
}

#blob {
	position: relative;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	overflow: hidden;
	transform: rotate(var(--r, 0));
}

button {
	background-color: transparent;
	color: #3f3d56;
	border: 4px solid;
	border-radius: 6px;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: bold;
	padding: 10px 20px;
	outline: none;
	cursor: pointer;
	user-select: text;
}

button:active {
	color: #6c63ff;
	transform: rotate(0.1deg) scale(0.9);
	transform-origin: 50% 100%;
}

#blob,
#blob div,
button {
	transition: ease 600ms;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0);
}

#blob div {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 400px;
	height: 400px;
	transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) * -1));
	background: #3f3d56 url('https://github.com/Shadow-Scientist/BlobMaker/raw/master/assets/hero.png') center / 340px
		auto;
}

#blob,
#blob div {
	transition-property: border-radius, transform;
}
