:root {
    --bg: #fff;
    --text: #202122;
    --muted: #54595d;
    --border: #a2a9b1;
    --link: #36c;
    --panel: #f8f9fa;
    --panel-border: #c8ccd1;
}

body.dark-mode {
    --bg: #101010;
    --text: #e8e8e8;
    --muted: #a0a0a0;
    --border: #444;
    --link: #7aa2ff;
    --panel: #1a1a1a;
    --panel-border: #333;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Lato, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: .4rem 0 0.6rem;
    transition: background-color .2s ease, color .2s ease;
}

*:focus {
    outline: none;
}

a, a:active, a:focus {
    unicode-bidi: embed;
    outline: 0;
    color: var(--link);
    text-decoration: none;
}

#theme-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
}

.central-textlogo {
    position: relative;
    margin: 2.8rem auto .5rem;
    width: 270px;
    font-size: 30px;
    line-height: 33px;
    text-align: center;
}
.central-featured-logo {
    position: absolute;
    top: 153px;
    left: 35px;
}
.central-textlogo-wrapper {
    display: inline-block;
    vertical-align: bottom;
    margin-top: 0;
    margin-bottom: 10px;
}
.central-textlogo-image {
    color: transparent;
    display: inline-block;
    overflow: hidden;
    text-indent: -10000px;
}
.svg-Wikipedia-wordmark {
    background-position: 0 -254px;
    width: 176px;
    height: 32px;
}
.sprite {
    background-image: linear-gradient(transparent, transparent), url("./images/sprite-d7502d35.svg");
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
}
.localized-slogan {
    display: block;
    font-family: "Linux Libertine", Georgia, Times, serif;
    font-size: 15px;
    font-weight: 400;
}


.central-featured {
    position: relative;
    height: 325px;
    width: 546px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    vertical-align: middle;
}
.ghost1 { top: 0; right: 60%; }
.ghost2 { top: 0; left: 60%; }
.ghost3 { top: 20%; right: 70%; }
.ghost4 { top: 20%; left: 70%; }
.ghost5 { top: 40%; right: 72%; }
.ghost6 { top: 40%; left: 72%; }
.ghost7 { top: 60%; right: 70%; }
.ghost8 { top: 60%; left: 70%; }
.ghost9 { top: 80%; right: 60%; }
.ghost10 { top: 80%; left: 60%; }

.central-featured-ghost {
    position: absolute;
    width: 156px;
}
.central-featured-ghost .link-box {
    display: block;
    padding: 0;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
}
.central-featured-ghost:hover {
    background-color: var(--panel);
}
.central-featured-ghost:hover a strong {
    text-decoration: underline;
}
.central-featured-ghost strong {
    display: block;
    font-size: 16px;
    color: var(--text);
}
.central-featured-ghost small {
    color: var(--muted);
    display: inline-block;
    font-size: 13px;
    line-height: 1.6;
}

.search-container {
    float: none;
    max-width: 95%;
    width: 540px;
    margin: .4rem auto 1.95rem;
    text-align: center;
    vertical-align: middle;
}
.search-container .search-input {
    display: inline-block;
    position: relative;
    width: 73%;
    vertical-align: top;
}
#searchInput {
    width: 102%;
    height: 46px;
    position: relative;
    top: -2px;
    border-width: 1px 0 1px 1px;
    border-style: solid;
    border-color: var(--border);
    background: var(--bg);
    color: var(--text);
    outline: none;
    border-radius: 2px 0 0 2px;
    padding: .8rem 9.6rem .8rem 1.2rem;
    font-size: 16px;
    line-height: 1.6;
}
#searchInput:active,
#searchInput:focus {
    border: 2px solid var(--link);
    outline: none;
}
.styled-select {
    display: inline-block;
    position: absolute;
    top: 10px;
    bottom: 12px;
    right: 27px;
    max-width: 95px;
    height: 24px;
    border-radius: 2px;
}
.styled-select .hide-arrow {
    right: 32px;
    max-width: 6.8rem;
    height: 24px;
    overflow: hidden;
    text-align: right;
}
.search-container .js-langpicker-label {
    display: inline-block;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 24px;
    text-transform: uppercase;
}
.search-container button {
    min-height: 46px;
    margin: 0;
    border-radius: 0 2px 2px 0;
    border: 1px solid var(--border);
    background-color: var(--link);
    color: #fff;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    top: -2px;
    z-index: 2;
}


.lang-list-border {
    background-color: var(--panel-border);
    display: block;
    position: relative;
    width: 80%;
    margin: -1.6rem auto 1.6rem;
    height: 1px;
}
.lang-list-container {
    background-color: var(--panel);
    position: relative;
    box-sizing: border-box;
    width: 80%;
    margin: -1.6rem auto 3rem;
}
.lang-list-content {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 1.6rem 0.9rem 0.01rem;
    background-color: var(--panel);
}
.bookshelf-container {
    text-align: center;
    
}
.bookshelf .text {
    font-weight: 400;
    font-size: 14px;
}

.site-license {
    color: var(--muted);
    text-align: center;
}
small {
    font-size: 13px;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 30;
    align-items: center;
    justify-content: center;
}
.popup-overlay.active {
    display: flex;
}
.popup-box {
    position: relative;
    background: var(--panel);
    color: var(--text);
    max-width: 360px;
    width: 90%;
    padding: 1.6rem 1.4rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .4);
}
.popup-title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 .6rem;
}
.popup-body {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.popup-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.jumpscare-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 999;
}
.jumpscare-overlay.active {
    display: block;
}
.jumpscare-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
