@charset "UTF-8";
@font-face {
    font-family: "GmarketSansMedium";
    src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}
html {
    overflow-x: hidden;
}

body {
    font-family: "GmarketSansMedium", Helvetica, sans-serif !important;
    font-size: 0.85rem;
}

.navbar-brand img {
    max-height: 40px;
}

.btn-xs {
    font-size: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 0.25rem;
}

.btn-primary {
    --bs-btn-bg: #072d93;
    --bs-btn-border-color: #072d93;
    --bs-btn-hover-bg: #072d93;
    --bs-btn-hover-border-color: #072d93;
    --bs-btn-active-bg: #072d93;
    --bs-btn-active-border-color: #072d93;
}

@media (max-width: 500px) {
    .navbar-brand img {
        max-width: 100px;
    }
    .navbar-expand-lg .navbar-brand {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
}


video {
    width: 100%;
    border: 0 solid #e5e7eb;
}

.accordion-item .card-body {
    padding: 0 1.25rem 0.25rem 2rem;
}

/**
 * 모바일에서 plyr가 최소 넓이가 200px이라서 틀이 깨져서 수정한다.
 */
.plyr {
	width:100%;
	min-width:100%;	
}

@media (max-width: 767px) {
  /* 설정, 볼륨, 전체화면 버튼 숨김 */
  .plyr__controls [data-plyr="settings"],
  .plyr__controls [data-plyr="volume"],
  .plyr__controls [data-plyr="mute"],
  .plyr__controls [data-plyr="pip"],
  .plyr__controls [data-plyr="airplay"],
  .plyr__controls [data-plyr="download"],
  .plyr__controls [data-plyr="fullscreen"],
  .plyr__menu,
  .plyr__volume { display: none !important; }

  /* 진행바만 넓게 */
  .plyr__controls { gap: .25rem; }
  .plyr__progress { flex: 1 1 auto; }
}

.title-ellipsis {
  min-width: 0;
  white-space: nowrap;       /* 줄바꿈 안 함 */
  overflow: hidden;          /* 넘치는 부분 숨김 */
  text-overflow: ellipsis;   /* 말줄임표 (…) 표시 */
  display: block;            /* inline이면 안 먹으니 block/inline-block */
  max-width: 100%;           /* 부모 영역 기준으로 잘림 */  
}

/* -------------------------------------------------------
 메인 탑 채팅으로 홈페이지 만들기 시작하는 영역
 --------------------------------------------------------- */

#landing_prompt form {
    overflow: hidden;
    padding: 10px 10px;
    background: #ffffff;
    border-top: 1px solid var(--bs-border-color);
    border-left: 1px solid var(--bs-border-color);
    border-right: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    border-radius: 10px;
}

#landing_prompt textarea {
    border: 0px;
    resize: none;
    background: transparent;
}
#landing_prompt  textarea::placeholder {
  color: #AAA;
  opacity: 1;
}

#landing_prompt textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: inherit; /* 선택적으로 보더 색 고정 */
}

#generatorTabs .nav-link {
	margin-right:1rem;
}

@media (max-width: 500px) {
	#landing_prompt {
		margin-left:10px;
		margin-right:10px;	
	}
}

/* -------------------------------------------------------
 메인 버튼이 너무 큼(마바일에서)
 --------------------------------------------------------- */
@media (max-width: 500px) {
	#model .btn {
		padding:2px 3px 0px 3px;
		font-size:86%;
	}
}


#step_sction h5 {
	font-size:90%;
}

#imageModal img {
  max-height: 80vh;
  object-fit: contain;
}

/* modal 내부 닫기 버튼을 최상단 고정 */
.modal .btn-close {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  z-index: 9999 !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}


/****************************************************
 * FAQ
 ****************************************************/
.accordion-wrapper .card {
    margin-bottom: 1rem !important;
}
.accordion-wrapper .card-header {
    padding: 0.5rem 1rem 0.5rem;
}
.accordion-wrapper .card-header button {
    font-size: 16px !important;
}
.accordion-wrapper .card-body {
    font-size: 14px;
}
.accordion-wrapper .card-body p {
    margin: 0px;
    margin-bottom: 10px;
}
.display-4 {
    font-size: 1.3rem !important;
}
.accordion-wrapper .card-header button:before {
    right: 1.3rem;
    left: auto;
}

@media (max-width: 500px) {
    .accordion-wrapper .card {
        margin-bottom: 0.5rem !important;
    }
}

section.wrapper {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}

#review .card-body {
    height: 220px;
}

