/* style.css */
/*볼드체폰트링크*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

/* body에만 적용할 스타일 */
body {
  padding-top: 86px;
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f0f6fb;
}

/* 텍스트 선택 방지만 별도로 적용 */
body,
.body-text,
.rubric,
.subtitle,
.big-title {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


.content {
  padding-left: 10px;
  padding-right: 10px;
}

/* -------------------------------------------------*/

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #228b22;
  /* 명시적으로 녹색 지정 */
  color: white;
  padding: 6px;
  display: flex;
  align-items: center;
  z-index: 1000;
  /* 상단바가 가장 위에 위치 */
}

.menu-icon {
  font-size: 2.5em;
  margin-right: 10px;
  cursor: pointer;
}

.navbar h1 {
  font-size: 1.7em;
  margin: 0;
  flex-grow: 1;
  text-align: center;
  margin-right: 24px;
}

/* -------------------------------------------------*/

.side-menu {
  position: fixed;
  top: 70px;
  left: -250px;
  width: 220px;
  max-height: calc(100vh - 70px);
  /* 화면 아래로 내려가지 않도록 제한 */
  overflow-y: auto;
  /* 내용이 넘치면 스크롤, 넘치지 않으면 그대로 */
  background-color: #183b5c;
  color: white;
  z-index: 1001;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: start;
}


.side-menu.open {
  left: 0;
  /* 사이드 메뉴 열릴 때 */
}

.side-menu a {
  padding: 12px;
  text-decoration: none;
  font-size: 1.2em;
  color: white;
  display: block;
  transition: background-color 0.2s;
}

.side-menu a:hover {
  background-color: #2b4e70;
}


