@charset "UTF-8";
html {
  cursor: url("../images/ball1.png") 32 32, auto;
  scroll-behavior: smooth;
}
/* 기본 스타일 */
body {
  font-family: "Yomogi", sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* 수평 중앙 정렬 */
  flex-direction: column;
  align-items: center; /* 수직 중앙 정렬 */
  min-height: 100vh; /* 화면 전체 높이 */
  cursor: url("../images/ball1.png") 32 32, auto;
  background: url("../images/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.start-background {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

/* .zero div 스타일 */
.zero {
  text-align: center;
  margin-top: -5%; /* ← 원하는 만큼 음수값으로 올림 */
  font-weight: bold;
}

/* 페이지 제목 스타일 */
.page-title {
  font-size: 60px;
  color: #333;
  margin-bottom: 10px;
}

/* 버튼 스타일 */
.button {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 10%;
  font-size: 30px;
  font-weight: bold;
  color: #7b5e57;
  background-color: #f6ecd9;
  text-decoration: none;
  border: 2px solid #c8a58f;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: url("../images/ball2.png") 32 32, auto;
}
.button:hover {
  background-color: #e0e0d1;
  transform: translateY(-2px);
}
.button:active {
  background-color: #d6cfc2; /* 눌렸을 때 따뜻한 딥레드 */
  transform: translateY(0); /* 눌릴 때 튀는 효과 제거 */
}
/* header 스타일 */
header {
  position: fixed;
  height: 100px;
}
.page-header {
  position: relative; /* 드롭다운 메뉴가 이 안에서 절대 위치하도록 함 */
  display: flex;
  justify-content: start; /* 왼쪽, 오른쪽 요소를 양쪽 끝으로 정렬 */
  align-items: center; /* 수직 정렬: 요소들을 수직 중앙에 맞추기 */
  padding: 10px 20px; /* 여백 설정 */
  background-color: transparent; /* 배경색 투명화 설정 */
  position: fixed; /* 네비게이션 바 고정 */
  gap: 15%;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box; /* 패딩을 포함한 전체 너비 계산 */
}
/* 로고 스타일 */
.page-header .logo {
  cursor: url("../images/ball2.png") 32 32, auto;
  height: 40px; /* 원하는 높이로 조정 */
  margin-right: 10px; /* 텍스트와 이미지 사이 간격 */
  pointer-events: auto;
  z-index: 10;
}

.page-header h1 a {
  font-family: "Yomogi", cursive;
  font-size: 24px;
  font-weight: bold;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  pointer-events: auto;
  z-index: 10;
}

.page-header h1 a:link,
.page-header h1 a:visited,
.page-header h1 a:hover,
.page-header h1 a:active {
  color: inherit; /* 색상 유지 */
  text-decoration: none; /* 밑줄 제거 */
  cursor: url("../images/ball2.png") 32 32, auto;
}

/* 네비게이션 바 스타일 */
.main-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  display: block; /* 전체 영역 클릭 가능하게 */
  padding: 14px 20px; /* 내부 여백 크게 */
  text-decoration: none;
  color: #333;
  font-family: "Yomogi", cursive;
  font-size: 20px; /* 글자 좀 더 큼 */
  line-height: 1.6; /* 줄간 간격 넓게 */
  transition: background-color 0.2s ease;
  cursor: url("../images/ball2.png") 32 32, auto;
}
.main-nav a:hover {
  background-color: #eee; /* hover 시 배경색 */
  border-radius: 8px; /* 부드럽게 */
}
.menu-toggle {
  position: fixed; /* 화면 고정 */
  top: 25px; /* 상단에서 거리 */
  right: 27px; /* 오른쪽에서 거리 */
  z-index: 20; /* 헤더 위에 올라오게 */
  font-family: "Yomogi", cursive;
  font-size: 1.2rem;
  padding: 10px 15px;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 8px;
  margin: 1px;
  cursor: url("../images/ball2.png") 32 32, auto;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  width: 15%;
  top: 85%; /* 버튼 아래로 완전히 이동 */
  right: 20px; /* 버튼 정렬과 일치 */
  margin-top: 10px; /* 버튼과 약간 간격 */
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* footer */
footer {
  background: #e4d1af;
  text-align: center;
  padding: 26px 0;
  bottom: 0;
  left: 0;
  width: 100%;
  position: fixed;
}
footer p {
  color: #7b5e57;
  font-size: 0.875rem;
  font-family: "Yomogi", sans-serif;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1.8s ease-out forwards;
}
/* 페이드 아웃 효과 */
.fade-out {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

main,
footer {
  position: relative;
  z-index: 1;
}

.fade-in-start {
  opacity: 0;
  animation: fadeInStart 1s ease-in-out forwards;
}
/* main 영역 */
main {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* 세로 방향 정렬 */
  flex: 1;
  padding-bottom: 60px;
  padding-top: 60px;
}

.text12 h2 {
  text-align: center;
  font-size: 2rem;
}

/* 이미지 가로 정렬 */
.scatter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 140px;
  width: 100%;
  max-width: 1200px;
  margin-top: 5%;
  position: relative;
}

/* 이미지 요소 */
.image-scatter {
  position: relative;
  width: 250px;
  height: auto;
  transition: transform 0.3s ease;
}

/* 회전 효과 */
.unique-image {
  width: 120%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: rotate(var(--rotate, 0deg)); /* 회전 효과 */
  transition: transform 0.3s ease;
}

.rotate-1 {
  transform: rotate(-7deg);
}
.rotate-2 {
  transform: rotate(8deg);
}
.rotate-3 {
  transform: rotate(6deg);
}
.rotate-4 {
  transform: rotate(-8deg);
}

.unique-image:hover {
  transform: scale(1.05); /* hover 시 이미지 확대 */
  cursor: url("../images/ball2.png") 32 32, auto;
}

@keyframes fadeInStart {
  to {
    opacity: 1;
  }
}

@keyframes wave {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* span으로 감싼 글자 애니메이션 */
.wave-text span {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
}

/* 600px 이하 화면용 반응형 디자인 */
@media screen and (max-width: 600px) {
  html,
  body {
    overflow-x: hidden; /* 가로 스크롤 방지 */
  }
  body {
    padding: 0 10px;
    background-size: cover;
    background-position: center;
  }
  .zero {
    margin-top: 20px; /* 모바일에서는 위로 올리기 */
    font-weight: bold;
  }
  main {
    padding-top: 100px; /* 헤더 높이만큼 여백 추가 */
    padding-bottom: 100px;
  }
  .start-background {
    min-height: 120vh; /* 모바일에서 좀 더 길게 설정 */
  }
  .page-title {
    font-size: 40px;
    margin-top: 60px;
  }
  .text12 h2 {
    text-align: center;
    font-size: 1.5rem;
  }
  .button {
    font-size: 20px;
    padding: 10px 20px;
    margin-top: 40px;
    font-weight: bold;
  }

  .menu-toggle {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .dropdown-menu {
    right: 10px;
    width: 36%;
    margin-top: -10px;
  }
  .main-nav li {
    margin: 0;
  }
  .main-nav a {
    font-size: 18px;
    padding: 8px 10px;
  }

  .scatter-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2열 구성 */
    gap: 50px;
    margin-top: 40px;
    padding: 0 10px;
    justify-items: center; /* 가운데 정렬 */
  }

  .image-scatter {
    width: 100%; /* 한 셀에 꽉 차게 */
    max-width: 160px; /* 너무 커지지 않도록 */
  }

  .unique-image {
    width: 100%;
    transform: rotate(var(--rotate, 0deg));
  }

  .rotate-1 {
    transform: rotate(-7deg);
  }
  .rotate-2 {
    transform: rotate(8deg);
  }
  .rotate-3 {
    transform: rotate(6deg);
  }
  .rotate-4 {
    transform: rotate(-8deg);
  }

  footer {
    padding: 0 10px;
  }

  footer p {
    font-size: 0.75rem;
  }
}
