/********************************************************************************/

/***** Header *****/

.header {
	width: 100%;
	height: 60vh;
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.header-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(3);
	animation: rotate 120s linear infinite;
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.logo {
	font-family: 'Dancing Script', cursive;
	font-size: 8rem;
	color: #fff;
	text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	animation: slideIn 2s forwards;
	animation-delay: 1s; /* アニメーションの開始を遅らせる */
}

/********************************************************************************/

/***** Main *****/

.main-content {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
	text-align: center;
}

.intro {
	background-color: #fff;
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	margin-bottom: 40px;
}

.intro h2 {
	font-size: 2.5rem;
	color: #e57373; /* やさしいピンク色 */
}

/********************************************************************************/

/***** Recipe Showcase *****/

#recipe-showcase-container {
	justify-items: center;
}

#recipe-showcase-title {
	font-size: 2.5rem;
	color: #e57373; /* やさしいピンク色 */
	margin-bottom: 20px;
}

#recipe-showcase-list {
	width: 100%;
	display: flex;
	gap: 16px;
	padding: 20px;
	margin: 20px 0;
	white-space: nowrap;
	justify-content: center;
	align-items: center;
	transition: transform 0.5s ease;
}

.recipe-showcase-card {
	width: 200px;
	height: 200px;
	background-color: white;
	border-radius: 15px;
	font-weight: bold;
	color: #333;
	opacity: 0.2;
	user-select: none;
}

.recipe-showcase-card.main {
	opacity: 1;
}

.recipe-showcase-card.sub {
	opacity: 0.7;
}

.recipe-showcase-card img {
	object-fit: cover;
	max-width: 200px;
	max-height: 200px;
	border-radius: 15px;
}





.connect-button {
	width: 100%;
	padding: 10px 20px;
	margin: 20px 0;
	background-color: #ffcc80;
	border-radius: 30px;
	border: 3px solid #000;
	text-decoration: none;
	text-align:center;
	transition: box-shadow 0.5s ease;
}

.connect-button:hover {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}



/********************************************************************************/

#recipe-info-button-list {
	width: 100%;
	display: flex;
	gap: 16px;
	padding: 20px;
	margin: 20px 0;
	white-space: nowrap;
	justify-content: center;
	align-items: center;
}


/********************************************************************************/

/***** Recipe Card List *****/

#recipe-card-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	padding: 0;
}

.recipe-card {
	background-color: #fff;
	color: #333;
}

.recipe-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.recipe-title {
	padding: 15px;
	font-weight: bold;
	font-size: 1.2rem;
	background-color: #ffebee; /* 淡いピンクの背景 */
	text-align: center;
}

/**************************************************/

/***** Acknowledgements *****/

#acknowledgements-container {
	justify-items: center;
}

#acknowledgements-list {
	/* width: 60%; */
	margin: 0 20vw;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

#acknowledgements-list p {
	text-align: center;
}



.acknowledgements-list-container {
	display: flex;
	flex: 1 1 100%;
	gap: 16px;
	padding: 20px;
	margin: 20px 0;
	white-space: nowrap;
	justify-content: center;
	align-items: center;
}

/********************************************************************************/

/***** Recipe Detail Screen *****/

#recipe-detail-screen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: center;
}

#recipe-detail-screen.show :not(.black-background) {
	animation: slideIn 0.5s forwards;
}
#recipe-detail-screen.show .black-background {
	animation: fadeIn 0.5s forwards;
}

#recipe-detail-screen.hide :not(.black-background) {
	animation: slideOut 0.5s forwards;
}
#recipe-detail-screen.hide .black-background {
	animation: fadeOut 0.5s forwards;
}

#recipe-details-container {
	width: 80%;
	margin-top: 5vh;
	padding: 2%;
	overflow-x: hidden;
	overflow-y: hidden;
	background-color:oldlace;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	text-align: center;
}

/* author */

#recipe-author-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

/* image */

#recipe-image {
	background-color: #3333;
	border-radius: 15px;
}

/* ingredients */

#recipe-ingredients-container {
	justify-items: center;
}

#recipe-ingredients-list {
	width: 80%;
	display: grid;
	grid-template-columns: repeat(2 , 1fr);
}

.recipe-ingredient {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

/* instructions */

#recipe-instructions-container {
	justify-items: center;
}

#recipe-instructions-list {
	justify-items: left;
}

/********************************************************************************/