:root {
    --font: "Inter", sans-serif !important;

    --transition1: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;

    --scrollbarwidth: 11px;
    --scrollbar-padding: 11px;
}

body {
    /* background image */
    background: var(--background);
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #1a1a1a;
    /* default text */
    font-family: var(--font);
    color: #000;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
}

/*------- Wrapper -------*/
#wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*------- Container -------*/
#container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 0;
    flex-shrink: 0;
    margin: auto;
    max-width: 785px;
}

/*------- Custom Fonts (file needs to be in .ttf format) --------*/
/*------- nevermind not possible this site generates too much traffic i got an email about it smh
@font-face {
    font-family: "FF DIN Pro";
    src: url('https://dl.dropbox.com/scl/fi/e8csn7b5kqmkmx8597ow4/hsr.ttf?rlkey=mvymyaddnbbfc0twac07m9whv&st=yskewq6k');
}
--------*/

/*------- Cursor -------*/
* {
    cursor: url("https://33550336.neocities.org/hsrsorter/cursor.png"), auto !important;
}

/*------- Underline --------*/
u {
    text-decoration: none;
    box-shadow: inset 0 -0.25em 0 0 var(--maincolor);
}

/*------- Links -------*/
a {
    text-decoration: none;
    color: var(--maincolor);
    transition: var(--transition1);
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

/*------- Highlight --------*/
::selection {
    background: var(--maincolor);
    color: #fff;
}

::-moz-selection {
    background: var(--maincolor);
    color: #fff;
}

img::selection {
    background: transparent;
}

img::-moz-selection {
    background: transparent;
}

/*------- Scrollbar -------*/
::-webkit-scrollbar {
    width: var(--scrollbar-padding);
    height: var(--scrollbar-padding);
    background-color: var(--maincolor);
}

::-webkit-scrollbar-thumb {
    background-color: #fff;
    border: calc((var(--scrollbar-padding) - 1px) / 2) solid transparent;
    border-top: calc(var(--scrollbar-padding) / 2.69) solid transparent;
    border-bottom: calc(var(--scrollbar-padding) / 2.69) solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/*------- Buttons --------*/
ol {
    list-style: none;
}

.buttons {
    display: flex;
    justify-content: center;
    padding: 0;
    letter-spacing: 0;
}

.buttons>li {
    max-width: 100%;
    text-align: left;
}

.buttons>li>a {
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
}

.buttons.results {
    gap: 0.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0.25rem 0;
}

.buttons.results>li>a {
    display: inline-block;
    padding: 0.5em;
    border-color: var(--maincolor);
    border-style: solid;
    border-width: 1px;
    direction: ltr;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--maincolor);
    color: #fff;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.buttons.results>li>a:hover {
    background-color: #1a1a1a !important;
    color: var(--maincolor);
}

.buttons.changelog {
    gap: 0.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0.25rem 0;
}

.buttons.changelog>li>a {
    display: inline-block;
    padding: 0.5em;
    border-color: var(--maincolor);
    border-style: solid;
    border-width: 1px;
    direction: ltr;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #1a1a1a;
    color: var(--maincolor);
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.buttons.changelog>li>a:hover {
    background-color: var(--maincolor) !important;
    color: #fff;
}

/*------- Theme Selector --------*/
select {
    font-family: var(--font);
    border-radius: 0px;
    border: 2px solid var(--maincolor);
    color: var(--maincolor);
    padding: 5px;
    background-color: #1a1a1a;
}

select:focus {
    background: #1a1a1a;
    outline: none;
}

.select-wrap {
    position: relative;
}

.select-wrap:focus-within select {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20250702
}

option:hover {
    background-color: var(--maincolor);
    color: #fff;
}

option:checked {
    box-shadow: 0 0 1em 100px var(--maincolor) inset;
}

/*------- Tooltips (style-my-tooltips jquery by malihu) // https://manos.malihu.gr/style-my-tooltips-jquery-plugin/ --------*/
#s-m-t-tooltip {
    padding: 5px 10px;
    margin: 17px;
    background: #1a1a1a;
    border: 1px solid var(--maincolor);
    font-family: "FF DIN Pro", sans-serif !important;
    font-size: 7.5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--maincolor);
    line-height: 1.7em;
    z-index: 33550336 !important;
    max-width: 40vw;
}

#s-m-t-tooltip[style*="opacity: 0"] {
    display: none !important;
}

/*------- Pop Up Window // https://web.archive.org/web/20190320025338/https://starious.tumblr.com/post/27923651360/tutorial-pop-up-menu --------*/
#fade {
    display: none;
    background-color: #0f0f114a;
    backdrop-filter: blur(25px);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 33550334;
}

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

