* {
  margin: 0;
  padding: 0;
  font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
  font-size: 1rem;
}

a {
  /*color: #00B7FF;*/
  color: blue;
  text-decoration: none !important;
  cursor: pointer !important;
}

p {
  margin: 2px 2px;
}

.badge {
  font-size: 1rem;
}

.badge:after {
  content: attr(value);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  /*font-size: 1rem;*/
  font-weight: 500;
  color: #fff;
  /*background: red;*/
  background: #e73f34;
  border-radius: 50%;
  /*padding: 1 5px*/
  padding: 1px 5px;
  position: relative;
  /*left: -8px;*/
  left: -4px;
  top: -10px;
  opacity: 1;
}

.whole {
  width: 100%;
}

.grid2fr {
  display: grid;
  /*grid-template-columns: 1fr 1fr;*/
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
}

.grid3fr {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
}

.grid4fr {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
}

.grid73 {
  display: grid;
  grid-template-columns: 70% 30%;
  grid-template-rows: auto;
}

.grid46 {
  display: grid;
  grid-template-columns: 40% 60%;
  grid-template-rows: auto;
}

.grid64 {
  display: grid;
  grid-template-columns: 60% 40%;
  grid-template-rows: auto;
}

.grid7129 {
  display: grid;
  grid-template-columns: 71% 29%;
  grid-template-rows: auto;
}

.sgrid424 {
  display: grid;
  grid-template-columns: 36% 30% 34%;
  grid-template-rows: auto;
}

.top-container {
  width: 100%;
  background: white;
  text-align: center;
}

.top-part {
  display: grid;
  max-width: 1280px;
  min-width: 360px;
  margin: 0;
  padding: 0;
  /*grid-template-columns: 57% 43%;*/
  grid-template-columns: 15% 44% 41%;
  grid-template-rows: auto;
  /*grid-template-rows: 52px;*/
  color: black;
  font-family: "Protest Riot", sans-serif;
  /*border-bottom: 1px solid black;*/
  /*box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.2);*/
}

