@font-face {
    font-family: "Orbitron";
    src: url("Resources/Fonts/Orbitron/Orbitron-VariableFont_wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: VictorMono;
    src: url("Resources/Fonts/Victor_Mono/static/VictorMono-ExtraLight.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-weight: 100;
}

:root {
    --stat-yellow: #FFDD00;
    --stat-fuel: #FC7C19;
    --stat-crew: #00FFC0;
    --stat-dp: #40D0DF;
    --stat-white: #F0FFF0;
    --stat-cargo: #FFFFBF;
    --stat-debuff: #FD6300;
    --stat-black: #000000;
    --stat-gray: #757575;
    --brighten-dark-text:
        0 0 0.5px currentColor,
        0 0 0.5px currentColor;

    --mod-list-width: 196px;
}

*::after,
*::before {
    user-select: text;
    /* Standard */
    -webkit-user-select: text;
    /* Chrome/Safari */
    -moz-user-select: text;
    /* Firefox */
    -ms-user-select: text;
    /* IE/Edge */
}

/* worth the try */

.font-victor-mono {
    font-family: VictorMono;
}

.font-orbitron {
    font-family: "Orbitron";
}

body {
    padding: 0px;
    margin: 0px;
    background-color: #000;
    color: #FFF;
    /* text-shadow: var(--brighten-dark-text); */
}


body,
td {
    font-size: 10px;
}

.center-grid {
    display: grid;
    grid-template-columns: var(--mod-list-width) 1040px;
    height: 100%;

    width: fit-content;
    margin: 0 auto;

}

.center-grid-img {
    display: grid;
    height: 100%;
    align-items: center;
    align-content: center;

    justify-items: center;
    justify-content: center;
    margin: 0 auto;
}

.codex-border {
    border: 0px solid transparent;
    border-width: 8px;
    border-image-source: url("Resources/Images/Border2.png");
    border-image-slice: 32 fill;
    border-image-repeat: repeat;
}

.codex {
    /* background-color: #000; */
    background-color: transparent;
    /* 0.8x of original (i think) res */
    width: 1024px;
    height: 720px;
}

.d-flex {
    display: flex;
}

.d-none {
    display: none !important;
}

.center {
    text-align: center;
    align-items: center;
    align-content: center;
}

.header,
.stats-header,
.ship-header {
    font-weight: lighter;
    justify-content: space-between;
    padding: 1px 0;
    /* color: #A6D8F9; */
}

.logistical-content,
.weapon-stats,
.combat-content * {
    color: #FFF;
    text-shadow: none;
}

:is(.logistical-header, .combat-header, .ship-header, .search-header, .header),
.related-entries::before {
    background-color: #15414D;
    text-align: center;
}

:is(.logistical-header, .combat-header) {
    margin-bottom: 8px;
}

.d-block {
    display: block;
}

.logistical-content {
    justify-content: space-between;
}

ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

td ul li {
    display: inline;
}

:is(.combat-content, .logistical-content) ul {
    /* margin-top: 2px; */
    text-align: start;
    width: 49%;
}

.combat-content ul {
    width: 100%;
}

:is(.combat-content, .weapon-stats) ul li span:not([no-color]) {
    color: #FFDD00;
}

:is(.weapon-stats) ul {
    margin-right: 8px;
}

:is(.combat-content, .logistical-content, .weapon-stats) ul span:not([no-color]) {
    float: right;
    color: #E0FFEF;
    text-shadow: none;

}

.ship-ordnance table tr td {
    text-shadow: none;
    vertical-align: top;
}

.ship-ordnance table tr td ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* #region pseudo classes */
.ship-class::after {
    content: attr(data-class-name);
    color: var(--data-class-color);
    text-shadow: var(--brighten-dark-text) !important
}

.ship-price::after {
    content: attr(data-price);
    color: #FFDD00;
    text-shadow: none !important
}

.related-entries::before {
    content: "Related entries";
    height: 16px;
    display: block;
    padding-top: 1px;
    width: 100%;
    margin-top: -16px;
}

td ul li::after {
    content: ", ";
}

td ul li:last-child::after {
    content: "";
}

/* #endregion */

/* #region sizes of containers */

.ship-ordnance table tr td:first-child {
    width: 85px;
}

.search-bar {
    width: 20%;
    height: 100%;
    flex-direction: column;
}

.search-bar-search-tb {
    margin-top: auto;
}

.item-view {
    width: 80%;
}

.scroll-bar-container {
    height: 97%;
    width: 100%;
}

.scroll-bar {
    overflow-y: auto;
    scrollbar-width: none;
    scrollbar-gutter: stable;
}

.ship-stats {
    width: 70%;
    /* font-weight: lighter; */
}

.ship-image {
    width: 30%;
    height: 300px;
}

.ship-image img {
    margin: auto;
    max-width: 100%;
    max-height: 235px;
}

.ship-image .share {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 20px;
    /* transform: translate(50%, -50%); */
}

.justify-space-around {
    justify-content: space-around;
}

.justify-space-between {
    justify-content: space-between;
}

.lower-content {
    width: 100%;
    justify-content: space-around;
}

.ship-lore {
    color: white;
    text-shadow: none;
    width: 70%;
    border: 1px solid #15414D;
    padding: 8px;
    box-sizing: border-box;
    font-size: 12px;
}

.ship-lore p {
    margin-bottom: 0px;
}

.weapon-header {
    width: 30%;
}

.related-entries {
    width: 27%;
}

.ship-price {
    margin-bottom: 0px;
}

/* #endregion */

/* #region colors */
td ul li span:not([no-color]) {
    color: var(--stat-yellow);
}

.stat-yellow {
    color: var(--stat-yellow) !important;
}

.stat-fuel {
    color: var(--stat-fuel) !important;
    text-shadow: var(--brighten-dark-text) !important
}

.stat-crew {
    color: var(--stat-crew) !important;
}

.stat-dp {
    color: var(--stat-dp) !important;
}

.stat-white {
    color: var(--stat-white) !important;
}

.stat-cargo {
    color: var(--stat-cargo) !important;
}

.stat-debuff {
    color: var(--stat-debuff) !important;
}

.stat-gray {
    color: var(--stat-gray) !important;
    text-shadow: var(--brighten-dark-text) !important;
}

#hullmods_list span:first-child {
    color: var(--stat-gray) !important;
    text-shadow: var(--brighten-dark-text) !important
}

#hullmods_list span:nth-child(2) {
    color: var(--stat-debuff) !important;
    text-shadow: var(--brighten-dark-text) !important
}


