body {
  overflow-x: hidden;
  overflow-y: auto;
}

body, header, nav {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #222;

  color: #FFF;
  font-family: Montserrat;
  font-style: normal;
  line-height: normal;

  height: 5000px;
  
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 70%;
  margin: 0 auto;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4.5px;
  color: white;
  text-decoration: none; /* 밑줄 없애기 */
}

.menu a {
  color: white;
  text-decoration: none; /* 밑줄 없애기 */
  font-size: 16px;
  font-weight: 400;
}

.menu .first {
  margin-right: 42px;
}

/* 이미지를 배경으로 설정 */
.image-container {
  display: flex; /* flex 컨테이너 설정 */
  justify-content: center; /* 가운데 정렬 */
  align-items: center; /* 세로 방향 가운데 정렬 */
  position: relative; /* 상대 위치 설정 */
  width: 100%; /* 너비 설정 */
  height: 864px; /* 높이 설정 */
  margin-top: 12px; /* 상단 마진 */
  background-image: url('./source/img/MainBG.png'); /* 이미지 경로 */
  background-size: cover; /* 배경 이미지 커버 */
  background-position: center; /* 배경 이미지 중앙 정렬 */
}

.image-text {
  position: relative; /* 상대 위치 설정 */
  z-index: 1; /* 텍스트가 이미지 위에 오도록 설정 */
  margin-top: 380px;
  width: 70%;
}

.text {
  margin-bottom: 0px; /* 각 텍스트 블록 사이의 공간을 추가합니다. */
  display: block; /* 블록 레벨 요소로 만들어 줄 바꿈 효과를 자동으로 적용합니다. */
  font-size: 24px;
}

.day {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.76px;
}

/* 추가적으로 특정 클래스에 대한 스타일을 더 세밀하게 조정할 수 있습니다. 예를 들어: */
.title {
  font-size: 96px;
  font-weight: 700;
}

.caption {
  font-family: "Pretendard Variable";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 36px */
  letter-spacing: 0.528px;
}

/* 가운데 정렬 그룹 */
.centered-group {
  width: 80%;
  margin: 0 auto; /* 수평 중앙 정렬 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 내부 요소 수평 중앙 정렬 */
  justify-content: center; /* 내부 요소 수직 중앙 정렬 */
}

.control-section {
  margin-top: 320px;
}

.control-img {
  text-align: center;
  width: 100%;
}

.control-img img {
  width: 356.617px;
  height: 194.352px;
}

.text-kr {
  color: #FFF;
  font-style: normal;
}

.text-kr p {
  font-family: Montserrat;
  font-size: 40px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.2px;
  text-align: center;
}

.text-kr pre {
  font-family: "Pretendard Variable";
  font-size: 28px;
  text-align: center;
  font-weight: 500;
  line-height: 150%; /* 54px */
  letter-spacing: 0.792px;
}

/* 르르 안녕 섹션 */

.rere-section {
  display: flex; /* flex 컨테이너 설정 */
  width: 70%; /* 너비 설정 */
  height: 779px; /* 높이 설정 */
  background-image: url('./source/gif/blackBG_rere2.gif'); /* 이미지 경로 */
  background-size: cover; /* 배경 이미지 커버 */
  background-position: left; /* 배경 이미지 중앙 정렬 */
  margin-top: 260px;
  margin-left: 500px;
}

.gif-text {
  text-align: left;
  display: flex; /* Flexbox 레이아웃 사용 */
  flex-direction: column; /* 요소들을 수직 방향으로 정렬 */
  margin-left: -300px;
  margin-top: 120px;
}

.rere-section p {
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 0px;
  width: 580px;
}

.rere-section .text-big {
  font-size: 128px;
  font-style: italic;
  font-weight: 700;
  line-height: 100%;
  margin-top: 0px;
}

.gif-text-bottom {
  margin-top: 55px;
}

.gif-text-bottom p {
  color: #FFF;
  font-family: "Pretendard Variable";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 36px */
  letter-spacing: 0.528px;
  text-align: left;
}

/* 디테일 섹션 */
.detail-section {
  margin-top: 1000px;
  width: 100%;
  text-align: center;
}

