/* app/assets/stylesheets/tagify.css */

.tagify {
    --tags-border-color: #DDD;
    --tags-hover-border-color: #CCC;
    --tags-focus-border-color: #3582ff;
    --tag-bg: #F1F1F1;
    --tag-hover: #d3e2e2;
    --tag-text-color: #000;
    --tag-text-color--edit: #000;
    --tag-pad: .3em .5em;
    --tag-inset-shadow-size: 1.1em;
    --tag-invalid-color: #D39494;
    --tag-invalid-bg: #ffedd5;
    --tag-remove-bg: #e5e5e5;
    --tag-remove-btn-color: #666;
    --tag-remove-btn-bg: none;
    --tag-remove-btn-bg--hover: #c77777;
    --tag--min-width: 1ch;
    --tag--max-width: auto;
    --tag-hide-transition: .3s;
    --tag-remove-transition: .3s;
    --tag-aspect-ratio: 1;
    --tags-placeholder-color: #a3a3a3;
    --tags-ld-color: #3582ff;
    --tags-ld-fn-size: .8em;
    --tags-ld-stroke: 6px;
    --tags-ld-dash: 18px;
    --tags-ld-speed: 1.2s;
    --tags-clear-btn-color: #a3a3a3;
    --tags-clear-btn-hover-color: #000;
    --tags-clear-btn-hover-bg: #e5e5e5;
    --tags-clear-btn-size: 1.2em;
    --dd-bg: #FFF;
    --dd-text-color: #000;
    --dd-text-color-primary: #3582ff;
    --dd-border-color: #DDD;
    --dd-box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.1);
    --dd-max-height: 300px;
    --dd-pad: .6em .5em;
    --dd-item-pad: .4em .6em;
    --dd-item-bg: transparent;
    --dd-item-bg--hover: #f3f3f3;
    --dd-item-bg--active: #3582ff;
    --dd-item-color--active: #fff;
    --dd-item-border-radius: 3px;
    --dd-item-seperator-color: #e0e0e0;
    --dd-item-seperator-width: 1px;
    --dd-item-seperator-style: solid;
    --dd-item-group-label-color: #8f8f8f;
    --dd-item-group-label-pad: .6em;
    --dd-item-group-label-font-size: .9em;
    --dd-item-group-label-font-weight: 600;
    --dd-item-group-seperator-color: #e0e0e0;
    --dd-item-group-seperator-width: 1px;
    --dd-item-group-seperator-style: solid;
    --mix-mode-bg: #f3f3f3;
    --mix-mode-border-color: #ddd;
    --mix-text-color: #000;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--tags-border-color);
    padding: 0;
    line-height: 1.5;
    transition: .1s;
    position: relative;
    box-sizing: border-box
}

.tagify:hover {
    border-color: var(--tags-hover-border-color)
}

.tagify.tagify--focus {
    transition: 0s;
    border-color: var(--tags-focus-border-color)
}

.tagify[readonly] {
    border-color: #eee;
    cursor: default
}

.tagify[readonly]>.tagify__input {
    visibility: hidden
}

.tagify[readonly]>.tagify__tag>div::before {
    background: linear-gradient(45deg, var(--tag-bg) 25%, transparent 25%, transparent 50%, var(--tag-bg) 50%, var(--tag-bg) 75%, transparent 75%, transparent) 0/5px 5px;
    box-shadow: none;
    filter: brightness(.95)
}

.tagify[readonly] .tagify__tag__removeBtn {
    display: none
}

.tagify--loading .tagify__input::before {
    content: '';
    vertical-align: middle;
    box-sizing: border-box;
    width: var(--tags-ld-fn-size);
    height: var(--tags-ld-fn-size);
    border: var(--tags-ld-stroke) solid transparent;
    border-color: var(--tags-ld-color) var(--tags-ld-color) transparent var(--tags-ld-color);
    border-radius: 50%;
    display: inline-block;
    -webkit-animation: tagify-loading-ring 1.2s infinite;
    animation: tagify-loading-ring 1.2s infinite;
    margin: 0 .5em 0 0
}

@-webkit-keyframes tagify-loading-ring {
    0% {
        transform: rotate(0)
    }
    to {
        transform: rotate(360deg)
    }
}

@keyframes tagify-loading-ring {
    0% {
        transform: rotate(0)
    }
    to {
        transform: rotate(360deg)
    }
}

.tagify--mix {
    display: block
}

.tagify--mix .tagify__input {
    padding: .5em;
    margin: 0;
    width: 100%;
    height: 100%;
    line-height: 1.5;
    display: block;
    position: static
}

.tagify--select::after {
    content: '>';
    opacity: .5;
    position: absolute;
    top: 50%;
    right: 0;
    bottom: 0;
    font: 16px monospace;
    line-height: 8px;
    height: 8px;
    pointer-events: none;
    transform: translate(-150%, -50%) scaleX(.8) rotate(90deg);
    transition: .2s
}

.tagify--select[aria-expanded=true]::after {
    transform: translate(-150%, -50%) rotate(270deg) scaleY(.8)
}

