#jidelni-listek {
	position: relative;
	z-index: 0;
	box-shadow: inset 0 20px 40px 0 rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

#jidelni-listek img {
	position: absolute;
	top: 0;
	left: -20%;
	z-index: -1;
}
#jidelni-listek .img1 {
	top: 0;
}
#jidelni-listek .img2 {
	top: 65%;
}

@media (min-width: 1600px) {
	#jidelni-listek img {
		left: 0;
	}
}

@media (min-width: 2400px) {
	#jidelni-listek {
		background-image: url(../images/banner2.jpg);
		background-position: center top;
		background-size: cover;
		position: relative;
		z-index: 0;
	}
	#jidelni-listek img {
		display: none;
	}
}

@media (max-width: 998px) {
	#jidelni-listek img {
		left: -80%;
	}
	#jidelni-listek .img2 {
		top: 84%;
	}
}

@media (max-width: 768px) {
	#jidelni-listek .img2 {
		top: 80%;
	}
}

#jidelni-listek::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.1);
}

#jidelni-listek svg {
	position: absolute;
	top: 0;
	z-index: 1;
}

@media (max-width: 576px) {
	#jidelni-listek {
		padding: 0;
	}
}

/* Foodlist categories nav */

#foodlist_categories {
	display: flex;
	flex-direction: row;
	justify-content: start;
	background: #f1f1f1;
	padding: 15px 0;
	box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
	flex-wrap: wrap;
	margin: 0;
	user-select: none;
}

#foodlist_categories.active {
	cursor: grabbing;
	cursor: -webkit-grabbing;
}

.foodlist_cat_item {
	display: block;
	padding: 7px 30px;
	margin: 7px;
	-webkit-border-radius: 35px;
	-moz-border-radius: 35px;
	border-radius: 35px;
	background: #fff;
	color: #000000;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(66, 0, 0, 0.15);
	-webkit-transition: all 0.4s;
	-moz-transition: all 0.4s;
	-ms-transition: all 0.4s;
	-o-transition: all 0.4s;
	transition: all 0.4s;
}

.foodlist_cat_item:hover,
.foodlist_cat_item:focus {
	box-shadow: 0 3px 50px rgba(66, 0, 0, 0.2);
}

.foodlist_cat_item.selected {
	background: var(--primary-dark);
	color: #fff;
}

/* End of categories nav */

.foodlist-wrapper {
	width: 100%;
	background-color: rgb(255, 255, 255);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	position: relative;
	margin: 100px auto;
	border-radius: 10px;
}

@media (max-width: 576px) {
	.foodlist-wrapper {
		border-radius: 0;
		margin: 0;
	}
}

.foodlist-wrapper .foodlist-heading {
	text-align: center;
	font-size: 55px;
	font-weight: bold;
	margin: 0;
	padding: 35px 0;
}

#food-list {
	position: relative;
	display: grid;
	grid-gap: 45px;
	padding: 60px;
}

#food-list h3 {
	text-align: left;
	text-transform: uppercase;
	margin-bottom: 0;
	font-size: 35px;
	position: relative;
	color: rgb(45, 45, 45);
	padding: 0 15px;
	border-left: 4px solid var(--primary);
	grid-column: span 2;
}

#food-list h3:nth-child(1) {
	margin-top: 0;
}

.item-list {
	font-size: 18px;
	display: block;
	width: 100%;
	overflow: hidden;
	margin-bottom: 5px;
	border-bottom: 1px solid #d0d0d0;
}

.item-list-food {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
}

.item-list-name {
	font-weight: 600;
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: 75%;
}

.item-list-price {
	color: var(--primary-dark);
	padding: 0 4px;
	font-weight: bold;
}

.item-list-ingredience {
	font-size: 15px;
	color: #808080;
	width: 100%;
	padding-bottom: 10px;
}

/* Media queries */

@media (max-width: 992px) {
	#food-list {
		padding: 20px;
	}
}

@media (max-width: 768px) {
	#food-list {
		grid-gap: 5px;
		background-repeat: repeat-y;
		background-attachment: scroll;
	}

	#food-list h3 {
		grid-column: span 1;
	}
	.item-list {
		font-size: 15px;
	}
	#food-list h3 {
		font-size: 30px;
		margin-bottom: 10px;
	}
}

@media (max-width: 576px) {
	.foodlist-heading {
		font-size: 42px;
		padding: 20px 0;
	}

	#foodlist_categories {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: scroll;
		padding: 10px 0;
	}

	.foodlist_cat_item {
		flex-shrink: 0;
		padding: 5px 15px;
		max-width: 100%;
	}

	#food-list h3 {
		font-size: 25px;
		margin-bottom: 10px;
	}

	.item-list-ingredience {
		font-size: 13px;
	}
	.item-list-price {
		padding: 0;
	}
}

/* Loading spinner */

@keyframes spinner {
	to {
		transform: rotate(360deg);
	}
}

#loading:before {
	content: "";
	box-sizing: border-box;
	position: absolute;
	top: 10px;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-radius: 50%;
	border: 2px solid #ccc;
	border-top-color: #333;
	animation: spinner 0.6s linear infinite;
	font-style: italic;
}

#loading {
	position: relative;
	text-align: center;
	padding: 40px 0;
}