.detail-title pre {
  text-align: center;
  font-family: Montserrat;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.detail-context pre {
  color: #FFF;
  text-align: center;
  font-family: "Pretendard Variable";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 36px */
  letter-spacing: 0.528px;
}

.detail-context p {
  color: #FFF;
  text-align: center;
  font-family: "Pretendard Variable";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 36px */
  letter-spacing: 0.528px;

  margin-top: 90px;
}

.circle-group {
  text-align: center;
  display: flex;
  flex-direction: column;  
  align-items: center;
}

.circle {
  width : 260px;
  height : 260px;
  border-radius: 50%;
  background-color: #303030;
  display: flex; /* Flexbox 레이아웃 사용 */
  flex-direction: column; /* 요소들을 수직 방향으로 정렬 */
  justify-content: center;

  margin-top: 72px;
}

.circle p {
  color: #FFF;
  font-family: "Montserrat Alternates";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-top: 0px;
  margin-bottom: 0px;
}

.circle pre {
  color: #FFF;
  font-family: "Montserrat Alternates";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-top: 4px;
  margin-bottom: 0px;
}

.detail-gray .circle:hover {
  background-color: #575757;
}

.detail-green .circle:hover {
  background-color: #3D5B3E;
}

.detail-blue .circle:hover {
  background-color: #40435B;
}

.goto-detail p {
  margin-top: 464px;

  color: #FFF;
  text-align: center;
  font-family: "Pretendard Variable";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 36px */
  letter-spacing: 0.528px;
}

.image-text-wrapper {
  position: relative; /* 텍스트를 이미지 위에 절대 위치시키기 위해 */
  display: inline-block; /* 이미지 크기에 맞춰서 컨테이너 크기 조정 */

  margin-top: 103px;
}

.image-text-wrapper img {
  width: 260px; /* 이미지 크기를 컨테이너에 맞춤 */
  height: 260px; /* 이미지 비율 유지 */
}

.overlay-text {
  color: #FFF;
  text-align: center;
  font-family: "Montserrat Alternates";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;

  position: absolute; /* 이미지 위에 텍스트를 배치 */
  top: 50%; /* 상위 요소의 가운데 위치 */
  left: 50%; /* 좌우 가운데 위치 */
  transform: translate(-50%, -50%); /* 정확한 중앙 정렬을 위해 */
  text-decoration: none; /* 링크 밑줄 제거 */
  padding: 10px; /* 텍스트 주변 여백 추가 */
  border-radius: 5px; /* 텍스트 배경 둥근 모서리 추가 */
}

footer {
  margin-top: 356px;
}

footer img {
  width: 90%;
  height: auto;
}

/* 반응형 디자인 */
@media (max-width: 768px) {  
  body, header, nav {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #222;
    color: #FFF;
  
    height: 1800px;
    width: 100%;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
    width: 90%;
    margin: 0 auto;
  }
  
  .logo a {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.528px;
    color: white;
    text-decoration: none; /* 밑줄 없애기 */
  }
  
  .menu a {
    color: white;
    text-decoration: none; /* 밑줄 없애기 */
    font-size: 12px;
    font-weight: 400;
  }
  
  .menu .first {
    margin-right: 12px;
  }

  /* 이미지를 배경으로 설정 */
  .image-container {
    display: flex; /* flex 컨테이너 설정 */
    justify-content: center; /* 가운데 정렬 */
    align-items: center; /* 세로 방향 가운데 정렬 */
    position: relative; /* 상대 위치 설정 */
    width: 100%; /* 너비 설정 */
    height: 261px; /* 높이 설정 */
    background-image: url('./source/img/MainBG.png'); /* 이미지 경로 */
    background-size: cover; /* 배경 이미지 커버 */
    background-position: center; /* 배경 이미지 중앙 정렬 */
    margin-top: 0px;
  }

  .image-text {
    position: relative; /* 상대 위치 설정 */
    z-index: 1; /* 텍스트가 이미지 위에 오도록 설정 */
    margin-top: 162px;
    width: 90%;
  }

  .text {
    margin-bottom: 0px; /* 각 텍스트 블록 사이의 공간을 추가합니다. */
    display: block; /* 블록 레벨 요소로 만들어 줄 바꿈 효과를 자동으로 적용합니다. */
    font-size: 10px;
  }

  .day {
    font-family: Montserrat;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.55px;
  }

  /* 추가적으로 특정 클래스에 대한 스타일을 더 세밀하게 조정할 수 있습니다. 예를 들어: */
  .title {
    font-size: 48px;
    font-weight: 700;
  }

  .caption {
    font-family: "Pretendard Variable";
    font-size: 8px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 36px */
    letter-spacing: 0.528px;
  }

  /* 가운데 정렬 그룹 */
  .centered-group {
    width: 90%;
    margin: 0 auto; /* 수평 중앙 정렬 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 내부 요소 수평 중앙 정렬 */
    justify-content: center; /* 내부 요소 수직 중앙 정렬 */
  }

  .control-section {
    margin-top: 116px;
  }

  .control-img {
    text-align: center;
    width: 80%;
  }

  .control-img img {
    width: 187.117px;
    height: 106.481px;
    flex-shrink: 0;
  }

  .text-kr {
    color: #FFF;
    font-style: normal;
  }

  .text-kr p {
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.2px;
    text-align: center;
  }

  .text-kr pre {
    font-family: "Pretendard Variable";
    font-size: 10px;
    text-align: center;
    font-weight: 500;
    line-height: 150%; /* 54px */
    letter-spacing: 0.792px;
  }

  /* 르르 안녕 섹션 */
  .rere-section {
    display: flex; /* flex 컨테이너 설정 */
    justify-content: center; /* 가운데 정렬 */
    align-items: center; /* 세로 방향 가운데 정렬 */
    position: relative; /* 상대 위치 설정 */
    width: 100%; /* 너비 설정 */
    height: 490px; /* 높이 설정 */
    background-image: url('./source/gif/blackBG_rere2.gif'); /* 이미지 경로 */
    background-size: cover; /* 배경 이미지 커버 */
    background-position: center; /* 배경 이미지 중앙 정렬 */
    margin-top: 260px;
    margin-left: 200px;
  }

  .gif-text {
    position: absolute; /* 텍스트를 절대 포지션으로 설정 */
    width: 100%; /* 텍스트 영역을 이미지 너비와 동일하게 설정 */
    color: white; /* 텍스트 색상을 흰색으로 설정, 배경에 따라 변경 가능 */ /* 텍스트를 중앙 정렬 */
    margin-left: -190px;
    margin-top: -50px;
    padding-top: 130px;
  }

  .rere-section p {
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  .rere-section pre {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 0px;
  }

  .rere-section .text-big {
    font-size: 48px;
    font-style: italic;
    font-weight: 700;
    line-height: 100%;
    margin-top: 0px;
  }

  .gif-text-bottom {
    width: 200px;
    color: #FFF;
    font-family: "Pretendard Variable";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 36px */
    letter-spacing: 0.528px;
    white-space: normal;
    word-break:keep-all;

    margin-top: 132px;
  }

  .blank {
    height: 12px;
  }

  .blank2 {
    height: 0px;
  }

  /* 디테일 섹션 */
  .detail-section {
    margin-top: 295px;
    width: 100%;
    text-align: center;
  }

  .detail-title pre {
    text-align: center;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  .detail-context pre {
    color: #FFF;
    text-align: center;
    font-family: "Pretendard Variable";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 36px */
    letter-spacing: 0.308px;
  }

  .detail-context p {
    color: #FFF;
    text-align: center;
    font-family: "Pretendard Variable";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 36px */
    letter-spacing: 0.528px;

    margin-top: 60px;
  }

  .circle-group {
    text-align: center;
    display: flex;
    flex-direction: column;  
    align-items: center;
  }

  .circle {
    width : 160px;
    height : 160px;
    border-radius: 50%;
    background-color: #303030;
    display: flex; /* Flexbox 레이아웃 사용 */
    flex-direction: column; /* 요소들을 수직 방향으로 정렬 */
    justify-content: center;

    margin-top: 64px;
  }

  .circle p {
    color: #FFF;
    font-family: "Montserrat Alternates";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .circle pre {
    color: #FFF;
    text-align: center;
    font-family: "Montserrat Alternates";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .detail-gray .circle:hover {
    background-color: #575757;
  }

  .detail-red .circle:hover {
    background-color: #5B3B3B;
  }

  .detail-green .circle:hover {
    background-color: #3D5B3E;
  }

  .detail-blue .circle:hover {
    background-color: #40435B;
  }

  .goto-detail p {
    font-size: 14px;
  }

  .image-text-wrapper img {
    width: 195px;
    height: 195px;
  }

  footer {
    margin-top: 356px;
  }

  footer img {
    width: 80%;
    height: auto;
    content: url(./source/img/mobile-footer.png);

    margin-left: 24px;
    margin-bottom: 24px;
  }
}
