/** 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: Remove Image Shadow #1.0 code **/
.entity-header .bottom .entity-avatar img {
  box-shadow: none;
}

/** 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: Round Entity Images #1.1 code **/
.entity-header-image :is(.entity-image, picture > img) {
    border-radius: 100%;
}

/** plugin: Simple Lightbox #1 code **/
/* BEGIN Salvatos Simple Lightbox */
.lightbox {
	display: none;
	z-index: 999;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1em;
	background: rgba(0, 0, 0, 0.8);
}

/* Unhide the lightbox when targeted */
.lightbox:target {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: center;
	align-content: center;
}
/* Show caption based on 'title' attribute */
.lightbox::after {
	content: attr(title);
	margin-top: 10px;
	align-self: center;
	color: lightgrey;
	font-style: italic;
	font-size: 16px;
}

/* Full image sizing */
.lightbox img {
	max-width: 100%;
	max-height: 100%;
}

/* Change cursor icon on hover */
a[href^="#lightbox-"]:hover {
    opacity: 0.9;
    cursor: zoom-in;
}
a[id^="lightbox-"]:hover {
    cursor: zoom-out;
}
/* END Salvatos Simple Lightbox */

/** plugin: Pin Privacy Icons #2 code **/
/* BEGIN Pinned Attribute Privacy Icons By Salvatos */
:is(.pinned-attribute, .pinned-relation) > strong::after {
	font-family: "Font Awesome 6 Pro";
	font-size: 10px;
	color: hsl(var(--bc) / .5);
}
/* Non-admins will never see anything but public attributes,
   so there’s no use showing them any icon for attributes */
.is-admin .pinned-attribute > strong::after {
	content: var(--public-attribute-icon, " \f3c1");
}
.is-admin .pinned-attribute[data-private="true"] > strong::after {
	content: var(--public-attribute-icon, " \f023");
}
/* Connections matter for everyone */
/* All: unlocked */
.pinned-relation[data-visibility="1"] > strong::after {
	content: var(--public-attribute-icon, " \f3c1");
}
/* Admins: locked */
.pinned-relation[data-visibility="2"] > strong::after {
	content: var(--private-attribute-icon, " \f023");
}
/* Me & Admins: person-lock */
.pinned-relation[data-visibility="3"] > strong::after {
	content: var(--self-admins-connection-icon, "\f502");
}
/* Only Me: spy */
.pinned-relation[data-visibility="4"] > strong::after {
	content: var(--self-only-connection-icon, "\f21b");
}
/* Campaign members: group */
.pinned-relation[data-visibility="5"] > strong::after {
	content: var(--members-only-connection-icon, "\f0c0");
}
/* END Pinned Attribute Privacy Icons By Salvatos */

/** plugin: Scrollable Main Sidebar #1.13 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: 3rem;
	}
	/* 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: Back to top #1.0 code **/
.content-wrapper {
  position: relative;
  padding-bottom: 50px;
}

.back-to-top {
  display: block !important;
}

