/* 기본 스타일 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
  position: relative;
  background-color: #A0B7CD;
}

html, body {
  height: 100vh;
  margin: 0;
}

/* 헤더 스타일 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  padding: 5vh 0;
}

header.hide {
  opacity: 0;
  pointer-events: none;
}

/* 로고 스타일 */
.app-name {
  margin-left: 15%;
}

/* SNS 아이콘 스타일 */
nav {
  margin-right: 15%;
}

.sns-icons {
  display: flex;
  list-style-type: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.youtube-icon,
.insta-icon {
  margin-right: 3vw;
}

.tiktok-icon {
  margin-right: 0;
}

body:not(.main-section):not(.footer-section) .tiktok-icon {
  margin-right: 3vw;
}

/* 오른쪽 상단 로고 */
.top-right-logo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  cursor:pointer;
}

.top-right-logo.hide {
  opacity: 0;
  pointer-events: none;
}

.top-right-logo img {
  width: 8vw;
  min-width: 80px;
  max-width: 150px;
  height: auto;
}

/* 스크롤 버튼 */
.scroll-image-container {
  position: fixed;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.scroll-button {
  width: 8vw;
  min-width: 30px;
  max-width: 50px;
  height: auto;
  cursor: pointer;
}

/* 메인 콘텐츠 */
#dynamic-content {
  position: fixed;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: 1;
  background-color: #A0B7CD;
}

/* 슬라이드 애니메이션 */
@keyframes slideUp {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up, .slide-down {
  position: fixed;
  width: 100vw;
  left: 0;
  top: 0;
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.slide-down {
  animation: slideDown 0.8s ease-out forwards;
}

/* 인디케이터 */
.indicator {
  position: fixed;
  top: 50%;
  right: 3vw;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}

.indicator.show {
  opacity: 1;
  pointer-events: auto;
}

.indicator button {
  width: 1vw;
  height: 1vw;
  border-radius: 50%;
  border: 2px solid transparent;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 12px;
  min-height: 12px;
  max-width: 15px;
  max-height: 15px;
}

.indicator button.active {
  border-color: white;
  background-color: #ca2047;
}

/* 다운로드 버튼 */
.header-app-download-button {
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease-in-out;
}

.header-app-download-button.show {
  opacity: 1;
  display: block;
  cursor: pointer;
}

.app-download-button {
  display: none;
}

.app-download-button.show {
  display: block;
  cursor: pointer;
}

/* 반응형 스타일 */
@media screen and (max-width: 720px) {
  /* 모바일 스타일 */
  .app-name{
    margin-left: 5%;
  }

  .app-name img{
    width: 60%;
    max-width: 180px;
    height: auto;
  }
  
  .sns-icons li{
    display: none;
  }

  .sns-icons li:last-child {
    display: block;
    margin-right: -15vw;
  }

  .header-app-download-button {
    display: block;
    width: 80%;
    height: auto;
  }

  .app-download {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .app-download-button {
    width: 150px;
  }

  .scroll-image-container {
    left: auto;
    right: 10px;
    bottom: 10px;
    transform: translateX(0);
  }

  .scroll-button {
    width: 30px;
    margin-bottom: 20px;
    margin-right: 10px;
  }

  .top-right-logo img {
    width: 70px;
  }

  .app-name img {
    min-width: 80px;
  }
}


@media screen and (min-width: 1281px) {
  /* 데스크탑 스타일 */
  .app-download {
    display: none;
  }
}
