*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: sans-serif;
}
ul
{
	list-style: none;
}
a
{
	text-decoration:none;
	color:inherit;
}
body
{
	width: 100%;
	min-height: 100vh;
	background: #f8f8f8;
	padding-top: 60px; /*Must be the same as the min-height in header content*/
}
.header
{
	background: #000;
	color: #fff;
	position: fixed;
	width: 100%;
	top: 0;
}
.header__content
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 30px;
	min-height: 60px;
}
.logo
{
	font-size: 23px;
	letter-spacing: -1.5px;
	font-weight: 500;
	
}
.nav
{
	transition: all 0.3s ease-in-out; /*check this later to see if theres other options for the transition */
}
.nav__list
{
	display: flex;
	column-gap: 40px;
}
.nav__item
{
}
.nav__link
{
	font-size: 15px;
	transition: all 0.4s;
}
.nav__link:hover, .nav__link:focus
{
	color: #d3d3d3;
}
.hamburger
{
	display: none;
	cursor: pointer;
}
.bar
{
	height: 2px;
	width: 27px;
	background: #fff;
	margin: 5px 0;
	opacity: 0.8;
	transition: all 0.3s ease-in-out;
}
.hero
{
	width: 100%;
	height: auto;
	background: url(vecteezy_italian-food-ingredients-frame_2111155.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 140px;
	margin-bottom: 20px;
}
.hero h2
{
	font-size: 36px;
	margin-bottom: 10px;
}
.hero p
{
	font-size: 20px;
	margin-bottom: 10px;
}
.search-box
{
	max-width: 550px;
	margin: 15px auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
.search-box input
{
	width: 70%;
	padding: 10px;
	outline: none;
	border: 0;
	border-radius: 5px 0 0 5px;
	font-size: 16px;
	border: 1px solid #ff2400;
}
.search-box button
{
	padding: 10px 20px;
	outline: none;
	border: 0;
	border-radius: 0 5px 5px 0;
	font-size: 16px;
	background: #ff2400;
	color: #fff;
	cursor: pointer;
}

/*  ...Recipe Section.... */
.recipes
{
	padding: 50px;
}
.recipes h1
{
	text-align: center;
	margin-bottom: 30px;
	font-size: 28px;
}
.recipe-section
{
	width: 90%;
	margin: auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	column-gap: 10px;
	align-items: center;
}	
.recipe-card
{
	background: #fff;
	margin: 30px 10px;
	border-radius: 8px;
	border: 1px solid #ccc;
	overflow: hidden;
	box-shadow: 0 4px 8px #A9A9A9;
}
.recipe-card img
{
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.recipe-card h2
{
	font-size: 22px;
	padding: 20px;
}
.recipe-card p
{
	font-size: 18px;
	padding: 20px;
}
.recipe-card a
{
	display: block;
	text-align: center;
	text-decoration: none;
	background: #333;
	color: #fff;
	padding: 15px;
	cursor: pointer;
}




/* Animation for recipe cards */
.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.form-container {
    width: 90%;
    max-width: 500px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.form-container input,
.form-container textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-container button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background: #ff2400;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.form-container button:hover {
    background: #d12200;
}


footer
{
	background: #333;
	padding: 20px;
	color: #fff;
	text-align: center;
}

.nav--open
{
	transform: translate(0) !important;
}

.hamburger--open .bar:nth-child(1)
{
	transform: translateY(7px) rotate(45deg);
}

.hamburger--open .bar:nth-child(2)
{
	opacity: 0;
}

.hamburger--open .bar:nth-child(3)
{
	transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 650px)
{
	.nav
	{
		position: fixed;
		top: 60px;
		left: 0;
		background-color: #000;
		width: 100%;
		padding: 10px 0 25px;
		transform: translateY(-150%); /*Y makes it go from top down, X is from side to side.*/
	}
	.nav__list
	{
		flex-direction: column;
		align-items: center;
		row-gap: 20px;
	}
	.nav__link
	{
		font-size: 14px;
		
	}
	.hamburger
	{
		display: block;
	}
}