/* body */
body {
  word-break: break-all;
}

@media (max-width:1350px) {
  body {
    overflow-x: hidden;
  }
}

.main-wrapper {
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
}

footer#footer {
  margin-top: auto;
}

/* navbar */
@media (min-width: 576px) {
  .page-container.container .page-header {
    width: calc(540px - 40px);
  }
}

@media (min-width: 768px) {
  .page-container.container .page-header {
    width: calc(720px - 40px);
  }
}

@media (min-width: 992px) {
  .page-container.container .page-header {
    width: calc(960px - 40px);
  }
}

@media (min-width: 1200px) {
  .page-container.container .page-header {
    width: calc(1140px - 40px);
  }
}

@media (min-width: 1400px) {

  .page-container.container .page-header {
    width: calc(1320px - 40px);
  }
}

.nav-link.active {
  font-weight: bold;
}

/* mobile */

@media (max-width:425px) {
  .page-container {
    padding: 1rem;
  }

  .page-content .main-wrapper {
    padding-top: 0;
  }

  .main-wrapper>.row>[class^="col-"],
  .main-wrapper>.row>[class*=" col-"] {
    padding: 0;
  }

  .card-body {
    padding: 1rem;
  }

  .page-sidebar {
    top: 85px;
    height: calc(100% - 100px);
  }

  .back-to-top {
    max-width: 40px;
    max-height: 40px;
  }

  .circular-progress .inner {
    font-size: 18px;
  }
}

/* sidebar */


.page-sidebar {
  overflow: auto;
}

.page-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-sidebar:hover::-webkit-scrollbar,
.page-sidebar:focus-within::-webkit-scrollbar {
  width: 0.5em;
  height: 0.5em;
}


.page-header .navbar .navbar-brand {
  padding: 0;
}

@media (max-width:575.98px) {
  .page-header#header {
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
  }

  .page-header#header .navbar {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

@media (max-width:425px) {
  .page-header .navbar #headerNav>ul>li>a {
    padding: 6px 0;
    margin: 0 4px;
  }
  .page-header .navbar #headerNav>ul>li>a svg, .page-header .navbar #headerNav>ul>li>a i {
    font-size: 14px;
  }
  .page-header .navbar .navbar-brand {
    width: 32px;
    height: 32px;
  }
  .page-header .navbar #headerNav>ul>li>a img {
    width: 32px;
  }
  .page-header .navbar #headerNav>ul>li>a.notifications-dropdown {
    padding: 11px 11px;
    background: var(--bs-primary-pale);
    color: var(--bs-primary);
    line-height: 1;
    min-width: 32px;
    margin-top: 3px;
  }
}

/* sidebar */
.sidebar_menu .search-dropdown,
.sidebar_menu .color-mode-dropdown ,
.sidebar_menu .usernotice {
  display: none !important;
}

.sidebar_menu li.active {
  border-radius: 10px;
  background-color: var(--bs-secondary-pale);
  color: var(--bs-primary);
}

.sidebar_menu li.active>a {
  color: var(--bs-primary);
}

/* post */
.post.quote {
  background: var(--bs-primary-pale);
  border-radius: 15px;
}

.card-thread .message img:not([style]) {
  width: 100%;
  height: auto;
}

/* other */
fieldset.fieldset.notice {
  word-break: break-all;
}

fieldset.fieldset.debug {
  background-color: var(--bs-gray-dark);
  color: var(--bs-green);
  border-color: var(--bs-green);
}

#ordery_dropdown_menu+.dropdown-menu .icon-check {
  position: absolute;
  left: 1em;
  top: 1em;
}

#ordery_dropdown_menu+.dropdown-menu .dropdown-item {
  position: relative
}

.avatar-6 {
  width: 130px;
  height: 130px
}

.forumlist>.btn-group>.btn {
  border-radius: 10px !important;
}

.forumlist>.btn-group>.btn.btn-outline-primary:not(.active):hover {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
  background-color: var(--bs-primary-pale);
  box-shadow: none
}

.forumlist>.btn-group>.btn:not(.active):not(:hover):not(:focus) {
  color: var(--bs-body-color);
}



/* user-profile */
.nav-item.profile-dropdown .dropdown-menu {
  left: unset;
  right: 0;
}

.nav-item.profile-dropdown .dropdown-menu,
.profile-dropdown~.dropdown-menu,
.profile-drop-menu .dropdown-item {
  width: max-content;
}

.user-profile-header-banner {
  background:
    radial-gradient(circle at 100% 50%, transparent 20%, rgba(255, 255, 255, .3) 21%, rgba(255, 255, 255, .3) 34%, transparent 35%, transparent),
    radial-gradient(circle at 0% 50%, transparent 20%, rgba(255, 255, 255, .3) 21%, rgba(255, 255, 255, .3) 34%, transparent 35%, transparent) 0 -50px;
  background-color: var(--bs-primary-pale);
  background-size: 75px 100px;
}

