/** plugin: DnD5 Condition Tooltips #2.0 fonts **/
@import url('https://fonts.googleapis.com/css2?family=Andada+Pro:wght@500&family=Libre+Baskerville&display=swap');

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

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

/** plugin: Larger pictures in Dashboard #1.1 code **/
/* Set vars */
:root {
	--sky-dashboard-picture-height: 250px;
	--sky-dashboard-picture-height-mobile: 200px;
}

.panel .panel-heading-entity h3 {
	height: var(--sky-dashboard-picture-height);
}

@media (max-width:767px) {
	.panel .panel-heading-entity h3 {
		height: var(--sky-dashboard-picture-height-mobile);
	}
}

/** plugin: DnD5 Condition Tooltips #2.0 code **/
/* BEGIN DnD5 Condition Tooltips by Salvatos */
/** Style outer container (requires :has) **/
/* Background */
body:has(a.entity-mention[data-entity-tags~="dd5condition"][aria-expanded="true"]) .tippy-box {
	background: url(https://cdn-ugc.kanka.io/entities/files/OnfHKKTT4rtOeeQZLHwv1ddpZtKMJbykZ52WUwsg.jpg), #dbcbae;
	padding: 5px 8px;
}
/* Border and arrow */
body:has(a.entity-mention[data-entity-tags~="dd5condition"][aria-expanded="true"]) .tippy-box {
	padding: 0;
	border: 3px solid #333;
}
body:has(a.entity-mention[data-entity-tags~="dd5condition"][aria-expanded="true"]) .tippy-box[data-placement^="bottom"]>.tippy-arrow:before {
	border-bottom-color: #333;
}
body:has(a.entity-mention[data-entity-tags~="dd5condition"][aria-expanded="true"]) .tippy-box[data-placement^="top"]>.tippy-arrow:before {
	border-top-color: #333;
}
body:has(a.entity-mention[data-entity-tags~="dd5condition"][aria-expanded="true"]) .tippy-box[data-placement^="left"]>.tippy-arrow:before {
	border-left-color: #333;
}
body:has(a.entity-mention[data-entity-tags~="dd5condition"][aria-expanded="true"]) .tippy-box[data-placement^="right"]>.tippy-arrow:before {
	border-right-color: #333;
}
body:has(a.entity-mention[data-entity-tags~="dd5condition"][aria-expanded="true"]) .tippy-box[data-placement^="top"] > .tippy-arrow {
	bottom: -1px;
}
body:has(a.entity-mention[data-entity-tags~="dd5condition"][aria-expanded="true"]) .tippy-box[data-placement^="bottom"] > .tippy-arrow {
	top: -1px;
}
/* Fallback for :has */
@supports not (body:has(a.entity-mention)) {
	.tooltip-content.kanka-tag-dd5condition {
		background: url(https://cdn-ugc.kanka.io/entities/files/OnfHKKTT4rtOeeQZLHwv1ddpZtKMJbykZ52WUwsg.jpg), #dbcbae;
		padding: 5px 8px;
		border-radius: 3px;
	}
}

/** Style inner container **/
/* Style name */
.tooltip-content.kanka-tag-dd5condition .entity-name {
	font-family: "Andada Pro", serif;
	font-variant: small-caps;
	font-size: 15px;
	font-weight: bold;
	text-align: left;
	text-decoration: underline;
	color: #a4280b;
}
/* Hide tags*/
.tooltip-content.kanka-tag-dd5condition .tooltip-tags {
	display: none;
}
/* Style paragraphs: mimic list items, which are not parsed in tooltips */
.tooltip-content.kanka-tag-dd5condition p::before {
	content: "• ";
}
.tooltip-content.kanka-tag-dd5condition p {
	font-family: "Libre Baskerville", sans-serif;
	font-size: 12px;
	color: #222;
	margin-bottom: 5px;
  	hyphens: auto;
}
/* Tooltip definitions */
.tooltip-content.kanka-tag-dd5condition p a[title] {
	text-decoration: underline dotted;
	font-style: italic;
	color: inherit;
	font-family: inherit;
}
/* END DnD5 Condition Tooltips by Salvatos */

/** plugin: Marble Buttons #Version 1.1 code **/
/** plugin: Marble Buttons #1.1 **/
:root {
    --btn-default-text: #444444;
    --btn-default-border: rgba(0,0,0,0.33);
    --btn-default-hover-border: rgba(0,0,0,0.5);
    --btn-default-hover-text: #444444;
    --btn-default-hover-background: unset;
}
.btn-default, .btn-primary, .btn-warning, .btn-danger, .btn-success, .btn2 {
    background-color: unset;
    text-shadow: -1px 1px rgb(0 0 0 / 100%), 1px -1px rgb(0 0 0 / 50%);
    box-shadow: 0 3px 3px rgb(0 0 0 / 30%), 0 0 5px 2px rgb(0 0 0 / 20%), -2px -2px 10px rgb(0 0 0 / 50%) inset, 2px 2px 10px rgb(255 255 255 / 75%) inset!important;
}
.btn-default, .btn2 {
    text-shadow: -1px 1px rgb(0 0 0 / 50%), 1px -1px rgb(255 255 255 / 50%);
}
.btn-primary {
    border-color: rgba(54,127,169,0.5);
}
.btn-warning, .btn2.btn-accent {
    border-color: rgba(224,142,11,0.5);
}
.btn:hover, .btn:active {
    text-shadow: 1px -1px rgb(0 0 0 / 100%), -1px 1px rgb(0 0 0 / 50%);
}
.btn-default:hover {
    text-shadow: 1px -1px rgb(0 0 0 / 50%), -1px 1px rgb(255 255 255 / 50%);
}
.btn-default:hover, .btn-primary:hover, .btn-warning:hover, .btn-danger:hover, .btn-success:hover, .btn2:hover {
    background-color: unset;
    box-shadow: 2px 2px 10px rgb(0 0 0 / 50%) inset, -2px -2px 10px rgb(255 255 255 / 75%) inset!important;
}
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary.active {
    border-color: rgba(54,127,169,0.75);
}
.btn-warning, .btn-warning:hover, .btn-warning:active, .btn-warning.active,
.btn2.btn-accent, .btn2.btn-accent:hover, .btn2.btn-accent:active, .btn2.btn-accent.active {
    border-color: rgba(224,142,11,0.75);
}
.btn-danger, .btn-danger:hover, .btn-danger:active, .btn-danger.active,
.btn2.btn-error, .btn2.btn-error:hover, .btn2.btn-error:active, .btn2.btn-error.active
{
    border-color: rgba(191,83,41,0.75);
}
.btn-default, .btn2 {
    background-image: url(https://raw.githubusercontent.com/scanime/kanka/main/css/buttons-marble/marble.jpg)!important;
}
.btn-primary {
    background-image: url(https://raw.githubusercontent.com/scanime/kanka/main/css/buttons-marble/marble-primary.jpg)!important;
}
.btn-warning, .btn2.btn-accent {
    background-image: url(https://raw.githubusercontent.com/scanime/kanka/main/css/buttons-marble/marble-warning.jpg)!important;
}
.btn-danger, .btn2.btn-error {
    background-image: url(https://raw.githubusercontent.com/scanime/kanka/main/css/buttons-marble/marble-danger.jpg)!important;
}
.btn-success {
    background-image: url(https://raw.githubusercontent.com/scanime/kanka/main/css/buttons-marble/marble-success.jpg)!important;
}

/** plugin: New Dashboard #1.0 code **/
:root {
    --sky-dashboard--height: 300px;
    --sky-dashboard--photo: calc(var(--sky-dashboard--height) * .45);
    --sky-dashboard--text: calc(var(--sky-dashboard--height) * .55);
}

.panel .panel-heading-entity {
    transition: background 3s ease;
}

.panel-body {
    padding: 10px;
    padding-bottom: 0px;
}
.panel .panel-heading-entity h3 {
    height: 100%;
}

.map-dashboard {
    min-height: calc(var(--sky-dashboard--height) + 31px);
}

.panel {
    min-height:  calc(var(--sky-dashboard--height) + 32px);
}

.panel-heading-entity {
    height: var(--sky-dashboard--photo);
}

.widget-preview div[data-toggle="preview"],
.panel .panel-body .preview {
	max-height: var(--sky-dashboard--text); 
}

.panel .panel-body .preview-switch {
    position: relative;
}

@media (max-width: 992px) {
    .panel .panel-heading-entity {
        width: 35%;
        max-width: 150px;
        float: left;
        height: calc(var(--sky-dashboard--height) * 0.65);
        margin-right: 16px;
    }

    .panel {
	    min-height:  calc(var(--sky-dashboard--height) * 0.45);
    }
    
    .map-dashboard {
	    min-height: calc(var(--sky-dashboard--height) * 0.65);
    }

    .panel .panel-heading-entity h3 {
	    word-wrap: break-word;
    }
}

@media (min-width: 1501px) {
    .panel .panel-heading-entity {
        width: 35%;
        max-width: 150px;
        float: left;
        height: calc(var(--sky-dashboard--height) * 0.65);
        margin-right: 16px;
    }

    .panel {
	    min-height:  calc(var(--sky-dashboard--height) * 0.65);
    }
    
    .map-dashboard {
	    min-height: calc(var(--sky-dashboard--height) * 0.65);
    }

    .panel .panel-heading-entity h3 {
	    word-wrap: break-word;
    }
}

/** plugin: Remove Image Shadow #1.0 code **/
.entity-header .bottom .entity-avatar img {
  box-shadow: none;
}

/** plugin: Basics - Display Fix #0.2 beta code **/
/***********************/
/* INTEGRATED PLUGINS */

/** Plugin: No Fluff by felixnightshade (https: //marketplace.kanka.io/profiles/17967) **/

/* Removes "Boosted" text and boosted rocket */
strong.text-maroon,
strong.text-maroon~p.help-block,
strong.text-maroon~br {
    display: var(--boosted-text-nofluff, none);
}

.fas.fa-rocket,
.label.label-default.bg-maroon.pull-right {
    display: var(--boosted-rocket-nofluff, none);
}

/**********************************/
/********** GLOBAL PAGES *********/
/********************************/

/* Alert Notifications */
.alert-success,
.bg-green,
.callout.callout-success,
.label-success,
.modal-success .modal-body {
    margin-top: 20px;
}

/* WRAPS AND WEBSITE CONTENT */
section.content-header {
    padding: 0px;
}

section.content {
    padding-top: 0px;
}

.content-header ol.breadcrumb {
    padding: 15px 25px 10px 25px;
}

.content-header h1 {
    padding: 0 0 15px 15px;
}

.campaign-header {
    margin-bottom: 15px;
}

/* Content Wrapper Fix */
.content-wrapper {
    min-height: calc(100vh - 50px) !important;
}

.btn-block+.btn-block {
    margin-top: 10px;
}

.help-block {
    margin-top: 15px;
    margin-left: 2px;
}

.box-footer .help-block {
    display: inline-block;
    margin-left: 15px;
    margin-top: 0;
}

.form-group .help-block {
    margin-top: 5px;
}

/* Adding the pointer cursor on the checkboxes */
input[type=checkbox]:hover {
    cursor: pointer;
}

/*****************/
/* MAIN SIDEBAR */

/* Reduce the default campaign-name size */
section.sidebar-campaign .campaign-name {
    font-size: 16px;
}

/* Fixed the Custom Links tab in .active mode */
li.active.sidebar-quick-links {
    background: none !important;
    box-shadow: none !important;
}

li.active.sidebar-quick-links>a {
    background: rgba(0, 0, 0, .24) !important;
    box-shadow: inset 1px 2px 6px rgb(0 0 0 / 16%) !important;
}

/* Removal of last update date */
.campaign-updated {
    display: none;
}

/**********/
/* FORMS */

.nav-tabs-custom>.tab-content {
    padding: 20px;
}

.form-group .form-control {
    border-radius: 4px;
    padding: 6px 10px;
}

.selection .select2-selection {
    /* old /* height: 33px */
    min-height: 33px;
    padding: 6px 10px;
    margin-top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 2.4;
    margin-top: -6px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    color: var(--input-text-color);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 25px !important;
    top: 0;
}

.form-group label {
    margin-left: 2px;
}

.form-group label input[type="checkbox"] {
    position: relative;
    top: 2px;
    margin-right: 3px;
}

#main-content>section.content>div>form>div.panel-body>div.required:nth-child(2),
#main-content>section.content>div>form>div.panel-body>div:nth-child(2)>p.help-block {
    margin-bottom: 0;
}

textarea#tooltip::placeholder,
.form-group input::placeholder {
    opacity: 0.65;
}

.form-group label input[name="is_dead"] {
    position: relative;
    top: 1px;
    margin-right: 5px;
}

.form-group input.image[type="file"] {
    padding-left: 6px;
}

.entity-modification-history div.help-block,
#entity-attributes-all .entity-attributes .help-block {
    margin-top: 0;
}

#form-organisations div:first-child {
    margin-bottom: 15px;
}

.panel .panel-body,
.panel-body .form-group:last-child,
.tab-content div.tab-pane.active div:not(.form-group):last-child,
.tab-content div.tab-pane.active div:last-child .help-block {
    margin-bottom: 0;
    padding-bottom: 0;
}

/***************************************/
/* ARTICLES, ENTITY, BOXES AND TABLES */

/** Headers **/

.entity-header-image>div {
    border-radius: 5px !important;
}

.entity-grid .entity-header {
    grid-template-columns: 225px auto;
}

.entity-grid .entity-header .entity-banner {
    min-height: 245px;
}

.entity-grid .entity-header .entity-header-image {
    padding: 20px 0 0 25px !important;
}

.entity-grid .entity-header.with-entity-banner .entity-header-image {
    padding: 20px 0 25px 25px !important;
}

.entity-grid .entity-header .entity-header-text {
    padding: 25px 25px 0 20px !important;
}

.entity-grid .entity-header.with-entity-banner .entity-header-text {
    padding: 25px 25px 25px 20px !important;
}

/** Content **/

/* Internal margin of article content increased */
.box-body {
    padding: 10px 20px;
}

.box-gallery .box-body {
    padding: 10px
}

.entity-notes .box-body {
    padding: 8px 20px;
}

.entity-grid .entity-submenu {
    padding-left: 25px;
}

.entity-grid .entity-sidebar {
    padding-right: 25px;
}

/* Formatting bulleted/number lists */
.entity-note-body li,
.entity-grid .entity-content>ul>li {
    margin-bottom: 10px;
}

.entity-note-body>ul>li>ul>li:nth-child(1) {
    margin-top: 8px;
}

/* Adding a margin at the bottom of the campaign title */
#campaign-dashboard .campaign-head {
    margin-bottom: 12px;
}

/*********************************************/

/* Fixed the display of labels corresponding to numbers */
.entity-submenu>.hidden-xs>.box-solid>div>ul>li>a>span:not(.bg-maroon) {
    padding: 0.5em 0.6em 0.3em;
}

.hidden-xs.hidden-sm ul>li>a>span.bg-maroon {
    padding: .5em .6em .3em;
}

/* Do not display the "Entry"title of the first entry */
.box-entity-entry .box-header.with-border[id=""],
.box-entity-entry .box-header.with-border:not([id]) {
    display: none;
}

.entity-story-block .box-entity-entry:first-child,
.entity-main-block .box-entity-entry:first-child {
    margin: 0;
}

/* When the Input entity has content, add a margin below 20px */
.box-entity-entry>.entity-content {
    margin-bottom: 20px;
    padding-top: 15px;
}

/* New grid proportions */
.entity-grid {
    grid-template-columns: 250px minmax(auto, calc(100% - 300px)) 250px;
}

/* Correction of margins due to character traits */
#character-appearance-body p:nth-child(1),
#character-appearance-body p:nth-child(2) {
    margin-top: 8px;
}

/* Checkbox formatting on tables */
.table-striped>thead>tr>th:nth-child(1),
.table-striped>tbody>tr>td:nth-child(1) {
    text-align: center;
}

.table-striped>thead>tr>th:nth-child(1)>input,
.table-striped>tbody>tr>td:nth-child(1)>input {
    cursor: pointer;
    height: 15px;
    width: 15px;
    opacity: 0.75;
}

/* Footer */
footer.main-footer {
    padding-bottom: 0px !important;
}

/* New border-radius on entity image */
a.entity-image {
    border-radius: 10%;
}

/** Permissions Category **/
#crud_permissions .row {
    margin-right: 15px;
    margin-left: 15px;
}

#crud_permissions .row:not(:last-child) {
    padding-bottom: 15px;
}

