
* {
	margin: 0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
	line-height: 1;
	background-color: #EFEBE9; /* BROWN 50 */
	-webkit-font-smoothing: antialiased;
}

h1 {
	font-family: cursive;
	font-size: 1.75em;
	text-align: center;
	padding: .75em .25em;
	background-color: #F57C00; /* ORANGE 700 */
	color: white;
}

main {
	padding: .75em;
}

main > * {
	font-family: sans-serif;
	font-size: 1.125rem;
	color: #757575; /* GREY 600 */
	background-color: #FAFAFA; /* GREY 50 */
}

.result {
	font-weight: bold;
	font-size: larger;
	color: #212121; /* GREY 900 */
}

section {
	max-width: 480px;
	margin: 0 auto 1em auto;
	padding-top: .5em;
	border-radius: .375rem;
}

fieldset {
	border: none;
	padding: .75em 1em 1.25em 1em;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

fieldset div {
	display: flex;
	justify-content: space-between;
}

label {
	font-size: 1.125em;
	font-weight: bold;
}

hr {
	border: 1px solid #FFE0B2; /* ORANGE 100 */
	margin: .5rem;
}

input, button, select {
	font: inherit;
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
}

input[type=range] {
	width: 100%;
}

input[type=range]::-webkit-slider-runnable-track {
	height: .25rem;
	background-color: #FF9800; /* ORANGE 500 */
	border-radius: .5rem;
}

input[type=range]::-webkit-slider-thumb {
	width: 1rem;
	height: 1rem;
	background-color: #757575; /* GREY 600 */
	border-radius: 100%;
	margin-top: -.375rem;
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
}

#recipes fieldset {
	position: relative;
}

#recipes fieldset::after {
	position: absolute;
	content: '\25BC';
	font-size: .75rem;
	top: 50%;
	right: 1.25rem;
	transform: translateY(-50%);
	pointer-events: none;
	color: #F57C00; /* ORANGE 700 */
}

select {
	width: 100%;
	border: none;
	text-align: center;
	font-size: 1.5rem;
	line-height: 1.5;
	padding-right: 1.5rem;
	background-color: transparent;
	text-overflow: ellipsis;
}

option {
	white-space: pre-wrap;
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
}

nav {
	display: flex;
	justify-content: center;
	background-color: transparent;
	margin: 0 auto 1em auto;
}

button {
	padding: .75em 2em;
	border: none;
	color: #757575; /* GREY 600 */
	background-color: #FAFAFA; /* GREY 50 */
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
}

button:first-child {
	border-top-left-radius: .5em;
	border-bottom-left-radius: .5em;
}

button:last-child {
	border-top-right-radius: .5em;
	border-bottom-right-radius: .5em;
}

button.selected {
	font-weight: bold;
	color: white;
	background-color: #F57C00; /* ORANGE 700 */
}

#quantity button {
	padding: 0;
	width: 3em;
	height: 2em;
	font-weight: bold;
	color: #F57C00; /* ORANGE 700 */
	border: 1px solid #757575; /* GREY 600 */
}

#quantity button:first-child {
	border-right: none;
}

#quantity button:last-child {
	border-left: none;
}

output[name=quantity] {
	padding-top: .25em;
	width: 2em;
	text-align: center;
	border: 1px solid #757575; /* GREY 600 */
	border-right: none;
	border-left: none;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1em;
}

th,
td {
	padding: .5em;
}

th {
	text-align: left;
}

td {
	text-align: right;
}

ul {
	line-height: 1.8;
	padding-bottom: 1em;
}

#save {
	padding: 1rem;
	display: flex;
	justify-content: space-between;
}

#save input {
	width: 100%;
	border: none;
	padding: .75rem .25rem;
	background-color: transparent;
}

#delete {
	margin-top: 3em;
	text-align: center;
	background-color: transparent;
}

::selection {
	background-color: #FFE0B2; /* ORANGE 100 */
}