.tagify--invalid {
    --tags-border-color: #D39494
}

.tagify__tag {
    display: inline-flex;
    align-items: center;
    margin: .3em 0 .3em .5em;
    position: relative;
    z-index: 1;
    outline: 0;
    cursor: default;
    transition: var(--tag-hide-transition)
}

.tagify__tag>div {
    vertical-align: top;
    box-sizing: border-box;
    max-width: var(--tag--max-width);
    padding: var(--tag-pad);
    color: var(--tag-text-color);
    line-height: inherit;
    background: var(--tag-bg);
    border-radius: 3px;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: .13s ease-out
}

.tagify__tag>div::before {
    content: '';
    position: absolute;
    border-radius: inherit;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    transition: 120ms ease;
    -webkit-animation: tags--bump .3s ease-out 1;
    animation: tags--bump .3s ease-out 1
}

.tagify__tag:hover:not([readonly]) div {
    background-color: var(--tag-hover)
}

.tagify__tag:hover:not([readonly]) div::before {
    box-shadow: 0 0 0 2px var(--tag-hover)
}

.tagify__tag--loading {
    background-color: var(--tag-bg);
    color: #000
}

.tagify__tag--loading .tagify__tag__removeBtn {
    display: none
}

.tagify__tag--loading::after {
    --width: 14px;
    --height: 14px;
    content: '';
    vertical-align: middle;
    box-sizing: border-box;
    width: var(--width);
    height: var(--height);
    border: 2px solid;
    border-radius: 50%;
    border-color: transparent #fff #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    margin: calc(var(--height)/-2) 0 0 calc(var(--width)/-2);
    -webkit-animation: tagify-loading-ring 1.2s infinite linear;
    animation: tagify-loading-ring 1.2s infinite linear
}

.tagify__tag--flash div::before {
    -webkit-animation: none;
    animation: none
}

.tagify__tag--flash.tagify__tag--fail div::before {
    -webkit-animation: none;
    animation: none
}

.tagify__tag--flash div::before {
    -webkit-animation: .4s tags--flash ease-out;
    animation: .4s tags--flash ease-out
}

.tagify__tag--flash.tagify__tag--fail div::before {
    -webkit-animation: .5s tags--flash-fail ease-out;
    animation: .5s tags--flash-fail ease-out
}

.tagify__tag--hide {
    width: 0 !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    opacity: 0;
    transform: scale(0);
    transition: var(--tag-hide-transition);
    pointer-events: none
}

.tagify__tag--hide>div>span {
    display: none
}

.tagify__tag--hide .tagify__tag__removeBtn {
    display: none
}

.tagify__tag[contenteditable=true]>div {
    color: var(--tag-text-color--edit);
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    white-space: pre
}

.tagify__tag[contenteditable=true]>div:focus {
    outline: 0
}

.tagify__tag[contenteditable=true]>div::before {
    box-shadow: 0 0 0 2px var(--tag-bg) inset !important;
    filter: brightness(1.05)
}

.tagify__tag--editable.tagify__tag--fail>div::before {
    box-shadow: 0 0 0 2px var(--tag-invalid-color) inset !important
}

.tagify__tag--invalid {
    --tag-bg: var(--tag-invalid-bg)
}

.tagify__tag--invalid>div {
    color: var(--tag-invalid-color)
}

.tagify__tag__removeBtn {
    order: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    cursor: pointer;
    font: 14px/1 Arial;
    background: var(--tag-remove-btn-bg);
    color: var(--tag-remove-btn-color);
    width: 14px;
    height: 14px;
    margin-right: 4.6666666667px;
    margin-left: -4.6666666667px;
    transition: .2s ease-out
}

.tagify__tag__removeBtn::after {
    content: "×";
    transition: .3s, color .15s
}

.tagify__tag__removeBtn:hover {
    color: #fff;
    background: var(--tag-remove-btn-bg--hover)
}

.tagify__tag__removeBtn:hover+div>span {
    opacity: 1
}

.tagify__tag__removeBtn:hover+div::before {
    box-shadow: 0 0 0 2px var(--tag-remove-btn-bg--hover) inset;
    transition: .2s
}

.tagify:not(.tagify--mix) .tagify__input {
    min-width: 110px;
    margin: .3em 0 .3em .5em;
    padding: var(--tag-pad);
    color: var(--mix-text-color);
    position: relative;
    display: inline-block;
    vertical-align: top;
    line-height: inherit;
    border: 0;
    background: none;
    outline: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    transition: .1s;
    white-space: pre-wrap
}

.tagify:not(.tagify--mix) .tagify__input:empty::before {
    content: attr(data-placeholder);
    color: var(--tags-placeholder-color);
    display: inline-block;
    width: 100%;
    pointer-events: none
}

.tagify:not(.tagify--mix) .tagify__input:focus {
    outline: 0
}

.tagify:not(.tagify--mix) .tagify__input:focus:empty::before {
    transition: .2s ease-out;
    opacity: .5;
    transform: translatex(2px)
}