@media (max-width: 500px) {
    .card-body h4 {
        font-size: 0.85rem;
    }
    .card-body {
        font-size: 0.75rem;
        padding: 20px;
    }

    section.wrapper {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

.footer {
    margin-top: 0;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 40px 25px 56px;
    border-top: none;
    background-color: #333333;
}

.footer .container .footer-head-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #888888;
}
@media (max-width: 766px) {
    .footer .container .footer-head-box {
        display: block;
        padding-bottom: 15px;
    }
}

.footer .container .footer-head-box .footer-info-btn-box .list-unstyled {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
}
@media (max-width: 766px) {
    .footer .container .footer-head-box .footer-info-btn-box .list-unstyled li {
        margin-top: 12px;
    }
}
.footer .container .footer-head-box .footer-info-btn-box .list-unstyled li + li {
    margin-left: 35px;
    position: relative;
}
.footer .container .footer-head-box .footer-info-btn-box .list-unstyled li + li:after {
    content: "";
    background-color: #515151;
    width: 1px;
    height: 13px;
    position: absolute;
    top: 5px;
    left: -17px;
}
.footer .container .footer-head-box .footer-info-btn-box .list-unstyled li a {
    color: #ffffff;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.footer .container .footer-body-box {
    padding-top: 33px;
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
}

.footer .container .footer-head-box .img-box img {
    height: 40px;
}

.footer .container .footer-body-box .con-box .list-unstyled li {
    font-size: 14px;
    font-weight: 400;
    line-height: 25px;
    letter-spacing: -0.02em;
    color: #999999;
}

@media (max-width: 500px) {
    .footer .container .footer-head-box .footer-info-btn-box .list-unstyled li a {
        font-size: 14px;
        line-height: 20px;
    }

    .footer .container .footer-body-box {
        display: block;
    }

    .footer {
        letter-spacing: 0.02em;
        padding: 20px 10px 90px;
    }
}


/***************************************************
 * AI 이미지 부분
 ***************************************************/

.nodata {
    color: #aaa;
}

.cursor-pointer {
    cursor: pointer;
}

/* 영상 관련 */
.video-item {
    position: relative;
}

.video-item img {
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 100%;
}

.video-item .icon-box {
    opacity: 0.5;
}

/***************************************
 * 홈 비디오 영역
 ***************************************/
 /* 오버레이 전체: 화면 전체 고정, 중앙 정렬 */
#videoOverlay {
  display: none;               /* show/hide with JS */
  position: fixed;             /* 화면 전체 기준 */
  inset: 0;                    /* top:0; left:0; bottom:0; right:0 */
  z-index: 2000;
  background: rgba(0,0,0,0.75);
  
  align-items: center;         /* 세로 중앙 */
  justify-content: center;     /* 가로 중앙 */
  padding: 10px;               /* 모바일 여백 */
  box-sizing: border-box;
}

/* 보여질 때 flex로 중앙 정렬 */
#videoOverlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 내부 래퍼: 최대 너비, 반응형 */
#videoOverlay .wrap {
  width: 90%;
  max-width: 100%;
  max-height: 90vh;            /* 화면 높이 90% 이내 */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 비디오: 가로 채우고 높이는 최대 90% 화면, 비율 유지 */
#videoOverlay video {
  width: 100%;
  max-height: 90vh;
  height: auto;
  border-radius: 12px;
  display: block;
  background: #000;
}

/* 모바일 조정 */
@media (max-width:576px){
  #videoOverlay .wrap { width: 95%; }
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-thumbnail .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
  opacity:0.5;
}

.video-thumbnail:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  color: #fff;
}


@media (max-width: 500px) {
	.video-thumbnail .play-btn {
		font-size:34px;
	}
}

/***************************************
 * 모션
 ***************************************/

#motion-intro .step-icon { 
	width: 44px; height: 44px; 
	display: inline-flex; align-items: center; justify-content: center; 
	color: var(--bs-primary);
}
 
.motion-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
} 

.motion-wrapper.motion-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.motion-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.motion-wrapper .motion-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bs-white);
    text-align: center;
    z-index: 2;
    background: none;
    padding: 0;
}

.motion-wrapper .motion-caption .motion-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--bs-white);	
}


@media (max-width: 500px) {
	.motion-wrapper {
	    height: 110px;	
	}
	
	.motion-wrapper .motion-caption .motion-title {
	    font-size: 0.9rem;
	}
}



/************************************************
 * 음악 
 ************************************************/

.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* 원하는 비율 (예: 1/1, 16/9 등) */
    overflow: hidden;
	border-radius:10px;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 항상 꽉 채움 */
    object-position: center; /* 중앙 기준 */
    display: block;
	transform: scale(1.05); /* 살짝 확대 */	
}

