
/**
* Name: style.css
*/

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f4eee8; /* 옅은 갈색조의 배경 */
    color: #3a2718; /* 어두운 갈색 텍스트 */
    font-size: 20px;
    display: flex;
    min-height: 100%;
    justify-content: center;
    background-image: url("./img/background.gif");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  
  .main-container {
    max-width: max-content;
    background-color: #d3c2a6;
    border: 5px solid #3a2718;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    width: 90%;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
  }
  
  /* 모든 내부 요소의 최대 너비를 부모 요소의 너비에 맞춤 */
  .main-container * {
    box-sizing: border-box; /* 패딩과 테두리를 너비에 포함 */
  }
  
  .main-content {
    align-items: center;
    width: 100%;
    overflow: hidden;
    height: auto;
    max-height: 860px; /* 패딩 고려한 최대 높이 조정 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 280px;
    padding: 0 10px;
    box-sizing: border-box; /* 패딩과 테두리를 너비에 포함 */
  }
  
  .body-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    width: 90%;
    box-sizing: border-box;
  }
  
  .sub-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 360px;
    font-size: 18px;
    width: calc(100% - 20px); /* 너비를 부모 요소에 맞추고 양쪽 패딩 고려 */
    max-width: 640px; /* 최대 너비 설정 */
  }
  
  label {
    color: black;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
    transform-origin: left top;
    white-space: nowrap;
    display:inline-block;    
    line-height:45px;
  }
  
  input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    font-size: 20px;
    background-color: white;
    color: #000;
    width: calc(100% - 60px);
    margin-right: 10px;
  }
    
  input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
  }
  
  input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 5px;
  }
  
  input:focus {
    outline: none;
    border-color: blue;
    background-color: rgb(252, 230, 230);  
  }
  
  #start-btn {
    background-color: #8d6aff;
    color: #fff;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 90%;
    height: 60px;
    border-radius: 20px;
    display: block;
    margin: 20px auto 20px;
    font-size: 24px;
  }
  
  button {
    padding: 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    align-self: flex-end;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  button:hover {
    background-color: #4b2f91;
  }
  
  button:disabled,
  button[disabled] {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed; 
  }
  
  #copyright {
    font-size: 14px;
    color: blue;
    text-decoration: underline;
    text-align: center;
    margin-top: 3px;
    margin-bottom: 15px;
  }
  table {
    border-collapse: collapse;
    width: 100%;
  }
  
  td {
    color: black;
  }
  
  .mySaju-table {
    border-color: #6d4c41; /* 갈색 테두리 */;
    background-color: #e6dcd1; /* 테이블 배경색 */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 10); /* 음영 효과 */
  }
  
  .mySaju-table td {
    color: #3a2718; /* 어두운 갈색 텍스트 */
    text-align: center;
  }
  
  footer {
    font-size: 14px;
    color: black;
    text-align: center;
  }
  
/* 채팅 컨테이너 스타일 */
.chat-container {
  max-height: 360px; /* 채팅 컨테이너의 최대 높이 */
  overflow-y: auto; /* 세로 스크롤바를 자동으로 추가 */
  position: absolute; /* 절대 위치 설정 */
  bottom: 0; /* 하단에 위치 */
  right: 0; /* 오른쪽 정렬 제거 */
  max-width: 640px; /* 테이블의 최대 너비와 일치 */
  width: 100%; 
  margin: 0px 0; /* 상단 마진으로 테이블과 간격 조정 */
  border: 2px solid #6d4c41; /* 갈색 테두리 */
  border-radius: 0; /* 둥근 모서리 제거 */  
  background-color: #e6dcd1; /* 연한 갈색조의 배경 */
  padding: 20px; /* 패딩 조정 */
  box-sizing: border-box; /* 박스 사이징 변경 */
}

/* 채팅 버블 스타일 조정 */
.chat-bubble {
    background-color: #e2f7fd; /* 채팅 버블 배경색 조정 */
    color: #333; /* 글자색 변경 */
    margin-bottom: 5px; /* 마진 조정 */
    padding: 10px; /* 패딩 조정 */
    border-radius: 20px; /* 둥근 모서리 */
}

.user-bubble {
    background-color: #b85c38; /* 붉은색 배경 */
    color: #ffffff; /* 흰색 텍스트 */
    text-align: left; /* 텍스트 정렬 변경 */
    margin-right: auto; /* 우측 정렬 제거 */
}

.bot-bubble {
    background-color: #fff5e1; /* 아주 연한 갈색 배경 */
    color: #3a2718; /* 어두운 갈색 텍스트 */
    text-align: left; /* 텍스트 정렬 변경 */
}

/* 채팅 입력 및 버튼 스타일 조정 */
.chat-input, 
.send-button {
    width: calc(100% - 20px); /* 너비 조정 */
    max-width: 640px; /* 테이블의 최대 너비와 일치 */
    margin: 5px 10px; /* 마진 조정 */
}

.send-button {
    background-color: #6d4c41; /* 갈색 버튼 배경 */
    color: #ffffff; /* 흰색 텍스트 */
    border: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* 음영 효과 */
    padding: 10px; /* 패딩 조정 */
    border-radius: 5px; /* 둥근 모서리 */
}

.send-button:hover {
  background-color: #b85c38; /* 마우스 호버시 붉은색 배경 */
}


#loader {
  font-size: 25px;
  text-align: center;
}

/* 슬라이드 */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 90%;
  max-width: 460px; /* Adjust based on your layout */
  margin: auto;
  box-sizing: border-box;
}

.carousel-slide {
    display: flex;
    width: 300%; /* Adjust if more images are added */
    transition: ease 0.5s;
}

.carousel-img {
    width: 33.33%; /* Adjust if more images are added */
    opacity: 0.5;
    transition: opacity 0.5s;
}

.carousel-img:nth-child(2) { /* Always focuses the middle image */
    opacity: 1;
}

.carousel-navigation {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    height: 15px;
    width: 15px;
    background-color: grey;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}


/* 모바일 화면을 위한 미디어 쿼리 */
@media (max-width: 768px) {
  .main-container {
      width: 100%; /* 모바일에서는 컨테이너의 너비를 화면 너비에 맞춤 */
      max-height: none; /* 모바일에서 최대 높이 제한 제거 */
      border-radius: 10px; /* 모바일에서는 테두리 반경을 줄임 */
      padding: 10px; /* 모바일에서는 패딩을 줄임 */
  }

  .main-content {
      font-size: 90%;
      max-height: none; /* 모바일에서 스크롤 가능 영역의 최대 높이 제한을 제거 */
      padding: 0 5px; /* 모바일에서 내부 패딩을 줄임 */
  }
}

@media (max-width: 480px) {
  .main-container {
      padding: 5px; /* 더 작은 스크린에서 더 작은 패딩 */
  }

  .main-content {
      font-size: 80%;
      padding: 0 2px; /* 더 작은 스크린에서 내부 패딩을 더 줄임 */
  }
}