html,
body {
	margin: 0;
	background: blanchedalmond;
	font-family: system-ui;
	font-size: 16px;
}

header {
	background: burlywood;
	color: #755020;
	width: 100%;
	height: 60px;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
}

header h1 {
	font-size: 24px;
}

.container {
	margin: 20px;
}

.input-grid {
	display: grid;
	grid-template-columns: 6fr 1fr;
	gap: 5px;
	margin: 10px 0;
}

input {
	padding: 7px 10px;
	border-radius: 6px;
	border: 2px solid burlywood;
	background: bisque;
	outline: none;
	font-size: 16px;
}

input[type="number"] {
	width: 40px;
}

input[type="button"] {
	background: burlywood;
	border-color: burlywood;
	color: blanchedalmond;
	float: right;
}

input[type="button"]:hover {
	background: rgb(214, 171, 115);
	border-color: rgb(214, 171, 115);
}

input[type="button"]:active {
	background: rgb(194, 139, 67);
	border-color: rgb(194, 139, 67);
}

input[type="button"]#back {
	float: left;
}

footer {
	background: burlywood;
	color: #755020;
	width: 100%;
	height: 40px;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	position: fixed;
	bottom: 0;
	left: 0;
}

.help .material-icons {
	vertical-align: -5px;
}

h3.help {
	margin-top: 60px;
	margin-bottom: 20px;
	color: #755020;
	font-size: 16px;
}

p.help {
	margin: 10px;
	color: #444;
}

#result {
	position: relative;
	width: 350px;
	height: 350px;
}

#result .diagram-value {
	position: absolute;
}

.diagram-value#a {
	top: 94px;
	left: 69px;
}

.diagram-value#b {
	top: 80px;
	left: 169px;
}

.diagram-value#c {
	top: 94px;
	left: 270px;
}

.diagram-value#d {
	top: 183px;
	left: 97px;
}

.diagram-value#e {
	top: 146px;
	left: 169px;
}

.diagram-value#f {
	top: 183px;
	left: 237px;
}

.diagram-value#g {
	top: 259px;
	left: 169px;
}

.diagram-value#name_1 {
	top: 34px;
	left: 14px;
	transform: rotate(-41deg);
}

.diagram-value#name_2 {
	top: 34px;
	left: 270px;
	transform: rotate(41deg);
}

.diagram-value#name_3 {
	top: 322px;
	left: 149px;
}

a {
	color: cornflowerblue;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

#summ {
	line-height: 29px;
	width: 250px;
	margin-right: 0;
}

@media screen and (min-width: 450px) {
	.container {
		width: 410px;
		margin: auto;
	}

	header,
	footer {
		width: 450px;
		margin: auto;
	}

	footer {
		width: 450px;
		left: 50%;
		transform: translate(-50%, 0);
	}
}

@media screen and (max-width: 370px) {
	.container {
		margin: 7px;
	}

	header h1 {
		font-size: 20px;
	}

	div#slide-result {
		/* padding-top: 310px; */
	}

	#summ {
		position: absolute;
		left: 22px;
		bottom: -14px;
		width: 200px;
	}

	div#result {
		/* position: absolute; */
		left: -11px;
		/* top: 46px; */
		transform: scale(85%);
	}

	header, footer {
		width: 100%;
	}
}

#error {
	background: burlywood;
	border-radius: 6px;
	border: 2px dashed #755020;
	padding: 10px;
	margin-top: 20px;
}

#error h3 {
	margin: 5px 0;
}