#crud_permissions .row hr {
    display: block;
    height: 20px;
    margin: 0 -15px 5px -15px;
}

/****************/
/* ADMIN PANEL */

.element-live-reorder .element:last-child {
    margin-bottom: 0;
}

#datagrid-parent .table tr th:first-child,
#datagrid-parent .table tr td:first-child {
    padding-left: 20px;
}

/* Campaign Title adjustement */
section.sidebar-campaign .campaign-block {
    padding: 120px 24px 0;
}

/**********/
/* BOXES */

.box-header .box-title i {
    margin-right: 5px;
}

.box-header {
    padding: 14px 10px 10px 20px;
}

.box,
.box-body,
.box.box-solid,
.sidebar-section-box {
    border-radius: 5px;
}

.box-entity-story-reorder .box-body,
.box-entity-story-reorder .box-footer,
.box-profile {
    padding: 20px;
}

.box-footer {
    line-height: 0px;
}

.box .box-header i.pull-right {
    margin-right: 10px;
}

.box .box-header i.fa-filter {
    margin-right: 5px;
}

/* Fixing Footer Box Buttons Display */
.datagrid-bulk-actions .btn-group,
.datagrid-bulk-actions #datagrids-bulk-actions-delete {
    margin-right: 5px
}

/***********/
/* TABLES */