/* 중앙 버튼 */
.thumb-wrapper .play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--eq-color) 60%, transparent); /* 반투명 */

  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  z-index: 3;
}


.thumb-wrapper:hover .play-toggle {
  background: rgba(0,0,0,0.6);
  transform: translate(-50%, -50%) scale(1.05);
}

.thumb-wrapper.is-playing .play-toggle {
  background: rgba(0,0,0,0.7);    
}

.eq-bars { display: none; margin-left: 6px; height: 14px; align-items: flex-end; }
.eq-bars span {
  width: 2px; margin: 0 1px; background: #00ff80;
  animation: bounce 1s infinite ease-in-out;
}
.eq-bars span:nth-child(2){ animation-delay: -.2s; }
.eq-bars span:nth-child(3){ animation-delay: -.4s; }
.eq-bars span:nth-child(4){ animation-delay: -.6s; }

.thumb-wrapper.is-playing .eq-bars { display: inline-flex; }
@keyframes bounce { 0%,100%{height:3px} 50%{height:14px} }

/* 공통: 색상 변수를 한 군데에서 관리 */
.thumb-wrapper{
  --eq-color:#00ff80;        /* eq-bars와 동일 색 */
  --ring-width:2px;          /* 회전 라인 두께 */
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  --eq-color: #00ff80;           /* eq-bars와 같은 색으로 */
  --ring-width: 3px;             /* 테두리 두께 */
  --arc-angle: 16deg;            /* 보이는 호(라인) 각도 */

  border: var(--ring-width) solid var(--eq-color); /* 기본 보더 */
}

/* eq-bars가 있다면 같은 색을 공유 */
.eq-bars span{ background: var(--eq-color); }


/* 타입별 색상(원하면) */
.thumb-wrapper[data-output="voice"]{ --eq-color:#55aaff; }
.thumb-wrapper[data-output="music"]{ --eq-color:#ffcc33; }

/* eq-bars 막대도 동일 색 공유(선택) */
.eq-bars span{ background: var(--eq-color); }

/* ★ 재생 중: 회전 테두리 */
.thumb-wrapper.is-playing::before{
  content: "";
  position: absolute;
  inset: 0;                       /* 전체 덮기 */
  border-radius: inherit;
  z-index: 2;                     /* 이미지/버튼 위로 오도록 필요시 3~10으로 올려도 됨 */
  pointer-events: none;

  /* 작은 호(arc)만 색을 주고 */
  background:
    conic-gradient(
      from 0deg,
      var(--eq-color) 0 var(--arc-angle),
      transparent var(--arc-angle) 360deg
    );

  /* 가운데를 파내서 '테두리'만 남기기 (간단 마스크) */
  -webkit-mask:
    radial-gradient(
      farthest-side,
      transparent calc(100% - var(--ring-width)),
      #000 calc(100% - var(--ring-width))
    );
          mask:
    radial-gradient(
      farthest-side,
      transparent calc(100% - var(--ring-width)),
      #000 calc(100% - var(--ring-width))
    );

  animation: thumb-ring-spin 2.05s linear infinite;
}

@keyframes thumb-ring-spin{
  to { transform: rotate(360deg); }
}


/************************************************
 * 요금
 ************************************************/
 
.icon-list li {
    text-align: left;
    font-size: 90%;
}

.price {
    position: relative;
}
.price .sales {
    font-size: 11px;
    padding: 5px;
    opacity: 0.8;
    font-weight: 300;
    vertical-align: super;
    height: 20px;
    margin-left: 10px;
}

.pricing-wrapper  .pricing.card .prices .price-value {
    font-size: 1.5rem !important;
}


.pricing-wrapper .pricing.card .prices {
	height: 1.5rem  !important;
}


.price-duration {
    white-space: nowrap;
}

@media (max-width: 500px) {
	.pricing-wrapper .pricing.card .prices .price-value {
		font-size: 1.2rem !important;
	}
	
	.pricing-wrapper .pricing.card .prices {
		height: 1.2rem  !important;
	}

}



/* preset-card 스타일 */

.preset-card {
  padding: 10px; /* 카드 안쪽 여백 */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  min-height:186px;
}

.preset-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

/* 이미지 하단 투명 그라데이션 효과 */
.preset-card .card-img-wrapper img,
.preset-card .card-img-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
}

.preset-card .card-body {
  padding: 10px 10px 0px 10px;
  text-align: center;
}

.preset-card .card-body .card-title {
  margin-bottom: 0px;
  font-size:0.875rem;
}
