:root {
    /* WINDOW SIZE */
    --html-font-size: 10px; /* (px)This determines the size of the window! */

    --slot-bg-gradient: red;

    --radius-smallest: 0.2rem;
    --radius-small: 0.5rem;
    --radius-medium: 0.8rem;
    --radius-large: 1.0rem;

    /* nav colors */
    --nav: #5c7899;
    --nav-active: #fff;

    /* details */
    --sub-1: #748394;
}

.block_bg_1 {
    background: linear-gradient(0deg, rgba(15, 23, 30, 1) 0%, rgba(32, 49, 60, 1) 100%);
}

.block_bg_2 {
    background: linear-gradient(0deg, rgba(32, 49, 60, 1) 0%, rgba(35, 58, 73, 1) 100%);
}

.block_bg_3 {
    background: linear-gradient(0deg, rgba(14, 72, 71, 1) 0%, rgba(27, 61, 96, 1) 100%);
}

.block_bg_4 {
    background: linear-gradient(0deg, rgba(28, 33, 33, 1) 0%, rgba(14, 17, 20, 1) 100%);
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: var(--html-font-size);
}

body {
    font-family: 'Play', sans-serif;
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
    height: 100%;
    margin: 0;
    padding: 0;
    color: #eeead9;
    user-select: none;

    /*background: linear-gradient(25deg, rgba(15, 19, 23, 0.9) 50%, rgba(45, 109, 115, 0.9) 100%);*/
    /*https://css-tricks.com/almanac/properties/b/backdrop-filter/*/
}


@media screen and (max-width: 2050px) {
    html {
        font-size: calc(var(--html-font-size) - 1px);
    }
}

@media screen and (max-width: 1600px) {
    html {
        font-size: calc(var(--html-font-size) - 2px);
    }
}

@media screen and (max-width: 1200px) {
    html {
        font-size: calc(var(--html-font-size) - 3px);
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

a, a:visited {
    text-decoration: none;
    color: var(--nav);
}

h1 {
    font-size: 2.4rem;
    /*text-transform: uppercase;*/
    font-weight: lighter;
}

h2 {
    font-size: 1.8rem;
    margin-top: 0;
    font-weight: lighter;
}

input:disabled {
    background: #353438 !important;
    color: gray;
    filter: none !important;
}

.general_information_container {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--radius-small);
}

.general_information {

}

#max_qty:disabled {
    background: #484848 !important;
}

/* width */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #131618;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #223846;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #2f4d60;
}

#container {
    position: relative;
    display: none;
    width: 100rem; /* width scaling*/
    overflow: auto;
    margin: 0;
    top: 10rem;
    left: 10rem;
    border-radius: var(--radius-large);
    background: rgb(15, 19, 23);
    background: linear-gradient(25deg, rgba(0, 0, 0, 0.9) 50%, rgba(11, 30, 32, 0.9) 100%);
}

.head {
    display: grid;
    position: relative;
    grid-template-columns: 0.16fr auto 0.05fr;
    grid-column-gap: 1.3rem;
    align-items: center;
    padding: 0.6rem 0.7rem;
}

#head_main {
    text-align: right;
}

#search_bar {
    display: grid;
    position: relative;
    grid-template-columns: 1fr auto;
    grid-column-gap: 1.3rem;
    align-items: center;
    padding-bottom: 2rem;
}

#main_title {
    margin: 0 0 1.3rem;
}

.order_by_btn {
    text-transform: uppercase;
    padding: 0.5rem;
}

.nav_selected {
    color: white !important;
}

.selected {
    border: 1px solid #061925;
}

.main_container {
    display: grid;
    position: relative;
    grid-template-columns: 2.4fr 3fr 1fr;
    /*grid-auto-rows: 44rem;*/
    grid-gap: 1rem;
}

.main_left {
    align-items: start;
    padding: 1.3rem;
}

.main_right {
    display: grid;
    align-items: end;
    padding: 1.0rem;
    background-image: url(img/logo.png);
    background-repeat: no-repeat;
    background-position: center top 1.8rem;
    grid-template-rows: auto 17.1rem;
}

input {

    background-color: rgb(27 35 45);
}

.slot {
    position: relative;
    min-height: 7rem;
    padding: 0.1rem 1rem;
    border-radius: var(--radius-small);
    background-position: center 40%;
    background-repeat: no-repeat;
}

.slot span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 0.5rem 0.26rem;
    text-align: center;
}

.slot_content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.ingredient_name {
    margin: 0rem 0rem 0.5rem 1.2rem;
}

