@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");
@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&display=swap');

/* 전체 레이아웃 */
body {
  margin: 0 auto;
  padding: 0 5%;
  max-width: 1200px;
  font-family: 'Gowun Dodum';
  font-size: 20px;
  line-height: 1.6;
  word-break:keep-all;
  background-color: #fffafa; /* 부드러운 배경 */
  color: black; /* 텍스트 색상 */
}

.nevergot {
  position: fixed;
  max-width: 800px;
  top: 25px;
  left: calc(20% - 100px);
  z-index: 1000;
}

.logo {
  width: 100px;
  height: auto;
}

/* 분할 레이아웃 */
.split-layout {
  display: flex; /* 가로 방향 정렬 */
  flex-wrap: wrap; /* 화면이 좁아지면 요소가 아래로 내려감 */
  height: 100vh; /* 화면 전체 높이 */
  padding: 20px;
  gap: 20px; /* 요소 간 간격 */
  position: relative;
  margin: 0;
  padding-top: 0;
}

.split-item {
  flex: 1; /* 텍스트가 컨테이너의 50% 차지 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 텍스트를 세로 가운데 정렬 */
  margin: 0 auto;
  max-width: 800px;
  padding: 20px;
  line-height: 1.8;
  padding-top: 0;
  text-align: justify;
  margin-top: 0;
}


.full-width {
  flex-basis: 100%;
  max-width: 100%;
  text-align: left; /* 전체 텍스트 및 요소 왼쪽 정렬 */
  display: flex;
  flex-direction: column; /* 위에서 아래로 배치 */
  align-items: flex-start; /* 내부 요소 왼쪽 정렬 */
}