.table {
    margin-bottom: 0;
}

/*********/
/* BODY */

/* Calendars */

.calendar-toolbar .calendar-current .btn {
    margin-left: 25px;
}

.month-alias {
    float: none;
    margin-bottom: 0;
    font-size: 2rem;
}

/* Conversations */

.box-conversation .box-comments .box-comment {
    margin: 0 0 20px 0;
    padding: 10px;
}

.box-conversation .box-comments .box-comment:first-child {
    margin-top: 10px;
}

.box-conversation .box-comments strong.user {
    display: inline-block;
    margin-bottom: 5px;
}

.box-conversation .box-comments .box-comment .comment-text {
    padding-left: 10px;
    border-left: 2px solid #afafb940;
}

.box-conversation .box-footer {
    padding: 20px 0;
}

/******************/
/* RIGHT SIDEBAR */

/* Only used for adding a default background */
:root {
    --sidebar-section-background: var(--box-background);
    --sidebar-section-padding: 10px 15px 0px 15px;
}

/* Redefinition of the sidebar fonts */
.sidebar-section-box .sidebar-section-title {
    border-bottom: none;
}

.sidebar-section-box {
    margin-bottom: 20px;
}

.list-group .list-group-item strong:first-child {
    display: inline-block;
    width: 100%;
    margin-bottom: 3px;
}

