/** Template */
* {
    margin: 0;
    padding: 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-family: 'Merriweather', serif;
}

html {
    background-image: url(../images/background.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000000;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    color: #9f9f9f;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-size: 14px;
}

.document-root {
    display: flex;
    flex-direction: column;
    /*noinspection CssUnresolvedCustomProperty*/
    min-height: calc(var(--vh) * 100);
}

.document-body {
    flex: 1 1 auto;
    box-sizing: border-box;
    position: relative;
}

.page {
    position: relative;
    margin-left: 1rem;
    margin-right: 1rem;
    min-width: 30vw;
    max-width: 45rem;
    background: radial-gradient(circle at center, rgba(49, 52, 61, 0.95) 0%, rgba(22, 25, 32, 0.95) 100%);
    box-shadow: 0 0 0 2px rgba(37, 42, 48, 0.85);
}

.page-content, .page-margin-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-margin-content {
    margin-top: 1rem;
}

.page-top-image {
    width: 100%;
    height: auto;
}

.page-text {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.page-bottom {
    background-image: url("../images/window/bottom-panel.webp");
    background-size: auto;
    background-position: top;
    background-repeat: repeat-x;
    height: 37px;
    margin-top: 1rem;
}

.page-bottom-light {
    background-image: url("../images/window/bottom-panel-light.webp");
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    height: 37px;
}


/*
 * Footer
 */
.document-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    gap: 0.25rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.document-footer * {
    font-size: 0.65rem;
    color: #777676;
}

.document-footer a:hover {
    color: #cecdcd;
    text-shadow: 0 0 8px rgb(180, 177, 169);
}

.document-footer > .docs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin: 0.25rem;
}

.document-footer > .copyright {
    text-align: center;
    margin-bottom: 0.25rem;
}


/*
 * Default elements:
 */
a {
    text-decoration: none;
    color: #F8F8F8;
    cursor: pointer;
}

a:hover {
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

a.low-profile {
    color: #8c8b84;
}

a.low-profile:hover {
    color: #adaca3;
    text-shadow: 0 0 8px rgb(180, 177, 169);
}

pre {
    white-space: pre-wrap;
    text-wrap-style: stable;
}

h1, h2, h3 {
    text-align: center;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 400;
    /*font-size: 2rem;*/
    background: linear-gradient(180deg, #FFFE6D 0%, #E69C30 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 4px rgba(240, 197, 80, 0.48);
    font-size: clamp(1.15rem, 5vw, 2rem);
}

h2 {
    font-size: clamp(1.05rem, 5vw, 1.5rem);
}

h3 {
    font-size: 1rem;
    text-align: start;
    margin-bottom: 0.5rem;
}

.h1-container {
    border: 10px solid transparent;
    border-image: url("../images/window/header-background.webp") 20 fill;
}

.h2-navigation-container {
    display: flex;
    justify-items: start;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


.line {
    background-image: url(../images/separator.webp);
    background-position: center;
    background-repeat: repeat-x;
    background-size: contain;
    height: 18px;
}

input {
    border: 1px solid #323a44;
    color: #85889a;
    background-color: #0c0e13;
    padding: 6px;
    border-radius: 6px;
}

input::placeholder {
    color: #43454d;
}

input[type=submit] {
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(42, 45, 52, 0.85) 0%, rgba(22, 25, 32, 0.85) 100%);
}

input[type=submit]:hover {
    background: radial-gradient(circle at center, rgba(78, 84, 98, 0.85) 0%, rgba(22, 25, 32, 0.85) 100%);
}

input[type=checkbox] {
    width: 2rem;
    height: 2rem;
}

.btn {
    border: 1px solid #4f5a68;
    color: #F8F8F8;
    padding: 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    background: radial-gradient(circle at center, rgb(74, 79, 92) 0%, rgb(26, 29, 38) 100%);
}

.btn:hover {
    background: radial-gradient(circle at center, rgb(91, 97, 114) 0%, rgb(41, 46, 59) 100%);
}

.centered-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.button, .button:hover {
    display: inline-block;
    border: 8px solid transparent;
    background-color: transparent;
    border-image: url(../images/buttons/button.webp) 12 fill;
    font-size: 1.25rem;
    min-width: 150px;
    text-transform: uppercase;
    color: #F8F8F8;
    cursor: pointer;
    padding-left: 1rem;
    padding-right: 1rem;
}

.button:hover {
    border-image: url(../images/buttons/button-hover.webp) 12 fill;
}

.nowrap {
    white-space: nowrap;
}

.semi-transparent {
    opacity: 0.5;
}

.bubble {
    border: 1px solid #8d7e6e;
    border-radius: 2rem;
    padding: 0.15rem;
    text-align: center;
    margin: 0;
    color: #DCC3A9;
}

.back-button {
    display: inline-block;
    background-image: url(../images/buttons/back-arrow-button.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 50px;
    height: 20px;
}

.back-button:hover {
    background-image: url(../images/buttons/back-arrow-button-hover.webp);
}

b {
    color: #eac43b;
}


/** Icon size: */
.icon-12 {
    height: 1rem;
    width: auto;
}

.icon-16 {
    height: 1.25rem;
    width: auto;
}

.icon-18 {
    height: 1.5rem;
    width: auto;
}


.page_thumbnail > img {
    width: 100%;
    height: auto;

    -webkit-mask-image:
            linear-gradient(to bottom, transparent 0px, black 10px, black calc(100% - 10px), transparent 100%),
            linear-gradient(to right, transparent 0px, black 4px, black calc(100% - 4px), transparent 100%);
    -webkit-mask-composite: destination-in;

    mask-image: linear-gradient(to bottom, transparent 0px, black 24px, black calc(100% - 24px), transparent 100%),
    linear-gradient(to right, transparent 0px, black 4px, black calc(100% - 4px), transparent 100%);
    mask-composite: intersect;
);
}


/* Items */
.items-table {
    border-spacing: 0.5rem 2rem;
}

.items-table td {
    vertical-align: top;
}

.item-description {
}

.item-effects {
    margin-top: 5px;
}

.item_2 {
    text-decoration: none;
    color: #38b238;
}

.item_3 {
    text-decoration: none;
    color: #56a7d0;
}

.item_4 {
    text-decoration: none;
    color: #b362b6;
}

.item_5 {
    text-decoration: none;
    color: #faa21b;
}

.item_6, .item_7, .item_8, .item_9, .item_10, .item_11, .item_12, .item_13, .item_14, .item_15, .item_16, .item_17, .item_18, .item_19, .item_20, .item_11, .item_12, .item_13, .item_14, .item_15, .item_16, .item_17, .item_18, .item_19, .item_20, .item_21 {
    text-decoration: none;
    color: #cc5737;
}


[embedded] {
    max-width: 100%;
}

.widget-image {
    max-width: 100px;
    max-height: 100px;
    display: inline-block;
}


/** Alert boxes */
.alert {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 5px;
}

.short_alert {
    width: 250px;
}

.alert_error, .alert_event {
    color: rgb(255, 196, 198);
    border: 1px solid rgb(118 30 21);
    background-color: rgba(118, 30, 21, 0.5);
}


.alert_success {
    color: #bdd7ff;
    border: 1px solid rgb(42 61 94);
    background-color: rgb(49 64 96);
}

.alert_notice {
    color: #ffeac4;
    border: 1px solid rgb(117, 84, 21);
    background-color: rgba(117, 84, 21, 0.5);
}

.floating_error {
    position: absolute;
    top: 0;
    z-index: 100;
    width: 100%;
}

/* Animations */

@keyframes redGlowFilter {
    from {
        filter: drop-shadow(0 0 1px #9e5050) drop-shadow(0 0 1px #9e5050) drop-shadow(0 0 1px #9e5050);
    }
    to {
        filter: drop-shadow(0 0 2px #9e5050) drop-shadow(0 0 4px #9e5050) drop-shadow(0 0 8px #9e5050);
    }
}

.pulseRedGlow {
    animation: redGlowFilter .85s ease-out infinite alternate;
}