/* 왼쪽 이미지 영역 */
.image-flex {
  flex: 1; /* 이미지가 컨테이너의 50% 차지 */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.image-flex img {
  max-width: 100%; /* 이미지가 영역을 벗어나지 않도록 */
  max-height: 100%; /* 이미지 높이 제한 */
}

.image-flex p {
  flex: 1;
  max-width: 600px; /* 최대 폭 제한 */
  width: 50%; /* 화면이 작아질 때 자동 조정 */
  font-size: 1rem; /* 기본 p보다 작은 글자 */
  color: #333; /* 글자색 (배경과 구분) */
  padding: 10px 0; /* 위아래 여백 */
  text-align: center;
  border-top: 1px solid #aaa; /* 위쪽 선 */
  border-bottom: 1px solid #aaa; /* 아래쪽 선 */
  margin: 20px auto; /* 가운데 정렬 */
  margin-left: 100px;
  margin-right: 100px;
  padding: 30px;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.image-container img {
  max-width: 100%; /* 이미지가 영역을 벗어나지 않도록 */
  max-height: 100%; /* 이미지 높이 제한 */
}

.image-box {
  min-height: 500px;
  margin: auto;
  padding: 20px;
  background-color: inherit;
  margin-bottom: 60px;
}

.image-layout p {
  max-width: 800px; /* 최대 폭 제한 */
  width: 90%; /* 화면이 작아질 때 자동 조정 */
  font-size: 1rem; /* 기본 p보다 작은 글자 */
  color: #333; /* 글자색 (배경과 구분) */
  padding: 10px 0; /* 위아래 여백 */
  text-align: center;
  border-top: 1px solid #aaa; /* 위쪽 선 */
  border-bottom: 1px solid #aaa; /* 아래쪽 선 */
  margin: 20px auto; /* 가운데 정렬 */
}


/* 오른쪽 텍스트 영역 */
.text-container {
  flex: 1; /* 텍스트가 컨테이너의 50% 차지 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 텍스트를 세로 가운데 정렬 */
  margin: 0 auto;
  max-width: 800px;
  padding: 20px;
  line-height: 1.8;
}

.text-container h1 {
  font-family: 'Gowun Dodum', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: black; /* 제목 색상 */
}

.text-container h2 {
  line-height: 1.6; /* 읽기 쉬운 줄 간격 */
  font-size: 20px;
  color: #333;
  text-align: center;
}

.text-container p {
  line-height: 1.6; /* 읽기 쉬운 줄 간격 */
  font-size: 20px;
  color: #333;
  text-align: justify;
}

/* 일반 섹션 */
.normal-layout {
  min-height: 500px;
  margin-top: 20px;
  padding: 20px;
  background-color: inherit;
  position: relative;
  justify-content: center;
  align-items: center;
}

.normal-layout h1 {
  font-family: Gowun Dodum;
  font-size: 2rem;
  color: black;
  text-align: center;
}

.normal-layout p {
  flex: 1; /* 텍스트가 컨테이너의 50% 차지 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 텍스트를 세로 가운데 정렬 */
  margin: 0 auto;
  font-family: 'Gowun Dodum', serif;
  text-align: justify;
}

.center-layout {
  justify-content: center;
  min-height: 500px;
  margin-top: 20px;
  padding: 20px;
  background-color: inherit;
  position: relative;
}

.center-layout h1{
  text-align: center;
}

.center-layout p {
  font-family: Gowun Dodum;
  text-align: center;
  font-size: 20px;
  font-weight: normal;
}


.division-line {
  border-top: 1px solid black;
}

.beyond-world {
  position: fixed;
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  margin-left: -25px;
  left: 50%;
  top: 25px;
  width: 50px;
  height: 5px;
  padding: 5px;
  color: #232323;
  background-color: #232323;
  border-radius: 50%;
}

.beyond-world a {
  color: #232323;
}

.beyond-world:hover {
  transition: 0.5s;
  background-color: gold;
}

@media screen and (min-width: 800px) {
  .beyond-world {
    position: fixed;
    bottom: 50vh;
    left: 80%;
    width: 50px;
    height: 5px;
    padding: 5px;
    display: flex;
    border-radius: 50%;
    background-color:#232323;
  }
}

@media (max-width: 768px) {
  .split-layout {
    flex-direction: column; /* 화면이 작으면 세로 정렬 */
  }

  .image-container,
  .text-container {
    flex: none; /* 비율 해제 */
    width: 100%; /* 각각 100% 차지 */
  }
}


.chart-container {
  position: relative;
  height: 70px;
  display: flex;
  justify-content: center; /* 가로 정렬 */
  align-items: baseline; /* 세로 정렬 */
  margin-bottom: 0;
}

.chart-container img {
  position: absolute;
  top: 0;
  left: 50%; /* 가로 중앙 정렬 */
  transform: translateX(-50%); /* 정확한 중앙 위치 보정 */
  width: 600px;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 0;
}

.chart-container h1 {
  position: absolute;
  top: -100px;
  font-family: 'Gowun Dodum', serif;
  font-size: 1.5rem;
  color: black;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.chart-container p {
  position: absolute;
  top: -75px;
  font-size: 0.9rem; /* 기본 p보다 작은 글자 */
  color: #333; /* 글자색 (배경과 구분) */
  padding: 10px 0; /* 위아래 여백 */
  text-align: center;
  margin-top: 30px;
  z-index: 3;
}

.top-chart {
  z-index: 2;
  opacity: 1;
}

.chart-container:hover .top-chart {
  opacity: 0;
}

.bottom-chart {
  z-index: 1;
  opacity: 1;
}


.card-container {
  display: flex;
  align-items: flex-start; /* 이미지 수직 중앙 정렬 */
  justify-content: center;
  margin-top: 0;
}


.card-container img {
  max-width: 600px;
  width: auto;/* 원하는 크기로 조정 */
  height: auto;
  cursor: pointer; /* 클릭 가능하도록 설정 */
  transition: opacity 0.2s ease-out; /* 흐려졌다가 변경 */
}

.floating-image:hover {
  animation: shake 0.3s infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}