:root {
    --main-background-colour: #000000;
    --type-dark: #343334;
    --type-light: #7a7a79;

    --object-dark-border: #3d2e10;
    --object-mid-border: #c9a84c;
    --object-light-border: #f5e6a3;
    --object-highlight-border: #fffbe0;
    --object-text: #f5deb3;

    --can-dye: #4ccc43;
    --cant-dye: #dedede;

    --white-gear: #ffffff;
    --pink-gear: #d789b6;
    --green-gear: #c0ffa1;
    --blue-gear: #5990ee;
    --purple-gear: #b38cff;

    --tank-background: #3D55A5;
    --healer-background: #3F6C32;
    --dps-background: #7E3A3A;

    --button-text: #f0f8ff;
    --button-3d: #7d7d7d;
    --button-3d-pressed: #696969;
    --button-glow: #d1cdc7;

    --other-link: #59a0bd;
    --other-link-used: #7759bd;

    --dropdown: #7a7a79;
    --dropdown-text: #f0f8ff;
    --dropdown-item: #f0f8ff;
    --dropdown-item-text: #000000;
    --dropdown-item-hover: #dddddd;
}

body {
    background: var(--main-background-colour);
    margin: 0;
}

#NavigationBar {
    display: flex;
    align-items: center;
    width: 100vw;
    height: var(--nav-height, 4rem);
    background-color: #000000;
    color: var(--text, var(--button-text));
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 200;
}

.navigationItem {
    display: inline-block;
    padding-left: 1.25rem;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.15s;
}

@media (max-width: 768px) {
    #NavigationBar {
        height: 2.8rem;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    #NavigationBar::-webkit-scrollbar { display: none; }
    .navigationItem {
        padding-left: 0.9rem;
        font-size: 0.82rem;
    }
}

#SiteWrapper {
    position: fixed;
    width: 100vw;
    height: calc(100% - 4rem);
    right: 0;
    left: 0;
    background-color: var(--main-background-colour);
    margin-left: 0;
    overflow-y: scroll;
}

#blackBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: black;
}

.overlay {
    cursor: zoom-out;
}

#bigImage {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    max-width: 90vw;
    margin: auto;
}

.glaze {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

#FilterWrapper {
    background: var(--type-dark);
}

#UpperFilterBox {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

#TypeFilter {
    margin: auto;
    width: 450px;
    height: auto;
}

.dropdown {
    position: relative;
    display: grid;
    font-size: 1.2rem;
    margin: 5%;
    width: 90%;
    min-width: 90%;
    max-width: 90%;
    padding: 0.75rem 0;
}

.dropButton.button {
    display: grid;
    background-color: var(--dropdown);
    color: var(--dropdown-text);
    padding: 16px;
    font-size: 16px;
    border: none;
    width: 50%;
    margin: auto;
    text-align: center;
}

.dropdownContent {
    display: none;
    position: relative;
    background-color: var(--dropdown-item);
    min-width: 160px;
    z-index: 1;
    width: 50%;
    margin: auto;
    text-align: center;
}

.classDropdownHolder {
    position: absolute;
    background-color: var(--dropdown-item);
    width: 100%;
    height: 20rem;
    overflow-y: scroll;
}

.dropDownClass {
    display: block;
    width: 100%;
    color: var(--dropdown-item-text);
}

.dropdownContent[show="true"] {
    display: inline;
}

.dropdownContent a:hover {
    background-color: var(--dropdown-item-hover);
}

.curved {
    border-radius: 10px;
}

.button {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.button[type="down"] {
    box-shadow: inset 0 0 20px var(--button-glow), 0 0 10px var(--button-glow);
    transform: translateY(4px);
}

.button:active:not(.dropDownClass) {
    transform: translateY(5px);
}

.type {
    color: var(--button-text);
    background-color: var(--type-light);
    font-size: 1.2rem;
    margin: 5%;
    width: 90%;
    min-width: 90%;
    max-width: 90%;
    padding: 0.75rem 0;
}

.playerClass.button:not(.dropDownClass) {
    background-size: cover;
    width: 3rem;
    height: 3.1rem;
    margin: 0.4%;
}

.tank {
    background-color: var(--tank-background);
}

.healer {
    background-color: var(--healer-background);
}

.dps {
    background-color: var(--dps-background);
}

hr {
    width: 100%;
    margin: 0;
    border: 0;
    height: 3px;
    background-image: linear-gradient(to right, rgba(107, 89, 57, 0), rgba(235, 227, 155, 0.75), rgba(107, 89, 57, 0));
}

#FilterListWrapper {
    overflow-y: auto;
    background-color: var(--type-dark);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: fit-content;
    max-height: 90vh;
    max-width: 90vw;
    margin: auto;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 2rem;
}

#FilterList {
    color: var(--object-text);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.filterGroup {
    font-size: 1rem;
    width: 430px;
    min-height: 0;
    padding-bottom: 2rem;
}

input[type="number"] {
    margin: 4px;
}

#HeaderFilter {
    top: 0;
    position: sticky;
    background: var(--type-dark);
}

#LowerFilterBox {
    background: var(--type-dark);
    color: aliceblue;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    border: 0;
}

.search {
    margin-left: auto;
    margin-right: auto;
    width: 4em;
    height: 5em;
    background-image: url("icons/play_arrow-24px.svg");
    background-size: cover;
}

