html{
	max-width: 100vw;
	max-height: 100vh;
	background: #fefeef;
}

body{
	/* 	iOS Tweaks */
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	/*  */

	max-width: 100vw;
	max-height: 100vh;
}

.page{
	display: flex;
	flex-direction: column;
	height: 100vh;
	width: 100vw;
}

.model-container{
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.19);
	justify-content: center;
}

.model-share{
	width: 300px;
	height: 150px;

	background: #fefeef;
	box-shadow: 0 11px 20px 0 rgba(0, 0, 0, 0.2), 0 6px 34px 0 rgba(0, 0, 0, 0.19);
	border-radius: 1vmin;
	border: solid 0px;
	margin: 5vmax;
	padding: 2vmin;
}
#share-url{
	width: 100%;
}

.canvas-contain{
	padding: 2vmin;
	flex-basis: 1080px;
	max-height: 96vmin;
	max-width: 96vmin;
}

canvas{
	display: block;
	height: auto;
	width: 100%;
	background: #fff;
	border-radius: 1vmin;
	border: solid 1px #dbd5c7;
}

.toolbox{
	display: flex;
	/* padding: 1vmin; */
	/* background: blue; */
}

#color-palette , .flex-item{
	flex: auto;
	flex-wrap: wrap;

}
#color-palette{
	display: flex;
	flex-direction: row;
}
.save-container{
	flex: 1;
}

@media only screen and (orientation: landscape) {
	.page{
		flex-direction: row;
	}

	canvas [resize]{
		width: auto;
		height: 100%;
	}

	.toolbox{
		flex-direction: column;
	}

	#color-palette{
		flex-direction: column;
	}

}

.dot {
	/* flex: none; */
	margin: 1vmin;
	border: none;
	border-radius: 50%;
	padding: 4px;
	width: 40px;
	height: 40px;
	transition: all 80ms ease-in;
	color: #fefeef;
}

.dot div{
	background-color: #fcffea;
	transition: all 210ms , transform 1s cubic-bezier(0.43, 0.51, 0.29, 1.15);
}

.color.dot div{
	opacity: 0;
  transform: rotate(45deg);
  margin: auto;
	width: 8px;
	height: 18px;
  border-radius: 999px;
  position: relative;
}

.color.dot.erase div{
	opacity: 1;
	transform: rotate(225deg);
}

.color.dot.active{
	border: 1px solid #a9a9a9;
	box-shadow: 0px 0px 0.3px 2px #a9a9a9;
	background-clip: content-box;
}

.dot.mutable{
	opacity: 0.2; /* disabled */
	cursor: initial;
	background: #383838;
}

#button-fill-toggle{
	padding: 6px;
}

#button-fill-toggle div{
	opacity: 1;
  width: 100%;
  height: 50%;
  border-radius: 999px 999px 0 0;
  margin: 0 0 50%;
  transform-origin: 50% 100%;
  position: relative;
}

#button-fill-toggle.filled div{
	transform: rotate(180deg);
}

#button-fill-toggle.enabled{
	opacity: 1; /* enabled */
	cursor: pointer;
}

.icon{
	fill: #fcffea;
	transition: all 100ms ease-in;
}
#button-save{
	transition: all 300ms ease-in;
}

#button-save.enabled{
	opacity: 1; /* enabled */
	background: #00b159;
	cursor: pointer;
}

#button-save.working{
	background: #e9400a;
	opacity: 1;
}

#button-save.enabled.icon-send{
	background: #007eff;
}
