/*
Template Name: Foodx | Food Mobile PWA HTML Template
Author: Pillarix
Author URI: https://wrapbootstrap.com/user/pillarix
Version: 0.1
*/

/*
- Body
- Scroll Bar
- Bootstrap Custom
- Intro page start
- Forget Password
- Home Page
- Food Search
- Profile
- Chat Page
- Preferences Page
- Add to Cart
- Card Checkout
*/

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Sora:wght@100..800&display=swap');

/* Body */
body {
	font-family: "Instrument Sans", sans-serif;
	color: var(--dark);
	font-size: 13px;
}

.title, .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
	font-family: "Sora", sans-serif;
}

/* Scroll Bar */
::-webkit-scrollbar-button {
	width: 0;
	height: 0;
	display: none;
}
::-webkit-scrollbar-corner {
	background-color: transparent;
}
::-webkit-scrollbar-thumb {
	height: 6px;
	border: 4px solid transparent;
	background-clip: padding-box;
	-webkit-border-radius: 7px;
	border-radius: 7px;
	background-color: rgba(0, 0, 0, .15);
	-webkit-box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .05), inset 1px 1px 0 rgba(0, 0, 0, .05);
	box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .05), inset 1px 1px 0 rgba(0, 0, 0, .05);
}
::-webkit-scrollbar {
	width: 4px;
	background-color: #ffffff;
}
::-webkit-scrollbar-thumb {
	height: 50px;
	background: hsla(0, 0%, 53.3%, 0.4);
}
.landing-slider.slick-initialized, .top-doctors.slick-initialized, .available-doctor.slick-initialized, .recent-doctors.slick-initialized {
	visibility: visible;
	opacity: 1;  
}
.landing-slider, .top-doctors, .available-doctor, .recent-doctors {
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease;
	-webkit-transition: opacity 1s ease;
}

/* Bootstrap Custom */
.form-check-input:checked {
	background-color: #f7096e;
	border-color: #f7096e;
}
.btn-outline-secondary {
	border-color: #dee2e6;
}
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
	background: #dee2e6;
	color: #000;
	border-color: #d8d8d8;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
	background-color: #f7096e;
}
.nav-link, .nav-link:hover {
	color: #f7096e;
}
.border-primary {
	border-color: #d8d8d8 !important;
}
.accordion-button:not(.collapsed) {
	background: #e7dcf2;
	color: #f7096e;
}
:focus {
	box-shadow: none !important;
}
.bg-primary {
	background-color: #ff2c86 !important;
}
.text-primary {
	color: #ff2c86 !important;
}
.btn-lg {
	font-size: 15px;
	padding: 16px 22px;
	font-weight: 600;
}
.btn-primary, .btn-outline-primary:hover {
	background: #ff2c86;
	border-color: #ff2c86;
}
.btn-primary:hover, .btn-primary:focus {
	background: #f7096e;
	border-color: #f7096e;
}
.btn-outline-primary {
	background: rgb(101 4 181 / 12%);
	border-color: rgb(101 4 181 / 11%);
	color: #ff2c86;
}
.bg-light{
	background-color: #f3f5f6 !important;
}
.end-footer{
	width: 100%;
	height: 20px;
}

/* Intro page start*/
.intro-2{
	width: 280px;
}
.skip{
	margin-left: 374px;
}

/* Forget Password */
.border-radius{
	width: 50px;
	height: 50px;
}

/* Home Page*/
.burger-menu{
	width: 52px;
	height: 52px;
}
.filter{
	width: 77px;
	height: 64px;
}
.dish{
	width: 140px;
}
.food-w{
	width: 45px;
}
.little-text{
	font-size: 9px;
}
.miny-text{
	font-size: 12px;
}
.tab-food-w{
	width: 30px;
}

/* Food Search */
.w-172{
	width: 200px;
}

/* Profile */
.profile{
	width: 191px;
}
.w-progress{
	width: 110px;
}
.lanth{
	height: 5px !important;
}
.fs-16{
	font-size: 17px;
}
.lanth .progress-bar {
	background: #ff2d87;
	border-radius: 50px;
}

/* Chat Page*/
.bg-chatbox{
	background-color: #eaebf0;
	width: 253px;
}
.bg-chatbox-small{
	background-color: #eaebf0;
}
.w-input-box{
	width: 350px;
}

