html { scroll-padding-top: 70px; }

body {
    /* because of the navbar being stuck to the top by 'fixed-top' */
    padding-top: 60px;
}

.cradle-bg-logo-2 {
    /* The image used */
    background-image: url("/cradle/res/cradle-logo-2.png");
    /* background-repeat: no-repeat; */
    background-repeat: repeat-y;
    position: absolute;
    /* these lines are the important bits */
    height: 0;
    /* this has to equal the width:height ratio of the image (here: 200px:1000px) */
    /* padding-bottom: 20.0%; */
    padding-bottom: 200px;
    box-sizing: border-box;
    width: 100%;
    /* margin-top: 100px; */
    top: 0;
    /* bottom: 0; */
    left: 0;
    /* right: 0; */
    z-index: 0;
    background-position: 50% 50%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    /* min-height: 200px; */
    /* Center and scale the image nicely */
    /* background-position-x: center;
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: cover; */
    /* Needed to position the navbar */
    /* position: relative; */
}

.cradle-bg-logo {
    /* The image used */
    background-image: url("/cradle/res/cradle-logo.png");
    min-height: 200px;
    /* Center and scale the image nicely */
    background-position-x: center;
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    /* Needed to position the navbar */
    position: relative;
}

.cradle-symbol {
    font-family: "segoe ui symbol";
}

.g-scroll-120 {
    scroll-margin-top: 120px;
}

.garkia-itemsheet-page-bg {
    /* The image used */
    /* background-image: url("/cradle/res/dragon_sigil_large_gray.png") !important; */
    /* min-height: 200px; */
    /* Center and scale the image nicely */
    background-position-x: right;
    background-position-y: top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: auto;
    /* Needed to position the navbar */
    position: relative;
}

.garkia-charnav-image-container img {
    width: auto;
    /* to maintain aspect ratio. You can use 100% if you don't care about that */
    height: 100%;
}

.garkia-itemsheet-item-name, .g-itemsheet-item-name {
    /* color: rgb(49, 18, 88); */
    /* font-weight: bolder; */
}

.garkia-item-name, .g-item-name {
    /* color: rgb(49, 18, 88); */
    font-weight: bolder;
}

.garkia-recipe-name, .g-recipe-name {
    /* color: rgb(49, 18, 88); */
    color: rgb(102, 0, 0);
}

.garkia-stat-label, .g-stat-label {
    color: rgb(102, 0, 0);
    font-weight: 600;
}

.garkia-stat-label-error:before {}

.garkia-stat-value, .g-stat-value {
    color: rgb(18, 0, 97);
    /* to remove underline in links */
    text-decoration: none;
}

a.garkia-stat-value, a.g-stat-value {
    color: rgb(18, 0, 97);
    text-decoration: none;
    cursor: help;
}

.garkia-stat-value-enhanced {}

.garkia-stat-value-reduced {}

.garkia-stat-value-error {}

.garkia-stat-impactmodel, .g-stat-impactmodel {
    color: rgb(18, 0, 97);
    text-decoration: none;
    /* font-style: italic; */
    /* font-weight: bold; */
}

.garkia-equipmentslot-label, .g-equipmentslot-label {
    color: rgb(102, 0, 0);
    font-weight: bold;
}

.garkia-action-block, .g-action-block {
    /* font-weight: bolder; */
}

.garkia-action-name, .g-action-name {
    /* color: rgb(49, 18, 88); */
    font-weight: bolder;
}

.garkia-action-effect-name, .g-action-effect-name {
    /* color: rgb(49, 18, 88); */
    /* font-weight: bold; */
    /* font-style: italic; */
    color: rgb(102, 0, 0);
    font-variant: small-caps;
    /* text-decoration: uppercase;   */
}

.garkia-impact-label, .g-impact-label, .g-impact {
    color: rgb(13, 1, 68);
    font-style: italic;
    /* font-weight: bold; */
}

.g-wizspl, .g-prspl {
    color: #b8860b;
    /* filter: drop-shadow(0 0 .12rem rgba(255, 193, 7, .65)); */
    font-style: italic;
}

.g-terminus {
    /* text-decoration-line: underline;
    text-decoration-style: dashed; */
    /* font-weight: 700; */
    font-variant: small-caps;
    font-variant-caps: small-caps;
}

.garkia-core-effect-entry, .g-core-effect-entry, .g-coreeff {
    color: rgb(30, 1, 68);
    font-style: italic;
}

.garkia-fixed {
    color: rgb(68, 1, 54);
}

.garkia-static, .g-static {
    color: rgb(58, 0, 92);
}

.garkia-ridiculous, .g-ridiculous {
    color: rgb(240, 0, 0);
}