.toTop {
    margin-left: auto;
    margin-right: auto;
    width: 5.1em;
    height: 4em;
    background-image: url("icons/up_arrow-24px.svg");
    background-size: cover;
}

.filter {
    margin-left: auto;
    margin-right: auto;
    width: 4em;
    height: 2.75em;
    background-image: url("icons/filter_list-24px.svg");
    background-size: cover;
}

#ObjectWrapper {
    background: var(--type-dark);
    margin: 1%;
    width: 98%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Metallic gold border shell ── */
.ObjectBorder {
    background-image: linear-gradient(
            150deg,
            #2a1e08 0%,
            #7a5a1e 12%,
            #c9a040 25%,
            #f0d87a 38%,
            #fff8c0 46%,
            #d4a843 55%,
            #7a5520 70%,
            #3d2a0a 80%,
            #c0922e 90%,
            #5c3d10 100%
    );
    border: none;
    border-radius: 18px;
    padding: 2px;
    margin: 1%;
    min-width: 330px;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    box-shadow:
            0 0 8px rgba(190, 145, 40, 0.35),
            0 2px 4px rgba(0, 0, 0, 0.6),
            inset 0 1px 1px rgba(255, 245, 160, 0.25);
}

/* ── Inner card ── */
.Object {
    font-size: 1rem;
    background-image: linear-gradient(
            180deg,
            #5a5a58 0%,
            #464645 40%,
            #323231 100%
    );
    border: none;
    border-radius: 16px;
    width: 100%;
    padding: 2rem 0.1% 0.1%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.Object.hasSlider {
    padding-top: 0.5rem;
}

input.gearSlider {
    height: 1rem;
    margin: 0 0 0.5rem;
}

.ImageArea {
    cursor: zoom-in;
    margin-bottom: 2%;
    width: 86%;
}

.No,
.Yes {
    display: flex;
    flex-direction: column;
    color: transparent;
}
.No:after {
    color: var(--cant-dye);
    content: "Can't be dyed.";
}

.Yes:after {
    color: var(--can-dye);
    content: "Can be dyed.";
}

.itemData {
    color: var(--object-text);
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.gamerEscape {
    color: #be2819;
}

#Loading {
    color: var(--object-text);
    font-size: 3rem;
    text-align: center;
    padding: 0.5rem;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.txt-rarity_common:link,
.txt-rarity_common:visited,
.txt-rarity_common:hover,
.txt-rarity_common:active {
    color: var(--white-gear);
}

.txt-rarity_magic:link,
.txt-rarity_magic:visited,
.txt-rarity_magic:hover,
.txt-rarity_magic:active {
    color: var(--pink-gear);
}

.txt-rarity_uncommon:link,
.txt-rarity_uncommon:visited,
.txt-rarity_uncommon:hover,
.txt-rarity_uncommon:active {
    color: var(--green-gear);
}

.txt-rarity_rare:link,
.txt-rarity_rare:visited,
.txt-rarity_rare:hover,
.txt-rarity_rare:active {
    color: var(--blue-gear);
}

.txt-rarity_epic:link,
.txt-rarity_epic:visited,
.txt-rarity_epic:hover,
.txt-rarity_epic:active {
    color: var(--purple-gear);
}

.otherLink:link,
.otherLink:hover,
.otherLink:active {
    color: var(--other-link);
}

.otherLink:visited {
    color: var(--other-link-used);
}

#Footer {
    width: 98%;
    background: var(--main-background-colour);
    text-align: center;
    color: var(--button-text);
    height: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

#CloseFilter {
    width: 2em;
    height: 2em;
    background-image: url("icons/close-24px.svg");
    background-size: cover;
    float: right;
}



#Warrior.button {
    background-image: url("icons/Warrior.png");
}

#Paladin.button {
    background-image: url("icons/Paladin.png");
}

#DarkKnight.button {
    background-image: url("icons/DarkKnight.png");
}

#Gunbreaker.button {
    background-image: url("icons/Gunbreaker.png");
}

#Scholar.button {
    background-image: url("icons/Scholar.png");
}

#WhiteMage.button {
    background-image: url("icons/WhiteMage.png");
}

#Astrologian.button {
    background-image: url("icons/Astrologian.png");
}

#Sage.button {
    background-image: url("icons/Sage.png");
}

#Dragoon.button {
    background-image: url("icons/Dragoon.png");
}

#Reaper.button {
    background-image: url("icons/Reaper.png");
}

#Monk.button {
    background-image: url("icons/Monk.png");
}

#Ninja.button {
    background-image: url("icons/Ninja.png");
}

#Bard.button {
    background-image: url("icons/Bard.png");
}

#BlackMage.button {
    background-image: url("icons/BlackMage.png");
}

#Summoner.button {
    background-image: url("icons/Summoner.png");
}

#BlueMage.button {
    background-image: url("icons/BlueMage.png");
}

#Machinist.button {
    background-image: url("icons/Machinist.png");
}

#Samurai.button {
    background-image: url("icons/Samurai.png");
}

#RedMage.button {
    background-image: url("icons/RedMage.png");
}

#Dancer.button {
    background-image: url("icons/Dancer.png");
}

#Viper.button {
    background-image: url("icons/Viper.png");
}

#Pictomancer.button {
    background-image: url("icons/Pictomancer.png");
}

@media only screen and (min-width: 1000px) {
    #ClassFilter {
        width: 1450px;
        display: flex;
        height: auto;
        margin: auto;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .dropdown {
        display: none;
    }
}