.tagify--mix .tagify__input {
    background: var(--mix-mode-bg);
    border: 1px solid var(--mix-mode-border-color);
    border-radius: 3px;
    z-index: 1
}

.tagify--mix .tagify__input:focus {
    border-color: var(--tags-focus-border-color)
}

.tagify__input:focus {
    caret-color: var(--tags-focus-border-color)
}

.tagify__input br {
    display: none
}

.tagify__input * {
    display: inline;
    white-space: pre-wrap
}

.tagify__input::before {
    position: static;
    display: inline-block
}

.tagify__input:focus::before {
    display: none
}

.tagify__input:focus:empty::before {
    display: inline-block
}

.tagify--readony .tagify__input {
    display: none
}

.tagify__input__hint {
    color: #999;
    width: 100%;
    white-space: pre;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    padding: inherit;
    margin: inherit;
    border: inherit;
    line-height: inherit;
    z-index: 1
}

.tagify__input__hint__front,
.tagify__input__hint__back {
    opacity: 0
}

.tagify__input--invalid {
    color: var(--tag-invalid-color)
}

.tagify__clearBtn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: var(--tags-clear-btn-size);
    height: var(--tags-clear-btn-size);
    background: var(--tags-clear-btn-bg);
    color: var(--tags-clear-btn-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s
}

.tagify__clearBtn::after {
    content: "×";
    font-size: 1.2em
}

.tagify__clearBtn:hover {
    color: var(--tags-clear-btn-hover-color);
    background: var(--tags-clear-btn-hover-bg)
}

.tagify__dropdown {
    position: absolute;
    z-index: 9999;
    transform: translateY(1px);
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.tagify__dropdown[dir=rtl] {
    transform: translate(-100%, 1px)
}

.tagify__dropdown[placement=top] {
    margin-top: 0;
    transform: translateY(-100%)
}

.tagify__dropdown[placement=top] .tagify__dropdown__wrapper {
    border-top-width: 1px;
    border-bottom-width: 0
}

.tagify__dropdown[position=text] {
    box-shadow: none;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content
}

.tagify__dropdown[position=text] .tagify__dropdown__wrapper {
    border: 0;
    padding: 0
}

.tagify__dropdown:not([position=text]) {
    width: 100%
}

.tagify__dropdown__wrapper {
    max-height: var(--dd-max-height);
    overflow: auto;
    background: var(--dd-bg);
    color: var(--dd-text-color);
    border: 1px solid var(--dd-border-color);
    box-shadow: var(--dd-box-shadow);
    border-radius: 3px;
    padding: var(--dd-pad);
    position: relative
}

.tagify__dropdown__header:empty,
.tagify__dropdown__footer:empty {
    display: none
}

.tagify__dropdown__header {
    padding-bottom: .5em;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: .5em
}

.tagify__dropdown__footer {
    padding-top: .5em;
    border-top: 1px solid #e5e5e5;
    margin-top: .5em
}

.tagify__dropdown__item {
    box-sizing: border-box;
    padding: var(--dd-item-pad);
    margin: 1px;
    cursor: pointer;
    border-radius: var(--dd-item-border-radius);
    position: relative;
    display: flex;
    align-items: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: pre-wrap;
    transition: .1s
}

.tagify__dropdown__item--active {
    background: var(--dd-item-bg--active);
    color: var(--dd-item-color--active)
}

.tagify__dropdown__item:hover {
    background: var(--dd-item-bg--hover)
}

.tagify__dropdown__item--hidden {
    display: none
}

.tagify__dropdown__item--noMatch {
    display: none
}

.tagify__dropdown__item--noMatch~.tagify__dropdown__item--noMatch--note {
    display: block
}

.tagify__dropdown__item--noMatch--note {
    display: none;
    font-size: .8em;
    padding: .5em
}

.tagify__dropdown__item__native {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none
}

.tagify__dropdown__item:not(:last-of-type) {
    border-bottom: var(--dd-item-seperator-width) var(--dd-item-seperator-style) var(--dd-item-seperator-color)
}

.tagify__dropdown__item b {
    font-weight: 600;
    color: var(--dd-text-color-primary)
}

.tagify__dropdown__item__addAllBtn {
    font-size: .8em;
    font-style: italic;
    border-bottom: 0;
    border-top: 1px solid #e5e5e5;
    margin-top: .5em;
    padding-top: .5em
}

.tagify__dropdown__item__addAllBtn:hover {
    background: #f3f3f3
}

.tagify__dropdown--initial .tagify__dropdown__item,
.tagify__dropdown--initial .tagify__dropdown__item--noMatch--note {
    display: none
}

.tagify__dropdown--initial .tagify__dropdown__item--active {
    display: flex
}

.tagify__dropdown--initial .tagify__dropdown__item--noMatch {
    display: none
}

.tagify__dropdown--initial .tagify__dropdown__item--noMatch~.tagify__dropdown__item--noMatch--note {
    display: none
}

.tagify__dropdown__itemsGroup:not(:first-of-type) {
    margin-top: 1em
}

.tagify__dropdown__itemsGroup:not(:first-of-type)::before {
    content: "";
    display: block;
    border-top: var(--dd-item-group-seperator-width) var(--dd-item-group-seperator-style) var(--dd-item-group-seperator-color);
    margin: .5em calc(var(--dd-item-pad) * -1)
}

.tagify__dropdown__itemsGroup__label {
    padding: var(--dd-item-group-label-pad);
    font-size: var(--dd-item-group-label-font-size);
    font-weight: var(--dd-item-group-label-font-weight);
    color: var(--dd-item-group-label-color)
}

@-webkit-keyframes tags--bump {
    30% {
        transform: scale(1.2)
    }
}

@keyframes tags--bump {
    30% {
        transform: scale(1.2)
    }
}

@-webkit-keyframes tags--flash {
    to {
        box-shadow: 0 0 0 6px rgba(53, 130, 255, 0)
    }
}

@keyframes tags--flash {
    to {
        box-shadow: 0 0 0 6px rgba(53, 130, 255, 0)
    }
}

@-webkit-keyframes tags--flash-fail {
    to {
        box-shadow: 0 0 0 6px rgba(211, 148, 148, 0)
    }
}

@keyframes tags--flash-fail {
    to {
        box-shadow: 0 0 0 6px rgba(211, 148, 148, 0)
    }
}
/* Clover Admin Styles */

.clover-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    margin: 10px;
    color: lightgrey;
    background-color: #141010;
}