.ingredientProduct:hover {
    box-shadow: 0 0 0.13rem 0.13rem #2a593f;
}

.permanent {
    box-shadow: 0 0 0.13rem 0.13rem #979cb5;
}

.close:hover {
    color: #ff4141;
}

.btn {
    margin: 0.26rem;
    padding: 0.5rem 1.04rem;
    border-radius: var(--radius-small);
    font-size: 1.6rem;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    position: relative;
}

.special {
    color: rgb(243, 239, 238);
}

.special:after {
    content: attr(data-special);
    color: var(--sub-1) !important;
    font-size: 1rem;
    margin: 0.8rem 0 0 0rem;
    position: relative;
    display: block;
    vertical-align: baseline;
    text-transform: uppercase;
}

.product_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.5rem;
}

.product_footer {
    display: flex;
    background: #20313c;
    padding: 0.8rem;
    border-radius: var(--radius-small);
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.product_container {
    overflow-y: auto;
    height: 40rem;
}

.product_img, .product_img_large, .product_img_small {
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 0.15rem #245366);
}

.product_img {
    position: relative;
    width: 13rem;
    height: 12rem;
    background-size: 60%;
}

.product_img_large {
    width: 16rem;
    height: 15rem;
    background-size: 70%;
}

.product_img_large .amount {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.product_img_small {
    width: 5.1rem;
    height: 5.1rem;
    background-size: 80%;
    margin-left: 0rem;
}

.product {
    position: relative;
    width: fit-content;
    padding: 1rem;
    border-radius: var(--radius-small);
    display: grid;
    justify-content: space-around;
    /*background: rgb(32, 49, 60);*/
}

.conditions li {
    display: inline-block;
    width: 45%;
    margin: 1rem 0;
}

.li_label {
    color: #517c9a;
    text-transform: uppercase;
    display: block;
}

.available {

    background-color: #2a593f !important;
}

.not_available {

    background-color: #963a15 !important;
}

form {
    margin: 0;
    padding: 0;
}

button {
    margin: 0.26rem;
    padding: 0.1rem 0.26rem;
    border: 0.13rem solid #b6b4b2;
}

input {
    border: none;
    padding: 1.3rem 2rem;
    border-radius: var(--radius-small);
    font-size: 1.1rem;
    color: white;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input:hover, .product_list li:hover, a:hover {
    filter: brightness(1.4);
}

input:focus {
    outline: none;
}

#q, #profession {
    width: 100%;
}

#craft {
    width: 100%;
    height: 100%;
    text-transform: uppercase;
    background: linear-gradient(0deg, rgb(18 41 47) 0%, rgb(14 99 80) 100%);
}

#cancel {
    position: relative;
    width: 100%;
    height: 100%;
    text-transform: uppercase;
    background: #ff4141;
    background: linear-gradient(0deg, #7a2b33 0%, #ff4141 100%);
}

#required_qty {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    background: linear-gradient(0deg, rgb(32 49 60) 0%, rgb(21 32 40) 100%);
}

#max_qty {
    position: absolute;
    z-index: 99;
    top: 6.5rem;
    right: 0;
    border-radius: 1rem 0 0 1rem;
    padding: 1rem 1.5rem;
    background-color: rgb(44, 43, 57);
}

.selected_product {
    display: grid;
    position: relative;
    grid-template-columns: auto 1fr;
    grid-gap: 1.3rem;
    padding: 1rem;
    margin: 1rem 0 2rem 0;
    border-radius: var(--radius-small);
}

.right_selected_product {
    display: grid;
    align-content: space-between;
}



.selected_product_name {
    margin: 0 !important;
}

#required_workbench {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 1.0rem;
}

.ingredients {
    display: grid;
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    /*    grid-template-rows: 7.8rem 7.8rem;
        align-items: center;*/
    grid-gap: 1.3rem;
}

.control_container {
    display: grid;
    position: relative;
    grid-template-rows: 7.8rem 7.8rem;
    align-items: center;
    height: 17rem;
    grid-gap: 1rem;
}

.condition_report {
    grid-template-rows: auto !important;
    background-color: #c9392f;
    text-align: center;
    border-radius: var(--radius-medium);
    padding: 0 0.5rem;
}

.player_params li {
    display: inline-block;
    margin-left: 3.9rem;
}

.profession_head {
    color: #fff;
    font-weight: bold;
    padding: 1.5rem 0 !important;
    margin: 0 0 1.3rem;
}

.profession_head:before {
    content: ">";
    display: inline-block;
    font-size: 1.6rem;
    padding: 0 1rem;
    font-weight: lighter;
    transform: rotate(90deg);
}

