.page {
  background-color: var(--default-bg-color);
  margin-top: 60px;
  flex-direction: column;
  position: absolute;
  place-content: center;
  width: calc(100% - 0px);
  height: auto;
  font-family: "Roboto", "Malgun Gothic", "맑은 고딕", sans-serif;
}

@media (max-width: 767px) {
  .page {
    margin-top: 50px;
  }
}

.container {
  height: 320px;
  margin: 0 auto;
  width: 640px;
}

@media (max-width: 767px) {
  .container {
    margin-top: 50px;
    flex-direction: column;
    height: 100vh;
    width: 320px;
  }
}

.p-actiontext-edit {
  float: right;
  margin-left: 30px;
  font-weight: 700;
  color: rgb(38, 196, 38);
}

.p-actiontext-delete {
  float: right;
  margin-left: 30px;
  font-weight: 700;
  color: rgb(233, 141, 129);
}

.p-actiontext-file {
  float: right;
  margin-left: 30px;
  font-weight: 700;
  color: rgb(128, 161, 90);
}

.p-selectall {
  margin: 0;
  line-height: 1.6;
}

.ol-selectall {
  list-style: none;
  counter-reset: list;
  padding: 0 1rem;
}

.li-selectall {
  position: relative;
  max-width: 130rem;
  margin: 1rem auto;
  padding: 2rem 1rem 1rem;
  box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3);
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: var(--infolist-bg-color);
  background: linear-gradient(to left, var(--infolist-bg-color), #36424f);
}

.li-selectall::before {
  display: block;
  width: 100%;
  height: 1rem;
  position: absolute;
  top: 0;
  left: 0;
}

input {
  float: right;
  font-size: 15px;
  color: whitesmoke;
  width: 100px;
  border: none;
  border-bottom: solid #aaaaaa 1px;
  padding-left: 10px;
  position: relative;
  background: none;
  z-index: 5;
}
input::placeholder {
  color: #aaaaaa;
}
input:focus {
  outline: none;
}

textarea::selection {
  background-color: var(--topmenu-selectedmenu-bg-color-pc); /* 선택 배경색 변경 */
  color: white; /* 선택 글자색 변경 */
}

input::selection {
  background-color: var(--topmenu-selectedmenu-bg-color-pc); /* 선택 배경색 변경 */
  color: white; /* 선택 글자색 변경 */
}

.input_start {
  float: right;
  font-size: 14px;
  color: whitesmoke;
  background-color: transparent;
  border-radius: 5px;
  width: 90px;
  height: 30px;
  border: solid #292828 1px;
  margin-right: 2px;
  margin-bottom: 5px;
  cursor: pointer;
}

.input_start:hover {
  background-color: #9b5c4d;
  color: whitesmoke;
}

.input_end {
  float: right;
  font-size: 14px;
  color: whitesmoke;
  background-color: transparent;
  border-radius: 5px;
  width: 90px;
  height: 30px;
  border: solid #292828 1px;
  margin-right: 2px;
  cursor: pointer;
}

.input_end:hover {
  background-color: #9b5c4d;
  color: whitesmoke;
}

 /* bbsmain 글내용 줄간격 */
.bbs-content p {
  line-height: 1.7;
}

/* 기간검색버튼   */
.btn_search {
  float: right;
  font-size: 14px;
  color: whitesmoke;
  border-radius: 5px;
  margin-right: 1px;;
  background-color: #3e8f52;
  height: 30px;
  width: 80px;
  border: solid #292828 1px;
}

.btn_search:active {
  background-color: #679772;
  color: whitesmoke;
}

/* 전체기간버튼   */
.btn_listall {
  float: right;
  font-size: 14px;
  color: whitesmoke;
  border-radius: 5px;
  background-color: #306ca0;
  height: 30px;
  width: 80px;
  border: solid #292828 1px;
}

.btn_listall:active {
  background-color: #507ea7;
  color: whitesmoke;
}

