/* 공통 스타일 */
@font-face {
  font-family: 'LINESeedKR-Bd';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/LINESeedKR-Bd.woff2') format('woff2');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'LINESeedKR-Bd';
}

body {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  background-color: black;
}

/* 비디오 스타일 */
video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* 헤더 스타일 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 1);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px 0 100px;
  height: 10%;
}

header a {
  color: white;
  text-decoration: none;
  margin: 0 25px 0 0;
  font-size: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

header a:first-child {
  margin-right: auto;
  letter-spacing: 4px;
  font-size: 30px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 5px;
}

header a::before {
  content: '';
  position: absolute;
  top: 110%;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

header a:hover::before {
  width: 100%;
  top: 115%;
}

/* 컨테이너 스타일 */
.container {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
}
#footer-container {
  height: 5vh;
}

/* 제목 및 문장 스타일 */
h1,
p {
  color: transparent;
  margin-bottom: 20px;
  text-align: center;
  animation: zoomIn 15s ease-out 2s forwards;
  animation-name: appear;
  animation-delay: 0.5s;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

h1 {
  font-size: 7em;
}

p {
  font-size: 3em;
}

.afefilmlink {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 3px;
}

#background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/studio.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  animation: zoomAndBlur 10s ease 0s 1 forwards;
  z-index: -1;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  z-index: 1; /* Ensures overlay is above the background but below other content */
}

#content {
  position: relative;
  z-index: 1;
}
.image-container {
  background-image: url(./testimg/스튜디오-홈페이지_예약절차-그라데이션-네모네모.png);
  background-size: cover;
  position: relative;
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 3.5 / 1;
  overflow: hidden;
  border-radius: 20px;
  margin: auto;
  width: 100%; /* 너비를 100%로 설정 */
}
.image-container-bottom {
  background-image: url(./testimg/스튜디오-홈페이지_아래-칸-그라데이션-네모네모.png);
  background-size: cover;
  position: relative;
  width: 45%;
  aspect-ratio: 0.83 / 1;
  max-height: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
}
.image-container-bottom-top {
  height: 40%;
  /* background-color: antiquewhite; */
  position: relative;
}
.image-container-bottom-bottom {
  height: 60%;
  /* background-color: darkcyan; */
  position: relative;
}

.cover-image,
.content-image {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  transition: transform 0.3s ease, height 0.3s ease, clip-path 0.3s ease; /* 클립 및 높이 변경에 부드러운 효과 적용 */
}
.price-content {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  top: 50%;
  transform: translateY(-50%);
  clip-path: inset(50% 0 50% 0); /* 호버 전 중앙 부분만 보이도록 클리핑 */
  transition: transform 0.3s ease, height 0.3s ease, clip-path 0.3s ease; /* 클립 및 높이 변경에 부드러운 효과 적용 */
}
.price-content-cover-top {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  height: 25%; /* 초기 상태에서의 높이 설정 */
  top: 25%; /* 상단 이미지의 초기 위치 */
  transition: transform 0.3s ease, height 0.3s ease, clip-path 0.3s ease;
}
.price-content-cover-bottom {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  height: 25%; /* 초기 상태에서의 높이 설정 */
  bottom: 25%; /* 상단 이미지의 초기 위치 */
  transition: transform 0.3s ease, height 0.3s ease, clip-path 0.3s ease;
}
.refund-content {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  top: 50%;
  transform: translateY(-50%);
  clip-path: inset(50% 0 50% 0); /* 호버 전 중앙 부분만 보이도록 클리핑 */
}
.refund-cover-top {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  height: 20%; /* 초기 상태에서의 높이 설정 */
  top: 30%; /* 상단 이미지의 초기 위치 */
  transition: transform 0.3s ease, height 0.3s ease, clip-path 0.3s ease;
}

.refund-cover-bottom {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  height: 20%; /* 초기 상태에서의 높이 설정 */
  bottom: 30%; /* 상단 이미지의 초기 위치 */
  transition: transform 0.3s ease, height 0.3s ease, clip-path 0.3s ease;
}

.regulation-cover-top {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  height: 15%; /* 초기 상태에서의 높이 설정 */
  top: 35%; /* 상단 이미지의 초기 위치 */
  transition: transform 0.3s ease, height 0.3s ease, clip-path 0.3s ease;
}

.regulation-cover-bottom {
  left: 0;
  right: 0;
  margin: auto; /* 수평 중앙 정렬 */
  position: absolute;
  width: 95%;
  height: 15%; /* 초기 상태에서의 높이 설정 */
  bottom: 35%; /* 상단 이미지의 초기 위치 */
  transition: transform 0.3s ease, height 0.3s ease, clip-path 0.3s ease;
}

