
html {
  font-size: clamp(12px, 1.5vw, 16px);
}

/* 네비바 해당 페이지 색상 변경 */
nav ul li:nth-child(1) a {
    color: #008000; /* 네비게이션 바에서 두 번째 링크의 텍스트 색상을 녹색으로 변경 */
}



/* 이거 추가해야 height 100%채우기 가능 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}




/* 공통 버튼 설정 */
.button {
  background-color: #def2ff; /* 배경색을 설정 */
  border-radius: 2rem; /* 버튼의 테두리를 둥글게 만듭니다 */
  border: 2px solid #bdbdbd; /* 회색 테두리를 추가 */
  transition: background-color 0.3s, border-color 0.3s; /* 배경색과 테두리색 변화에 대한 전환 효과를 추가 */
  
  padding: clamp(0.8rem, 2vw, 1.7rem)
           clamp(1.2rem, 3vw, 2.2rem);

  text-align: center; /* 요소 내의 내용을 가운데 정렬 */
  display: inline-block; /* 인라인 블록 요소로 설정하여 너비와 높이를 조절할 수 있게 */

  color: #616161; /* 텍스트 색상 */
  font-size: 1.8rem; /* 버튼 텍스트 크기를 설정 */
  text-decoration: none; /* 링크의 밑줄을 제거 */

  position: absolute;
  right: 30%;
  top: 80%;


}

/* 호버 상태 */
.button:hover {
  background-color: #cde7f5; /* 버튼에 마우스를 올렸을 때 배경색을 약간 더 진하게 변경. */
  border-color: #9e9e9e; /* 테두리 색상을 약간 더 진한 회색으로 변경. */
}












/* 컨테이너 */
.container {
  width: 100%;
  text-align: center;
  
  display: flex;
  flex-wrap: wrap;
}






/* 컨테이너들 */
.service-info-container,
.sell-info-container,
.company-info-container {
  position: relative;
  float: left;
  width: 50%;
  aspect-ratio : 1 / 1;

  background-color: #ffffff;
  text-align: left;

}

.service-image-container,
.sell-image-container,
.company-image-container {
float: right;
width: 50%;
aspect-ratio : 1 / 1;

background-color: #ffffff;
background-color: transparent;
}


.service-image-container img,
.sell-image-container img,
.company-image-container img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}



.service-info-container h1,
.sell-info-container h1,
.company-info-container h1 {
  margin-top: 30%;
  margin-left: 10%;
  position: relative;

  font-size: 4rem;
  margin-bottom: 50px;
}

.service-info-container p,
.sell-info-container p,
.company-info-container p {
  font-size: 1.5rem;
  margin-left: 10%;
  margin-bottom: -10px;

  color:#868686;
}





/* 서비스컨테이너 슬라이드 이미지 */


.service-image-container {
  float: right;
  width: 50%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* 버튼 */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2em;
    padding: 0 10px;
    cursor: pointer;
    z-index: 1;
    border-radius: 5px;
}
.prev { left: 10px; }
.next { right: 10px; }

/* 도트 인디케이터 */
.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}
.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    display: inline-block;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active {
    background-color: #717171;
}







        @media (max-width: 800px) {
          .container {
              flex-direction: column; /* 세로 정렬 */
              font-size: 10px;
              padding-top: 60px;
          }
        
          /* 인포 컨테이너 수직정렬 */
          .service-info-container, 
          .service-image-container, 
          .sell-info-container, 
          .sell-image-container, 
          .company-info-container, 
          .company-image-container {
              width: 100% !important; /* 너비를 강제로 100% 설정 */
              float: none !important; /* float 해제 */
              display: block; /* 블록 요소로 변경 */
          }
        
          /* 이미지 컨테이너 수직정렬 */
          .service-image-container img, 
          .sell-image-container img, 
          .company-image-container img {
              width: 100%;
              height: auto; /* 비율 유지 */
          }

            /* 순서변경 */
            .service-image-container { order: 1; }
            .service-info-container { order: 2; }
          
            .sell-image-container { order: 3; }
            .sell-info-container { order: 4; }
          
            .company-image-container { order: 5; }
            .company-info-container { order: 6; }
        }








