/* 전체 기본 스타일 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; line-height: 1.6; background-color: #f4f4f4; height: 100%; } .container { width: 80%; margin: 0 auto; } section { scroll-margin-top: 150px; } hr { margin: 20px 0; } a { text-decoration: none; color: #fff; } /* 헤더 영역 */ header { background-color: #333; color: #fff; padding: 20px 0; position: fixed; width: 100%; height: 150px; top: 0; left: 0; z-index: 10; } header h1 { text-align: center; white-space: nowrap; } #head{ width: 100%; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 50px; } /* 헤더 영역 - 메뉴바 */ nav ul { list-style: none; display: flex; justify-content: center; } nav ul li { margin: 0 30px; } .menu { font-size: 1.5rem; } .menu:hover { color: #ff6347; } /* 작은 화면에서 시계 제거 */ @media screen and (max-width: 768px) { #time{ display: none; } } /* 메인 영역 */ main { position: relative; top: 150px; } /* 소개 섹션 */ .intro { background-color: #fff; padding: 30px 0; } .intro-content { display: flex; justify-content: center; align-items: center; gap: 20px; } .profile img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; cursor: pointer; } /* 레시피 섹션 */ .recipes { background-color: #f9f9f9; padding: 30px 0; } .recipes h2 { font-size: 2rem; text-align: center; color: #333; margin-bottom: 30px; } .recipes-list { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; } .recipe { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); width: 30%; } .recipe h3 { font-size: 1.5rem; color: #333; text-align: center; margin-bottom: 10px; } .recipe p { font-size: 1rem; color: #666; margin: 0 auto; } .recipe img { display: block; margin: 30px auto; max-width: 100%; height: auto; } .foodImg{ cursor: zoom-in; } /* 반응형 디자인 (화면이 작아지면 세로로 배치) */ @media (max-width: 768px) { .intro-content { flex-direction: column; text-align: center; } .profile img { width: 150px; height: 150px; } .recipes-list { flex-direction: column; text-align: center; } .recipe { width: 100%; } } /* 연락처 섹션*/ .contact { text-align: center; margin: 20px 0; } .contact h3 { font-size: 1.8rem; color: #333; margin-bottom: 10px; } .contact p { font-size: 1.2rem; color: #666; } /* 푸터 영역 */ footer { background-color: #333; color: #fff; padding: 20px 0; text-align: center; } footer p { font-size: 1rem; } /* 마우스 이미지 */ #followMouse { position: fixed; top: 0; left: 0; pointer-events: none; /* 마우스 이벤트가 이미지에 막히지 않도록 */ z-index: 100; width: 30px; height: 30px; }