.list-group .list-group-item span {
    float: left !important;
}

.sidebar-section-box .sidebar-elements .element .title {
    font-size: 14px;
    font-weight: bold;
    text-transform: none;
}

.sidebar-elements .element div.title {
    margin-bottom: 3px;
}

.sidebar-elements .element {
    margin-bottom: 5px !important;
}

/* Adding a separator between the different elements */
.sidebar-elements .element:not(:last-child) {
    border-bottom: 1px solid;
    border-color: var(--list-group-item-border);
    padding-bottom: 10px;
}

/**********************/
/* RESPONSIVE DESIGN */

@media (max-width: 767px) {
    .entity-grid .entity-header {
        grid-template-columns: 120px minmax(auto, calc(100% - 120px));
    }

    .entity-grid .entity-header .entity-header-text {
        padding: 20px 25px 0 20px !important;
        align-self: start;
    }

    .entity-grid .entity-header .entity-banner {
        min-height: 150px;
    }

    .entity-grid .entity-submenu {
        padding: 0 15px;
    }

    .entity-note-body ul {
        padding-left: 20px;
    }

    .help-block {
        float: none;
        margin-top: 15px !important;
        margin-left: 0 !important;
    }
    .nav-tabs-custom .form-group {
            margin-bottom: 10px;
    }    
}

