/** plugin: Redacted Text #1.3 code **/
:root { --summernote-insert-salv-redacted: enabled; }

.salv-redacted {
	position: relative;
	word-break: break-all;
	background-color: black;
	color: black;
	-webkit-user-select: none;
	user-select: none;
}
.salv-redacted a {
	display: none;
}
.salv-redacted::before {
	content: "[REDACTED]";
	position: relative;
	padding: 0 1ch;
	background-color: black;
	word-break: break-word;
	color: white;
	font-weight: bold;
	font-family: Roboto,sans-serif;
	letter-spacing: 0.2ch;
}

/** plugin: Handwritten Journal #1.3 code **/
/* Made by Ornstein, maybe sloppy, to create 'letter' styles for journals and notes */
/*Import of Salvatos' userscript plugin */
:root { --summernote-insert-handwritten-journal: enabled; }

/*Import fonts from google for handwritten letters; there are 6.*/
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500&family=Fondamento&family=Homemade+Apple&family=Kalam&family=Sacramento&family=Shadows+Into+Light&display=swap');
/*Main letter class, establishing background image and text colour (in case they're in dark mode)*/
.lback
{
   background: url("https://cdn-ugc.kanka.io/entities/files/n68lwMIv4f0NVfp0d1ghHo0tJQikA3CAnyhHW9s6.png") no-repeat center top;
   background-size: cover;
    background-attachment:fixed;
padding-top: 25px;
padding-left: 50px;
padding-right:50px;
padding-bottom:25px;
  color:black;
background-attachment: local;
}
/*Certain things ignore the master styling. Need to overrwrite. Lists and block quotes*/
.lback li {
background:transparent;
color:black; 
}

.lback hr {
    height: 1px;
    background-color: black;
    border: none;
}

.lback a 
{
	color: DarkBlue;
}

.letter blockquote {
background:transparent;
color:black; 
font-size: 1.1em;
border-left: 5px double black;
}

.hand1 {
font-family: 'Kalam', cursive;
}

.hand2 {
    font-size: 1.5em;
font-family: 'Sacramento', cursive;
}

.hand3 {
    font-size: 1.2em;
font-family: 'Dancing Script', cursive;
}

.hand4 {
font-family: 'Fondamento', cursive;
}

.hand5 {
font-family: 'Homemade Apple', cursive;
}

.hand6{
    font-size: 1.1em;
font-family: 'Shadows Into Light', cursive;

}

.sig {
    font-size:2em;
}
.letter a, h1, h2, h3, h4, h5, h6 {
    font-family:inherit;
}

.lback .table-bordered,
.lback .table-bordered > tbody > tr > td,
.lback .table-bordered > tbody > tr > th,
.lback .table-bordered > tfoot > tr > td,
.lback .table-bordered > tfoot > tr > th,
.lback .table-bordered > thead > tr > td,
.lback .table-bordered > thead > tr > th
    { border: 1px solid black; }

/** plugin: Elegant Music Embeds #1.0 code **/
/*Music  Embeds */
.panel-body iframe {
    width: 100%;
    height: 85px;
}

.box-body iframe {
    width: 100%;
    height: 85px;
}

/** plugin: Scrollable Main Sidebar #1.12 code **/
/* BEGIN Scrollable Main Sidebar */
.main-sidebar {
  --sidebar-scrollbar-track-color: auto;
  --sidebar-scrollbar-slider-color: auto;
  --sidebar-scrollbar-width: thin;
}
@media (min-width:768px) {
	.main-sidebar {
		position: fixed;
	}
	.main-sidebar .sidebar-menu {
		margin-bottom: 0;
	}
	/* Main site sidebar */
	body:not(#map-body) .main-sidebar .sidebar {
		height: calc(100vh - (160px + 50px) - 3rem) !important;
		padding-bottom: 1em;
		overflow-y: scroll;
		scrollbar-width: var(--sidebar-scrollbar-width);
		scrollbar-color: var(--sidebar-scrollbar-slider-color) var(--sidebar-scrollbar-track-color);
	}

	/* Webkit patch */
	body:not(#map-body) .main-sidebar .sidebar::-webkit-scrollbar {
		background-color: var(--sidebar-scrollbar-track-color);
	}
	body:not(#map-body) .main-sidebar .sidebar::-webkit-scrollbar-thumb {
		background-color: var(--sidebar-scrollbar-slider-color);
	}
}
/* END Scrollable Main Sidebar */

/** plugin: Add Folder Icon to List Entities With Children in Nested View #1.2.1 code **/
.table-nested tr[data-children]:not([data-children="0"]) td:nth-child(1):after {
    content: "\f07c";
    font-family: 'Font Awesome 6 Pro';
    font-size: 1.2rem;
    padding-left: 13px;
    margin-right: -40px;
}

/** plugin: Entry Box Backgrounds #1.0 code **/
.sidebar-section-box {
	--sidebar-section-background: var(--box-background);
	--sidebar-section-padding: 10px;
	border-radius: 3px;
	box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

/** plugin: Figure Box and Floats #1.2 code **/
/*Adds functionality to Salvatos' userscript plugin*/
:root {
	--summernote-insert-figure-box: enabled;
}

/*Left float with margin*/
.l {
	float: left;
	margin-left: 0.5em;
	margin-right: 0.5em;
}
/* Right float with margin*/
.r {
	float: right;
	margin-left: 0.5em;
	margin-right: 0.5em;
}
/*Adds a clear class to avoid a tetris stack*/
.clear {
    clear:both;
}

/*Figure box. For an image with optional title or subtitle*/
div.figure {
	width: 25%;
	text-align: center;
	font-style: italic;
	font-size: smaller;
	text-indent: 0;
	border: thin silver solid;
	margin: 0.5em;
	margin-top: 0em;
	padding: 0.5em;
}
/*adding margin to the figure image to give space for the text*/

.figure img {
	margin-bottom: 0.5em;
}
div.figure::after {
    clear: both;

}

/** plugin: Stub Banner #1.0 code **/
.kanka-tag-stub .entity-story-block:before {
    text-align: center;
    font-style: oblique;
    display:inline-block;
    background: var(--box-background);
    padding: 2ch;
    border: 1px solid lightgrey;
    border-left: 5px solid orange;
    margin: 10px;
    margin-right: 10%;
    margin-left: 10%;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    width: 80%;
    content: var(--stub-text);
}