.ship-class,
.ship-price {
    color: #767676;
    text-shadow: var(--brighten-dark-text) !important
}

input[type=text] {
    background-color: #0D272F;
    border: 1px solid #11303A;
    color: #A8DBFC;
    transition: all 0.5s ease;
}

input[type=text]:focus {
    background-color: #10313B;
    border: 1px solid #1F5E70;
    outline: 0;
}

input[type=text]::placeholder {
    transition: all 0.5s ease;
    color: #737373;
}

input[type=text]:focus::placeholder {
    color: #A3A3A3;
}


/* #endregion */

/* #region scrollbar */

.scroll-bar .simplebar-track,
.scroll-bar .simplebar-track .simplebar-scrollbar,
.scroll-bar .simplebar-track .simplebar-scrollbar::before {
    transition: width 0.3s ease, background 0.3s ease, margin-right 0.3s ease;
}

.scroll-bar .simplebar-track .simplebar-scrollbar::before {
    background: #77A8C2;
    /* border-radius: 6px; */
    opacity: 1 !important;
}

/* track on idle */
.scroll-bar .simplebar-track {
    background-color: #15414D;
    width: 10px !important;
    /* border-radius: 6px; */
    margin-right: var(--scrollbar-right-margin);
}

.scroll-bar .simplebar-track:is(.simplebar-hover) .simplebar-scrollbar:is(.simplebar-hover):before {
    width: 6px;
    background: #77A8C2;
}

