*
{
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html, body
{
	margin: 0px;
}

body
{
	min-height: 100vh;
	font-family: 'Titillium Web', sans-serif;
	/* text-rendering: optimizeSpeed; */
}

header
{
	top: 0px;
	left: 0px;
	position: -webkit-sticky;
	position: sticky;
	height: 60px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	border-bottom: 1px solid;
	background: white;
}

main
{
	padding: 0px 30px;
	/* height: 100vh; */
	padding-bottom: 80px;
}

button
{
	background: none;
	border: none;
}

.mini-fab
{
	position: fixed;
	z-index: 100;
	right: 16px;
	bottom: 16px;
	height: 42px;
	width: 42px;
	border-radius: 12px;
	background: rgb(229 210 214);
	transform: scale(0);
	transition: 0.3s transform;
	z-index: 2000;
}

.mini-fab-active
{
	transform: scale(1);
}

.extended-fab
{
	position: fixed;
	z-index: 100;
	right: 16px;
	bottom: 24px;
	min-width: 80px;

	min-width: calc(100% - 60px);
	right: calc((100% - (100% - 60px)) / 2);

	height: 56px;
	background: rgb(225, 221, 225);
	border-radius: 16px;
	font-family: 'Titillium Web', sans-serif;
	padding: 16px;
	display: flex;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: 0.3s transform;
}

.extended-fab-hidden
{
	transform: scale(0);
}

.extended-fab .text
{
	height: 24px;
	display: flex;
	align-items: center;
	font-size: 1.2rem;
}

.extended-fab .material-icons
{
	margin-right: 15px;
}

.food-item-holder
{
	padding-top: 25px;
	display: flex;
	flex-direction: column;
}

.food-item
{
	margin-bottom: 20px;
	/* height: 120px; */
	background: #7783bd3F;
	color: #7783bd;
	
	background: rgba(var(--primary-color), 0.16);
	color: rgba(var(--primary-color));

	border-radius: 12px;
	display: flex;
	flex-direction: column;
	padding-bottom: 5px;
	/* align-items: ; */
}

.food-item-top
{
	display: flex;
	height: 70px;
}
.food-item-bottom
{
	height: 50px;
	padding: 10px;
	padding-top: 7px;
}
.food-item-slider
{
	width: 100%;
	height: 30px;
}

.food-item-name
{
	display: flex;
	align-items: center;
	color: black;
	font-size: 1.2rem;
	line-height: 1.2;
	padding-right: 10px;
}

.food-item-number
{
	height: 70px;
	width: 60px;
	font-size: 1.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.food-item-percentage
{
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	/* text-align: right; */
	flex: 1;
	/* padding-left: 10px; */
	font-weight: 700;
	/* justify-self: flex-end; */
	/* min-width: 60px; */
	padding-right: 15px;
	line-height: 1.1;
	text-align: right;
	min-width: 90px;
}

#input1 {
	--progress: 20%;
}

input[type=range] {
	-webkit-appearance: none; /* Hides the slider so that custom slider can be made */
	width: 100%; /* Specific width is required for Firefox. */
	background: linear-gradient(180deg, transparent 0%, transparent 42%, rgba(0,0,0,1) 42%, rgba(0,0,0,1) 58%, transparent 58%, transparent 100%);
	/* z-index: 3; */
}

input[type=range]::-webkit-slider-thumb
{
	-webkit-appearance: none;
}

input[type=range]::-ms-track
{
	width: 100%;
	cursor: pointer;

	/* Hides the slider so custom styles can be added */
	background: transparent; 
	border-color: transparent;
	color: transparent;
	z-index: 1;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 30px;
	width: 30px;
	border-radius: 100%;
	background: #7783bd;
	background: radial-gradient(circle, #7783bd 0%, #7783bd 12%, white 12%, white 20%, #7783bd 20%, #7783bd 100%);
	background: radial-gradient(circle, rgb(var(--primary-color)) 0%, rgb(var(--primary-color)) 12%, white 12%, white 20%, rgb(var(--primary-color)) 20%, rgb(var(--primary-color)) 100%);
	cursor: pointer;
	/* margin-top: calc(-25px / 2); */
	/* margin-top: -11px; You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 30px;
	border-radius: 5px;
	cursor: pointer;
	/* background: #777; */
	/* background: linear-gradient(90deg, red 0%, red var(--progress)); */
	background: linear-gradient(90deg, rgb(var(--primary-color)) 0%, rgb(var(--primary-color)) var(--progress, 0%), transparent var(--progress, 0%), transparent 100%);
	/* background-size: var(--progress, 0%); */
}
/* 
input[type=range]:focus::-webkit-slider-runnable-track {
	background: #367ebd;
} */

.food-item-slider
{

}

.overlay
{
	transform: translateY(100vh);
	transition: 0.3s transform;
	position: fixed;
	left: 0px;
	top: 0px;
	height: 100vh;
	width: 100vw;
	/* background: #333; */
	z-index: 1000;
	background: white;
	overflow: scroll;
}
.hide
{
	display: none !important;
}
.add-message
{
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.food-item-percent-sign
{
	font-size: 1rem;
}

.overlay-active
{
	transform: translateY(0vh);
}

#searchBox
{
	width: 100%;
	height: 70px;
	border: 0;
	font-family: 'Titillium Web', sans-serif;
	font-size: 1.7rem;
	outline: none;
	padding: 15px;
	border-bottom: 1px solid;
	position: sticky;
	top: 0px;
	left: 0px;
}

.searchResult
{
	width: 100%;
	/* height: 70px; */
	padding: 15px;
	background: white;
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}