html {
  font-family: 'Inter', sans-serif;
  height: 100%;
  width: 100%;
}

svg {
    flex-shrink: 0;
}

:root {
    --background-color: #212121;
    --body-color: #1C1C1C;
    --text-1-color: #C2C2C2;
    --text-2-color: #A3A3A3;
    --primary-color: #0081B9;
    --border-radius: 18px;
    --font-main: 'Arial', sans-serif;
    --standart-margin: 30px;
    --border-color: #363636;
}

input, textarea {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  background: none;
  font-family: 'Inter', sans-serif;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

body {
    display: flex;
    background-color: var(--background-color);
    gap: var(--standart-margin);
    height: 100dvh;
    width: 100%;
    margin: 0;
}

.info:hover {
    cursor: pointer;
}


.ls_container {
    background-color: var(--body-color);
    border-radius: var(--border-radius);
}

#filter_container {
    width: 300px;
    flex-shrink: 0;
    overflow: auto;
    height: calc(100dvh - var(--standart-margin) * 2 - 50px);
    margin-left: var(--standart-margin);
    margin-top: calc(var(--standart-margin) + 50px);
    background-color: var(--body-color);
    z-index: 10;
}
#filter_container::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Edge */
}



#filter_search {
    display: flex;
    margin: var(--standart-margin);
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 40px;
    padding: 0 10px;
}
#display_search:hover{
    cursor: text;
}

#display_search {
    margin: 0 auto 0 10px;
    color: #A3A3A380;
    width: 100%;

    white-space: nowrap;           /* Text bleibt in einer Zeile */
    overflow: hidden;               /* Überflüssiger Text wird versteckt */
    text-overflow: ellipsis;
}



.filter_element {
    margin: var(--standart-margin);
    border-bottom: 1px solid var(--background-color);
    padding-bottom: 42px;
}
.filter_element.last {
    border-bottom: none;
}

.filter_element_body {
    padding: 0 4px;
}

.filter_header {
    color: var(--text-2-color);
    font-size: 16px;
    margin: 16px 0;
}

.text {
    color: var(--text-2-color);
    font-size: 14px;
    margin: 0;
}

.filter_dropdown_button {
    display: flex;
    align-items: center;
    width: fit-content;
    user-select: none;
}
.filter_dropdown_button:hover {
    cursor: pointer;
}

.dropdown_svg_small {
    margin-left: 3px;
}

.blue_line {
    width: 100%;
    height: 6px;
    background-color: #0081B9;
    border-radius: 3px;
}

.line_wrapper {
    position: relative;
    margin-bottom: var(--standart-margin);
    height: 6px;
}

.pointer_svg {
    position: absolute;
    top: 2px;
    transition: left 0.2s ease, right 0.2s ease;
}
.pointer_svg:hover {
    cursor: pointer;
}

.pointer_svg.left.default {
    left: -6px;
}
.pointer_svg.right.default {
    right: -6px;
}


.from_to_wrapper {
    display: flex;
}

.filter_from, .filter_to {
    height: 32px;
    width: 70px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 0 7px;
    font-size: 14px;
    color: var(--text-2-color);
}
.filter_from::placeholder, .filter_to::placeholder {
    color: var(--text-2-color);
    opacity: 1;
}

.seperator {
    background-color: #A3A3A380;
    width: 6px;
    height: 1.5px;
    margin: auto;
}

#volume_line_wrapper {
    margin-top: var(--standart-margin);
    min-height: 1px;
}

.float_bar {
    position:absolute;
    top: 0;
}


.enum_wrapper {
    margin-top: var(--standart-margin);
}

.float_enum_wrapper {
    display: flex;
    justify-content: space-between;
}

.enum_card {
    display: flex;
    margin-top: 15px;
    width: fit-content;
}
.enum_card:hover {
    cursor: pointer;
}

.float_enum_card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    border: 1px solid var(--border-color);
    width: 35px;
    height: 24px;
    border-radius: 6px;
    user-select: none;
}

.enum_card p {
    height: fit-content;
    margin: auto 0;
}

.enum_checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    height: 18px;
    width: 18px;
    margin-right: 12px;
}

.float_enum_card.open, .enum_checkbox.open {
    border: 1px solid transparent;
    background-color: #26A69A99;
    color: var(--background-color);
    font-weight: 600;
}






#listings_container {
    height: calc(100dvh - var(--standart-margin) * 2 - 60px - 50px);
    padding: 30px;
    margin: calc(var(--standart-margin) + 50px) var(--standart-margin) 0 0;
    width: calc(100% - 300px - var(--standart-margin)*3 -  60px);
}

