/* pages/common.css */
/* ===== CSS RESET (기본 브라우저 스타일 초기화) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  line-height: 1.6;
  background-color: #0b0c10; /* 메인 배경 */
  color: #cccccc;
  font-family: "Malgun Gothic", "맑은고딕", sans-serif;
  font-size: 4.5vw !important;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===== 기본 컬러 및 구조 설정 ===== */
:root {
  --primary-color: #500085;
  --secondary-color: #ff2e63;
  --point-color: #ffd700;
  --text-color: #ccc;
  --background-color: #0b0c10;
  --blue-color: #1e90ff;
}

.container {
  width: 95%;
  margin: 0 auto;
  padding: 1rem 0;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  line-height: 1.3;
  color: var(--point-color);
}

h1 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.content-wrapper {
  width: 100%;
}

header,
footer {
  width: 100%;
  background-color: #0b0c10;
}

header nav {
  width: 100%;
}

header nav ul {
  width: 100%;
  padding: 0 10px;
  display: flex;
  justify-content: space-around;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
  align-items: center;
}

.V {
  flex-direction: column;
}

.highlight {
  color: var(--primary-color);
}

header {
  height: 20vh;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/imgs/header-back.jpg");
  background-size: cover;
  background-position: center top;
  z-index: 99;
}

header .girl-head {
  position: absolute;
  height: 18vh;
  overflow: hidden;
  top: 2vh;
  opacity: 0;
  animation: header-ani 5s infinite ease-in-out;
}

header .head2 {
  visibility: hidden;
  left: 25%;
  animation-delay: 1s;
}

header .head3 {
  left: 35%;
  animation-delay: 1s;
}

header .head4 {
  visibility: hidden;
  left: 70%;
  animation-delay: 2s;
}

header .head5 {
  left: 70%;
  animation-delay: 2s;
}

@keyframes header-ani {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

header .container {
  height: 20vh;
  justify-content: space-between;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
}

header h1 {
  margin: 0.75rem 0;
  /* color: black !important; */
  text-shadow: 0 0 10px hotpink, 0 0 1px whitesmoke;
}

nav {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

nav > ul > li > a {
  color: #333;
  font-weight: bold;
  background-color: whitesmoke;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 1px 1px 1px #555;
}

main {
  margin-top: 21vh;
  width: 100%;
  height: fit-content;
  padding: 10px;
  gap: 3rem;
}

#hero {
  width: 100%;
  height: 32.5vh;
  position: relative;
  background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("/assets/imgs/night.jpg") no-repeat center center/cover;
  border-radius: 10px;
  overflow: hidden;
}

#hero .container {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
}

#hero .left {
  position: absolute;
  height: 100%;
  bottom: 0;
  left: 0;
  animation: bikini 2s 1s forwards ease-in;
}

#hero .right {
  position: absolute;
  height: 100%;
  bottom: 0;
  right: -2rem;
  animation: bikini 2s 2s forwards ease-in;
}

@keyframes bikini {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#hero p {
  color: whitesmoke;
  text-indent: 5px;
  font-weight: bold;
  margin-bottom: -5px;
}

#hero h3 {
  background: rgba(0, 0, 0, 0.5);
}

#hero h4 {
  background: rgba(0, 0, 0, 0.5);
  color: lightgrey;
  text-indent: 10px;
  margin-top: 20px;
}

#information {
  width: 100%;
}

#information .container {
  position: relative;
}

#information .container h3 {
  margin-bottom: 1rem;
}

#information .container > img {
  margin: 1rem 0;
}

#information .info-card {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(73, 73, 73, 0.5); /* 배경 반투명 효과 */
  margin-top: 1rem;
}

#information .info-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* 배경처럼 흐리게 처리 */
  z-index: 0;
}

#information .info-card .info-content {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  color: whitesmoke;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#information .info-content .info-title {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: coral;
}

#information .info-content .info-text {
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3; /* 줄 수 조절 */
  -webkit-box-orient: vertical;
}

#ads {
  width: 100%;
}

#ads .container {
  position: relative;
}

