/* 기본 스타일 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 네비게이션 바 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #000000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: all 0.3s ease;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #2575fc;
}

/* 햄버거 메뉴 (반응형) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.category {
  margin-bottom: 60px;
}

.category h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* 메인 콘텐츠 박스 */
#boxes {
  margin-top: 120px; /* 메뮤바에 가려지지 않게 여백 추가 */
  flex: 1;
}

#boxes .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  text-align: center;
}

#boxes .container h1 {
  width: 100%;
  font-size: 50px;
  margin-bottom: 10px;
}

#boxes .container p {
  width: 100%;
  margin-bottom: 40px;
  font-size: 18px;
  color: #666;
}

#boxes .box {
  margin-bottom: 30px;
  flex: 0 1 300px;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column; /* 세로 정렬 */
  align-items: center;
}

#boxes .box img {
  width: 100%;
  height: 200px; 
  object-fit: contain;
  border-radius: 15px;
  margin-bottom: 15px;
}

#boxes .box:hover {
  transform: translateY(-5px);
}

#boxes .box h3 {
  font-size: 20px;
  font-weight: 600;
}

.category-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px; /* 카테고리끼리 간격 주기 */
}

.category-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* 푸터 */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #f0f4f8;
  color: #666;
  margin-top: auto;
}

/* 애니메이션 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 2rem;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
  }
}