.close {
    margin: 2.1em 0 0 41em;
    z-index: 1;
    position: absolute;
}

*html #fade {
    position: absolute;
}

*html .popup_block {
    position: absolute;
}

/*------- Pop Up Window (the window itself) -------*/
#popup::after {
    content: " ";
    z-index: -1;
    display: block;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 0 3em 0 0;
    box-sizing: border-box;
    transform: translate3d(-10px, 10px, 0);
    border: 2px solid #dad9db22;
}

.popup-header {
    margin: auto;
    display: flex;
    position: relative;
    height: 80px;
    border-radius: 0 3em 0 0;
    background-color: #dad9db;
    border-bottom: 1px solid #ababaa;
    align-items: center;
    text-align: left;
}

.popup-title {
    margin: 0em 1.5em;
    font-size: 18px;
    color: #000;
}

.popup-subtitle {
    margin-top: 7px;
    color: #696c70;
    font-size: 15px;
}

.popup-mid {
    margin: auto;
    display: block;
    position: relative;
    max-height: var(--infoboxheight);
    max-width: 600px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #dad9db;
    padding: 1em 2em;
    text-align: left;
    color: #444444;
}

.popup {
    display: flex;
    flex-wrap: wrap;
}

.pop-left {
    width: 25%;
    text-align: center;
}

.pop-right {
    width: 90%;
    padding-left: 1em;
}

.faq {
    color: #121212;
}

.faq-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    vertical-align: middle;
}

.faq-name {
    font-size: 15px;
    color: #696c70;
    margin-bottom: .25rem;
}

.faq-left {
    padding-bottom: 1.5rem;
    justify-content: flex-start;
    display: flex;

}

.faq-right {
    padding-bottom: 1.5rem;
    justify-content: flex-start;
    display: flex;
    flex-flow: row-reverse;
}

.faq-left-icon {
    margin-right: 1rem;
}

.faq-right-icon {
    margin-left: 1rem;
}

.faq-left-msg {
    background-color: #ededed;
    border-radius: .2em 1em 1em 1em;
    box-shadow: -1px 2px #a1a6ad;
    padding: .5rem 1rem;
}

.faq-right-msg {
    background-color: #ddcaa5;
    border-radius: 1em .2em 1em 1em;
    box-shadow: 1px 2px #a1a6ad;
    padding: .5rem 1rem;
}

#faq-img {
    padding: .5rem 1rem !important;
}

.faq-img {
    width: 300px;
    vertical-align: middle;
    border: 5px solid transparent;
}

.faq-img:hover {
    border: 5px solid #ededed;
}

.faq-left-chat {
    flex-direction: column;
    display: flex;
    margin-right: 2em;
}

.faq-right-chat {
    align-items: flex-end;
    flex-direction: column;
    display: flex;
    margin-left: 2em;
}

ul {
    margin: 5px 0;
    padding-left: 14px;
}

li {
    padding-bottom: 5px;
}

/*------- Box --------*/
.box {
    margin: 2em auto;
    max-width: 700px;
}

.box-heading {
    margin: auto;
    display: inline-flex;
    position: relative;
    width: 700px;
    height: 80px;
    border-radius: 0 3em 0 0;
    background-color: #191919;
    border-bottom: 5px solid var(--maincolor);
    align-items: center;
    display: flex;
    text-align: left;
}

.box-heading-left {
    position: relative;
    width: fit-content;
    margin-left: 0;
    margin-right: auto;
}

.box-heading-right {
    position: relative;
    width: fit-content;
    margin: auto 1.5em auto auto;
    align-items: center;
    display: flex;
}

.box-title {
    margin: 0em 1.5em;
    font-size: 18px;
    color: #fff;
}

.box-subtitle {
    margin-top: 7px;
    color: #969696;
    font-size: 15px;
}

.icon {
    margin-left: .5em;
    width: 50px;
}

.icon>.border {
    border-radius: 100%;
    border-color: var(--maincolor);
    border-style: solid;
    border-width: 1px;
    display: inline-block;
}

.icon>.border>img {
    border-radius: inherit !important;
    padding: 0.2rem;
    max-width: 100%;
    vertical-align: top;
    box-sizing: border-box;
}

.box-mid {
    background-color: #dad9db;
    width: 700px;
    max-height: var(--infoboxheight);
    overflow-y: auto;
    text-align: center;
    align-items: center;
    padding: 1em 0;
    display: inline-block;
}

#footer {
    margin-top: -4px;
    width: 700px;
    display: inline-flex;
    flex-direction: row;
    background-color: #191919;
    color: #fff;
    line-height: 20px;
    border-bottom: 4px var(--maincolor) solid;
}

