@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
:root {
	--primary-color: #1b98e0;
	--secondary-color: #59c3c3;
	--text-dark: #333;
	--text-light: #ebebeb;
	--primary-font: Arial, Helvetica, sans-serif;
	--secondary-font: 'Fredoka One', sans-serif;
}

/* Mobile-First Styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body,
html {
	height: 100%;
	font-family: var(--primary-font);
	color: var(--text-dark);
}

img {
	max-width: 100%;
}

header,
footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

h1,
h2 {
	font-family: var(--secondary-font);
}

h2 {
	color: var(--primary-color);
}

header {
	border-bottom: 1px solid #ccc;
	padding-bottom: 20px;
}

.search-container {
	width: 95%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

#search-input {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 5px 0 0 5px;
	font-size: 1rem;
	width: 100%;
}

#search-button {
	border: 1px solid #ccc;
	border-radius: 0 5px 5px 0;
	background-color: white;
	cursor: pointer;
}

#search-button svg {
	width: 30px;
	height: 30px;
	fill: var(--text-dark);
}

.header-title {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	margin: 50px 0 50px 0;
}

.header-title h1 {
	font-size: 3em;
}

.header-title img {
	width: 100px;
	margin-bottom: 10px;
}

.social img {
	width: 50px;
}

.attribution {
	font-size: 0.6em;
	display: flex;
	justify-content: center;
	margin-top: 15px;
}

.recipe {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: left;
	margin: 20px;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 8px;
	max-width: 95%;
	margin-left: auto;
	margin-right: auto;
}

.recipe-image-col {
	width: 100%;
	max-width: 100%;
}

.recipe-image {
	width: 100%;
	height: auto;
}

.recipe-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: start;
	width: 100%;
}

.recipe-title {
	display: flex;
	flex-direction: column;
	align-items: start;
	width: 100%;
}

.recipe-description {
	display: none;
}

.tags ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style-type: none;
}

.tags li {
	border: 1px solid black;
	padding: 5px;
	text-transform: lowercase;
}

.ingredients-list,
.instructions-list {
	list-style-type: none;
	padding: 0;
}

.rating {
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-star,
.icon-star-empty {
	font-size: 1rem;
	color: gold;
}

.icon-star-empty {
	color: black;
}

/* Tablet Styles */
@media (min-width: 768px) {
	.recipe {
		flex-direction: row;
		align-items: start;
	}

	.recipe-image-col {
		width: 40%;
	}

	.recipe-info {
		width: 55%;
		margin-left: 20px;
	}

	.recipe-description {
		display: flex;
	}

	.header-title {
		margin: 20px 0 20px 0;
	}

	.header-title img {
		width: 60px;
	}

	footer {
		width: 95%;
		margin: auto;
		flex-direction: row-reverse;
		justify-content: space-between;
	}
}

/* Desktop Styles */
@media (min-width: 1024px) {
	.recipe-image-col {
		width: 35%;
	}

	.recipe-info {
		width: 60%;
	}

	.header-title img {
		width: 70px;
	}
}