/* track on hover and drag */
.scroll-bar .simplebar-track:is(.simplebar-hover),
.scroll-bar:is(.simplebar-dragging) .simplebar-track {
    width: 16px !important;
    margin-right: var(--scrollbar-right-margin-after-resize) !important;
}

.scroll-bar .simplebar-track:is(.simplebar-hover) .simplebar-scrollbar::before,
.scroll-bar:is(.simplebar-dragging) .simplebar-track .simplebar-scrollbar::before {
    background: #A0D1F0 !important;
    width: 12px !important;
}

.simplebar-placeholder {
    height: 686px !important;
}

/* #endregion */

/* #region search list */

.search-bar-text-box {
    width: 98%;

}

.search-header {
    width: 98%;
    align-self: flex-start;
}

.search-bar-ship-list {
    overflow-y: auto;
    flex-direction: column;
    height: fit-content;
    width: 100%;
}

.search-bar-ship-list ul li {
    margin-top: 4px;
    /* margin-left: 8px; */
    display: flex;
    transition: background-color 0.5s ease;
    width: 99%;
    cursor: default;
    user-select: none;
    /* border-radius: 9px; */
}

.search-bar-ship-list ul li:hover {
    background-color: #10303A;
}

.element-highlight {
    background-color: #10303A;
    /* position: absolute;
    inset: 0;
    background-size: 100%;
    pointer-events: none;
    z-index: -1; */
}

.search-bar-ship-list ul li div:has(> img) {
    width: 48px;
    height: 48px;
    text-align: center;
    align-items: center;
    display: flex;
}

.search-bar-ship-list ul li div:nth-child(2) {
    max-width: 73%;
    margin-left: 4px;
}

.search-bar-ship-list ul li div div:first-child {
    margin-top: 4px;
    color: #A9DCFD;
    margin-bottom: 4px;
}

.search-bar-ship-list ul li div div:nth-child(2) {
    color: #989898;
    max-width: 93%;
}

.search-bar-ship-list ul li div img {
    margin: auto;
    max-width: 40px;
    max-height: 40px;
}

/* #endregion */

/* #region mod search bar */

.mod-list {
    width: var(--mod-list-width);
    height: 720px;
}



/* #endregion */

/* #region icons */

.share {
    display: inline-block;

    height: 25px;
    font-weight: bold;
    position: relative;
    font-size: 20px;
    transform: rotate(90deg) scaleY(0.8);
    color: var(--stat-white);
}

.share:before {
    content: "∵";
    font-size: 2em;
    position: absolute;
    bottom: -0.25em;
    left: -0.17em;
    transform: scaleX(0.7);
    color: var(--stat-white);
}

/* #endregion */

/* #region toaster */

.toaster {
    max-width: fit-content;
    position: fixed;
    bottom: 0px;
    right: -274px;
    max-width: 256px;
    transition: all 0.5s;
    background-color: var(--stat-black);
    z-index: 1024;
    min-height: 80px;
}

.toaster-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    object-fit: contain;
    margin: auto;
}

.toaster-text {
    text-align: left;
    word-wrap: break-word;
    text-wrap: balance;
    height: 100%;
    width: 192px;
}

.toaster-title {
    font-size: 12px;
}

/* #endregion */

/* #region weapons */

.svg-weapon-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    width: 64px;
    height: 64px;
    align-content: center;
    flex-direction: column;
}

.svg-weapon-overlay img {
    margin: auto;
    /* display: inline; */
    transform: rotateZ(45deg);
}

/* ::before draws the SVG */
.svg-weapon-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: 100%;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center center;
}

.view-weapon-img-container {
    margin-top: 32px;
    margin: 24px 0 0 0 !important;
    width: 25%;
    min-height: 48px;
    height: 100%;
}

.view-weapon-img-container::before {
    max-width: 48px;
    max-height: 48px;
    /* aspect-ratio: 1; */
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center center;
}

.view-weapon-img-container img {
    max-width: 48px;
    max-height: 48px;
}

/* #endregion */