.foot {
    padding: 0.5em 2em;
    gap: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.foot-left {
    width: 90%;
    text-align: center;
}

.foot-right {
    width: 25%;
    background-color: #282828;
}

.nav {
    height: 31px;
}

/*------- Image Header --------*/
.header {
    border-color: var(--maincolor);
    border-style: solid;
    border-width: 4px;
    box-shadow: 2px 2px 0em 1px #1a1a1a;
    display: block;
    margin: 1em 0;
    margin-left: auto;
    margin-right: auto;
}

#header {
    height: var(--header-height);
    width: var(--header-width);
    background: var(--header);
    background-size: cover;
    background-position: var(--header-position);
    background-repeat: no-repeat;
}

.heading {
    padding: 0 21px;
    margin: 8px 0;
    font-size: 16px;
}

.heading::after {
    content: url('https://33550336.neocities.org/hsrsorter/img/divider.png');
    position: relative;
    left: 0;
    bottom: -1px;
}

.heading-popup {
    text-align: center;
    margin: 8px 0;
    font-size: 16px;
    color: #000;
}

.heading-popup::after {
    content: url('https://33550336.neocities.org/hsrsorter/img/divider-popup.png');
    position: relative;
    left: 0;
    bottom: -1px;
    width: 550px
}

.txt {
    padding: 0 20px;
}

.txtmid {
    margin-bottom: 5px;
}

/*------- Odaibako notice --------*/
.odaibako {
    display: block;
    background-color: #ededed;
    border-radius: 1em 1em 1em 1em;
    box-shadow: -1px 2px #a1a6ad;
    padding: .5rem 1rem;
    text-align: center;
}

/*------- Sorter Progress --------*/
#progress {
    border-radius: 3em;
    margin: 2em auto;
    max-width: 700px;
    text-align: center;
    width: 680px;
    padding: 10px;
    display: block;
    color: #fff;
    position: relative;
    background-color: #191919;
    border-bottom: 5px solid var(--maincolor);
}

/*------- Sorter (Table) --------*/
#mainTable {
    text-align: center;
    vertical-align: middle;
    width: 520px;
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
    border-spacing: 10px 5px;
}

/*------- Sorter (Options - Character) --------*/
.charasort {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
    margin: 10px 6px;
}

#fldLeft {
    text-align: center;
    cursor: pointer;
    color: #fff;
}

#fldRight {
    text-align: center;
    cursor: pointer;
    color: #fff;
}

/*------- Sorter (Options - Middle) --------*/
#divMiddleT.disabled,
#divMiddleB.disabled {
    color: #d1cacb;
}

/*------- Sorter (Options - Middle Top, Instruction/Tie) --------*/
#fldMiddleT {
    text-align: center;
    width: 170px;
    border: 2px solid var(--maincolor);
    background: #1a1a1a;
    color: #e9e9e9;
    cursor: pointer;
}

#fldMiddleT div.button.top {
    text-align: center;
    width: 100%;
    height: 20px;
}

#divMiddleT {
    display: table-cell;
    text-align: center;
    width: 170px;
    margin: 40px auto;
    cursor: pointer;
}

/*------- Sorter (Options - Middle Bottom, Start/Undo) --------*/
#fldMiddleB {
    text-align: center;
    min-width: 170px;
    padding: 0px;
    border: 2px solid var(--subcolor);
    background: #1a1a1a;
    color: #e9e9e9;
    cursor: pointer;
}

#fldMiddleB {
    text-align: center;
    padding: 0px;
}

#divMiddleB {
    display: table-cell;
    text-align: center;
    width: 170px;
    margin: 0px auto;
    cursor: pointer;

}

/*------- Sorter (Results) --------*/
.result {
    margin: -10px 0px 5em 0px;
    text-align: center;
}

.chara {
    position: relative;
    margin: 10px 6px;
    padding: 27px 0px 0px 0px;
}

div.chara {
    display: inline-block;
}

.number {
    position: absolute;
    text-align: center;
    display: inline-block;
    padding: 2px 7px;
    border-radius: 0 0 15px 0;
    color: var(--maincolor);
    background: #1a1a1a;
    border: solid 2px var(--maincolor);
}

.charasort .name {
    font-size: 10pt;
    margin-top: -19px;
    color: var(--maincolor);
    background-color: #1a1a1a;
    border: 2px solid var(--maincolor);
    padding: 5px 0;
    line-height: 17px;
    width: 94.3%;
    margin-left: 3px;
}

.chara .name {
    position: absolute;
    width: 94.5%;
    padding: 5px 2px;
    color: var(--maincolor);
    font-size: 10pt;
    background-color: #1a1a1a;
    border: 2px solid var(--maincolor);
    line-height: 17px;
}