.content-image {
  top: 0%;
  height: 100%; /* 컨테이너 높이의 100% 차지 */
  clip-path: inset(50% 0 50% 0); /* 호버 전 중앙 부분만 보이도록 클리핑 */
}

.image-container:hover .content-image {
  clip-path: inset(0 0); /* 호버 시 전체 이미지 보이도록 클리핑 변경 */
}
.image-container .content-image {
  /* 호버되지 않았을 때, 더 빠른 애니메이션을 위한 설정 */
  transition: transform 0.5s ease, height 0.5s ease, clip-path 0.15s ease; /* 클립 변경이 빠르게 */
}

.image-container:hover .content-image {
  /* 호버 시, 더 느린 애니메이션을 위한 설정 */
  transition: transform 0.5s ease, height 0.5s ease, clip-path 0.7s ease; /* 클립 변경이 느리게 */
}
.image-container-bottom:hover .price-content {
  clip-path: inset(0 0); /* 호버 시 전체 이미지 보이도록 클리핑 변경 */
}
.image-container-bottom:hover .refund-content {
  clip-path: inset(0 0); /* 호버 시 전체 이미지 보이도록 클리핑 변경 */
}
.image-container-bottom .price-content {
  transition: transform 0.5s ease, height 0.5s ease, clip-path 0.15s ease; /* 클립 변경이 빠르게 */
}
.image-container-bottom .refund-content {
  transition: transform 0.5s ease, height 0.5s ease, clip-path 0.15s ease; /* 클립 변경이 빠르게 */
}
.image-container-bottom:hover .price-content {
  transition: transform 0.5s ease, height 0.5s ease, clip-path 0.15s ease; /* 클립 변경이 느리게 */
}
.image-container-bottom:hover .refund-content {
  transition: transform 0.5s ease, height 0.5s ease, clip-path 0.15s ease; /* 클립 변경이 느리게 */
}
.image-container-bottom:hover .price-content-cover-top {
  transform: translateY(-70%); /* 호버 시 상단 이미지를 위로 이동 */
  height: 30%; /* 호버 시 높이 변경 */
}
.image-container-bottom:hover .refund-cover-top {
  transform: translateY(-170%); /* 호버 시 상단 이미지를 위로 이동 */
  height: 15%; /* 호버 시 높이 변경 */
}
.image-container-bottom:hover .regulation-cover-top {
  transform: translateY(-200%); /* 호버 시 상단 이미지를 위로 이동 */
  height: 15%; /* 호버 시 높이 변경 */
}

.image-container-bottom:hover .price-content-cover-bottom {
  transform: translateY(70%); /* 호버 시 하단 이미지를 아래로 이동 */
  height: 30%; /* 호버 시 높이 변경 */
}
.image-container-bottom:hover .refund-cover-bottom {
  transform: translateY(170%); /* 호버 시 하단 이미지를 아래로 이동 */
  height: 15%; /* 호버 시 높이 변경 */
}
.image-container-bottom:hover .regulation-cover-bottom {
  transform: translateY(200%); /* 호버 시 하단 이미지를 아래로 이동 */
  height: 15%; /* 호버 시 높이 변경 */
}

.top,
.bottom {
  height: 20%; /* 초기 상태에서의 높이 설정 */
  top: 30%; /* 상단 이미지의 초기 위치 */
}

.bottom {
  top: auto;
  bottom: 30%; /* 하단 이미지의 초기 위치 */
}

.image-container:hover .top {
  transform: translateY(-90%); /* 호버 시 상단 이미지를 위로 이동 */
  height: 30%; /* 호버 시 높이 변경 */
}

.image-container:hover .bottom {
  transform: translateY(90%); /* 호버 시 하단 이미지를 아래로 이동 */
  height: 30%; /* 호버 시 높이 변경 */
}

/* 가이드 컨테이너 스타일 */
.guide-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 세로 방향 중앙 정렬 */
  justify-content: center;
  /* width: 100%; */
  height: 85%;
  margin: auto;
  aspect-ratio: 1.08/1;
  /* position: relative; */
  animation: zoomInGuid 2s;
  padding: 10px;
  max-width: 100vw;
}
.guide-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* 내부 요소를 가로 중앙에 위치시킵니다 */
  height: 35%;
  width: 100%;
}

.guide-bottom {
  height: 65%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* 양 끝에 요소를 배치 */
  align-items: center;
  /* 세로 방향 중앙 정렬 */
}

#header {
  height: 10%;
  width: 100%;
}

#third-guide {
  margin-left: 10px;
}

.custom-image-container {
  position: relative;
  width: 100%;
  height: 90%;
  display: flex;
  margin: auto;
}

