:root {
    --bs-link-color-rgb: 240, 245, 255;
    --bs-link-hover-color-rgb: 177, 177, 222;
}
@media (min-width:1600px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1550px !important;}}
.w-20 {
    width: 20% !important;
}
hr {
    margin: .75rem 0 !important;
}

#loader {
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid #ccc;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-top: .5rem;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
#link_value {
    user-select: none;
}

/* Highlight targets */
.review-current:target {
    padding: 1px;
    background-color: #333;
}

/* Swiper image gallery */
.swiper {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
}
.swiper-slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.swiper-big {
    height: 77%;
    width: 100%;
}
.swiper-small {
    height: 24%;
    box-sizing: border-box;
    padding-top: .25rem;
}
.swiper-small .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
}
.swiper-small .swiper-slide-thumb-active {
    opacity: 1;
}
.swiper-slide img, .swiper-slide iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    aspect-ratio: 1920/1080;
    cursor: pointer;
}
.trailer_embed_only {
    text-align: center;
}
.trailer_embed_only iframe {
    width: 768px;
    max-width: 100%;
    aspect-ratio: 1920/1080;
}


/* Links */
a {
    text-underline-offset: 3px !important;
}
a:hover {
    text-decoration: none !important;
}

.display-1-and-half {
    font-size: 1.5rem;
}

#page-container {
    position: relative;
    min-height: 100vh;
    background: rgba(35, 35, 35);
    color: white;
}

.h-container {
    min-height: 85vh;
}

#content-wrap {
    padding-bottom: 3rem;    /* Footer height */
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(55, 42, 200, 0.2);
    color: white;
    height: 3rem;            /* Footer height */
}

/* Font awesome features */
.fas {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  font-family: 'Font Awesome 6 Free';
}
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/staticfiles/font/fa-solid-900.woff2") format("woff2"), url("/staticfiles/font/fa-solid-900.ttf") format("truetype");
}
.fa-thumbs-up::before {
    content: "\f164";
}
.fa-thumbs-down::before {
    content: "\f165";
}
.fa-flag::before {
    content: "\f024";
}
.fa-trash-alt::before {
    content: "\f2ed";
}
/* End of font awesome features */