/* Preferences Page */
.account-information{
	font-size: 14px;
}

/* Add to Cart */
.secondary-color{
	background-color: #d8d7ea;
}
.vagitable-item{
	width: 59px;
}
.quantity-compo .form-control {
	width: 22px;
	padding: 0px;
	text-align: center;
}
.quantity-compo .btn {
	width: 26px;
	height: 26px;
	padding: 0px;
}
.w-payment{
	width: 35px;
}
.w-payment-long{
	width: 51px;
}

/* Card Checkout */
.payment-success{
	width: 125px;
	height: 125px;
	object-fit: cover;
}
.avtar-sm {
	min-width: 36px;
	height: 36px;
}
.cdisplay-1 {
	font-size: 190px;
}
.w-220 {
	width: 200px;
}
.icon-sm {
	width: 36px;
	height: 36px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50px;
	color: #666;
}
.cw-30 {
	width: 30px;
	height: 30px;
	object-fit: cover;   /* 이미지가 찌그러지지 않고 꽉 채워짐 */
	border-radius: 50%;  /* 원형으로 만듦 */
}
.osahan-card .img-fluid.mb-3 {
	border-radius: 11px;
}
.osahan-card  span.material-symbols-outlined.ms-auto {
	position: absolute;
	right: 24px;
	font-size: 14px;
	top: 24px;
	background: #ff2d87;
	color: #fff;
	padding: 4px;
	border-radius: 50px;
}
.osahan-card {
	position: relative;
}
.osahan-card h5 {
	font-size: 15px;
}
.osahan-card  h4.mb-0 {
	font-size: 14px;
}
.osahan-card h4.mb-0 span {
	font-size: 15px !important;
}
.osahan-card-2 img.card-img-top.img-fluid {
	height: 160px;
	object-fit: cover;
}
.osahan-card-2  h5.mb-0.h6.fw-bold.pt-1 {
	padding-top: 8px !important;
}
.chat-footer .btn {
	width: 43px;
	min-width: 43px;
	height: 43px;
}
.ingrediants-box .rounded-3.p-2 {
	min-width: 69px;
}
.ingrediants-box .mdi {
	width: 38px;
	display: flex;
	height: 38px;
	margin: auto;
	align-items: center;
	justify-content: center;
}
.btn-check+.btn:hover {
	color: #ffffff;
	background-color: #f7096e;
	border-color: #f7096e;
}
.nav-pills .nav-link:hover, .nav-pills .show>.nav-link:hover {
	color: #fff;
}
.food-shop-img {
	position: absolute;
	bottom: 0;
	width: 165px;
	right: 0;
}
.food-book-back .btn {
	font-size: 12px;
	padding: 7px 15px;
}
.btn-group  label.btn.btn-outline-secondary {
	font-size: 13px;
}
.osahan-page {
  min-height: calc(100svh);
}
.osahan-page-header  h6 {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 13px;
}

.square-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* 정사각형 비율 고정 */
  overflow: hidden;
  border-radius: 1rem; /* 선택적으로 모서리 둥글게 */
}

.square-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

.animate-shake {
  animation: shake 1s infinite;
}

#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 회색 */
  display: none;
  z-index: 1040;
}

#reviewModal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

#modalOverlay.show {
  display: block;
}

#reviewModal.show {
  transform: translateY(0%);
}

#loginModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 회색 */
  display: none;
  z-index: 9999;
}

#loginModal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

#loginModalOverlay.show {
  display: block;
}

#loginModal.show {
  transform: translateY(0%);
}

#appModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 회색 */
  display: none;
  z-index: 9999;
}

#appModal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

#appModalOverlay.show {
  display: block;
}

#appModal.show {
  transform: translateY(0%);
}

#gameAddModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 회색 */
  display: none;
  z-index: 9999;
}

#gameAddModal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

#gameAddModalOverlay.show {
  display: block;
}

#gameAddModal.show {
  transform: translateY(0%);
}

#inquiryModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 회색 */
  display: none;
  z-index: 9999;
}

#inquiryModal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

#inquiryModalOverlay.show {
  display: block;
}

#inquiryModal.show {
  transform: translateY(0%);
}

#starRating span {
  margin: 0 6px; /* 별 사이 간격 조절 */
  cursor: pointer;
}