#listings_wrapper {
    display: flex;
    overflow: auto;
    height: 100%;
    width: 100%;
    border-radius: var(--border-radius);
}
#listings_wrapper {
  overflow: auto;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* alte Edge/IE */
}
#listings_wrapper::-webkit-scrollbar {   /* Chrome/Safari/neues Edge */
  display: none;
}

#listings_left {
    flex: 1;
    min-width: 260px;
}
#listings_right {
    width: fit-content;
    min-width: var(--border-radius);
    flex-shrink: 0;
}

#listing_header_left {
    display: flex;
    background-color: var(--background-color);
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: 4px;
    height: 50px;
    width: 100%;
    margin-bottom: 14px;
}
#listing_header_right {
    display: flex;
    background-color: var(--background-color);
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: 4px;
    height: 50px;
    min-width: var(--border-radius);
    margin-bottom: 14px;
    justify-content: right;
}

.listing_card_left {
    display: flex;
    background-color: var(--background-color);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    height: 50px;
    width: 100%;
    margin-top: 4px;
    border-left: 3px solid #9345FF;
    cursor: pointer;
    text-decoration: none;
}
.listing_card_right {
    display: flex;
    flex-shrink: 0;
    background-color: var(--background-color);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    height: 50px;
    min-width: var(--border-radius);
    margin-top: 4px;
    justify-content: right;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.market_button {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #0081B9;
    height: 28px;
    width: 45px;
    border-radius: 4px;
    color: var(--background-color);
    font-weight: 700;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
    top: calc(50px / 2 - 28px / 2);
    right: 20px;
    z-index: 1000;
    text-decoration: none;
}

.market_button.open {
    display: flex;
}

.market_button:hover {
    background-color: #00A0E4;
    box-shadow: 0 0 30px #0081b91a;
}






.listing_text {
    color: var(--text-2-color);
    text-align: right;
    height: 20px;
    flex-shrink: 0;
}

.listings_header {
    color: var(--text-2-color);
}

.listing_rank {
    width: 60px;
}
.listing_name {
    width: 100%;
    text-align: left;
    margin-left: 16px;
    overflow: hidden;
    padding-right: 8px;
    white-space: nowrap;      /* verhindert Umbruch Wort-für-Wort */
    text-overflow: ellipsis;
}



.listing_overpay {
    width: 100px;
}
.listing_float {
    width: 125px;
}
.listing_adjusted_float {
    width: 125px;
}
.listing_volume {
    width: 75px;
}
.listing_seed {
    width: 65px;
}
.listing_marketplace {
    width: 125px;
    margin-right: 20px;
}

.skin_pic_wrapper {
    height: 47px;
    width: 47px;
    margin-left: 30px;
    flex-shrink: 0;
}
.skin_pic_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    flex-shrink: 0;
}






#search-box{
  display: none;
}
#search-box.open{
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 20;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  min-height: 47px;
  width: 600px;
  height: fit-content;
  border: 1px solid #424242;
  border-radius: 16px;
  background-color: #1C1C1C;
  max-width: calc(100vw - 24px);
  box-shadow: 0 0 23px 8px rgba(0, 0, 0, 0.3);
}

#search-top-c{
  display: flex;
  align-items: center;
  height: 47px;
}

#search-input{
  font-family: 'Inter';
  width: calc(100% - 68px);
  border: none;
  background-color: #1C1C1C;
  padding-left: 5px;
  outline: none;
  color: #A3A3A3;
  height: 30px;
  font-size: 15px;
}
input::placeholder {
  color: rgba(163, 163, 163, 0.5);
}

#lupe{
  margin: 0 2px 0 8px;
}

#search-results{
    list-style: none;
  display: none;
  flex-direction: column;
  padding: 18px 32px;
  border-top: 1px solid #424242;
  max-height: 270px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0;
}

#search-results li{
    
    display: flex;
  cursor: default;
  color: #A3A3A3;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  margin-bottom: 6px;
}

#search-results li:hover{
    align-items: center;
  color: #D5D5D5;
  background-color: var(--background-color);
}

#search-results li img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    margin-right: 20px;
    border-left: 3px solid transparent;
    border-radius: 2px;
    padding-left: 30px;
}

#search-input::-webkit-search-decoration,
#search-input::-webkit-search-cancel-button,
#search-input::-webkit-search-results-button,
#search-input::-webkit-search-results-decoration {
  display: none;
}