/* NAV */

#nav_bar {
    width: 100%;
}

nav {
    border-bottom: 0.1rem solid #3c677b;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}
nav li {
    display: inline-block;
    margin: 0.4rem 0.8rem;
}

/* FORMAT */

.text_right {
    text-align: right !important;
}

.available_piece, .not_available_piece {

    border-radius: var(--radius-smallest);
    padding: 0.1rem 0.7rem;
    margin-left: auto;
}

.available_piece {
    background: #2cc158;
    color: white;
}

.not_available_piece {
    background: #3a394a;
    color: #79759b;
}

.right {
    float: right;
    margin-left: auto;
}

.left {
    float: left;
}

.no_href {
    display: block;
    text-decoration: none;
    padding: 0.8rem 0;
    background: #423f4f;
    border-radius: var(--radius-small);
}

/* TOOLTIP */
.tooltip .tooltiptext {
    display: block;
    visibility: hidden;
    background-color: #3e3d42;
    color: #fff;
    text-align: center;
    padding: 0.26rem 0;
    border-radius: var(--radius-small);
    position: absolute;
    bottom: -3.5rem;
    z-index: 2;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    padding: 0.8rem 1rem;
    width: fit-content;
    white-space: nowrap;
}

.red {
    color: #f44235 !important;
}

.low_alert {
    color: #dc9415;
}

.high_alert {
    color: red;
}

.msg_header {
    font-size: 3.2rem;
    color: #7a7d92;
}

.no_hits {
    width: fit-content;
    margin: auto;
    background: #2c2b39;
    padding: 2.6rem 4.7rem;
    border-radius: var(--radius-medium);
}

.no_hits span {
    display: block;
}

/* STATS */

#proficiency_stat_container {

    margin-bottom: 2.6rem;
}

.proficiency_stats {
    display: grid;
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 6.9rem;
    grid-gap: 2.6rem;
}

.proficiency_stats li {

    display: grid;
    position: relative;
    grid-template-columns: 25% auto;
    align-items: center;
    background: #2a2a2a;
    border-radius: var(--radius-large);
}

.proficiency_stats .icon {

    width: 100%;
    height: 100%;
    font-size: 5.8rem;
    text-align: center;
    vertical-align: middle;
    align-items: center;
    border-radius: 0.5rem 0 0 0.5rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.proficiency_stats .data {

    padding: 0 0.5rem;
}

.proficiency_stats .data span {

    display: block;
}

.proficiency_stats .name {
    color: #7a7d92;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.bar {
    position: relative;
    background: white;
    width: 100%;
    height: 0.5rem;
    border-radius: 0.26rem;
}

.progress {
    position: absolute;
    width: 0;
    height: 0.5rem;
    background-color: #b0173d;
    border-radius: 0.26rem;
}

#stat_screen_btn,
#craft_screen_btn,
#history_btn,
.ui_size_btn {
    display: inline-block;
    margin: 0 0.3rem;
    text-transform: uppercase;
}

#size_btn_container {
    display: inline-block;
}

#history_btn {
    margin: 0 0 0 2.6rem !important;
    font-size: 1.2rem;
    display: none;
}

/* PROGRESS SVG */
#current_craft {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(44, 43, 57);
    background-size: 85%;
    background-position: center 50%;
    background-repeat: no-repeat;
    position: absolute;
    width: 7rem;
    height: 7rem;
    left: 0;
    right: 0;
    margin: auto;
    top: -8.6rem;
    border-radius: 0.8rem;
}

.progress_base {
    fill: none;
    stroke: #595959;
    stroke-width: 0.26rem;
}

.progress_bar {
    fill: none;
    stroke: coral;
    stroke-width: 0.26rem;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
}

.progress_timer {

    position: absolute;
    font-size: 1.3rem;
    color: #a4a9c5;
    padding: 0.26rem;
    background: rgba(44, 43, 57, 0.8);
    border-radius: 0.5rem;
}

/* PLAYERINFO BAR */
.player_info::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    margin-right: 0.5rem;
    color: #5186a6;
    font-size: 1.2rem;
}

.weight_container, .labor_container, .cash  { color: #d9edf2;}
.weight_container::before {
    font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f5cd";
}

.labor_container::before {
    font-family: "Font Awesome 6 Free"; color: #874e3d; font-weight: 900; content: "\f6e3";
}

.cash::before {
    font-family: "Font Awesome 6 Free"; color: #ffdd59; font-weight: 900; content: "\f51e";
}