.garkia-onset, .g-onset,
.garkia-discard, .g-discard {
    color: rgb(240, 0, 0);
    font-style: italic;
}

.garkia-sins, .g-sins {
    color: rgb(240, 0, 0);
    font-style: italic;
}

.garkia-usable-by, .g-usable-by, 
.garkia-attent, .g-attent {
    color: rgb(97, 0, 81);
    /* font-style: italic; */
}

.garkia-special, .g-special {
    color: rgb(97, 0, 45);
    font-style: italic;
    font-weight: bolder;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 24px;
    line-height: 1.33;
}

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 18px;
    line-height: 1.38;
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.42857;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 24px;
    line-height: 1.33;
}

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 18px;
    line-height: 1.38;
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.42857;
}


/* for login */

.photo-thumb {
    width: 214px;
    height: 214px;
    float: left;
    border: thin solid #d1d1d1;
    margin: 0 1em 1em 0;
}

.form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
}

.form-signin .form-control {
    position: relative;
    font-size: 16px;
    height: auto;
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.account-wall {
    margin-top: 40px;
    padding: 40px 0px 20px 0px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16);
}

.login-title {
    color: #555;
    font-size: 22px;
    font-weight: 400;
    display: block;
}

.profile-img {
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;
    display: block;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

.select-img {
    border-radius: 50%;
    display: block;
    height: 75px;
    margin: 0 30px 10px;
    width: 75px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

.select-name {
    display: block;
    margin: 30px 10px 10px;
}

/* Hierarchical numbering for document contents. */
#document_toc .document-toc-list,
#document_toc .document-toc-list ol {
    padding-left: 0;
    list-style: none;
    counter-reset: document-toc;
}

#document_toc .document-toc-list ol {
    margin-left: 1rem;
}

#document_toc .document-toc-list li {
    counter-increment: document-toc;
}

#document_toc .document-toc-list li::before {
    content: counters(document-toc, ".") ". ";
}

/* Power hierarchy in the document body. One level matches Bootstrap's ms-3 spacing. */
.document-power-entry {
    margin-left: calc(var(--document-power-nesting-depth, 0) * 1rem);
}

.document-power-icon {
    color: #b8860b;
    filter: drop-shadow(0 0 .12rem rgba(255, 193, 7, .65));
}

.g-small-caps {
    font-variant: small-caps;
    font-variant-caps: small-caps;
}

.document-search-field {
    min-width: 0;
}

.document-search-status:empty {
    display: none !important;
}

.document-search-results {
    max-height: 40vh;
    overflow-y: auto;
}

.document-search-result {
    text-align: left;
}

mark.document-search-hit {
    padding: 0;
    background-color: #fff1a8;
    color: inherit;
}

mark.document-search-hit-active {
    background-color: #ffc107;
    outline: .15rem solid rgba(184, 134, 11, .45);
}

/* Compact, responsive document heading. */
.document-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.document-header-main {
    flex: 1 1 auto;
    min-width: 0;
}

.document-header-title {
    overflow-wrap: anywhere;
}

.document-header-meta,
.document-header-badges,
.document-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.document-header-meta {
    gap: .4rem .75rem;
}

.document-header-badges,
.document-header-actions {
    gap: .4rem;
}

.document-header-badges .badge {
    font-size: .75rem;
    padding: .35em .6em;
    margin-left: 0 !important;
}

.document-header-version {
    font-size: .8rem;
    line-height: 1.2;
}

.document-header-actions {
    flex: 0 0 auto;
    padding-top: .3rem;
}

@media (max-width: 575.98px) {
    .document-history-link .btn {
        padding: .2rem .45rem;
        font-size: .75rem;
    }

    .document-header {
        display: block;
    }

    .document-header-title {
        font-size: clamp(1.75rem, 8vw, 2rem);
        line-height: 1.08;
    }

    .document-header-meta {
        gap: .3rem .5rem;
    }

    .document-header-badges {
        gap: .3rem;
    }

    .document-header-badges .badge {
        font-size: .68rem;
        padding: .28em .5em;
    }

    .document-header-version {
        font-size: .72rem;
    }

    .document-header-actions {
        margin-top: .65rem;
        padding-top: 0;
    }
}

@media (min-width: 576px) {
    #document_margin > .document-search-panel {
        position: sticky;
        top: 60px;
        z-index: 2;
        background: var(--bs-tertiary-bg);
    }
}

.document-list-search .input-group {
    max-width: 32rem;
}


.g-legend,
.g-person,
.g-organ,
.g-region,
.g-item,
.g-monster {
    color: #5b3a29;
}