.top-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;                 /* ✅ 최대 너비 80% */
  background-color: rgba(33, 37, 41, 0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  display: inline-block;          /* ✅ 내용 기반 너비 */
  word-wrap: break-word;          /* ✅ 자동 줄바꿈 */
  white-space: normal;            /* ✅ 줄바꿈 허용 */
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}

.bottom-toast {
  position: fixed;
  bottom: 80px; /* ✅ nav 높이보다 더 위로 */
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background-color: rgba(33, 37, 41, 0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 1020;
  display: none;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: inline-block;
  word-wrap: break-word;
  white-space: normal;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    bottom: 40px; /* 시작 위치도 조정 */
    opacity: 0;
  }
  to {
    bottom: 80px;
    opacity: 1;
  }
}


.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 0.5); /* 회색 반투명 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-image {
  width: 128px;  /* 원하는 만큼 키우세요 */
  height: 128px;
}

.gradient-bg {
	background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1, #84fab0, #8fd3f4);
	background-size: 600% 600%;
	animation: gradientFlow 3s ease-in-out infinite; /* 속도 빠르게 */
	color: #000;
	position: relative;
	overflow: hidden;
}

.gradient-bg .card-body {
	background-color: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(3px);
	border-radius: 1rem;
}

/* 화려한 흐름 애니메이션 */
@keyframes gradientFlow {
	0% {
		background-position: 0% 50%;
	}
	25% {
		background-position: 50% 100%;
	}
	50% {
		background-position: 100% 50%;
	}
	75% {
		background-position: 50% 0%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.gif-card {
  height: 150px;
  position: relative;
}

.gif-card-banner {
  position: relative;
}

.gif-background {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.gif-card .card-body {
  z-index: 1;
}

/* mobile 기본 */
.phone-screen-content {
  width: 100%;
  padding: 16px;
}

/* PC 대응 */
@media (min-width: 768px) {
  .phone-screen-content {
    width: 390px; /* 모바일 뷰 크기 */
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 32px;
  }
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autoplay-circle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  z-index: 10; /* 중요 */
}

.autoplay-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.autoplay-circle .track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: 3;
}

.autoplay-circle .fill {
  fill: none;
  stroke: #ff2c86;
  stroke-width: 3;
  stroke-dasharray: 100, 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.1s linear;
}

.heart {
  width: 20px;
  height: 20px;
  background-color: #e25555;
  position: relative;
  transform: rotate(-45deg);
  animation: heartbeat 1.5s infinite;
  cursor: pointer;
  margin: 0 auto;
}

.heart::before,
.heart::after {
  content: "";
  width: 20px;
  height: 20px;
  background-color: #e25555;
  border-radius: 50%;
  position: absolute;
}

.heart::before {
  top: -10px;
  left: 0;
}

.heart::after {
  left: 10px;
  top: 0;
}

/* 두근두근 애니메이션 */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1) rotate(-45deg);
  }
  50% {
    transform: scale(1.2) rotate(-45deg);
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) scale(1.5);
    opacity: 0;
  }
}

.floating-heart {
  position: absolute;
  font-size: 20px;
  color: #ff4d6d;
  animation: floatUp 2s ease-out forwards;
  pointer-events: none;
  user-select: none;
}

.ticket-card {
    display: flex;
    align-items: stretch;
    height: 100px;
    border: 2px solid #eee;
    overflow: hidden;
    position: relative;
    background: #fff;
}

/* 좌측 구역 */
.ticket-left {
    background: #f8f9fa;
    min-width: 90px;
    position: relative;
}

/* 방장 프로필 */
.ticket-left .host-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 절취선 */
.ticket-divider {
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 6px,
        #ccc 6px,
        #ccc 12px
    );
}

/* 우측 구역 */
.ticket-right {
    flex: 1;
}

/* 만료 오버레이 */
.expire-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #dc3545;
    z-index: 10;
    pointer-events: none;
    display: none;
}

.ticket-card.expired .expire-overlay {
    display: flex;
}

/* 좌우 펀칭 구멍 모양 */
.ticket-card::before,
.ticket-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle 10px at center, #fff 98%, transparent 100%);
    border: 2px solid #eee;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.ticket-card::before {
    left: -12px; /* 절반이 밖으로 나오게 */
}

.ticket-card::after {
    right: -12px;
}