.guide-item {
  height: 100%;
  /* 이미지의 최대 높이를 부모 요소의 높이로 제한 */
  height: auto;
  /* 이미지의 높이를 비율에 맞게 자동 조절 */
  width: auto;
  /* 이미지의 너비를 비율에 맞게 자동 조절 */
}

.img-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 70%;
  height: 80%;
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

#first-guide {
  width: 100%;
  max-height: 100%;
}

#second-guide {
  width: 50%;
  height: 100%;
}

#third-guide {
  width: 50%;
  height: 100%;
}
/* 전체 푸터 스타일 */
.footer-info {
  display: flex; /* Flexbox 레이아웃 사용 */
  align-items: center; /* 수직 중앙 정렬 */
  justify-content: space-between; /* 요소들을 양쪽 끝에 배치 */
  width: 100%;
  height: 5%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000; /* 다른 요소들 위에 표시되도록 높은 값 설정 */
  padding: 10px;
}

/* 비즈니스 정보 스타일 - 절대 위치 제거 */
.businessInfo {
  text-align: left;
  margin-left: 2%; /* 왼쪽 여백 추가 */
}

/* 소셜 링크 스타일 - 절대 위치 제거 */
.social-links {
  text-align: right;
  margin-right: 2%; /* 오른쪽 여백 추가 */
}

.social-links a {
  display: inline-block; /* 인라인-블록 요소로 설정 */
  margin-right: 10px; /* 오른쪽 여백 추가 */
}

.social-links img {
  height: 30px; /* 이미지 크기 조정, 필요에 따라 변경 */
  width: auto; /* 이미지의 가로 세로 비율 유지 */
  margin-left: 10px;
}

@keyframes appear {
  from {
    color: transparent;
    letter-spacing: 1px;
  }

  to {
    color: white;
    letter-spacing: 15px;
    /* h1을 위한 기본 값, p의 경우 개별적으로 재정의 가능 */
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

@keyframes zoomInGuide {
  from {
    transform: scale(0.9);
  }

  to {
    transform: scale(1);
  }
}

@keyframes zoomAndBlur {
  0% {
    background-size: 100% auto;
    filter: blur(0px);
  }

  50% {
    background-size: 110% auto;
    filter: blur(4px);
  }

  100% {
    background-size: 115% auto;
    filter: blur(5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    /* 약간 확대 */
  }
}

/* 모바일 환경에 대한 스타일 */
@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 10%;
    /* 상단 10% 차지 */
    z-index: 2;
    /* header가 비디오 위에 오도록 설정 */
    /* 기타 header 스타일 */
    padding: 0 15px 0 50px;
  }

  .image-container {
    border-radius: 10px;
  }

  .mobile-video {
    position: fixed;
    top: 10%;
    /* 상단 10% 아래에서 시작 */
    right: 0;
    bottom: 0;
    min-width: 100%;
    height: 90%;
    /* 화면의 남은 90% 차지 */
    z-index: 1;
    /* 비디오가 header 뒤에 오도록 설정 */
  }
  .img-guide {
    width: 80%;
    height: 30%;
  }

  video {
    object-fit: contain;
  }

  h1,
  p {
    font-size: 30px;
    word-break: keep-all;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  p {
    font-size: 20px;
    word-break: keep-all;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  header a {
    font-size: 10px;
    margin: 0 5px 0 0;
  }

  header a:first-child {
    margin-right: auto;
    font-size: 15px;
    letter-spacing: 2px;
  }

  .afefilmlink {
    letter-spacing: 1px;
  }

  .guide-container {
    height: 85%;
    display: flex;
    flex-direction: column;
  }

  .guide-item {
    max-height: 100%;
    /* 이미지의 최대 높이를 부모 요소의 높이로 제한 */
    height: auto;
    /* 이미지의 높이를 비율에 맞게 자동 조절 */
    width: auto;
    /* 이미지의 너비를 비율에 맞게 자동 조절 */
  }

  .guide-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 35%;
    width: 90%;
  }

  .guide-bottom {
    width: 90%;
    height: 65%;
    display: flex;
    flex-direction: column;
    padding: 0;
    justify-content: space-around;
  }

  #first-guide {
    margin-bottom: 10px;
    content: url('/img/guide/guideMoblie-1.png');
  }

  #second-guide {
    width: 100%;
    margin-bottom: 10px;
  }

  #third-guide {
    width: 100%;
    margin-left: 0px;
  }
  .footer-info span {
    font-size: 8px;
  }
  .social-links img {
    height: 15px; /* 이미지 크기 조정, 필요에 따라 변경 */
    width: auto; /* 이미지의 가로 세로 비율 유지 */
    margin-left: 5px;
  }
}