.beautiful-overflow {
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.beautiful-overflow-multistring {
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.site_name {
    line-height: 36px;
    color: white;
    font-weight: bold;
}

.top_nav_link {
    color: white;
    font-weight: bold;
    text-decoration: underline !important;
}

.top_nav_link:hover {
    text-decoration: none !important;
}

.sidebar_nav_widget {
    border: rgba(80, 150, 30, 0.75) 0.1rem solid;
    border-radius: 0.25rem;
}

.sidebar_nav_link {
    display: block;
    padding: 0.5rem 0;
    margin: 0.75rem 0;
    border: rgba(80, 150, 30, 0.7) 0.15rem solid;
    border-radius: 0.25rem;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
}

.sidebar_nav_link:hover {
    background-color: rgba(80, 150, 30, 0.25);
}

.draft_status {
    border: rgba(190, 22, 15, .9) 2px solid !important;
}

.onmod_status {
    border: yellow 2px solid !important;
}

.pub_status {
    border: green 2px solid !important;
}

.game_cat_lang {
    position: absolute;
    top: 4px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

.game_cat_link {
    text-align: center;
    position: absolute;
    bottom: 0;
    text-decoration: none;
    color: white;
    overflow-wrap: break-word;
    background: rgba(0, 0, 0, 0.65);
    font: 600 1rem Roboto,sans-serif;
    line-height: 1.46;
}

.game_detail_lang {
    position: relative;
    top: -0.125rem;
    text-shadow: 1px 0 #222, -1px 0 #222, 0 1px #222, 0 -1px #222, 1px 1px #222, -1px -1px #222, 1px -1px #222, -1px 1px #222;
}

.img_list {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: contain;
    position: relative;
    top: 0;
    left: 0;
}

.img_blur {
    filter: blur(8px);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.novel_list_link {
    position: relative;
    top: 0;
    left: 0;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.novel_img_small, .novel_img_small img {
    width: 64px;
    height: 96px;
}

#nsfw_modal {
    max-width: 95%;
}

/* Game header (img & info) */
@media (max-width:767px) {
    .game_img_container {
        display: none;
    }
}
@media (min-width:768px) {
    .game_img_container {
        width: calc(min(256px, 45%));
    }
    .game_card_container {
        width: calc(100% - min(256px, 45%) - 10rem);
    }
}
@media (min-width:992px) {
    .game_img_container {
        width: 256px;
    }
    .game_card_container {
        width: calc(100% - 256px);
        padding-left: 0.25rem;
    }
}

.game_card_item {
    background: rgba(105,105,105,.125);
    border: 4px solid rgba(var(--bs-dark-rgb),.1);
    padding-left: .5rem;
    margin-bottom: .25rem;
}

/* Tags */
.tag_proposal {
    margin: .125rem .5rem .125rem .125rem;
    font-size: .875rem;
    color: rgb(77, 177, 255);
}

.tag_category {
    white-space: nowrap;
    position: relative;
    top: 1px;
}
.tag_in_category {
    white-space: nowrap;
    cursor: pointer;
    margin: .25rem;
    font-size: .9rem;
    text-decoration-color: rgba(var(--bs-link-color-rgb), 0.75);
}
.tag_other {
    white-space: nowrap;
    cursor: pointer;
    margin: .125rem;
    font-size: .7rem;
    text-decoration-color: rgba(var(--bs-link-color-rgb), 0.625);
}
.tag_spoiler {
    display: none;
    opacity: .75;
}

.spoil_me {
    color: rgb(255, 222, 244);
}


/* Download links */
.dllink_image {
    width: 50px;
    height: 50px;
    padding: 5px;
    border: rgba(12,79,143,.5) 2px solid;
    border-radius: 10px;
    background-color: #168E43;
}

.dllink_link {
    text-decoration: underline;
    font:500 1.1rem Roboto,sans-serif;
    color: rgb(66, 145, 255);
}

/* Comments */
.comment-content {
    margin: .375rem 0;
}
.comment-content > div {
    margin: .375rem 0;
}

/* Spoilers */
details > summary {
    list-style: none;
}
details > summary > .spoiler-summary {
    padding: .25rem 1rem;
    background-color: rgba(105, 135, 84, .75);
    border-radius: .15rem;
}
details > summary::-webkit-details-marker {
    display: none;
}
details > summary .spoiler-summary:before {
    content: '\f0fe';
    font-family: 'Font Awesome 6 Free';
    margin-right: .25rem;
}
details[open] > summary .spoiler-summary:before {
    content: '\f146';
}
x-spoiler {
    display: block;
    border: 2px lightgrey dashed;
    padding: .375rem;
    margin: .25rem 0;
}

/* Add novel form */
.form-control.w-auto {
    flex: initial !important;
}

.form-text {
    color: #f8f9fa;
}

.spacer-2 > .row:nth-child(odd) {
    border-top: white 2px solid;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
}

/* Pagination */
.pagination_page {
    display: inline-block;
    min-width: 2.5rem;
    margin: .25rem;
    padding: .5rem;
    text-align: center;
    border: white 2px solid;
    border-radius: .5rem;
    color: white;
    text-decoration: none;
    font: 600 1rem Roboto,sans-serif;
}

.pagination_page:hover {
    background-color: rgba(100, 100, 100, 0.8);
}

.pagination_current {
    border: white 3px solid;
    background-color: rgba(100, 100, 100, 0.7);
}

/* Filter form select */
.select2-selection__rendered {
    margin-top: 2px;
}
#id_lang + span .select2-search, #id_translation + span .select2-search, #id_duration + span .select2-search, #id_on_site_version + span .select2-search {
    display: none !important;
}
.select2-prepend {
    margin: auto 8px auto 0;
}