#user_mobile_nav,
#my_mobile_nav {
  display: none !important;
}

#my_aside>.card,
#user_aside>.card {
  position: sticky;
  top: 8.5rem;
}

#my_aside>.card>.list-group,
#user_aside>.card>.list-group {
  padding: .5rem;
}

#my_aside .card-body.text-center,
#user_aside .card-body.text-center {
  display: none;
}

#my_aside .list-group-flush .list-group-item,
#user_aside .list-group-flush .list-group-item {
  border-radius: 15px;
  border: none;
  text-align: left;
}

#my_aside .list-group-flush .list-group-item::after,
#user_aside .list-group-flush .list-group-item::after {
  font-family: FontAwesome;
  content: "\f054";
  float: right;
  text-align: left;
  opacity: .75;
}

#user_aside_mobile,
#my_aside_mobile {
  overflow-x: auto;
  overflow-y: hidden;
}

#user_aside_mobile .list-group,
#my_aside_mobile .list-group {
  flex-direction: row;
  flex-wrap: nowrap;
}

#user_aside_mobile .list-group .list-group-item,
#my_aside_mobile .list-group .list-group-item {
  flex: 1 0 auto;
  width: fit-content;
  border-radius: 15px;
  border: none;
  text-align: center;
}

.user-profile-header-banner {
  height: 250px
}

.user-profile-header-banner img {
  width: 100%;
  object-fit: cover;
  height: 250px
}

.user-profile-header {
  margin-top: -2rem
}

.user-profile-header .user-profile-img {
  border: 5px solid var(--bs-white);
  width: 120px
}

@media(max-width: 767.98px) {
  .user-profile-header-banner {
    height: 150px
  }

  .user-profile-header-banner img {
    height: 150px
  }

  .user-profile-header .user-profile-img {
    width: 100px
  }
}

/* threadlist */
.subject_body_img {
  height: calc(10rem + 5vmin);
  object-fit: cover;
}

.left_img_box {
  max-width: 15vmin;
  /* max-height: 14vmin; */
}

.left_img_box .subject_body_img {
  max-height: 8.5rem;
}

/* hamburger */
.hamburger {
  font-size: 10px;
  width: 1.875em;
  height: 1.5em;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: all 200ms ease-in-out;
}

.hamburger span {
  display: inline-block;
  width: 100%;
  height: 0.1875em;
  /* 3px / 16px */
  background-color: var(--bs-body-color);
  position: absolute;
  transition: all 200ms ease-in-out;
  left: 0;
  top: calc(50% + 0.125em);
}

.hamburger span:first-child {
  transform: translateY(-300%);
}

.hamburger span:last-child {
  transform: translateY(300%);
}

.hamburger-1 span:first-child {
  transform-origin: left top;
}

.hamburger-1 span:last-child {
  transform-origin: left bottom;
}

.hamburger-1.active span:first-child {
  transform: rotate(-45deg) translateX(-0.125em) scaleX(0.5);
}

.hamburger-1.active span:last-child {
  transform: rotate(45deg) translateX(-0.125em) scaleX(0.5);
}

/*  toast */
.toast-container {
  position: fixed;
  z-index: 1055;
  top: 0;
  right: 0;
  padding: 1rem 1rem 0 0
}

/* back to top */
.back-to-top {
  position: fixed;
  bottom: 75px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top .circular-progress {
  --data-progress-color: var(--bs-primary);
  --data-track-color: var(--bs-light);
  position: relative;
  width: 100%;
  max-width: 60px;
  height: 100%;
  max-height: 60px;
}

.circular-progress .progress.outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--data-progress-color) 0deg, var(--data-track-color) 0deg);
}

.circular-progress .inner {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background-color: var(--content-background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--data-progress-color);
  font-size: 24px;
}

/* app bottom navbar */
@media screen and (max-width: 992px) {
  .bottom-nav.page-header {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transition: bottom .3s ease-out;
  }

  .sidebar-hidden .bottom-nav.page-header {
    bottom: -6rem;
  }
}

.bottom-nav.page-header::before {
  display: none !important;
}

.bottom-nav .col.active:before {
  content: "";
  display: block;
  position: absolute;
  bottom: -1.75em;
  left: 0;
  width: 100%;
  height: 1.25em;
  background-color: var(--bs-primary);
  border-radius: 0.25em 0.25em 0 0;
  filter: blur(0.5em);
}

@media screen and (prefers-reduced-motion) {
  .bottom-nav .col.active:before {
    bottom: -0.5em;
    height: 0.25em;
    filter: none;
  }
}

.bottom-nav .btn-outline-primary {
  width: 3em;
  height: 3em;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  line-height: 3;
}