body {
  background-color: #f4f4f4;
}

/* 최상단 네비게이션 바 스타일 */
.top-nav {
  background-color: #f8f9fa;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-nav .logo {
  height: 40px; /* 로고 이미지의 높이 조정 */
  width: auto; /* 로고의 너비는 자동으로 조절 */
  /* margin-bottom: 0.5rem; */
  margin-left: 1rem;
}

.top-nav a,
.top-nav span {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  margin-right: 10px; /* 오른쪽 마진 추가 */
}

.top-nav span {
  color: #333;
}

.auth-links {
  display: flex; /* 로그인/로그아웃 및 알림설정을 가로로 배치 */
  align-items: center; /* 세로 중앙 정렬 */
}

/* 로그인/로그아웃 버튼과 사용자 이름 사이의 간격 */
.auth-links a + span {
  margin-left: 10px;
}
.main-container {
  margin: 0 auto; /* This will center your container */
  max-width: 1200px;
  margin-top: 10px;
  max-height: 100%;
  padding: 20px 20px; /* Padding on the sides */
  background-color: #ffffff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}
/* Tab button container */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.pagination {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0;
}

.pagination a {
  color: black;
  /* float: left; */
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.pagination a.active {
  background-color: dodgerblue;
  color: white;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000; /* 확실한 가시성을 위해 높은 z-index 값 */
}

.stock-table {
  width: 100%;
  background-color: #fff;
  border-collapse: collapse;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5em;
  font-family: "Arial", sans-serif;
}

.stock-header {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #333;
  padding: 7px;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e8e8e8;
}

.stock-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #e8e8e8;
}

.stock-row:last-child {
  border-bottom: none;
}

.stock-title,
.stock-price,
.stock-change,
.stock-volume,
.stock-transaction {
  flex: 1;
  text-align: center;
}
.stock-view {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: blue;
  text-decoration: underline;
  font-weight: 700;
}

.stock-change.change-up {
  color: #ff4242;
}

.stock-change.change-down {
  color: #00b894;
}

.stock-symbol,
.stock-title {
  font-weight: bold;
}

.stock-row:hover {
  background-color: #f9f9f9; /* 마우스 오버 시 배경색 */
  cursor: pointer; /* 마우스 오버 시 커서 변경 */
}

.date {
  margin: 20px 0px;
}

input[type="date"] {
  background-color: #f3f3f3;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

input[type="date"]:focus {
  outline: none;
  border: 2px solid #4a90e2;
}

/* 이전/다음 버튼 스타일 */
#prevDay {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#prevDay:hover {
  background-color: #357abd;
}

#nextDay {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#nextDay:hover {
  background-color: #357abd;
}

/* 검색 파트 */
/* 현재 선택된 검색어 */
.autocomplete > div.active {
  background: #e0e5f6;
  color: #000;
}

/* -------------------------- */

.autocomplete > div {
  width: 50%;
  background: #fafafa; /* 기본 배경 색상 */
  padding: 2rem 1.5rem; /* 패딩 조정 */
  margin-left: 0.5rem; /* 검색 결과 사이 간격 추가 */
  margin-bottom: 0.5rem; /* 검색 결과 사이 간격 추가 */
  border-radius: 5px;
  cursor: pointer; /* 마우스 오버 시 커서 변경 */
  transition: background 0.3s ease; /* 부드러운 배경색 전환 효과 */
}
/* .autocomplete > div.text {

  
} */

/* 마우스 hover 시 스타일 */
.autocomplete > div:hover {
  background: #d0d4da; /* hover 배경 색상 */
}

section {
  width: 100%;
  /* padding: 1.2rem 1.6rem; */
  /* box-shadow: 0 0 1rem rgba(0, 0, 0, 0.05); */
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* active 클래스를 가진 요소에 대해 */
#searchSec .autocomplete > div.active {
  margin: 10px;
  background: #333;
  color: #eee;
}
#searchSec * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  word-break: break-all;
  font-family: Pretendard;
}

#searchSec input {
  width: 50%;
  height: 3rem;
  border-radius: 5px;
  font-size: 0.9rem;
  padding: 0 1rem;
  border: 1px solid #e0e5f6;
  background: #fff;
  margin: 1rem 0;
}

#searchSec input::placeholder {
  font-size: 1rem;
}

#searchSec body {
  background: #f7f8fc;
  display: flex;
  justify-content: center;
  align-items: center;
}

#searchSec mark {
  background: #febf0090;
}

#searchSec p {
  opacity: 0.8;
  font-size: 15px;
  margin: 0 2px;
}
#searchSec h2 {
  padding: 5px 2px;
  font-size: 20px;
  margin: 4px 2px;
}
@media only screen and (max-width: 600px) {
  #prevDay,
  #nextDay {
    width: 10%;
    padding: 12px;
    margin-bottom: 10px; /* 모바일 환경에서 버튼과 입력 필드가 넓고 터치하기 쉽도록 조정 */
  }
  .top-nav .logo {
    height: 12px; /* 로고 이미지의 높이 조정 */
    width: auto; /* 로고의 너비는 자동으로 조절 */
    margin-bottom: 0;
    margin-left: 1rem;
  }
}