/* 메뉴 버튼 스타일 */
.menu-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-button {
  background-color: white;
  border: 2px solid #d0dce7;
  border-radius: 10px;
  padding: 14px;
  font-size: 1.2em;
  color: #183b5c;
  font-weight: bold;
  text-align: left;
  /* center */
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.menu-button:hover {
  background-color: #eaf2fb;
}

/* 슬라이드 애니메이션 */
.menu-open {
  left: 0;
}

/*사용글씨체---------------------------------------------*/
/* 본문 */
.body-text {
  color: black;
  font-size: 1.2em;
  margin-top: 4px;
  line-height: 1.6em;
  /* 줄간격 일정하게 만듬 */
}

/*회중응답*/
.body-text2 {
  color: black;
  font-size: 1.2em;
  margin-top: 4px;
  line-height: 1.6em;
  font-weight: bold;
}

/* 기본값 (medium, normal) */
body[data-font-size="small"] .body-text,
body[data-font-size="small"] .body-text2 {
  font-size: 0.9em;
}

body[data-font-size="large"] .body-text,
body[data-font-size="large"] .body-text2 {
  font-size: 1.5em;
}

body[data-line-height="tight"] .body-text,
body[data-line-height="tight"] .body-text2 {
  line-height: 1.3em;
}

body[data-line-height="wide"] .body-text,
body[data-line-height="wide"] .body-text2 {
  line-height: 2em;
}

/*사용중*/
.blue-text {
  color: blue;
}


.big-title {
  font-size: 2em;
  font-weight: bold;
  margin-top: 20px;
  scroll-margin-top: 86px;
  /* 상단바로 가리지 않게 */
}

/* 기본값 (medium, normal) */
body[data-font-size="small"] .big-title {
  font-size: 1.7em;
}

body[data-font-size="large"] .big-title {
  font-size: 2.3em;
}



.subtitle {
  color: #5d6d7e;
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 15px;
  scroll-margin-top: 86px;
  /* 상단바로 가리지 않게 */
}

body[data-font-size="small"] .subtitle {
  font-size: 1.2em;
}

body[data-font-size="large"] .subtitle {
  font-size: 1.8em;
}


/*대축일*/
.subtitle2 {
  color: #d31717;
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.6em;
  margin-top: 0px;
  scroll-margin-top: 86px;
  /* 상단바로 가리지 않게 */
}

body[data-font-size="small"] .subtitle2 {
  font-size: 1.0em;
}

body[data-font-size="large"] .subtitle2 {
  font-size: 1.6em;
}


/* 주요축일 */
.subtitle3 {
  color: navy;
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.6em;
  margin-top: 0px;
  scroll-margin-top: 86px;
  /* 상단바로 가리지 않게 */
}

body[data-font-size="small"] .subtitle3 {
  font-size: 1.0em;
}

body[data-font-size="large"] .subtitle3 {
  font-size: 1.6em;
}


/*어코디언 제목*/
.subtitle4 {
  color: #5d6d7e;
  font-size: 1.2em;
  margin-top: 15px;
  scroll-margin-top: 86px;
}

body[data-font-size="small"] .subtitle4 {
  font-size: 0.9em;
}

body[data-font-size="large"] .subtitle4 {
  font-size: 1.5em;
}


.rubric {
  color: red;
  font-size: 1.1em;
  margin-top: 4px;
  line-height: 1.6em;
}

.rubric2 {
  color: blue;
  font-size: 1.1em;
  margin-top: 4px;
  line-height: 1.6em;
  /* 줄간격 일정하게 만듬 */
}

/*정과표 본문*/
.rubric3 {
  color: black;
  font-size: 1.1em;
  margin-top: 8px;
  line-height: 1.6em;
}

/* 기본값 (medium, normal) */
body[data-font-size="small"] .rubric,
body[data-font-size="small"] .rubric2,
body[data-font-size="small"] .rubric3 {
  font-size: 0.8em;
}

body[data-font-size="large"] .rubric,
body[data-font-size="large"] .rubric2,
body[data-font-size="large"] .rubric3 {
  font-size: 1.4em;
}



.highlight {
  color: rgb(175, 5, 5);
  line-height: inherit;
  /* 줄간격 강제 일치 */
}

.small-gap {
  margin-bottom: 10px;
  /* 반줄 정도 띄우기 */
}

.small-gap2 {
  margin-bottom: 5px;
  /* 반줄보다 적게 띄우기 */
}

/* -------------------------------------------------*/

.common-button {
  font-size: 1em;
  padding: 10px 16px;
  margin-left: 15px;
  background-color: #3374ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.common-button:hover {
  background-color: #3339ff;
}

.common-button2 {
  font-size: 1em;
  padding: 10px 16px;
  margin-left: 15px;
  background-color: #8224e3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.common-button2:hover {
  background-color: #5606a7;
}


/* 목록, 본문 버튼--------------------------------------------------------*/

.sub-button {
  font-size: 1em;
  padding: 10px 16px;
  max-width: 45vw;
  white-space: nowrap;
  margin-left: 15px;
  /* 제목과 버튼 사이 간격 */
  color: white;
  /* 글자색 */
  border: none;
  border-radius: 8px;
  /* 모서리 둥글게 */
  cursor: pointer;
  /* 여기에 위치 관련 속성은 넣지 않음 좌우 두개 따로 표기위해*/
}


/* 책갈피 버튼*/
.fixed-bottom-left {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #8224e3;
}

.fixed-bottom-left:hover {
  background-color: #5606a7;
}


/* 안내버튼*/
.fixed-bottom-left2 {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #8b9290;
}

.fixed-bottom-left2:hover {
  background-color: #757a79;
}


/* 송가,본기도,간구버튼 수직배열*/
.fixed-bottom-left-1 {
  position: fixed;
  bottom: 120px;
  left: 0px;
  background-color: #8224e3;
}

.fixed-bottom-left-1:hover {
  background-color: #5606a7;
}

.fixed-bottom-left-2 {
  position: fixed;
  bottom: 70px;
  left: 0px;
  background-color: #8224e3;
}

.fixed-bottom-left-2:hover {
  background-color: #5606a7;
}

.fixed-bottom-left-3 {
  position: fixed;
  bottom: 20px;
  left: 0px;
  background-color: #8224e3;
}

.fixed-bottom-left-3:hover {
  background-color: #5606a7;
}

/*-------------------------------------------*/

.content-end-spacer2 {
  height: 80vh;
}


.content-end-spacer {
  height: 40vh;
}

/*---목록 검색선택----------------------------*/

.grid1,
.grid2,
.grid3,
.grid4 {
  display: grid;
  gap: 10px;
  margin: 20px;
  max-height: 60vh;
  overflow-y: auto;
  padding-bottom: 100px;
  /* 하단 여백 추가 */
}

.grid1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid1>button,
.grid2>button,
.grid3>button,
.grid4>button {
  font-size: 1em;
  padding: 5px 10px;
  min-height: 40px;
  line-height: 1em;
}

/*--순서접기펴기--------------------------*/

.accordion-header {
  cursor: pointer;
  background-color: #e0e0e0;
  padding: 10px;
  margin-top: 10px;
  font-weight: bold;
  scroll-margin-top: 80px;
}

.accordion-header:hover {
  background-color: #d0d0d0;
}

/* 처음 두 개에 색을 다르게 주려는 경우 */
.accordion-header.highlight {
  background-color: #cacac8;
  color: #595b56;
  /* #696962;*/
}

.accordion-header.open {
  background-color: #d4edda;
  border-left: 5px solid #28a745;
  color: #155724;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f8f8f8;
  border-left: 3px solid #888;
  margin-bottom: 5px;
  padding: 0 10px;
}

/* 들여쓰기
.indent1 {
  text-indent: 1em;
} */


/* 기본값 medium / normal 유지됨 */
/* 글자 크기 
body[data-font-size="small"] .body-text,
body[data-font-size="small"] .body-text2,
body[data-font-size="small"] .rubric,
body[data-font-size="small"] .rubric2,
body[data-font-size="small"] .rubric3,
body[data-font-size="small"] .subtitle,
body[data-font-size="small"] .subtitle2,
body[data-font-size="small"] .subtitle3,
body[data-font-size="small"] .subtitle4,
body[data-font-size="small"] .big-title {
  font-size: 0.9em;
}

body[data-font-size="large"] .body-text,
body[data-font-size="large"] .body-text2,
body[data-font-size="large"] .rubric,
body[data-font-size="large"] .rubric2,
body[data-font-size="large"] .rubric3,
body[data-font-size="large"] .subtitle,
body[data-font-size="large"] .subtitle2,
body[data-font-size="large"] .subtitle3,
body[data-font-size="large"] .subtitle4,
body[data-font-size="large"] .big-title {
  font-size: 1.4em;
} */


/* 줄간격 조절 */
body[data-line-height="tight"] .body-text,
body[data-line-height="tight"] .body-text2,
body[data-line-height="tight"] .rubric,
body[data-line-height="tight"] .rubric2,
body[data-line-height="tight"] .rubric3,
body[data-line-height="tight"] .subtitle,
body[data-line-height="tight"] .subtitle2,
body[data-line-height="tight"] .subtitle3,
body[data-line-height="tight"] .subtitle4,
body[data-line-height="tight"] .big-title {
  line-height: 1.3em;
}

body[data-line-height="wide"] .body-text,
body[data-line-height="wide"] .body-text2,
body[data-line-height="wide"] .rubric,
body[data-line-height="wide"] .rubric2,
body[data-line-height="wide"] .rubric3,
body[data-line-height="wide"] .subtitle,
body[data-line-height="wide"] .subtitle2,
body[data-line-height="wide"] .subtitle3,
body[data-line-height="wide"] .subtitle4,
body[data-line-height="wide"] .big-title {
  line-height: 2.2em;
}