/* ==========================================================================
   Bootstrap 5 under the theme's Bootstrap 3 design: the sizes, colours and
   helpers the templates were made with. Breakpoints: 768 / 992 / 1200 px.
   ========================================================================== */

/* Type and spacing as Bootstrap 3 had them (the page's base size is 14px) */
a { text-decoration: none; }
p { margin: 0 0 10px; }
ul, ol { margin-bottom: 10px; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.1; }
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
h1 { font-size: 2.5714rem; } h2 { font-size: 2.1429rem; } h3 { font-size: 1.7143rem; }
h4 { font-size: 1.2857rem; } h5 { font-size: 1rem; } h6 { font-size: .8571rem; }
legend { float: none; }
img { max-width: 100%; }
img[height] { height: auto; }

/* The grid: 1170px wide at most; BootBB's rows sit flush with 1px column padding */
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.row { --bs-gutter-x: 2px; margin-left: 0; margin-right: 0; }
@media (min-width: 576px) { .container { max-width: none; } }
@media (min-width: 768px) { .container { max-width: 750px; } }
@media (min-width: 992px) { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

/* hidden-* / visible-* on Bootstrap 3's widths */
@media (max-width: 767.98px) { .hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .hidden-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .hidden-md { display: none !important; } }
@media (min-width: 1200px) { .hidden-lg { display: none !important; } }
.visible-xs, .visible-sm, .visible-md, .visible-lg,
.visible-xs-block, .visible-sm-block, .visible-md-block, .visible-lg-block { display: none !important; }
@media (max-width: 767.98px) {
	.visible-xs, .visible-xs-block { display: block !important; }
	tr.visible-xs { display: table-row !important; }
	td.visible-xs, th.visible-xs { display: table-cell !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
	.visible-sm, .visible-sm-block { display: block !important; }
	tr.visible-sm { display: table-row !important; }
	td.visible-sm, th.visible-sm { display: table-cell !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
	.visible-md, .visible-md-block { display: block !important; }
	tr.visible-md { display: table-row !important; }
	td.visible-md, th.visible-md { display: table-cell !important; }
}
@media (min-width: 1200px) {
	.visible-lg, .visible-lg-block { display: block !important; }
	tr.visible-lg { display: table-row !important; }
	td.visible-lg, th.visible-lg { display: table-cell !important; }
}

/* Buttons in Bootstrap 3's colours */
.btn { --bs-btn-font-size: 1rem; --bs-btn-border-radius: 4px; }
.btn-sm { --bs-btn-padding-y: 5px; --bs-btn-padding-x: 10px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 3px; }
.btn-xs { --bs-btn-padding-y: 1px; --bs-btn-padding-x: 5px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 3px; line-height: 1.5; }
.btn-default { --bs-btn-color: #333; --bs-btn-bg: #fff; --bs-btn-border-color: #ccc; --bs-btn-hover-color: #333; --bs-btn-hover-bg: #e6e6e6; --bs-btn-hover-border-color: #adadad; --bs-btn-active-color: #333; --bs-btn-active-bg: #e6e6e6; --bs-btn-active-border-color: #adadad; }
.btn-primary { --bs-btn-bg: #337ab7; --bs-btn-border-color: #2e6da4; --bs-btn-hover-bg: #286090; --bs-btn-hover-border-color: #204d74; --bs-btn-active-bg: #204d74; --bs-btn-active-border-color: #122b40; }
.btn-success { --bs-btn-bg: #5cb85c; --bs-btn-border-color: #4cae4c; --bs-btn-hover-bg: #449d44; --bs-btn-hover-border-color: #398439; --bs-btn-active-bg: #398439; --bs-btn-active-border-color: #255625; }
.btn-info { --bs-btn-color: #fff; --bs-btn-bg: #5bc0de; --bs-btn-border-color: #46b8da; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #31b0d5; --bs-btn-hover-border-color: #269abc; --bs-btn-active-color: #fff; --bs-btn-active-bg: #269abc; --bs-btn-active-border-color: #1b6d85; }
.btn-warning { --bs-btn-color: #fff; --bs-btn-bg: #f0ad4e; --bs-btn-border-color: #eea236; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #ec971f; --bs-btn-hover-border-color: #d58512; --bs-btn-active-color: #fff; --bs-btn-active-bg: #d58512; --bs-btn-active-border-color: #985f0d; }
.btn-danger { --bs-btn-bg: #d9534f; --bs-btn-border-color: #d43f3a; --bs-btn-hover-bg: #c9302c; --bs-btn-hover-border-color: #ac2925; --bs-btn-active-bg: #ac2925; --bs-btn-active-border-color: #761c19; }

/* Labels (Bootstrap 3) */
.label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; }
.label:empty { display: none; }
.label-default { background-color: #777; } .label-primary { background-color: #337ab7; } .label-success { background-color: #5cb85c; }
.label-info { background-color: #5bc0de; } .label-warning { background-color: #f0ad4e; } .label-danger { background-color: #d9534f; }

img.mycode_img.img-fluid { display: inline-block; }

/* MyBB's own dialogs (jQuery Modal) share Bootstrap's .modal class: keep them MyBB's */
.blocker .modal, .modal[style*="inline-block"] {
	position: relative; top: auto; left: auto; z-index: auto;
	width: 400px; max-width: calc(100vw - 30px); height: auto; overflow: visible;
}

/* Videos fill the post's width at 16:9 */
.bootbb-video-container { width: 100%; }
.bootbb-video-container iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* ── The header (Bootstrap 3's light navbar; the colour schemes paint the hovered link) ── */
.site-navbar { background-color: #f8f8f8; border-bottom: 1px solid #e7e7e7; padding: 0; min-height: 50px; }
.site-navbar .navbar-brand { padding: 5px 0; margin-right: 0; }
.site-navbar .navbar-brand img { max-height: 50px; width: auto; }
.site-navbar .navbar-nav > li > a { color: #777; padding: 20px 10px; }
.site-navbar .navbar-nav > li > a:hover, .site-navbar .navbar-nav > li > a:focus, .site-navbar .navbar-nav > li > a.show { color: #333; }
.site-navbar .navbar-toggler { border-color: #ddd; padding: 6px 10px; }
.site-navbar .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(0, 0, 0, .1); }
@media (max-width: 991.98px) {
	.site-navbar .navbar-nav { padding-bottom: 8px; }
	.site-navbar .navbar-nav > li > a { padding: 10px; }
}

/* The forum's heading bar: its name, and its links behind a button on phones */
.navbar-forumhead { min-height: 0; margin: 0; color: inherit; }
.navbar-forumhead-title { font-weight: bold; padding: 2px 0; margin-right: auto; }
.navbar-forumhead .navbar-toggler { border-color: rgba(255, 255, 255, .7); padding: 2px 6px; }
.navbar-forumhead .navbar-toggler-icon { width: 1.1em; height: 1.1em; filter: invert(1); }
.navbar-forumhead .nav-link { padding: 2px 8px; color: inherit; }
.navbar-forumhead .nav-link:hover, .navbar-forumhead .nav-link:focus { background-color: #fff; color: #262626; }

/* The light/dark switch */
.theme-mode-toggle { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; padding: 10px 12px; color: #777; }
.theme-mode-toggle:hover, .theme-mode-toggle:focus-visible { color: #333; }
[data-bs-theme="dark"] .mode-when-light, [data-bs-theme="light"] .mode-when-dark { display: none; }

/* The User CP / Mod CP / portal side menus: beside the page from 768px, a drawer below */
.side-menu-open i { margin-right: 4px; }
@media (max-width: 767.98px) {
	.side-offcanvas { --bs-offcanvas-width: min(300px, 85vw); }
	.side-offcanvas .offcanvas-body { padding: 0 15px 15px; }
}

/* Bootstrap 3 cleared floats inside containers */
main.container::after, #panel .container::after, #footer .container::after, #copyright .container::after { content: ""; display: table; clear: both; }

/* The theme's flex rows keep their columns on one line, as they did */
@media (min-width: 768px) {
	.rowbit.row { flex-wrap: nowrap; }
	.rowbit.row > * { flex-shrink: 1; }
}

/* Text colours as Bootstrap 3 had them */
.text-primary { color: #337ab7 !important; } .text-success { color: #3c763d !important; } .text-info { color: #31708f !important; }
.text-warning { color: #8a6d3b !important; } .text-danger { color: #a94442 !important; } .text-muted { color: #777 !important; }
[data-bs-theme="dark"] .text-primary { color: #6ea8de !important; } [data-bs-theme="dark"] .text-success { color: #6fbf73 !important; }
[data-bs-theme="dark"] .text-info { color: #6cc3e0 !important; } [data-bs-theme="dark"] .text-warning { color: #e0b25c !important; }
[data-bs-theme="dark"] .text-danger { color: #e57373 !important; } [data-bs-theme="dark"] .text-muted { color: #969aa5 !important; }

/* The breadcrumb's separators (Bootstrap 3 drew them; Bootstrap 5 only does for .breadcrumb-item) */
.breadcrumb > li { display: inline-block; }
.breadcrumb > li + li::before { content: "/\00a0"; padding: 0 5px; color: #ccc; }

/* MyBB's generic button style stays off the header's own buttons */
.site-navbar .theme-mode-toggle, .site-navbar .navbar-toggler, .navbar-forumhead .navbar-toggler { background: transparent; }
.site-navbar .theme-mode-toggle { border: 0; }