/* button-status-reged   */
.button-status-reged {
  background-color: #bd5858;
  border: 1px solid #292828;
  float: right;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
  color: #ffffff;
  cursor: default;
  display: block;
  font-size: 14px;
  line-height: 25px;
  text-align: center;
  transition: box-shadow 0.05s ease-in-out, opacity 0.05s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* button-status-answered   */
.button-status-answered {
  background-color: #3e8f52;
  border: 1px solid #292828;
  float: right;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
  color: #ffffff;
  cursor: default;
  display: block;
  font-size: 14px;
  line-height: 25px;
  text-align: center;
  transition: box-shadow 0.05s ease-in-out, opacity 0.05s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* button-status-ignored   */
.button-status-ignored {
  background-color: #454155;
  border: 1px solid #292828;
  float: right;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
  color: #ffffff;
  cursor: default;
  display: block;
  font-size: 14px;
  line-height: 25px;
  text-align: center;
  transition: box-shadow 0.05s ease-in-out, opacity 0.05s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* hr-div  */
.hr-div {
  border-bottom: 1px solid #333;
  margin-bottom: 8px;
}

/* icon-answered-pos   */
.icon-answered-pos {
  float: left;
  margin-top: 10px;
  margin-right: 10px;
}

/* icon_blueblub-pos   */
.icon_blueblub-pos {
  float: left;
  margin-top: 20px;
  margin-right: 10px;
}

.msg {
  color: white;
  font-size: 14px;
  line-height: 1.5;
  margin: 1px 7px;
}

.msgtitle {
  color: white;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
}

/* BBS 새글쓰기버튼  */
.btn_write_origin {
  background-color: #306ca0;
  border: 1px solid #292828;
  margin-bottom: 15px;
  float: left;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  display: block;
  font-size: 15px;
  line-height: 30px;
  width: 100px; /* 버튼폭 */
  text-align: center;
}

.btn_write_origin::before {
  content: "\2714"; /* 연필 유니코드 */
  margin-right: 5px; /* 아이콘과 텍스트 사이의 간격 */
  font-size: 16px; /* 아이콘 크기 필요에 따라 조절 */
}

.btn_write_origin:active {
  background-color: #507ea7;
  color: whitesmoke;
}


/* BBS 댓글쓰기 버튼  */
.btn_reply_write {
  background-color: #497e4a;
  border: 1px solid #282928;
  margin-left: 5px;
  margin-bottom: 15px;
  float: left;
  border-radius: 5px;
  color: whitesmoke;
  cursor: pointer;
  display: block;
  font-size: 15px;
  line-height: 27px;
  width: 80px; /* 버튼폭 */
  text-align: center;
}

.btn_reply_write::after {
  font-size: 16px;
  content: "\002B"; /* 댓글작성 유니코드 */
}

.btn_reply_write:active {
  background-color: #6a926b;
  color: whitesmoke;
}

/* BBS 글삭제 버튼  */
.btn_content_delete {
  background-color: transparent;
  border: 0px solid #292828;
  margin-top: 5px;
  margin-left: 5px;
  float: right;
  border-radius: 0px;
  color: whitesmoke;
  cursor: pointer;
  display: block;
  font-size: 15px;
  line-height: 30px;
  width: 30px; /* 버튼폭 */
  text-align: center;
}

.btn_content_delete::before {
  font-size: 16px;
  content: "\1F5D1"; /* 삭제 유니코드 */
}

/* BBS 댓글삭제 버튼  */
.btn_content_delete_reply {
  background-color: transparent;
  border: 0px solid #292828;
  margin-left: 5px;
  float: right;
  border-radius: 0px;
  color: whitesmoke;
  cursor: pointer;
  display: block;
  font-size: 15px;
  line-height: 30px;
  width: 30px; /* 버튼폭 */
  text-align: center;
}

.btn_content_delete_reply::before {
  font-size: 16px;
  content: "\1F5D1"; /* 삭제 유니코드 */
}

/* 비밀번호 다이얼로그 결과안내 메세지 */
.msg {
  color: whitesmoke;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* BBS 새글작성 비밀번호 입력박스  */
.input_password_origin {
  background-color: var(--bbs_div_inputbox_origin_bgcolor);
  border: 1px solid rgb(0, 0, 0); /* 테두리 설정 */
  margin-left: 2px;
  margin-bottom: 10px;
  float: left;
  color: #f2f2f2;
  font-size: 15px;
  line-height: 28px;
  width: 250px;
}

/* BBS 댓글작성 비밀번호 입력박스  */
.input_password_reply {
  background-color: var(--bbs_div_inputbox_origin_bgcolor);
  border: 1px solid rgb(0, 0, 0); /* 테두리 설정 */
  margin-left: 2px;
  margin-bottom: 10px;
  float: left;
  color: #f2f2f2;
  font-size: 15px;
  line-height: 28px;
  width: 250px;
}

/* BBS 새글 작성완료 버튼  */
.btn_write_origin_save {
  background-color: var(--bbs_btn_write_origin_save_bgcolor);
  border: 1px solid #292828;
  float: right;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
  color: #ffffff;
  cursor: pointer;
  display: block;
  font-size: 15px;
  line-height: 73px;
  width: 100px;
  text-align: center;
}

.btn_write_origin_save:active {
  background-color: #679772;
  color: whitesmoke;
}

/* BBS 댓글 작성완료 버튼  */
.btn_write_reply_save {
  background-color: var(--bbs_btn_write_origin_save_bgcolor);
  border: 1px solid #292828;
  margin-bottom: 20px;
  float: right;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
  color: #ffffff;
  cursor: pointer;
  display: block;
  font-size: 15px;
  line-height: 73px;
  width: 100px;
  text-align: center;
}

.btn_write_reply_save:active {
  background-color: #679772;
  color: whitesmoke;
}

/* recaptcha */
.recaptcha-container {
  float: right;
  margin-left: 5px;
  margin-right: 5px;
}

/* [PC]새글쓰기 작성완료 버튼과 리캡차를 감싸는 컨테이너 생성 */
.container_recaptcha_btn_write_origin_save {
  align-items: center;
}

@media (max-width: 767px) {
  /* BBS 새글 작성완료 버튼  */
  .btn_write_origin_save {
    background-color: var(--bbs_btn_write_origin_save_bgcolor);
    border: 1px solid #292828;
    float: right;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 15px;
    line-height: 73px;
    width: 100%;
    text-align: center;
  }

  /* BBS 댓글 작성완료 버튼  */
  .btn_write_reply_save {
    background-color: var(--bbs_btn_write_origin_save_bgcolor);
    border: 1px solid #292828;
    margin-bottom: 20px;
    float: right;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 15px;
    line-height: 73px;
    width: 100%;
    text-align: center;
  }

  /* recaptcha */
  .recaptcha-container {
    float: center;
    margin-top: 10px;
    margin-right: 0px;
  }

  .container_recaptcha_btn_write_origin_save {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* 새글쓰기 입력박스 DIV */
#div_inputbox_origin {
  margin-top: 50px;
  color: whitesmoke;
  height: 100%;
  width: 100%;
  resize: none;
  font-size: 14px;
}

/* 댓글쓰기 입력박스 DIV */
#div_inputbox_reply {
  margin-top: 50px;
  color: whitesmoke;
  height: 100%;
  width: 100%;
  resize: none;
  padding: 8px;
  font-size: 14px;
}

/* 댓글목록 컨테이너 DIV */
.reply-container {
  clear: both;
  margin-left: 5px;
  margin-top: 10px;
}

/* 댓글추가 DIV 스타일 */
.div_parent {
  clear: both;
  white-space: pre-wrap; /* 텍스트에 줄바꿈 문자 적용 */
  line-height: 1.7;
  margin-left: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}


/* 메인게시글목록 작성일자 */
.main-datetimeinsert {
  font-size: 15px;
  font-weight: 600;
  color: rgb(226, 212, 93) !important;
}

/* 댓글목록 작성일자 */
.reply-datetimeinsert {
  color: rgb(188, 205, 240);
  font-weight: 600;
}

.textarea_origin {
  margin-bottom: 10px;
  background-color: var(--bbs_div_inputbox_origin_bgcolor);
  color: whitesmoke;
  width: 100%;
  height: 250px;
  border: 1px solid black;
  font-size: 16px;
  resize: none;
}

.textarea_reply {
  margin-bottom: 10px;
  background-color: var(--bbs_div_inputbox_origin_bgcolor);
  color: whitesmoke;
  width: 100%;
  height: 200px;
  border: 1px solid black;
  font-size: 16px;
  resize: none;
}

textarea:focus {
  outline: none;
}

/* 비밀번호 다이얼로그 --------*/
.password_dialog_delete {
  flex-direction: column;
  align-items: flex-start;
  height: 200px;
  width: 268px;
  border: 1.5px solid rgb(130, 130, 130);
  border-radius: 10px;
  font-size: 16px;
  box-shadow: 0.1rem 0.1rem 1.1rem rgba(0, 0, 0, 0.6);
  background: linear-gradient(to left, var(--infolist-bg-color), #36424f);
}

.password_dialog_delete p {
  font-size: 16px;
  color: white;
}

.password_dialog_delete input[type="password"],
.password_dialog_delete input[type="text"] {
  float: left;
  padding: 10px;
  border: 1px solid #292828;
  width: 230px;
}

.password_dialog_delete #confirmButton {
  background-color: #a14c4c;
  border: 1px solid #292828;
  float: left;
  margin-top: 20px;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  line-height: 40px;
  width: 100px;
  cursor: pointer;
}

.password_dialog_delete #cancelButton {
  background-color: #31638f;
  border: 1px solid #292828;
  float: left;
  margin-top: 20px;
  margin-left: 30px;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.12) 0 3px 3px;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  line-height: 40px;
  width: 100px;
  cursor: pointer;
}

/*---흔들기효과-------------*/
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

#lblmsg.shake {
  animation: shake 0.7s ease-in-out;
}
/*-------------------------*/

/* 마우스 호버 효과 추가 */
.button-write:hover {
  background-color: #1591e9;
  box-shadow: rgba(0, 0, 0, 0.2) 0 5px 5px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease-in-out; /* 부드러운 효과를 위한 트랜지션 */
}
