/* 전체 문서에 적용 */
html,
body {
  font-family: "Pretendard", sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box; /* 패딩이 너비를 초과하지 않도록 설정 */
  overflow-x: hidden; /* 좌우 스크롤 숨기기 */
}

body {
  font-family: "Pretendard", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 100vh;
}

header {
  background-color: #fff;
  position: fixed;
  top: 0px;
  left: 0px;
  margin: auto;
  z-index: 100;
  width: 100%;
  height: 54px;
  padding: 7px;
  display: flex;
  align-items: center; /* 세로 중앙 정렬 */
  justify-content: center; /* 가로 중앙 정렬 */
  gap: 10px; /* 이미지 간격 조절 */
}

@media (max-width: 768px) {
  header {
    height: 30px;
  }
}

header img {
  height: 54px;
  margin-right: 10px; /* 텍스트와 이미지 간의 간격 */
}

@media (max-width: 768px) {
  header img {
    height: 30px;
  }
}

.content {
  width: 100%;
  max-width: 1200px;
}

.section {
  height: 100vh; /* 각 테스트 문구가 화면 한 페이지를 차지하도록 설정 */
  justify-content: center; /* 콘텐츠를 세로로 중앙 정렬 */
  align-items: center; /* 콘텐츠를 가로로 중앙 정렬 */
  line-height: 1.5; /* 텍스트 간격 조정 */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  display: flex;
  gap: 20px;
  justify-content: center; /* 세로 기준으로 정렬 */
  height: 100vh; /* 전체 화면을 채우도록 설정 */
  line-height: 1.6;
  display: flex;
  padding: 0px 14px;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-content {
  display: flex;
  justify-content: space-between; /* 텍스트와 이미지를 양옆으로 배치 */
  align-items: center; /* 세로 중앙 정렬 */
  width: 100%; /* 너비를 100%로 설정 */
  height: 300px; /* 세로 크기 고정 */
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  text-align: left; /* 텍스트 왼쪽 정렬 */
}

@media (max-width: 768px) {
  .section-content {
    flex-direction: column-reverse;
    height: auto;
  }
}

.text {
  width: 48%; /* 텍스트가 차지하는 공간 */
}

@media (max-width: 768px) {
  .text {
    width: 100%; /* 텍스트가 차지하는 공간 */
    height: auto;
  }
}

.text h2 {
  font-size: 40px;
}

.text p {
  font-size: 19px;
  margin: 0;
  letter-spacing: -0.03em;
  color: #86868b;
  white-space: pre-line;
  font-weight: 500;
}

@media (max-width: 768px) {
  .text h2 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .text p {
    font-size: 14px;
  }
}

.image {
  width: 48%; /* 이미지가 차지하는 공간 */
}

@media (max-width: 768px) {
  .image {
    width: 100%;
    height: auto;
  }
}

.image img {
  width: 100%; /* 이미지를 정사각형에 맞게 조정 */
  height: auto;
  border-radius: 8px;
}

footer {
  background-color: #333;
  color: white;
  padding: 10px;
  width: 100%; /* 너비를 100%로 설정 */
  box-sizing: border-box; /* 패딩을 포함하여 너비 설정 */
  margin-top: auto; /* 푸터를 페이지 하단으로 밀어줍니다 */
  text-align: center; /* 푸터 텍스트 중앙 정렬 */
}