#searchButton {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.chart-box {
  display: flex; /* Flexbox 레이아웃 사용 */
  align-items: flex-start; /* 아이템들을 컨테이너의 시작 부분(상단)에 정렬 */
  justify-content: space-between; /* 요소 사이에 공간을 균등하게 분배 */
}

#chart,
#legend {
  flex: 1; /* 차트와 레전드가 사용 가능한 공간을 균등하게 차지하도록 함 */
}

/* 필요에 따라 추가 스타일을 정의 */
.chart-legend {
  /* 레전드에 대한 추가 스타일 */
  margin-top: 12rem;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(184, 184, 184, 0.6);
  border-radius: 5px;
}

/* === HEADING STYLE #2 === */

.chart_body .legend-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
  /* 범례 아이템 스타일 */
}

.chart_body .color-box {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  /* 색상 박스 스타일 */
}

.chart_body .color-box.red {
  background-color: red;
  /* 빨간색 박스 스타일 */
}

.chart_body .color-box.blue {
  background-color: blue;
  /* 파란색 박스 스타일 */
}
.chart_body .color-box.green {
  background-color: green;
  /* 파란색 박스 스타일 */
}
.chart_body .color-box.orange {
  background-color: orange;
  /* 파란색 박스 스타일 */
}
.chart_body .color-box.purple {
  background-color: purple;
  /* 파란색 박스 스타일 */
}

.chart h1 {
  position: relative;
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: #080808;
  -webkit-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
  text-transform: capitalize;
}
.chart h1:before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  content: "";
  background-color: #c50000;
}

.chart h1 span {
  display: block;
  line-height: 1.3;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 3em;
  padding-left: 0.25em;
  color: rgba(0, 0, 0, 0.6);
  padding-top: 0;
  padding-bottom: 10px;
}

.chart_code {
  display: block;
  line-height: 0.4;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.5em;
  padding-left: 0.25em;
  color: rgba(0, 0, 0, 0.6);
}

.chart-container {
  margin: 0 auto; /* This will center your container */
  max-width: 1000px;
  max-height: 100%;
  padding: 20px 20px; /* Padding on the sides */
  background-color: #ffffff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}

.chart_body {
  background-color: #f4f4f4;
}
#chart {
  margin-top: 2rem;
}
.tab button.tablinks {
  background-color: #f1f1f1;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 20px;
  transition: 0.3s;
  font-size: 17px;
}

/* 탭 버튼에 마우스를 올렸을 때 */
.tab button.tablinks:hover {
  background-color: #ddd;
}

/* 블루 탭 선택 시 스타일 */
.tab button.tablinks[data-tab="Tab1"].active {
  background-color: #007bff;
  color: white;
}

/* 그린 탭 선택 시 스타일 */
.tab button.tablinks[data-tab="Tab2"].active {
  background-color: #28a745;
  color: white;
}

/* 블랙 탭 선택 시 스타일 */
.tab button.tablinks[data-tab="Tab3"].active {
  background-color: #343a40;
  color: white;
}

.tabcontent {
  display: none;
  padding: 10px;
  border: 1px solid #ccc;
  border-top: none;
  margin-top: -1px; /* 탭 버튼과 컨텐츠 사이의 틈을 없앰 */
  background-color: #f9f9f9;
}
.update-date {
  display: block;
  /* line-height: 1.3; */
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 2em;
  color: rgba(0, 0, 0, 0.6);
  padding-top: 0;
}
#noDataMessage {
  text-align: center; /* 텍스트를 가운데 정렬 */
  margin-top: 20px; /* 위쪽 마진 설정 */
  margin-bottom: 20px; /* 아래쪽 마진 설정 */
  color: #666; /* 텍스트 색상 설정 */
  font-size: 16px; /* 폰트 크기 설정 */
}

.settings-container {
  margin: 0 auto; /* This will center your container */
  margin-top: 1rem;
  max-width: 800px;
  max-height: 100%;
  padding: 20px 20px; /* Padding on the sides */
  background-color: #ffffff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}
/* === HEADING STYLE #2 === */
.settings-container h2 {
  position: relative;
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: #080808;
  -webkit-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
  text-transform: capitalize;
  /* margin-bottom: 2rem; */
}
.settings-container h2:before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  content: "";
  background-color: #c50000;
}
.settings-container span {
  margin-top: 1em;
  display: block;
  /* line-height: 1.1; */
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  /* letter-spacing: 3px; */
  line-height: 1.4em;
  /* padding-left: 0.25em; */
  color: rgba(0, 0, 0, 0.6);
  padding-top: 0;
  padding-bottom: 10px;
  margin-bottom: 1rem;
}

.form-group {
  margin-top: 2em;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  word-break: break-all;
  font-family: Pretendard;
}

.custom-phone-input {
  width: 50%;
  height: 3rem;
  border-radius: 5px;
  font-size: 0.9rem;
  padding: 0 1rem;
  border: 1px solid #e0e5f6;
  background: #fff;
  margin: 0.3rem 0.3rem;
}