.clover-circle { color: gainsboro; }
.clover-attack-level { color: coral; }
.clover-defense-level { color: cornsilk; }
.clover-speed-level { color: lightskyblue; }
.clover-magic-level { color: greenyellow; }
.clover-faith-level { color: lightpink; }
.clover-energy-level-max { color: khaki; }
.clover-insanity-level { color: lightsteelblue; }
.clover-win-rate-recent { color: lightgreen; }

.positive { color: darkseagreen; }
.negative { color: tomato; }

.different { color: deepskyblue; }
.different2 { color: goldenrod; }

/* Clover index dashboard */
.item-title { color: #f70776; }
.general-container .item { padding: 10px; }
.item table th,
.item table td {
    padding-left: 4px;
    padding-right: 4px;
}
.money { color: darkseagreen; }

.row-container {
    display: flex;
    flex-direction: row;
    padding: 10px;
}
.key-value-display { padding: 10px; }

.resource-credits { color: darkseagreen; }
.rc-percent { color: cornflowerblue; }

.td-form {
    display: flex;
    flex-direction: column;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.non-alt { color: darkseagreen; }

.delete-delayed-job-form {
    margin-top: 10px;
    background-color: lightslategrey;
}

.alt-row {
    background-color: darkslategrey;
}

.new-player-count { color: goldenrod; }

/* Clover player details */
.update-energy-form,
.update-stat-form,
.create-message-form {
    background-color: lightslategrey;
}
.circle-number {
    font-weight: 700;
    color: #c3195d;
}
.battle-count { color: cornflowerblue; }
.runs-away { color: goldenrod; }

/* Clover news & gallery */
.news-form { padding: 10px; }
.gallery-item { padding: 10px; }

/* Clover demon analytics */
.demon-item { padding: 10px; }
th.title { color: goldenrod; }
th.header { color: #c3195d; }
th.demon, td.demon { color: goldenrod; }
th.player, td.player { color: cornflowerblue; }

th.health-bg, td.health { background-color: cadetblue; }
th.health { color: cadetblue; }

th.attack-bg, td.attack { background-color: indianred; }
th.attack { color: indianred; }

th.magic-bg, td.magic { background-color: palevioletred; }
th.magic { color: palevioletred; }

tr.even { background: black; }
tr.odd  { background: #141010; }
/* Exorcisms and Victim Card Styles */

.victim {
    display: flex;
    color: lightgrey;
    padding: 10px;
    margin: 10px;
}
.victim .victim-profile {
    display: flex;
    flex-direction: column;
}
.victim-profile .name {
    font-weight: 700;
}
.victim .item {
    padding: 5px;
}
.victim .victim-pic {
    padding: 10px;
}
.victim .demon-pic {
    padding: 10px;
}
.victim .victim-name {
    color: white !important;
    font-weight: 700;
    padding: 10px;
}
.victim .item .money {
    color: lightgreen;
    font-weight: 700;
}
.victim .item .days-required,
.victim .item .daily-reward {
    color: white;
    font-weight: 700;
}

.demon-descriptor {
    font-weight: 700;
}

.attend-button {
    padding: 10px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.logged-out-prompt {
    padding-top: 10px;
}

.safe-pic-background { background-color: lightsteelblue; }
.danger-pic-background { background-color: red; }
.demon-won-pic-background { background-color: goldenrod; }

.exorcism-pics {
    display: flex;
    flex-direction: row;
}
.exorcism-pics .exorcism-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}
.exorcism-profile .subject-pic {
    padding: 10px;
    margin: 10px;
}
.exorcism-profile .subject-name {
    padding-top: 10px;
    margin-left: auto;
    margin-right: auto;
}
.exorcism-profile .demon-loser-background { background-color: red; }
.exorcism-profile .demon-winner-background { background-color: goldenrod; }
.exorcism-profile .demon-loser { color: red; }
.exorcism-profile .demon-winner { color: goldenrod; }
/* House demons UI, cards, and message logs */

.demon-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.house-demon-activated {
    font-weight: 700;
    font-size: 110%;
    color: forestgreen;
}

.house-demon-private {
    font-weight: 700;
    font-size: 110%;
    color: #680747;
}

.house-demon-card {
    background-color: #d3d3d3;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.house-demon-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.house-demon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.house-demon-card-header .card-title {
    margin-bottom: 0;
    font-weight: 700;
    word-break: break-word;
}
.house-demon-card-username {
    font-size: 70%;
    font-weight: 700;
}

.profile-pic-container-index {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.profile-pic-index {
    flex: 0 0 auto;
    width: 216px;
    max-width: 50%;
    padding-bottom: 8px;
}
.profile-pic-index a {
    display: block;
}
.profile-pic-index img {
    width: 100%;
    max-width: 216px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.profile-pic-container-index .card-text {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}
.profile-pic-container-index .card-text img {
    max-width: 80px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 4px;
}

.view-house-demon-details {
    padding-top: 8px;
    margin-top: auto;
}

.profile-pic-container-show {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.profile-pic-container-show .profile-pic-index {
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
    padding-bottom: 0;
}
.profile-pic-container-show .profile-pic-index img {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.profile-pic-buttons-container-show {
    flex: 1 1 160px;
    min-width: 150px;
}
.profile-pic-buttons-show {
    padding-bottom: 8px;
}

.house-demon-gallery-card {
    background-color: #d3d3d3;
    overflow: hidden;
    height: 100%;
}
.house-demon-gallery-card .card-body {
    padding: 10px;
}
.house-demon-gallery-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.house-demon-form label.attribute {
    color: #f70776;
    font-weight: 700;
}

.house-demon-form > div {
    padding-top: 5px;
    padding-bottom: 3px;
}

.price-text {
    font-size: 90%;
}

.message-card-header {
    background-color: #d3d3d3;
}
.message-card-body {
    background: #141010;
}
.message-item {
    color: darkgrey;
    background: #141010;
}
.no-messages {
    color: darkgrey;
}
.message-age {
    color: goldenrod;
    display: inline-block;
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}
.new-message {
    font-weight: 700;
    color: forestgreen;
}

.delete-message-form .form-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.delete-message {
    display: inline-flex;
    align-items: center;
    padding: 0.10rem 0.3rem;
    margin: 0;
}

/* Responsive media queries */
@media (max-width: 767.98px) {
    .profile-pic-container-index {
        gap: 10px;
    }
    .profile-pic-index {
        width: 140px;
        max-width: 45%;
    }
}

@media (max-width: 575.98px) {
    .profile-pic-container-show {
        flex-direction: column;
        align-items: center;
    }
    .profile-pic-container-show .profile-pic-index {
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    .profile-pic-container-show .profile-pic-index img {
        max-width: 240px;
    }
    .profile-pic-buttons-container-show {
        width: 100%;
    }
    .demon-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}
/* Leaderboard and top players widgets */

.player {
    font-weight: 700 !important;
}
.no-player {
    color: cornflowerblue;
}

.demon-slaying-score {
    color: #c3195d;
}

.top-player-container {
    display: flex;
    flex-direction: row;
}
.top-player-info-container {
    display: flex;
    flex-direction: column;
}
.top-player-location {
    font-weight: 400;
    font-size: 14px;
    padding-left: 10px;
}
/* NFT cards and transfer modal styling */

.player-nfts {
    background-color: #181818;
}
.nfts-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    width: 80%;
}
.nfts-container h4 {
    color: #f70776;
}

.nfts-container .description {
    display: flex;
    justify-content: center;
    padding: 10px;
    margin: 10px;
}
.nfts-container .description a {
    color: lightgrey;
    text-decoration: none;
}

.nft-type-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    padding: 10px;
    margin: 10px;
}
.nft-type-container .nft {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.nft .transfer-nft {
    text-align: center;
    padding-top: 5px;
    cursor: pointer;
}
.nft .nft-cooldown {
    text-align: center;
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    color: goldenrod;
}
.nft .nft-cant-use {
    text-align: center;
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    color: #f70776;
}
.nft .nft-controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.nft-controls a {
    margin-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
.nft-controls .nft-count {
    color: cornflowerblue;
    font-weight: 700;
    font-size: 130%;
}

.card-description-common { color: dodgerblue; }
.card-description-primitive { color: dodgerblue; }
.card-description-standard { color: dodgerblue; }

.card-description-rare { color: greenyellow; }
.card-description-decorative { color: greenyellow; }

.card-description-epic { color: fuchsia; }
.card-description-refined { color: fuchsia; }

.card-description-legendary { color: gold; }
.card-description-mystic { color: gold; }

.nfts-footer {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

#transfer-nft .modal-header {
    color: white;
    background-color: darkslategrey;
}
#transfer-nft .modal-body {
    color: white;
    background-color: #680747;
}
#transfer-nft .modal-content .item {
    display: flex;
    flex-direction: row;
    padding: 10px;
}
#transfer-nft .modal-footer {
    color: white;
    background-color: #141010;
}

.nft img.avatar {
    padding: 10px;
}
.update-avatar-button {
    padding-top: 10px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

body {
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.gameHeader { padding:10px; background:black; color:#f70776; }
.gameHeader a:link { color:#f70776; text-decoration:none; }
.gameHeader a:visited { color:#f70776; text-decoration:none; }
.gameHeader a:hover { text-decoration:none; }
.gameHeaderLogo { font-size:40px; font-weight:700; }
.gameHeaderNav { float:right; padding:20px; font-size:19px; }
.gameBody { padding:10px; }
.subheader {
    display:flex;
    flex-direction:column;
    margin:auto;
}
.subheader #description { padding:10px; }
.subheader #player-info {
    display:flex;
    flex-direction:row;
}

.username { text-transform:uppercase; }

.alert-success { color:forestgreen; }
.alert-danger  { color:firebrick; }

.primaryButton {
    color: white;
    background-color: #c3195d;
    padding: 6px;
}
.altPrimaryButton {
    color:white;
    background-color:#680747;
}
.secondaryButton {
    color:black;
    background-color:lightgrey;
}
.logout-button {
    color:black;
    background-color:lightgrey;
    font-size:80%;
}
.disabled-button {
    background-color:darkgrey;
    cursor: not-allowed;
    pointer-events: none;
}

.player-stats {
    display:flex;
    flex-direction:column;
    color:lightgrey;
    background-color:#141010;
    padding:10px;
    margin: 10px 10px 5px;
}
.player-stats .title { color:cornflowerblue; }
.player-stats #circle-container {
    display:flex;
    flex-direction:row;
}
.player-stats .stats-container {
    display:flex;
    flex-direction:row;
}
.player-stats .nft-count {
    color:cornflowerblue;
}
.player-stats .nft-collection-score {
    color:darkseagreen;
}
.player-stats .nfts-owned a {
    color:darkseagreen;
    font-weight:700;
    text-decoration:none;
}
.stat-level {
    color:darkseagreen;
    font-weight:700;
}
.stat-level-debuff {
    color:goldenrod !important;
}
.player-stats .stat {
    padding:5px;
    margin-left:5px;
    margin-right:5px;
}
.player-rank {
    font-weight:700;
    color:darkseagreen;
}
.demons-slayed {
    color:#f70776;
}
.demons-exorcised-key {
    color:#c8c8c8;
}
.demons-exorcised {
    color:#c3195d;
    font-weight:700;
}
.achievement-count {
    color: darkseagreen;
}
.achievement-level-1 {
    color: lightsteelblue;
}
.achievement-level-2 {
    color: gold;
}
.achievement-level-3 {
    color: lawngreen;
}
.upgrade-stat .modal-content .achievements-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.achievements-container .achievement-container {
    padding-bottom: 20px;
}
.achievement-description {
    color: lightgrey;
    padding-left: 10px;
}
.player-stats .stat ul {
    margin-bottom:0;
}
.player-stats .player-title {
    color:#f70776;
    font-weight:700;
}
.player-stats .player-base-health-display {
    color:cornflowerblue;
    font-weight:700;
}
.player-stats .level-up {
    font-size:1rem;
    color:darkseagreen;
    margin-left:10px;
    cursor:pointer;
}
.bi-arrow-up-circle {
    color:darkseagreen;
    font-size:1.1rem !important;
}
.bi-droplet {
    color:darkseagreen;
}

.insanity { color:#f70776 !important; }
.insanity-low { color:cornflowerblue; }
.insanity-medium { color:goldenrod; }
.insanity-high { color:tomato; }
.sanity-potion-icon {
    font-weight:700;
    color:darkseagreen;
}
.wallet-info .sanity-potion-icon { cursor:pointer; }

.player-award-1st { color:gold; }
.player-award-2nd { color:lightsteelblue; }
.player-award-3rd { color:darkgoldenrod; }

.upgrade-stat .modal-header {
    color:white;
    background-color:darkslategrey;
}
.upgrade-stat .modal-body {
    color:white;
    background-color:#680747;
}
.warning-text {
    color: goldenrod;
}
.upgrade-stat .modal-content .item {
    display:flex;
    flex-direction:row;
    padding:10px;
}
.upgrade-stat .modal-footer {
    color:white;
    background-color:#141010;
}

.stat-description {
    color: lightgrey;
    font-size: 95%;
}

.help-modal-image,
.insanity-help-image,
.circle-battle-help-image,
.circle-exorcism-help-image {
    float: left;
    padding: 10px;
    margin-right: 10px;
}

.nft-cooldown-help-image {
    float: left;
    padding: 10px;
    margin-right: 15px;
}

.wallet-info {
    color:lightgrey;
    background-color:#141010;
    padding:10px;
    margin:10px;
}
.wallet-info .title { color:darkseagreen; }
.token-balance-staked { color:cornflowerblue; }
.wallet-info .token-balance-liquid { color:green; }
.get-help {
    font-size:1rem;
    color:cornflowerblue;
    margin-left:10px;
    cursor:pointer;
}
.wallet-info .energy-level-warn { color:goldenrod; }
.wallet-info .energy-level-alert { color:orangered; }
.wallet-info .energy-level-normal { color:cornflowerblue; }

.player-news {
    color:lightgrey;
    background-color:#141010;
    padding:10px;
    margin:10px;
}
.player-news .title { color:darkseagreen; }
.news-title a,
#tips-container a.tip {
    color:cornflowerblue;
    text-decoration:none;
}
.wallet-info .balance-section {
    margin-bottom: 8px;
}
.wallet-info .balance-section:last-child {
    margin-bottom: 0;
}
.news-tips-wrapper #tips-container {
    margin-top: 8px;
}

.battle-history {
    color:lightgrey;
    background-color:#141010;
    padding:10px;
    margin-left:auto;
    margin-right:auto;
}

.battle-link {
    text-decoration:none;
}

.current-location-name {
    color: deepskyblue;
}

.location-demonicore-headquarters {
    color: #add8e6;
}
.location-freedonia {
    color: #00cc00;
}
.location-terra-nova {
    color: #008000;
}
.location-europa {
    color: #ffb6c1;
}
.location-ruthenia {
    color: #1e90ff;
}
.location-panasian-empire {
    color: #f33e01;
}
.location-alkebulan {
    color: #fed52e;
}
.location-new-oceania {
    color: #c04080;
}
.location-the-deep {
    color: #606060;
}

.male {
    color: dodgerblue;
    font-weight: 700;
}
.female {
    color: deeppink;
    font-weight: 700;
}

.toast {
    position:absolute;
    z-index:1000;
}
.toast button.btn-close {
    background-color:white;
    position:absolute;
    right:20px;
}

#info-toast .toast-header { color:white; background-color:darkslateblue; }
#info-toast .toast-body { color:darkslateblue; }

#alert-toast .toast-header { color:white; background-color:#680747; }
#alert-toast .toast-body { color:#680747; }

.game-messages-overlay {
    position: fixed;
    top: 135px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 50px);
    z-index: 1050;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-message-container {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, transform 0.3s ease;
    max-height: 200px;
    overflow: hidden;
}

.game-message-container.dismissing {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: -8px;
    transform: translateX(30px);
}

.game-message-text {
    flex-grow: 1;
    margin-right: 10px;
    line-height: 1.35;
    word-break: break-word;
}

.game-message-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    padding: 0 4px;
    margin: 0;
    cursor: pointer;
    align-self: flex-start;
    transition: color 0.15s ease, transform 0.15s ease;
}

.game-message-close:hover {
    color: #ffffff;
    transform: scale(1.2);
}

.game-message-info { background-color:green; color:white; }
.game-message-warn { background-color:orangered; color:white; }
.game-message-alert { background-color:darkred; color:white; }

.general-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    margin: 10px;
    width: 80%;
    color: lightgrey;
    background-color: #141010;
}

@media (max-width: 991.98px) {
    .general-container {
        width: 100%;
        margin: 0 auto 15px auto;
        padding: 12px;
    }
}
.home-nav {
    display: flex;
    width:20%;
    padding:20px;
    margin: 10px;
    flex-direction: column;
    color: goldenrod;
    background-color: #141010;
}
.home-nav .nav-item {
    padding:10px;
    font-size:110%;
}
.home-nav .selected {
    text-decoration: underline;
}

.field-value {
    padding-left:10px;
    padding-right:10px;
}

/* color palette: https://palettes.shecodes.io/palettes/248 */
.first-color  { background:#f70776; }
.second-color { background:#c3195d; }
.third-color  { background:#680747; }
.fourth-color { background:#141010; }
.grey-color1  { background:#d3d3d3; }

.winner { color:darkseagreen }
.loser  { color:#c3195d; }
.tie    { color:lightgrey }
.version-info { color:darkgrey; }
.music-credit {
    color:darkgrey;
    padding-top:10px;
}
.music-credit .title {
    color:white
}
.music-credit li {
    font-size:90%;
}

.medievalsharp-regular {
    font-family: "MedievalSharp", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 110%;
}
.medievalsharp-bold {
    font-family: "MedievalSharp", cursive;
    font-weight: 700;
    font-style: normal;
    font-size: 110%;
}

.gameHeader .under-development {
    font-size:125%;
    text-transform:uppercase;
    color:goldenrod;
}
.gameHeader .under-maintenance {
    font-size:150%;
    text-transform:capitalize;
    color:goldenrod;
}
.gameHeader .wall-message {
    font-size:95%;
    color:darkseagreen;
}

audio::-webkit-media-controls-timeline {
    display: none !important;
}
audio::-webkit-media-controls-current-time-display {
    display: none !important;
}
audio::-webkit-media-controls-time-remaining-display {
    display: none !important;
}
.audio-container {
    position:absolute;
    right:25px;
    top:85px;
}
.audio-container-no-header {
    position:absolute;
    right:25px;
    top:20px;
}
#audio-player {
    width:155px;
}

@media (max-width: 991.98px) {
    .gameHeader {
        padding: 8px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    .gameHeaderLogo {
        font-size: 22px;
        display: flex;
        align-items: center;
    }
    .gameHeaderLogo img {
        height: 42px !important;
        width: auto;
    }
    .gameHeaderNav {
        float: none;
        padding: 4px 8px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
    }
    .audio-container {
        position: static;
        margin: 6px auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .audio-container-no-header {
        position: static;
        margin: 4px auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    #audio-player {
        height: 30px;
        max-width: 135px;
    }
    .subheader #player-info {
        flex-direction: column;
    }
    .wallet-info {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        margin: 5px 10px;
        padding: 8px 12px;
    }
    .wallet-info .balance-section {
        flex: 1 1 0;
        min-width: 0;
        margin-bottom: 0;
    }
    .wallet-info .balance-section.hive-engine-section {
        flex: 1.25 1 0;
    }
    .wallet-info ul {
        padding-left: 14px;
        margin-bottom: 0;
    }
    .wallet-info li {
        font-size: 0.82rem;
        word-break: break-word;
    }
    .wallet-info .title {
        font-size: 0.88rem;
    }
    .wallet-info .get-help {
        margin-left: 4px;
        font-size: 0.85rem;
    }

    .player-news {
        margin: 5px 10px;
        padding: 8px 12px;
    }
    .news-tips-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .news-tips-wrapper .news-section,
    .news-tips-wrapper .tips-section {
        flex: 1 1 50%;
        min-width: 0;
    }
    .news-tips-wrapper #tips-container {
        margin-top: 0;
    }
    .player-news ul {
        padding-left: 14px;
        margin-bottom: 0;
    }
    .player-news li {
        font-size: 0.82rem;
    }
    .player-news .title {
        font-size: 0.88rem;
    }
    .news-title a,
    #tips-container a.tip {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
}

@media (max-width: 420px) {
    .wallet-info {
        gap: 6px;
        padding: 6px 8px;
        margin: 4px 6px;
    }
    .player-news {
        margin: 4px 6px;
        padding: 6px 8px;
    }
    .wallet-info li,
    .player-news li,
    .wallet-info .title,
    .player-news .title {
        font-size: 0.78rem;
    }
    .wallet-info ul,
    .player-news ul {
        padding-left: 12px;
    }
}

.loader {
    position:fixed;
    top:50%;
    left:50%;
    z-index:9999999;
    display:none;
}

footer {
    background-color:#141010;
    width:100%;
    color:lightgrey;
    padding-top:20px;
    padding-bottom:20px;
}
footer .text-white { color:lightgrey !important; }
footer .footer-title { color:#f70776; }
footer .icon-link { text-decoration:none; }

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.new-feature {
    font-weight: 700;
    font-size: 80%;
    font-style: italic;
    color: goldenrod;
}

.exorcism-failed { color:red !important; }
.exorcism-succeeded { color:lightsteelblue; }

.battle-reward,
.exorcism-reward {
    font-weight: 700;
    color: darkseagreen;
}
.demon-slayed-score {
    font-weight: 700;
    color: #c3195d;
}
p.battle-result a,
p.exorcism-result a {
    color: cornflowerblue;
    text-decoration: none;
}

.expand-collapse-link { cursor:pointer; }

.disabled-content {
    opacity:0.5;
}

.nft-reward-image-container { padding:10px; }

.reward-tx-link {
    text-decoration:none;
    color:cornflowerblue;
}

.win-streak-phrase { color:cornflowerblue; }

.tag-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 85%;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    background-color: #e9ecef;
    color: #212529;
    margin-right: 5px;
    margin-bottom: 5px;
}

#house_demon_personality_tag_list, #house_demon_physical_tag_list {
    display: none;
}

.tagify__input {
    color: lightgrey !important;
}

.dropdown-menu-dark .dropdown-item {
    color: lightgrey !important;
}

.dcore {
    color:forestgreen;
    font-weight:700;
}
.credits {
    color:dodgerblue;
    font-weight:700;
}
.credit-balance-container .buy-credits {
    color: deepskyblue;
    font-weight: 700;
}
.credit-balance-container .buy-credits a {
    text-decoration: none;
}
.credit-balance-container .credits-balance {
    font-weight: 700;
}

.task-idle {
    color:orangered;
    font-weight:700;
}
.task-crafting {
    color:darkmagenta;
    font-weight:700;
}
.task-baking {
    color:mediumorchid;
    font-weight:700;
}
.task-farming {
    color:darkorange;
    font-weight:700;
}

.house-demon-catchline {
    color: darkslategrey;
    font-weight: 700;
    font-style: italic;
}

.player-message {
    color: lightblue !important;
}

.danger-button {
    color:white;
    background-color:indianred;
}