#search-results::-webkit-scrollbar {
  display: none;
}

#search-box input {
    font-family: 'Inter', sans-serif;
    color: #A3A3A3;
    font-size: 15px;
}

#search-box input::placeholder {
    color: rgba(163, 163, 163, 0.5);
    font-family: 'Inter', sans-serif;
    opacity: 1;
}



.chevron {
  margin-top: 19px;
  margin-left: auto;
  transform-origin: 50% 30%;
  transition: transform 250ms ease;
  transform: rotate(0deg);
  flex-shrink: 0;
  color: var(--text-2-color);
}

.chevron.open{
  transform: rotate(180deg);
}

.filter_header_wrapper {
    display: flex;
    margin-bottom: 12px;
}
.filter_header_wrapper:hover{
    cursor: pointer;
}



.any_rarity {color: #E3E3E3;}
.consumer_rarity {color: #B0C3D9;}
.industrial_rarity {color: #5E98D9;}
.mil_spec_rarity {color: #4B69FF;}
.restricted_rarity {color: #8847FF;}
.classified_rarity {color: #D32CE6;}
.covert_rarity {color: #EB4B4B;}
.contraband_rarity {color: #E4AE39;}


.filter_dropdown_body {
    display: none;
    position: absolute;
    top: 8px;
    left: 0;
    z-index: 10;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    background-color: var(--body-color);
    cursor: pointer;
    height: fit-content;
    max-height: 200px;
    overflow-y: auto;
    user-select: none;
}
.filter_dropdown_body.open {
    display: block;
}

.dropdown_card {
    display: flex;
    align-items: center;
    width: calc(100% - 40px);
    height: 40px;
    padding: 8px 20px;
    flex-shrink: 0;
}
.dropdown_card:hover {
    background-color: var(--background-color);
}

.dropdown_card.first {
    margin-top: 5px;
}
.dropdown_card.last {
    margin-bottom: 5px;
}

.dropdown_parent {
    position: relative;
}



#legals {
    margin: 30px auto;
    width: 240px;
    display: flex;
    justify-content: space-around;
}

.legal_link {
    text-decoration: none;
    color: #A3A3A380;
    font-size: 14px;
}



#filter_open{
  display: none;
  justify-content: center;
  align-items: center;
  height: 35px;
  border-radius: 8px;
  margin: 0px auto 20px 20px;
  padding: 0 10px;
  text-decoration: none;
  background-color: var(--body-color);
    border: 1px solid var(--border-color);
    color: var(--text-2-color);
  font-size: 15px;
  font-weight: 800;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 50px;
}

#filter_open:hover {
    cursor: pointer;
}

#filter_open.query {
    margin-left: auto;
    margin-right: auto;
    width: 130px;
    height: 40px;
    border: none;
    background-color: #6cb3ffed;
    color: #212121;
}










@media (max-width: 1023px) {

    #filter_open {
        display: flex;
    }

    #filter_container{
        position: absolute;
        display: none;
        height: calc(100dvh - var(--standart-margin) * 2 - 60px - 50px + var(--standart-margin)*1.5 - 65px);
        top: 70px;
        margin-left: calc(var(--standart-margin) / 2);
        margin-right: calc(var(--standart-margin) / 2);
        margin-bottom: calc(var(--standart-margin) / 2);
        padding-left: calc(var(--standart-margin) / 2);
        padding-right: calc(var(--standart-margin) / 2);
        padding-bottom: calc(var(--standart-margin) / 2);
        padding-top: calc(var(--standart-margin) / 2);

        width: calc(100% - var(--standart-margin)*2);
    }

    #filter_container.open {
        display: block;
    }


    #listings_container{
        height: calc(100dvh - var(--standart-margin) * 2 - 60px - 50px + var(--standart-margin)*1.5);
        margin-left: calc(var(--standart-margin) / 2);
        margin-right: calc(var(--standart-margin) / 2);
        margin-bottom: calc(var(--standart-margin) / 2);
        padding-left: calc(var(--standart-margin) / 2);
        padding-right: calc(var(--standart-margin) / 2);
        padding-bottom: calc(var(--standart-margin) / 2);
        padding-top: calc(var(--standart-margin) / 2);

        width: calc(100% - var(--standart-margin)*2);
    }

    #listings_wrapper{
        height: calc(100% - 55px);
    }

    .float_bar {
        height: 6px;
        width: 100%;
    }

}