/*****************************

Author : MisterHims
Created for : Kanka v1.27.0
Plugin Version : 0.1 beta

CREDITS :
felixnightshade - No Fluff - https://github.com/Xbozon/rpg-styled-ui - For the plugin
Davsama - For the idea and more

/** plugin: Tip Boxes #1.0 code **/
.tipbox-small { 
   float: right; margin: 10px; 
   width: 400px; padding:10px; 
   border-style: solid; border-width: 1px;
   text-align: justify; 
}

.tipbox-large { 
   float: right; margin: 10px; 
   width: 50%; padding:10px; 
   border-style: solid; border-width: 1px;
   text-align: justify; 
}

@media only screen and (max-width: 900px) {   .tipbox-small, .tipbox-large {  float: none;  width: 90%;  }   }

/** 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: Background Image #1.1 code **/
:root {
--background-image: url(https://cdn-ugc.kanka.io/notes/8ly9AmgnOqMJecSFiLzSMMkItIdyK9TEKVO2WXbt.jpeg);
}

/* background image */
.wrapper {
  background: var(--background-image) !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-position: right bottom !important;
  -webkit-background-size: cover !important;
  -moz-background-size: cover !important;
  -o-background-size: cover !important;
  background-size: cover !important;
}
.content-wrapper, .main-footer { background: none; }

/** 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: Rounded Asset page links #1.1 code **/
@media(min-width:992px) {
  .entity-main-block .entity-assets .asset-link .child {
    background-color: transparent;
  }
  .entity-main-block .entity-assets .asset-file .child {
    border-radius: 25px;
    padding: 20px;
  }
  .entity-main-block .entity-assets .asset-link {
    background: rgb(232,232,232);
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(1,21,25,1) 50%, rgba(0,0,0,0.5004202364539565) 100%);
    border-radius: 25px;
    padding: 20px;
    width: calc(30vw - (30vw - 100%));
    height: 16.3vh; 
  }
  .entity-main-block .entity-assets .asset-file {
    background: rgb(232,232,232);
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(1,21,25,1) 50%, rgba(0,0,0,0.5004202364539565) 100%);
    border-radius: 25px;
    padding: 20px;
    width: calc(30vw - (30vw - 100%));
    height: 16.3vh;
  }
}