#ads .container h3 {
  margin-bottom: 1rem;
}

#ads .container > img {
  margin: 1rem 0;
}

#ads .ads-card {
  display: flex;
  width: 100%;
  height: 160px;
  border-radius: 10px;
  background: rgba(73, 73, 73, 0.5); /* 배경 반투명 효과 */
  margin-top: 1rem;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

#ads .ads1 {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("/assets/imgs/table.jpg");
  background-size: cover;
}

#ads .ads2 {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("/assets/imgs/table3.jpg");
  background-size: cover;
}

#ads .ads3 {
  background: url("/assets/imgs/ads.png"),
    linear-gradient(rgba(255, 255, 255), rgba(255, 255, 255));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  justify-content: flex-end;
}

#ads .adsx {
  background-position: center;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

#ads .ads-card img,
.ads-img {
  display: block;
  width: 90%;
  height: 60%;
  z-index: 0;
  margin: 0 auto;
  object-fit: contain;
}

#ads .ads-title {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: whitesmoke;
  background: rgba(0, 0, 0, 0.5);
}

#ads .ads-card p {
  position: absolute;
  right: 10px;
  top: 10px;
  font-weight: bold;
  color: gold;
  border-radius: 3px;
  padding: 0 5px;
  font-size: 1rem;
  animation: dim 0.5s ease-in-out infinite;
}

@keyframes dim {
  0% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 100%;
  }
}

#qna {
  width: 100%;
  position: relative;
}

#qna img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  opacity: 0.5;
  border-radius: 10px;
}

#qna .container {
  width: 100%;
  padding: 10px;
  gap: 20px;
}

#qna .container h3 {
  margin-bottom: 0.5rem;
}

#qna dl {
  width: 100%;
}

#qna .container dl .qna-item {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

#qna .container .qna-item dt {
  color: whitesmoke;
  font-weight: bold;
  margin-bottom: 1rem;
}

#qna .container .qna-item dd {
  color: whitesmoke;
  font-weight: bold;
}

#banner {
  width: 100%;
  height: 20vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/assets/imgs/banner.jpg") no-repeat center center/cover;
  border-radius: 10px;
  position: relative;
}

#banner .tag {
  position: absolute;
  left: 0px;
  top: 10px;
  font-size: 0.7rem;
  padding: 0 2px;
  background-color: whitesmoke;
  border-radius: 3px;
  color: var(--blue-color);
}

#banner .container {
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  height: 100%;
}

#banner .container h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  text-align: center;
  color: whitesmoke;
  padding: 5px 20px;
  border-radius: 5px;
}

#banner .container p {
  margin-bottom: 0;
  line-height: 1.4;
  color: yellow;
  font-size: 0.7rem;
}

address {
  width: 100%;
  font-style: normal;
}

address > h6 {
  width: 100%;
  line-height: 1.5;
  color: #ccc;
}

.sns-link {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.sns-link img {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  box-shadow: 2px 2px 5px grey;
}

.copyright {
  margin-top: 1rem;
  color: white;
}

.term-sheet {
  width: 100%;
  margin-bottom: 0;
  justify-content: space-around;
}

.term-sheet button {
  flex: 1;
  text-align: center;
  color: #ccc;
  text-decoration: underline;
  font-size: 0.7rem;
  color: var(--blue-color);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: #fff;
  color: #222;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80%;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow-y: scroll;
}

.modal-content img {
  height: 100%;
  opacity: 0.8;
}

/* 닫기 버튼 */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #999;
  float: right;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal-content > h2 {
  color: var(--blue-color);
  margin-bottom: 20px;
}

.floating-buttons {
  position: fixed;
  right: 20px;
  top: 75%; /* 화면 높이의 약 2/3 지점 */
  transform: translateY(-50%); /* 중심 정렬 */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.float-btn {
  background-color: #4caf50;
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
  font-size: 2.25rem;
  position: relative;
}

.map-btn {
  background-color: #faf3e0;
}

.float-btn i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 2px 2px 2px green;
}

.map-btn i {
  text-shadow: 2px 2px 2px gray;
}
