body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}

main {
    display: flex;
    flex-wrap: nowrap;  
    height: -webkit-fill-available;
	height: 100vh;
    max-height: 100vh;
    overflow-x: auto;
    /*overflow-y: hidden;*/
}

.divider {
    flex-shrink: 0;
    width: .5rem;
    align-self: stretch;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.bi {
    vertical-align: -.125em;
    pointer-events: none;
    fill: currentColor;
}

.dropdown-toggle {
    outline: 0;
}

.nav-flush .nav-link {
    border-radius: 0;
}

.btn-primary {
	--bs-btn-bg: #3f3839;
    --bs-btn-border-color: #3f3839;
	--bs-btn-hover-bg: #363030;
    --bs-btn-hover-border-color: #363030;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
	background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-border-color) !important;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .65);
    background-color: transparent;
    border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(0, 0, 0, .85);
    background-color: #d2f4ea;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(0, 0, 0, .85);
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: #d2f4ea;
}

.scrollarea {
    overflow-y: auto;
}

.fw-semibold {
    font-weight: 600;
}

.lh-tight {
    line-height: 1.25;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.ccm-settings-summoner { display: none !important; }

/**************************/
/***** STICKY FOOTER ******/
/**************************/

.sticky-footer { display: flex; position: fixed; left: calc(300px + .5rem); right: 0; bottom: 0; height: 40px; background: #f5f5f5; padding: 0rem 1rem; border-top: 1px solid #333; justify-content: center; }
.sticky-footer a { color: #333; text-decoration: none; }
.sticky-footer a:hover { color: #cd2f17; }
.sticky-footer > div { display: flex; gap: 15px; flex-wrap: nowrap; align-items: center; font-size: 14px; }

@media screen and (max-width: 550px) {
	.sticky-footer > div { gap: 10px; font-size: 12px; }
}

@media screen and (max-width: 400px) {
	.sticky-footer > div { gap: 8px; font-size: 10px; }
}
/**************************/
/******    SIDEBAR   ******/
/**************************/

#sidebar { width: 300px; }
#sidebar img { width: 160px; max-width: 160px; }
#sidebar .btn-menu-toggle { display: none; background: #fff; color: #333; justify-content: center; align-items: center; border-color: #333; }

/*
#sidebar .jump-marks-nav { list-style: none; padding: 0; margin-top: 30px; }
#sidebar .jump-marks-nav li { margin-bottom: 8px; }
#sidebar .jump-marks-nav a { text-decoration: none; color: #333; }
#sidebar .jump-marks-nav a:hover { text-decoration: underline; }
*/

#sidebar .wiki-toc { background-color: #f8f9fa; border: 1px solid #333; padding: 12px 15px; display: block; font-family: sans-serif; font-size: 0.85rem; margin-top: 30px; margin-bottom: 30px; }
#sidebar .wiki-toc-title { font-weight: bold; text-align: center; margin-bottom: 8px; font-size: 0.9rem; color: #202122; }
#sidebar .wiki-toc ul { list-style: square; margin: 0; padding-left: 1rem; }
#sidebar .wiki-toc li { margin-bottom: 5px; line-height: 1.4; }
#sidebar .wiki-toc a { text-decoration: none; color: #0645ad; display: block; }
#sidebar .wiki-toc a:hover { text-decoration: underline; color: #0b0080; }
#sidebar .toc-text { vertical-align: baseline; }
#sidebar .wiki-toc-label { font-weight: bold; text-align: center; margin-bottom: 10px; padding-bottom: 5px; }
#sidebar .wiki-toc-subtitle { font-weight: bold; text-align: center; font-size: 1rem; color: #202122; margin-bottom: 5px; line-height: 1.2; }

/*
#sidebar .sidebar-actions { padding-bottom: 10px; border-bottom: 2px solid #33333350; }
#sidebar .sidebar-menu .col-12 > ul { list-style: none; padding-left: 0px; }
#sidebar .sidebar-menu .col-12 > ul > li > a { display: flex; align-items: center; text-decoration: none; padding: 5px 0px; color: #333; }
#sidebar .sidebar-menu .col-12 > ul > li:hover > a { background-color: #33333320; }
 


#sidebar .mm-active > a { display: flex; align-items: center; text-decoration: none; border-top: 2px solid #33333350; border-bottom: 2px solid #33333350; padding: 5px 0px; color: #333; }
#sidebar .mm-active > ul { list-style: none; padding-left: 0px; }
#sidebar ul.menu_level_1 { list-style: none; padding-left: 0px; }
#sidebar ul.menu_level_1 li a { display: flex; align-items: center; text-decoration: none; border-top: 1px solid #33333350; border-bottom: 1px solid #33333350; padding: 5px 15px; color: #333; }
#sidebar .last > a { display: flex; align-items: center; text-decoration: none; border-top: 2px solid #33333350; border-bottom: 2px solid #33333350; padding: 5px 15px; color: #333; }
#sidebar ul.menu_level_1 li:hover a, .last:hover > a { background-color: #33333320; }
#sidebar ul.menu_level_1 > li:first-child a { border-top: none; }
#sidebar ul.menu_level_1 > li:last-child a { border-bottom: none; }
*/


/**************************/
/****** PAGE CONTENT ******/
/**************************/
.page-content { display: flex; flex-wrap: wrap; row-gap: .25rem; column-gap: 1rem; padding-bottom: 90px; }
.page-content > h1 { padding: 10px 0px; border-top: 1px solid #33333350; border-bottom: 1px solid #33333350; margin: 10px 0px; flex: 0 0 100%; padding-left: 15px; border-left: 12px solid #cd2f17; }
.page-content > h2 { padding: 10px 0px; border-top: 1px solid #33333350; border-bottom: 1px solid #33333350; margin-bottom: 10px; flex: 0 0 100%; padding-left: 15px; border-left: 6px solid #cd2f17; }

.page-content img { width: 100%; height: auto; max-width: min(100%, 500px); border: 1px solid #333; }
.page-content > p:not(:has(img)) { flex: 0 0 100%; }
.page-content > p:not(:has(img)) + .page-content > p:not(:has(img)) { margin-bottom: 0px; }
.page-content > p:has(img) { flex: 0 0 calc(20% - 1rem); margin: 0; }
.page-content > p:has(img) + p:not(:has(img)), .page-content > p:has(img) + h2, .page-content > p:has(img) + ul, .page-content > p:has(img) + ol, .page-content > p:has(img) + table { margin-bottom: 1rem; }

.page-content .table-responsive { width: 100%; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; background-color: #fff; overflow: hidden; margin: 1rem 0; }
.page-content th, .page-content td { padding: 0.35rem 0.5rem; border: 1px solid #dee2e6; text-align: left; vertical-align: top; }
.page-content th { background-color: #f5f5f5; font-weight: 600; }
.page-content tbody tr:nth-child(odd) { background-color: #ffffff; }
.page-content tbody tr:nth-child(even) { background-color: #f5f5f5; }
.page-content tbody tr:hover { background-color: #e9ecef; }

.page-content .viewer-eligible { border: 1px solid #333; }
.page-content .viewer-eligible:hover { cursor: pointer; }

.page-content > ul { flex: 0 0 100%; }
.page-content > ul > li { flex: 0 0 100%; }

.page-content pre.hljs { flex: 0 0 100%; padding: 10px; max-width: 100%; box-sizing: border-box; white-space: pre-wrap; word-break: break-word; overflow-x: auto; }

@media screen and (max-width: 1199px) {
	main { flex-direction: column; }
	#sidebar { width: 100%; padding-bottom: 0 !important; }
	.divider { height: .5rem; width: 100%; }
	#sidebar .btn-menu-toggle { display: flex; }
	
	.sidebar-actions { margin-bottom: 1rem; }
	.login-button { max-width: 200px; }

	
	.sidebar-content { height: 0; overflow: hidden; transition: height 0.3s ease; }
	.sticky-footer { left: 0; }
}