/* CrSJ CSS Ver.2019 with Bootstrap 4.2 */
/* Break points: <576px, >=576px, >=768px, >=992px, >=1200px */

/* Layout settings */
html, body { height: 100%; margin: 0; }
body { overflow-y: scroll; }
#container { min-height: 100%; margin-bottom: -400px; background-color: white; }
footer, .push { height: 400px; }
footer { background-color: #2f4c9a; } /* background: linear-gradient(to bottom, white, #9f95c7); */
@media (max-width: 575px) {
	#container { margin-bottom: -450px; }
	footer, .push { height: 450px; }
}

/* Utils */
.cj-sticky { position: sticky; top: 0; }
.alert { border-radius: 0; }
.alert-danger { border-color: #a71d2a !important; }
.cj-breadcomb { padding-bottom: 1rem; }

.cj-m span:before { content: "@"; cursor: text; }
.cj-m span:after  { content: "."; cursor: text; }

.nowrap { white-space: nowrap; }

/* Main article */
article { padding-bottom: 2rem; }
article h1 { font-size: 2rem; color: #3c357b; padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 4px solid #3c357b; }
@media (max-width: 767px) {
	article h1 { font-size: 1.5rem; }
}

article h1 + small { font-size: 18px; display: block; text-align: right; margin: -1.75rem 0 2rem; }
article p { text-align: justify; }

article h2 { font-size: 1.75rem; color: #3c357b; border-left: 8px solid #898fc3; padding: .5rem 0 .5rem 1rem; margin-bottom: 1rem; }
@media (max-width: 767px) {
	article h2 { font-size: 1.3rem; padding-left: .5rem; }
}
article h2 > small { color: #898fc3; }

article h3 { font-size: 1.5rem; color: #3c357b; padding: .5rem 0; }
@media (max-width: 767px) {
	article h3 { font-size: 1.2rem; }
}
article h4 { font-size: 1.2rem; color: #3c357b; padding: .5rem 0; color: #2f4c9a; }
@media (max-width: 767px) {
	article h4 { font-size: 1rem; }
}

article section { margin-bottom: 3rem; }
/* article section > section:nth-child(n+2) { margin-top: 2rem; } */

.cj-info table tbody tr td:first-child { width: 1px; white-space: nowrap; }

/* Header */
header { padding: 1rem 0; }
header nav { justify-content: flex-end; }
header nav a { border-bottom: 2px solid white; color: #3c357b; }
header nav a:hover { border-bottom: 2px solid #3c357b; }
@media (max-width: 767px) {
	header .nav-link { font-size: 80%; padding: .5rem; }
}
header .cj-scj { font-size: 90%; }
@media (max-width: 360px) {
	header .cj-scj { font-size: 70%; }
}

/* Footer */
footer h5 { font-size: 1rem; font-weight: bold; color: #cce; }	/* color: #3c357b */
footer ul { padding-left: 1rem; margin-bottom: .5rem; }
footer ul li { font-size: .8rem; color: white; }  /* color: #3c357b */
footer nav a { color: white; }  /* color: #434a27 */
footer nav a:hover { color: gold; }
footer .cj-link a { color: white; font-weight: bold; }  /* color: #434a27 */
footer .cj-copyright { text-shadow: 0 0 5px black; color: white; font-weight: bold; }

/* Sidebar */
aside { margin-bottom: 1rem; }
aside ul li.list-group-item { padding: 0; background-color: rgba(255, 255, 255, .5); }
aside ul li.list-group-item a { display: block; padding: 1rem .5rem 1rem 1.5rem; color: #3c357b; }
aside ul li.list-group-item a:hover { text-decoration: none; background: linear-gradient(to bottom right, #898fc3, #3c357b); color: white; }
aside ul li.active a { background-color: #2f4c9a; border-color: rgba(0,0,0,.125); color: white; }
aside .cj-banner a { display: block; background-color: deeppink; color: white; margin: .5rem 0; padding: 1rem .5rem; }
aside .cj-support .cj-support-container { height: 150px; border: 1px solid #999; display: flex; justify-content: center; align-items: center; padding: 10px; position: relative; }
aside .cj-support .label { position: absolute; top: 0; left: 5px; color: #999; }
aside .cj-support .label2 { position: absolute; bottom: 3px; color: #999; text-align: center; line-height: 1.2; font-size: small; }
aside .cj-support { color: #666; }
aside .cj-support:hover { text-decoration: none; }

#goTop {
	bottom: 50px; right: 50px; margin: 0; padding: 0; position: fixed; z-index: 99; display: block; color: orange; font-size: 60px;
    transition: opacity .3s, visibility .3s;
}
#goTop.hidden { opacity: 0; visibility: hidden; }
@media (max-width: 991px) {
    #goTop { right: 30px; bottom: 20px; font-size: 40px; opacity: .7; }
}
@media print {
	#goTop { display: none; }
}
#goTop:hover, #goTop:focus { text-decoration: none; }
#goTop:hover { text-shadow: 0px 0px 10px gold, 0px 0px 10px gold; }

/* Canvas for PDF */
.cj-pdf canvas { width: 100%; border: 1px solid #777; }