.top-part a,
.top-part a:link,
.top-part a:visited {
  font-size: 1rem;
  color: black;
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.top-desktop {
  display: grid;
  /*width: 100%;*/
  margin: 0;
  padding: 0;
  /*grid-template-columns: 57% 43%;*/
  grid-template-columns: 6% 46% 48%;
  grid-template-rows: auto;
  /*grid-template-rows: 52px;*/
  color: black;
  font-family: "Protest Riot", sans-serif;
  /*border-bottom: 1px solid black;*/
  /*box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.2);*/
}

.top-desktop a,
.top-desktop a:link,
.top-desktop a:visited {
  font-size: 1rem;
  color: black;
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.flexcenter {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gfont {
  font-family: "Protest Riot", "sans-serif";
  cursor: pointer;
  /*color: #54b340*/
}

.ellipsis {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /*margin-bottom: 4px;*/
}

.circle {
  /*display: inline-block;*/
  display: inline-flex;
  /*width: 24px;
  height: 24px;*/
  justify-content: center;
  align-items: center;
  /*padding: 2px 2px;*/
  border-radius: 16px;
  background: white;
  /*background: #d7d7d7;
  z-index: 10;*/
  /*cursor: pointer;*/
}

.contents {
  width: 100%;
  position: relative;
  margin: 0 auto;
  max-width: 1280px;
  min-width: 360px;
  /*background: linear-gradient(to bottom, #f9fbf7, #c9d8ff);*/
}

.dsdown {
  position: absolute;
  width: 97%;
  height: 0;
  /* 초기 높이 설정 */
  color: black;
  top: -20px;
  left: 1%;
  padding-left: 0px;
  padding-top: 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  /* 내용이 넘칠 때 숨김 */
  transition:
    height 0.3s,
    opacity 0.3s,
    transform 0.3s;
  -webkit-transition:
    height 0.3s,
    opacity 0.3s,
    transform 0.3s;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.dsdown.show {
  height: auto;
  /* 높이를 자동으로 설정 */
  transform: translateY(26px);
  opacity: 1;
  visibility: visible;
  transition:
    height 0.3s,
    opacity 0.3s,
    transform 0.3s;
}

.searchbox {
  /*display: flex;*/
  /*border-top: 1px solid lightgray;*/
  position: absolute;
  width: 340px;
  /*height: auto;*/
  height: 0;
  padding-bottom: 12px;
  color: black;
  top: -23px;
  left: 10px;
  padding-left: 5px;
  /*padding-top: 6px;*/
  background-color: white;
  border-radius: 8px;
  box-shadow:
    0 19px 38px rgba(0, 0, 0, 0.3),
    0 15px 12px rgba(0, 0, 0, 0.22);
  /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);*/
  /*box-shadow: 2px 2px 5px 0 black; /* rgba(0, 0, 0, 0.2);*/
  transition:
    height 0.3s,
    opacity 0.3s,
    transform 0.3s;
  -webkit-transition:
    height 0.3s,
    opacity 0.3s,
    transform 0.3s;
  transform: translateY(-23px);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.searchbox.show {
  height: auto;
  /* 높이를 자동으로 설정 */
  transform: translateY(23px);
  opacity: 1;
  visibility: visible;
  transition:
    height 0.3s,
    opacity 0.3s,
    transform 0.3s;
  -webkit-transition:
    height 0.3s,
    opacity 0.3s,
    transform 0.3s;
}

.lightshadow {
  padding: 10px 8px 6px 8px;
  background: #d1d5db;
  border-radius: 4px;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.16),
    0 3px 6px rgba(0, 0, 0, 0.23);
}

.btnadd {
  cursor: pointer;
  outline: 0;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 0.25rem;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;

  :hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
}

.nubtn {
  display: inline-block;
  outline: 0;
  cursor: pointer;
  text-align: center;
  border: 0;
  padding: 7px 16px;
  min-height: 36px;
  min-width: 36px;
  color: #ffffff;
  /*background: #008060;*/
  background: #54b340;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  box-shadow:
    rgba(0, 0, 0, 0.05) 0px 1px 0px 0px,
    rgba(0, 0, 0, 0.2) 0px -1px 0px 0px inset;

  :hover {
    background: #006e52;
  }
}

.menu-top {
  display: grid;
  width: 100%;
  grid-template-columns: 80% 20%;
  grid-template-rows: 36px;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid darkgray;
  /*background: linear-gradient(to right, #3d6def, #8fadfe);*/
}

.menu-top-name {
  display: grid;
  grid-template-columns: 20% 80%;
  grid-template-rows: 100%;
  font-size: 1rem;
  font-weight: 400;
  padding-left: 2px;
}

.menu-top-name div {
  display: flex;
  align-items: center;
  justify-content: left;
  font-size: 1rem;
  font-weight: 500;
}

.menu-top-icon {
  display: flex;
  align-items: center;
  justify-content: right;
  font-size: 1rem;
  padding-right: 12px;
}

.menu {
  display: flex;
  width: 100%;
  height: 24px;
  margin-top: 8px;
  padding-left: 12px;
}

.menu a,
.menu a:link,
.menu a:visited {
  /*text-decoration: underline;
	text-underline-offset: 4px;*/
  border-bottom: 1px solid blue;
  padding-bottom: 4px;
  color: blue;
}

.menu-item {
  font-size: 1rem;
  padding-top: 4px;
  padding-left: 12px;
}

.menu-icon {
  font-size: 1rem;
  text-align: right;
  padding-right: 12px;
  padding-top: 4px;
}

.menu-item a,
.menu-item a:link,
.menu-item a:visited {
  text-decoration: none;
}

.plusminus {
  /*display: inline-block;*/
  display: inline-flex;
  width: 24px;
  height: 24px;
  justify-content: center;
  align-items: center;
  /*padding: 2px 2px;*/
  border-radius: 50%;
  background: #d7d7d7;
  z-index: 10;
  /*cursor: pointer;*/
}

.showdiv {
  padding-left: 6px;
  margin-top: 10px;
  display: none;
  opacity: 0;
  transition: all 0.3s;
}

.showdiv.show {
  display: block;
  opacity: 1;
  transition: all 0.3s;
}

.sidenav {
  width: 68%;
  /*position: fixed;*/
  position: absolute;
  z-index: 999;
  top: 0px;
  left: -70%;
  /*background-color: #111;*/
  overflow-x: hidden;
  background-color: #fff;
  border-radius: 4px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top: none;
  color: black;
  box-shadow: 2px 2px 5px 0 black;
  /* rgba(0, 0, 0, 0.2);*/
  transition: all 0.5s;
  opacity: 0;
}

.opened {
  left: 0;
  opacity: 1;
  /*width: 56%;*/
  /*transition: all 0.5s;*/
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  /*margin-left: 50px;*/
}

.sidenav a {
  font-size: 1rem;
  text-decoration: none;
  color: black;
}

.mb4 {
  margin-bottom: 4px;
}

.ml4 {
  margin-left: 4px;
}

.ml5 {
  margin-left: 5px;
}

.ml6 {
  margin-left: 6px;
}

.hidesec {
  visibility: hidden;
  height: 1px;
  opacity: 0;
  transition: all 400ms;
}

.showsec {
  visibility: visible;
  opacity: 1;
  height: auto;
  transition: all 400ms;
}

.form-group {
  height: auto;
  min-height: 36px;
  /*margin-bottom: 20px;*/
  /*margin-bottom: 12px;*/
  position: relative;
}

.form-control {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 1rem;
  width: 88%;
  height: 100%;
  background: none;
  border: 1px solid #a1a1a1;
  outline: none;
  padding: 0 4px;
  border-radius: 3px;
  z-index: 1;
}

.form-label {
  position: absolute;
  left: 20px;
  top: 15px;
  color: #a1a1a1;
  /*top: -4px;
	left: 20px;*/
  z-index: 10;
  color: #a1a1a1;
  font-weight: 500;
  background-color: white;
  padding: 0 6px;
  font-size: 14px;
  transition: 0.3s;
}

.lblup {
  position: absolute;
  left: 20px;
  top: -4px;
  color: #a1a1a1;
  /*top: -4px;
	left: 20px;*/
  z-index: 10;
  color: #a1a1a1;
  font-weight: 500;
  background-color: white;
  padding: 0 6px;
  font-size: 14px;
  transition: 0.3s;
}

.form-control:focus + .form-label {
  top: -4px;
  z-index: 10;
  color: #0d6efd;
  font-weight: 500;
}

.form-control:focus {
  border: 1px solid #0d6efd;
}

.form-control:not(:placeholder-shown) {
  border: 1px solid #0d6efd;
}

.form-control:not(:placeholder-shown) + .form-label {
  top: -4px;
  z-index: 10;
  color: #0d6efd;
  font-weight: 500;
}

.boxmenu {
  /*display: inline-flex;
	width: 120px;
	height: 150px;
	padding-top: 8px;
	justify-content: center;
	box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);*/
  background: white;
  color: blue;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
}

.boxmenu a,
boxmenu a:link,
boxmenu a:visited {
  text-decoration: none;
  color: blue;
}

/*.form-control:not(:focus)+.form-label {
  top: 14px;
  z-index: 10;
}*/

.divname {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: black;
  text-align: center;
  height: 1.2rem;
  color: black;
  margin: 0.1rem 0;
}

.divimg {
  display: flex;
  width: 100%;
  height: 7.5rem;
  align-items: center;
  justify-content: center;
  position: relative;
}

.linethrough_red_thick {
  text-decoration: line-through;
  text-decoration-color: red;
  text-decoration-style: double;
  text-decoration-thickness: 2px;
}

.subred {
  text-align: sub;
  color: red;
  margin: 0 5px;
}

.black160 {
  width: 160px;
  color: black;
}

.showroom {
  display: grid;
  grid-template-columns: 33% 33% 33%;
  grid-template-rows: auto;
  margin-left: 2%;
}

.catname {
  margin-left: 1%;
  margin-top: 8px;
  color: blue;
  /*font-size: 1.2rem;*/
}

.cpointer {
  cursor: pointer;
}

.btnboard {
  /*background: #5cb85c;*/
  padding: 8px 12px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1rem;
  color: white;
  cursor: pointer;
}

.linkspan {
  cursor: pointer;
  color: blue;
  /*border-bottom: 1px solid blue;*/
  padding: 0 3px 2px 3px;
  margin-right: 15px;
}

/*게시판 Title div*/
.bnumber {
  display: inline-block;
  width: 3rem;
  border-right: 1px solid #cccccc;
  padding: 0.2rem 0.2rem;
  text-align: center;
  font-size: 0.9rem;
}
.btitle {
  display: inline-block;
  padding: 0.35rem 0.75rem;
}
.bview {
  display: inline-block;
  width: 3rem;
  font-size: 0.9rem;
  border-left: 1px solid #cccccc;
  padding: 0.1rem 0.1rem;
  text-align: center;
}

.boardParent {
  display: flex;
  align-items: center; /* 선택 */
  margin: 0 10px;
  border: 1px solid #cccccc;
  border-bottom: none;
}

.boardParent > div {
  display: inline-block; /* 기존 유지 */
}

.boardParent > div:last-child {
  margin-left: auto; /* 마지막 자식만 오른쪽 배치 */
}

.pagination {
  text-align: center;
}

/* 페이지네이션 기본 스타일 */
.post {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
}
.pagination {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pagination a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
}
.pagination a.active {
  background-color: #007bff;
  color: white;
  pointer-events: none;
}
.pagination a.disabled {
  color: #aaa;
  border-color: #eee;
  pointer-events: none;
}
.tbtitle {
  border-bottom: 1px solid #cccccc;
}
/* number input arrow 제거 */
.input_narrow::-webkit-inner-spin-button,
.input_narrow::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.input_narrow {
  -moz-appearance: textfield;
}

.btnShowHide {
  cursor: pointer;
  outline: 0;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  /*padding: 6px 12px; Original*/
  padding: 4px 10px; /*내가 바꾼 내용 */
  font-size: 16px;
  /*border-radius: 0.25rem;*/
  border-radius: 4px;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  :hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
}

.btn2026 {
  cursor: pointer;
  outline: 0;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  /*padding: 6px 12px; Original*/
  padding: 4px 8px; /*내가 바꾼 내용 */
  font-size: 16px;
  border-radius: 0.25rem;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  :hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
}

.popup-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 9999;

  background: white;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  max-width: min(90vw, 500px);
  max-height: 80vh;
  overflow: auto;
}