@media(max-width:991px) {
  
  .entity-assets .grid {
    display: initial;
  }
  .entity-assets .asset-link .child {
    background-color: transparent;
    border-radius: 25px;
    padding: 20px;
    text-align: center;
  }
  .entity-assets .asset-link .child.text {
    width: 100%;
  }
  
  .entity-main-block .entity-assets .asset-link {
    background: rgb(232,232,232);
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(1,21,25,1) 50%, rgba(0,0,0,0.5004202364539565) 100%);
    border-radius: 25px;
    padding: 20px;
    height: 16.3vh; 
  }
  .entity-main-block .entity-assets .asset-file {
    background: rgb(232,232,232);
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(1,21,25,1) 50%, rgba(0,0,0,0.5004202364539565) 100%);
    border-radius: 25px;
    padding: 20px;
    height: 16.3vh; 
  }
  .entity-assets .entity-asset .icon i {
    line-height: 1;
  }
  .entity-assets .entity-asset .icon {
    border-radius: 25px;
    float: left;
  }
}

/** plugin: Desaturate dead characters #1.1 code **/
:root {
 --dead-grey-value: 1;
}

.character-dead .entity-image {
 filter: grayscale(var(--dead-grey-value));
}

.panel-heading-entity:has(.ra-skull) {
    filter: grayscale(var(--dead-grey-value));
}

[data-defunct="true"] .avatar , [data-dead="true"] .avatar  {
  filter: grayscale(var(--dead-grey-value)); 
}

[data-dead="true"] .avatar::after {
content: "💀";
    pointer-events: none;
    width: 24px;
    position: absolute;
    right: .375rem;
    top: .375rem;
}

.entity-header:has(.entity-char-dead) img {
    filter: grayscale(var(--dead-grey-value));
}

.character-dead img {
	filter: grayscale(var(--dead-grey-value));
}

/** plugin: Reasonable Widget Images #1.0 code **/
/* BEGIN Reasonable Widget Images by Salvatos */
:root {
	--RWI-h: 120px;
	--RWI-c: #fff;
}
.widget-image {
	display: block;
	max-height: var(--RWI-h);
	overflow: hidden;
	aspect-ratio: initial;
}
.widget-header:has(.widget-image) {
	position: relative;
}
.widget-image + .flex {
	position: absolute;
	top: 0;
	color: var(--RWI-c);
	text-shadow: rgba(0,0,0,.9) 0 1px 4px;
}
/* END Reasonable Widget Images by Salvatos */

/** plugin: Back to top #1.0 code **/
.content-wrapper {
  position: relative;
  padding-bottom: 50px;
}

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

