:root, [data-bs-theme="dark"] {
    --bs-body-font-size: 14px;
    --bs-font-sans-serif: Verdana, Helvetica, sans-serif;
    --bs-primary-rgb: 255,204,0;
}

.btn-lotro {
    background: linear-gradient(to bottom, #071e40, #031531);
    padding: 4px 10px;
    border: 1px solid #253752;
    color: #ddd;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color 0s ease-in-out,box-shadow .15s ease-in-out;
}
.btn-lotro:active, .btn-lotro:hover, .btn-lotro:focus {
    border: 1px solid #5a6e8e;
    background: linear-gradient(to bottom, #33507c, #103469);
    color: #fff;
}

/** icon **/
.lotro-icon {
	position: relative;
	width: 32px;
	height: 32px;
}
.lotro-icon .lotro-icon-front,
.lotro-icon .lotro-icon-shadow,
.lotro-icon .lotro-icon-background  {
	position: absolute;
	top: 0;
	left: 0;
}

/** item table **/
table.items-table td {
	vertical-align: middle !important;
}
table.items-table tbody tr {
	cursor: pointer;
}
table.items-table td.item-name a {
	line-height: 32px;
	padding-left: .5rem !important;
	flex: 1 0 0;
	font-variant: small-caps;
    /*font-family: serif;*/
}
table.items-table td.item-name .lotro-icon,
table.items-table td.item-name .required-class { /* col-auto like behaviour */
	flex: 0 0 auto;
}
table.items-table td.item-name .lotro-icon {
	margin-left: calc(var(--bs-gutter-x) * .5);
	padding-left: 0;
}
table.infotable .required-class,
table.items-table td.item-name .required-class {
	width: auto;
	font-style: italic;
	font-size: 0.9rem;
	color: #47ee31;
}

/** db filter (search/filter box above tables) **/
.db-filter .infobox-body {
	padding-top: 12px;
	padding-bottom: 14px;
}
.db-filter .form-control,
.db-filter .form-select {
	background-color: #070d18;
	border: 1px solid #253752;
	border-radius: 3px;
	color: #ddd;
	font-size: 12px;
	padding-top: 3px;
	padding-bottom: 3px;
	min-height: 0;
}
.db-filter .form-select {
	padding-left: 8px;
	background-position: right 6px center;
}
.db-filter .form-control:hover,
.db-filter .form-select:hover {
	border-color: #335280;
}
.db-filter .form-control:focus,
.db-filter .form-select:focus {
	border-color: #5a6e8e;
	box-shadow: 0 0 .5rem #335280;
	outline: none;
}
.db-filter .form-control::placeholder {
	color: #666;
}
/* highlight filters that are in use */
.db-filter .form-select:has(option:checked:not([value=""])),
.db-filter .form-control:not(:placeholder-shown) {
	border-color: #8a6d00;
	background-color: #14110a;
	color: #fc0;
}
.db-filter .form-select option {
	background-color: #070d18;
	color: #ddd;
}
.db-filter .form-select option.q-uncommon { color: #fff200; }
.db-filter .form-select option.q-rare { color: #9933cc; }
.db-filter .form-select option.q-incomparable { color: #00ffff; }
.db-filter .form-select option.q-legendary { color: #ff9900; }

.db-filter .filter-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}
.db-filter .filter-search:last-child {
	margin-bottom: 0;
}
.db-filter .filter-search .form-control {
	flex: 1 1 auto;
	font-size: 14px;
	padding: 5px 10px;
}
.db-filter .filter-search .form-select {
	flex: 0 0 auto;
	width: auto;
	font-size: 14px;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-right: 2rem;
}
.db-filter .filter-search .btn-lotro {
	padding: 5px 18px;
	font-weight: bold;
}
.db-filter .filter-reset {
	font-size: 11px;
	color: #999;
	text-decoration: none;
	white-space: nowrap;
}
.db-filter .filter-reset:hover {
	color: #fc0;
	text-decoration: underline;
}

.db-filter .filter-groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}
.db-filter .filter-group {
	background: #00000066;
	border: 1px solid #253752;
	border-radius: 4px;
	padding: 0 10px 10px 10px;
	margin: 0;
	min-width: 0;
}
.db-filter .filter-group legend {
	float: none;
	width: auto;
	margin: 0 0 4px -2px;
	padding: 0 6px;
	font-family: serif;
	font-variant: small-caps;
	font-size: 15px;
	font-weight: bold;
	color: #e5dc85;
	line-height: 1;
}
.db-filter .filter-field + .filter-field {
	margin-top: 6px;
}
.db-filter .filter-field .form-label {
	display: block;
	margin-bottom: 1px;
	font-size: 11px;
	color: #999;
}
.db-filter .filter-range {
	display: flex;
	align-items: center;
	gap: 4px;
}
.db-filter .filter-range .form-control {
	flex: 1 1 0;
	min-width: 0;
}
.db-filter .filter-range-separator {
	color: #666;
}
.db-filter .invalid-feedback {
	display: block;
	font-size: 11px;
}

/** item result header & pagination **/
.item-results-header,
.item-results-footer {
	display: flex;
	align-items: center;
	margin: 0 0 6px 0;
}
.item-results-footer {
	justify-content: flex-end;
	margin: 6px 0 0 0;
}
.item-results-count {
	font-size: 12px;
	color: #999;
}
.item-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.item-pagination .btn-lotro {
	font-size: 11px;
	padding: 2px 10px;
}
.item-pagination .btn-lotro.disabled {
	color: #555;
	border-color: #1b2536;
}
.item-pagination-status {
	font-size: 11px;
	color: #999;
}

/** paged table **/
.paged-table-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px 16px;
	font-size: 11px;
	color: #999;
}
.paged-table-header {
	margin: 0 0 6px 0;
}
.paged-table-footer {
	margin: 6px 0 0 0;
}
.paged-table-count {
	margin-right: auto;
	font-size: 12px;
}
.paged-table-limit {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.paged-table-limit .form-select {
	width: auto;
	min-height: 0;
	background-color: #070d18;
	background-position: right 4px center;
	border: 1px solid #253752;
	border-radius: 3px;
	color: #ddd;
	font-size: 11px;
	padding: 0 22px 0 6px;
}
.paged-table-limit .form-select:hover {
	border-color: #335280;
}
.paged-table-limit .form-select:focus {
	border-color: #5a6e8e;
	box-shadow: 0 0 .5rem #335280;
}
.paged-table-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}
.paged-table-nav .btn-lotro {
	font-size: 11px;
	padding: 2px 10px;
}
.paged-table-nav .btn-lotro.disabled {
	color: #555;
	border-color: #1b2536;
}
.sort-link {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.sort-link:hover,
.sort-link.active {
	color: #fc0;
}
.sort-indicator {
	font-size: 8px;
	padding-left: 4px;
	vertical-align: middle;
}
.paged-table-status {
	cursor: pointer;
}
.paged-table-status:hover [data-pager-target="current"] {
	color: #fc0;
	text-decoration: underline;
}
.paged-table-page-input {
	width: 4em;
	background-color: #070d18;
	border: 1px solid #5a6e8e;
	border-radius: 3px;
	color: #ddd;
	font-size: 11px;
	line-height: 1;
	padding: 0 4px;
	outline: none;
}
/** item quality colors **/
.q0, .q-common { /* common */
	/* color: #808080; /* for white backgrounds */
	color: #fff;
}
.q1, .q-uncommon { /* uncommon */
	color: #fff200;
}
.q2, .q-rare { /* rare */
	color: #9933cc;
}
.q3, .q-incomparable { /* incomparable */
	color: #00ffff;
}
.q4, .q-epic { /* epic */
	color: #ff9900;
}

/** titles table **/
table.titles-table td {
    vertical-align: middle !important;
}
table.titles-table tr {
    cursor: pointer;
}
table.titles-table td.title-name a {
    line-height: 32px;
    padding-left: .5rem !important;
    flex: 1 0 0;
    text-decoration: none;
}
table.titles-table td.title-name a .muted {
    color: #ccc;
}

table.titles-table td.title-name .lotro-icon {
    flex: 0 0 auto;
    margin-left: calc(var(--bs-gutter-x) * .5);
    padding-left: 0;
}
.presentation-title {
    background-color: #0f0f0c;
    border-radius: 6px;
    border: 2px solid #1b1f2e;
}
.presentation-title .title-title {
    color: #f5df92;
}
.presentation-title .title-title .muted {
    color: #777;
}

/** world maps **/
.presentation-worldmap img {
    max-width: 100%;
}

.map-container {
    position: relative;
    display: inline-block;
}
.map {
    width: 100%;
    height: auto;
}
.map-coordinates {
    margin-top: 5px;
    position: absolute;
    right: 10px;
    top: 0;
    background: #0004;
    border-bottom-left-radius: 6px;
}
.map-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff6;
    border: 2px solid #0f1;
    box-shadow: 0 0 8px black;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/** npcs **/
table.npcs-table td.npc-name a {
    text-decoration: none;
}
table.npcs-table td.npc-name a .muted {
    color: #ccc;
}

/**
 * Breadcrumbs
 */
.breadcrumb {
    background: linear-gradient(to bottom, #3c3839, #272223);
    border: 1px solid #1e1e1e;
    border-right-color: #534b4b;
    border-left-color: #534b4b;
    border-bottom: none;

    box-shadow: inset 0 0 1px #5b5555;
    font-size: 11px;
    padding: 2px 20px 1px 20px;
    margin: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: '»';
    scale: 1.4;
}

/** main page layout **/

* {
    font-family: Verdana, Helvetica, sans-serif;
}
a {
    --bs-link-color-rgb: 255, 204, 0;
}
.menu-tab {
    background: linear-gradient(0deg, rgba(16,52,105,1) 0%, rgba(52,82,125,1) 100%);
    width: 65px;
    height: 25px;
    margin: 0 4px;
    padding: 8px 5px 0 5px;
    text-align: center;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 11px;
    border: 1px solid #030b17;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: inset 0 1px 1px white;
}



body {
    margin: 0;
    background-color: #000;
    background-image: url("../images/large-bg-ADvK2Mc.jpg");
    background-repeat: no-repeat;
    background-position: top left;
    background-attachment: fixed;
}

/**
 * Site logo/title
 * todo: mag wss weg
 */
/*h1.site-title img {*/
/*    width: 266px;*/
/*    height: 120px;*/
/*}*/

/*h1.site-title a {*/
/*    text-decoration: none;*/
/*    font-family: serif;*/
/*    color: #dee2e6;*/
/*    font-size: 4rem;*/
/*}*/

/**
 * Top bar (login, searchbar, ...)
 */
.top-bar {
    border: 1px solid #3a3a3c;
    border-top: none;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    background-color: #0b0b0dcc;
    background-image: url("../images/content-bg-kEx_wLg.png");
    background-repeat: repeat;
}
.top-bar .logo {
    font-weight: bold;
    position: relative;
    padding-left: 140px;
    font-family: serif;
    color: #fff;
    text-decoration: none;
}
.top-bar a.logo:hover {
    text-decoration: underline;
}

.top-bar .logo .logo-img {
    position: absolute;
    top: -5px;
    left: 5px;
    max-width: 130px;
}

.search-bar input {
    width: 100%;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #3a3a3c;
    background: #0006;
    font-size: 1.25rem;
}
.search-bar input:focus,
.search-bar input:active,
.search-bar input:hover,
.search-bar input:not(:placeholder-shown)
{
    background: #1e1d1d;
    outline: none;
    border-color: #6f6f6f;
}
.search-bar input:focus {
    border-color: #335280;
    box-shadow: 0 0 .75rem #335280;
}

/**
 * Menu bars
 */
.menu-bar {
}
.main-menu {
    background: linear-gradient(to bottom, #02122b, #071e40);
    font-family: Verdana, Helvetica, sans-serif;
    height: 31px;
    font-size: 11px;
    border: 1px solid #335280;
    border-bottom: none;
    box-shadow: 0 -1px 3px #020710;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 5px 20px 0 20px;
    display: flex;
}
.sub-menu {
    background: linear-gradient(to bottom, #103469, #01255a);
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 11px;
    border-top: 1px solid #263a59;
    border-left: 1px solid #335280;
    border-right: 1px solid #335280;
    box-shadow: 0 -1px 0 #0f0f0c;
    padding: 0 15px;
    display: none;
}
.sub-menu.active {
    display: flex;
}

.main-menu, .sub-menu {
    list-style: none;
    margin: 0;
}

.main-menu li, .sub-menu li {
    position: relative;
}

.sub-menu li a {
    display: block;
    padding: 5px 5px 0 5px;
    color: white;
    text-decoration: none;
    text-align: center;
    height: 25px;
}

.dropdown-menu {
    --bs-dropdown-border-color: #222;
    --bs-dropdown-bg: #3c3839;
    --bs-dropdown-border-radius: 0;
    box-shadow: 0 2px 5px #111;
    padding: 0;
}

.dropdown-menu li a {
    text-align: left;
    padding-left: 15px;
    font-size: 0.75rem;
    border-bottom: 1px solid #464545;
}
.dropdown-menu li a:hover {
    background: linear-gradient(to bottom, #335991, #1d3251);
}

.dropend .dropdown-toggle::after {
    margin-left: auto;
    margin-bottom: 4px;
}
.dropend .dropdown-toggle {
    display: flex;
    align-items: center;
}

.main-menu li a {
    display: block;
    padding: 5px 5px 0 5px;
    color: white;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(to bottom, #071e40, #031531);
    border: 1px solid #253752;
    border-bottom: none;
    box-shadow: 0 -1px 0 #020710;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin: 1px 1px 0 0;
    border-bottom: 1px solid #000;

}

.main-menu li a:hover, .main-menu li a.active {
    background: linear-gradient(to bottom, #33507c, #103469);
    border: 1px solid #5a6e8e;
    border-bottom: none;
}
.main-menu li a.active {
    border-bottom: 2px solid #103469;
}

.main-menu li a:hover, .sub-menu li a:hover {
    background: linear-gradient(to bottom, #33507c, #103469);
}

.main-menu li.external a {
    border: none;
    background: transparent;
    box-shadow: none;
}
.main-menu li.external a:hover {
    background-color: transparent;
    text-decoration: underline;
}

/**
 * Main content panel
 **/
.content-panel {
    background-color: #0b0b0dcc;
    background-image: url("../images/content-bg-kEx_wLg.png");
    background-repeat: repeat;
    min-height: 600px;
    border: 1px solid #3a3a3c;
    border-top: 1px solid #130c0d;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/**
 * Footer
 **/
.footer {
    color: #666;
    font-size: 10px;
    margin-top: 15px;
    text-align: center;
    text-shadow: 0 0 1px #515151;
}
.footer a {
    color: #666;
}
.footer a:hover {
    color: #999;
}

/**
 * (item)tooltip
 */
.lotro-tooltip {
    min-width: 15em;
    width: 18em;
    background-color: #111;
    border: 1px solid #bbb;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 15px;
    border-radius: 3px;
    box-shadow: 0 0 3px #000;
    margin-bottom: 10px;
}
.lotro-tooltip a {
    color: inherit;
    text-decoration: none;
}
.lotro-tooltip a:hover {
    text-decoration: underline;
}
.lotro-tooltip ul {
    margin: 0;
    list-style: none;
    padding-left: 0;
}
.ltt-spacer {
    padding-bottom: 15px;
}
.ltt-spacer + .ltt-spacer {
    display: none;
}
.ltt-khaki {
    color: #e5dc85;
}
.ltt-lightgreen {
    color: #2ebb2e;
}
.ltt-olive {
    color: #cccc7f;
}
.ltt-item-name {
    font-variant: small-caps;
    font-size: 17px;
    line-height: 17px;
}

.ltt-title-row {
    padding-bottom: 10px;
}

.ltt-grey {
    color: #808080;
}

.ltt-white {
    color: #dee2e6;
}
.ltt-red {
    color: #9b1516;
}

/** info box in card form, which is considered to not be possible and should not be used. use infobox instead **/
.card-lotro {
    --bs-card-bg: #0e0e0e;
    --bs-card-cap-padding-y: 0.3rem;
    --bs-card-border-color: #404040;
    --bs-card-border-radius: 0.25rem;
    --bs-card-spacer-y: 0.5rem;
    border: none;
}

.card-lotro .card-header {
    --bs-card-cap-padding-y: 0.2rem;
    background: linear-gradient(to bottom, #1a355e, #011737);
    color: #fff;
    font-weight: bold;
    border: var(--bs-card-border-width) solid #00419c;
}

/*
chrome can't handle line-height well, and firefox draws weird extra lines above the bottom border sometimes.
so fuck you both, here's a horrible fix. */
@-moz-document url-prefix() {
    .card-lotro .card-header {
        height: 1.7rem;
    }
}

.card-lotro .card-body {
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-top: none;
    border-bottom-right-radius: var(--bs-card-border-radius);
    border-bottom-left-radius: var(--bs-card-border-radius);
    line-height: normal;
}

.card-lotro.card-no-header .card-body {
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
}

/**
 * card-like info box
 */
.db-infobox {
    margin-bottom: 20px;
    --infobox-padding-x: 0.8rem;
}
.db-infobox .infobox-title {
    border: 1px solid #00419c;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    background: linear-gradient(to bottom, #1a355e, #011737);
    padding: 2px var(--infobox-padding-x);
    margin: 0;
    height: 25px;
}
@-moz-document url-prefix() {
    .db-infobox .infobox-title {
        padding: 5px var(--infobox-padding-x);
    }
}
.db-infobox .infobox-title.dev {
    background: linear-gradient(to bottom, #5e1a1a, #370101);
    border: 1px solid #9c0000;
}

.db-infobox .infobox-title h4 {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}
.db-infobox .infobox-body {
    border: 1px solid #404040;
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 14px;
    padding: 10px var(--infobox-padding-x);
    background: #0e0e0e;
}
.db-infobox ul {
    padding: 0 0 0 20px;
    margin: 0;
}
.db-infobox ul li {
    list-style-type: square;
}
.db-infobox ul li::marker {
    color: rgb(255, 204, 0);
}

/** underline tabs for search results etc **/
.infotabs {
}
.infotabs .nav-underline {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background: #00000066;
    margin: 0.1rem 1rem 0 1rem;
    padding: 0.1rem 1rem;
}
.infotabs .nav-underline .nav-link {
    padding: 0.3rem 0 0 0;
    color: #999;
    font-weight: bold;
    margin-bottom: 0;
    border: 2px solid transparent;
}
.infotabs .nav-underline .nav-link.active {
    color: #fff;
    border-bottom-color: #fc0;
}
.infotabs .nav-underline .nav-link:not(.active):hover {
    border-bottom-color: currentColor;
}
.infotabs .tab-content {
    background-color: #0f0f0c;
}
.infotabs-seperator {
    background: linear-gradient(to bottom, #3c3839, #272223);
    border: 1px solid #1e1e1e;

    box-shadow: inset 0 0 1px #5b5555;
    font-size: 11px;
    padding: 2px 20px 1px 20px;
    margin: 0;
}

.infotabs table.infotable {
    margin: 0;
}
.infotabs table.infotable thead th {
    background: #3c3839;
    border: 1px solid #1e1e1e;
    font-size: 11px;
    padding: 2px 20px 1px 20px;
}
.infotabs .tab-content table.infotable thead th {
    border-top: none;
}
/* zonemap for displaying world maps (quests, npcs, etc) */
.zonemap-wrapper {}
.zonemap-info {}
.zonemap-map {
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 14px;
    padding: 0;
    background: #0e0e0e;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}
.presentation-worldmap {
    box-shadow: 0 0 15px #000;
}

/** reward bullets **/
.rewards .reward {
    background: #00000066;
    border-radius: 6px;
    padding: 5px 10px;
}

/**
 * Comments
 */

.comments .comment {
    background: #181818;
    font-size: 1rem;
}

.comments .comment:not(:last-child) {
    border-bottom: 1px solid #413d3d;
}
.comments .comment .comment-details {
    font-size: 12px;
    color: #999;
}

/**
 * Screenshots
 */
.screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}
.screenshot-container {
    flex: 1 1 calc(33.33% - 7px);
    max-width: calc(33.33% - 7px);
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}
.screenshot-container:hover {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
}
.screenshot-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    /*margin-bottom: 10px;*/
}
.screenshot-details {
    font-style: italic;
    font-size: 0.8em;
    text-align: left;
    color: #999;
}
.screenshot-description {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.screenshot-actions {
    float: right;
    font-style: normal;
}
.screenshot-container turbo-frame,
.comments turbo-frame {
    display: block;
}
.screenshot-description .no-description {
    color: transparent;
    font-weight: normal;
}
.screenshot-container:hover .no-description {
    color: #ccc;
}

/**
 * Inline editing of comments & screenshot descriptions
 */
.inline-edit .form-control {
    background-color: #070d18;
    border: 1px solid #253752;
    border-radius: 3px;
    color: #ddd;
    font-size: 14px;
}
.inline-edit .form-control:focus {
    border-color: #5a6e8e;
    box-shadow: 0 0 .5rem #335280;
}
.inline-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}
.inline-action {
    background: none;
    border: 0;
    padding: 0;
    color: rgb(var(--bs-link-color-rgb));
    text-decoration: underline;
    font: inherit;
}
.inline-action:hover {
    color: rgb(var(--bs-link-hover-color-rgb));
}
