:root {
  --primaryColor: #9A14F5;
  --btnHover: #a826ff;
}

body {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  font-family: 'Malgun Gothic', dotum, sans-serif;
  background: #f7f8fa;
}

#hd {
  padding-top: 0px;
  position: sticky;
  top: 0;
  z-index: 999;
}

#hd_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  display: block;
  width: 100%;
  border-radius: 0;
  padding: 0;
}


.hd_firstBlock {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
}

.hd_secondBlock {
  width: 100%;
  background: #f1f1f1;
}

.hd_secondBlock.active {
  padding: 2%;
  transition: linear 0.3s;
}

.hd_menuBlock {
  display: block;
  width: 100%;
  padding: 0 10px;
  background-color: var(--primaryColor);
}

.hd_menuBlock .scroll-menu,
.hd_subItemBlock .scroll-menu {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
  font-size: 16px;
}

.hd_menuBlock .scroll-menu::-webkit-scrollbar,
.hd_subItemBlock .scroll-menu::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.hd_menuBlock .scroll-menu a {
  font-size: 1em;
  flex: 0 0 auto;
  text-decoration: none;
  color: #fff;
  padding: 15px;
  background-color: var(--primaryColor);
}

.hd_subItemBlock .scroll-menu a {
  font-size: 0.9em;
  flex: 0 0 auto;
  text-decoration: none;
  color: #000;
  padding: 12px;
  background-color: #fff;
}

.hd_subItemBlock .scroll-menu a.active {
  border-bottom: 3px solid var(--primaryColor);
  color: var(--primaryColor);
}

.hd_menuBlock .scroll-menu>span {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  padding: 15px 15px 15px 0;
  background-color: var(--primaryColor);
}

.hd_menuBlock .scroll-menu>span>span {
  margin-left: 3px;
}

.hd_menuBlock .scroll-menu a.active {
  background-color: var(--btnHover);
  border: none;
}

.hd_menuBlock .scroll-menu>span {
  position: sticky;
  left: 0;
  z-index: 1000;
  background: linear-gradient(to right, var(--primaryColor) 80%, transparent);
}

.hd_subItemBlock {
  display: block;
  width: 100%;
  padding: 0 10px;
  background-color: #fff;
}

.hd_menuBlock .scroll-menu a:focus-visible {
  outline: -webkit-focus-ring-color auto 0;
}

/* after register button */
.reg_btn_submit {
  border: 1px solid var(--primaryColor);
  background: #f4efff;
  color: var(--primaryColor);
}

#logo {
  float: left;
  width: 35vw;
  position: relative;
  left: auto;
  transform: none;
}

#hd .opener svg {
  color: var(--primaryColor);
}

#container {
  position: relative;
  min-height: 500px;
  height: auto !important;
  border-radius: 8px;
  color: var(--fontColor);
  font-size: 1.2rem;
}

#top_btn {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 30px;
  height: 30px;
  line-height: 26px;
  border: var(--topBtnBorder);
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  z-index: 90;
  background: var(--primaryColor);
  border-radius: 3px;
}

#wrapper {
  width: 100%;
}

#opener_header_search {
  margin: -5px 0 0 auto;
  width: 50px;
  height: 50px;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-size: 1.8rem;
}

#header_search {
  display: none;
  width: 100%;
  height: auto;
  position: relative;
  box-shadow: none;
  bottom: auto;
  left: auto;
}

#header_search #sch_stx,
#header_search #sch_submit {
  height: 45px;
  background: var(--inputBg);
  color: var(--fontColor);
}

#header_search #sch_submit {
  background: var(--primaryColor);
  color: #fff;
}

#opener_aside {
  margin-right: 0;
  width: auto;
  height: auto;
  border: none;
  background: linear-gradient(to right, var(--primaryColor) 80%, transparent);
  font-size: 1em;
}

#container {
  margin: 0 0 15px;
  padding: 0 8px;
  width: 100%;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1041;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  border: var(--primaryColor) 3px solid;
  border-radius: 30px;
  margin: 10% auto;
  padding: 20px;
  width: 30%;
  min-height: 100px;
  max-height: 70%;
  height: auto;
}

.modal-content .spinContent {
  width: 100%;
  height: 100%;
  margin: 5% auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.spinWheelCloseButton {
  background: var(--primaryColor);
  color: white;
  /* float: right; */
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  right: 0;
}

.spinWheelCloseButton:hover,
.spinWheelCloseButton:focus {
  background: var(--primaryColor);
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.modal-title {
  display: flex;
  width: 100%;
  position: relative;
}

.spinTitle {
  display: flex;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primaryColor);
  text-align: center;
  margin: 0 auto;
  padding-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.spinFooter {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
  font-weight: bold;
}

#container_title span {
  margin-top: 15px;
  padding-left: 5px;
  border-left: 5px solid var(--primaryColor);
}

.bo_list .list_header {
  background: #f4efff;
  padding: 10px 5px 10px 15px;
  border-bottom: 3px solid var(--primaryColor);
}

/* google login */
#sns_login .sns-google .ico {
  position: absolute;
  top: 4px;
  left: 10px;
}

#sns_login .sns-google {
  background-color: transparent;
  border-bottom: none;
  border: 2px solid #e5ecee;
  border-radius: 3px;
  height: 100%;
}

#sns_login .txt {
  border-left: none;
  color: #818181;
  letter-spacing: 1px;
  margin-left: 5px;
}

#sns_login .sns-naver .txt {
  color: #fff;
}

#sns_login .txt:hover {
  background: transparent;
  color: #4285F4;
}

#sns_login .sns-naver .txt:hover {
  color: #fff;
}

#sns_login .sns-google:hover {
  border-color: #4285F4;
  background: transparent;
}

#mb_login #sns_login .sns-icon {
  width: 100% !important;
  float: left !important;
}

/* register */
.fregister_group {
  display: flex;
  align-items: center;
}

.fregister_agree {
  position: unset;
  margin-right: 0.5rem;
}

#fregister_chkall,
.chk_box input[type="checkbox"] + label span {
  position: unset;
}

.chk_box input[type="checkbox"] + label span.all_check_register {
  margin-right: 0.75rem;
}

#fregister h2 {
  padding: 20px 0px 10px;
}

.login-sns {
  padding: 25px 15px 20px;
}

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

.bo_write .btn_submit {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.bo_list .list_category a {
  border-radius: 12px;
  border: 1px solid #b4b4b4;
  color: #707070;
  line-height: 22px;
}

.hd_pops {
  width: 330px;
  max-height: 520px;
  overflow-y: auto;
}

@media screen and (max-width: 768px) {
  .modal-content {
    background-color: #fefefe;
    border: var(--primaryColor) 3px solid;
    border-radius: 30px;
    margin: 30% auto;
    padding: 5px;
    width: 90%;
    min-height: 100px;
    max-height: 70%;
    height: auto;
  }

  .modal-content .spinContent {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
  }
}