/* Roboto regular */
@font-face {
    font-family: "Roboto";
    src: url("/fonts/Roboto-Regular.eot");
    src: url("/fonts/Roboto-Regular.eot?#iefix") format('embedded-opentype'),
         url("/fonts/Roboto-Regular.woff2") format('woff2'),
         url("/fonts/Roboto-Regular.woff") format('woff'),
         url("/fonts/Roboto-Regular.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Roboto italic */
@font-face {
    font-family: "Roboto";
    src: url('/fonts/Roboto-Italic.eot');
    src: url('/fonts/Roboto-Italic.eot?#iefix') format('embedded-opentype'),
         url('/fonts/Roboto-Italic.woff2') format('woff2'),
         url('/fonts/Roboto-Italic.woff') format('woff'),
         url('/fonts/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* Roboto bold */
@font-face {
    font-family: "Roboto";
    src: url('/fonts/Roboto-Bold.eot');
    src: url('/fonts/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
         url('/fonts/Roboto-Bold.woff2') format('woff2'),
         url('/fonts/Roboto-Bold.woff') format('woff'),
         url('/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
/* ----- REMOVING BASIC STYLING ----- */
*,*:before,*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin:0;
  padding:0;
}
a {
    background-color: transparent;
    font-size: inherit;
    text-decoration: none;
    color: inherit;
}
a:active, a:hover {
    outline: 0;
}
img {
    max-width: 100%;display: block;border: 0;
}
button,input,optgroup,select,textarea {
    color: inherit;
    font: inherit;
    margin: 0;
    outline: 0;
    border: 0;
    background: 0;
}
textarea {
    resize:none;
}
legend {
    border: 0;
    padding: 0;
}
fieldset {
    border: 0;
    padding: 0;
}
ul, li {
  list-style-type: none;
  margin:0;
  padding:0;
}
[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
}
[type="radio"]{
    appearance: none;
    -webkit-appearance: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
   appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0;
}

/* Firefox */
input[type=number], input[type=text], textarea  {
  appearance: none;
  -moz-appearance: textfield;
  outline: none;
}

/* ----- COLORS SETUP ----- */
:root {
    --q-1: #B9B9B9;
    --q-2: #91FE02;
    --q-3: #00B5FF;
    --q-4: #CE43FC;
    --q-5: #FE9600;
    --q-6: #FF6000;
    --q-7: #E3C7A1;
    --q-8: #3CF2E6;
    --q-99: #fbbc04;
    --bg: #161616;
    --component_bg: #101010;
    --component_bg_light: #191919;
    --component_bg_highlight: #222222;
    --component_bg_dark: #0b0b0b;

    --primary: #eeeeee;
    --primary-dark:#0b0b0b; 
    
    --input: #222222;
    --border: #303030;

    --highlight: #fffbdd;
    --green: #34a853;
    --green-highlight: #51c76a;
    --red: #e22c2c;
    --red-highlight: #f54141;
    --purple: #ba00f9;
    --cyan: #00b0fa;
    --gold: #fbbc04;
    --blue: #0029c8;
    --orange: #c3630e;
}

[data-item-grade="1"]  {
   color: var(--q-1);
}
[data-item-grade="2"]  {
   color: var(--q-2);
}
[data-item-grade="3"]  {
   color: var(--q-3);
}
[data-item-grade="4"]  {
   color: var(--q-4);
}
[data-item-grade="5"]  {
   color: var(--q-5);
}
[data-item-grade="6"]  {
   color: var(--q-6);
}
[data-item-grade="7"]  {
   color: var(--q-7);
}
[data-item-grade="8"]  {
   color: var(--q-8);
}
[data-item-grade="99"]  {
    color: var(--q-99);
 }

[data-highlight="pve"]  {
    color: #3C78FF;
}
[data-highlight="pvp"]  {
    color: #FF4646;
}
[data-highlight="red"]  {
    color: #FF503E;
}
[data-highlight="blue"]  {
    color: #00CCFF;
}
[data-highlight="lime"]  {
    color: #D4FF88;
}
[data-highlight="green"]  {
    color: #B0F755;
}
[data-highlight="yellow"]  {
    color: #FFD200;
}

[data-type="cost"] .result-field {
    border-color: rgba(232, 33, 33, 0.4);
}

body{
    --scale: 1;
    --radius: 0.25em;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    background-color: var(--bg);
    color: var(--primary);
    font-family: "Roboto";
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    overflow-x: hidden;
}

body.hidden{
    overflow-y: hidden;
}

.paragraph{
    max-width: 65ch;
}
.caps{
    text-transform: uppercase;
}


/* ----- CONTAINERS ----- */
main, .footer{
    width: 100vw;
    max-width: 1440px;
    background-color: var(--component_bg);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: auto;
    margin-right: auto;
    padding: 2em;
    border-radius: var(--radius);
}
main{
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}
section{
    margin-bottom: 2em;
}
.footer{
    margin-top: auto;
}
.container{
    width: 100%;
}

/* ----- MAIN NAVIGATION ----- */
.main-nav {
    width: 100vw;
    z-index: 100;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background-color: var(--component_bg);
    border-radius: var(--radius);
}

.menu-wrapper {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1em 5em;
}

.nav-item-wrapper {
    display: block;
    position: absolute;
    width: 50vw;
    height: 100vh;
    top: 0;
    right: -50vw;
    padding: 4em 4em;
    border-radius: var(--radius);
    background-color: var(--component_bg_dark);
    transition: right 200ms ease;
}
.nav-item-wrapper.open {
    right: 0vw;
}
.nav-item-wrapper.hidden{
    display: none;
}
.main-nav-item{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--component_bg);
    max-width: 20em;
    margin-bottom: 2em;
}
.menu-button{
    display: flex;
    position: relative;
    align-items: center;
    height:2.1em;
    width: 2.3em;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
}
.menu-button-line{
    position: absolute;
    display: block;
    height: 0.3em;
    width: 100%; 
    background-color: var(--primary);
    transition: all 200ms ease;
}
.menu-text{
    text-transform: uppercase;
    position: absolute;
    left: -4em;
    user-select: none;
}
.menu-underlay{
    display: block;
    position: absolute;
    width: 100vw;
    height: 100vh;
    right: -100vw;
    background-color: var(--component_bg_dark);
    opacity: 0;
    transition: opacity 200ms ease;
}
.menu-underlay.open{
    right: 0vw;
    opacity: 0.5;
}
.menu-underlay.hidden{
        display: none;
}
.menu-button-line.one {
    top: 0em;
}
.menu-button-line.two {
    top: 0.9em;
}
.menu-button-line.three {
    top: 1.8em;
}
.open .menu-button-line.one {
    transform: translateY(0.9em) rotate(-45deg);
}
.open .menu-button-line.two {
    opacity: 0;
}
.open .menu-button-line.three{
    transform: translateY(-0.9em) rotate(45deg);
}
.nav-logo{
    flex-shrink: 0;
    height: 1.5em;
    min-width: 8.5em;
}
.main-nav-item{
    display: block;
    position: relative;
    padding: 1em 2.5em;
    font-weight: 700;
    border-bottom: 0.2em solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border 300ms ease;
    user-select: none;
}
.main-nav-item:hover, .main-nav-item.active{
    border-bottom: 0.2em solid var(--menu-color);
}
.main-nav-item:hover, .main-nav-item.active{
    text-shadow: 0 0 0.5em var(--menu-color);
    transition: text-shadow 0.2s ease;
}
[data-nav-status]::after{
    font-size: 11px;
    position: absolute;
    top:0.5em;
    right:1.5em;
    content: "";
    padding: 0.15em 0.5em;
    background-color: var(--red);
    border-radius: 0.5em;
    pointer-events: none;
    text-shadow: none;
}
[data-nav-status="soon"]::after{
    content: "SOON";
}
[data-nav-status="update"]::after{
    content: "INFO";
    background-color: var(--green);
    color: var(--primary-dark)
}
[data-nav-status="new"]::after{
    content: "NEW";
    background-color: var(--purple);
}
.welcome-main{
    --menu-color: var(--red)
}
.craft-calc{
    --menu-color: var(--purple)
}
.drop-calc{
    --menu-color: var(--cyan);
}
.raid-loot{
    --menu-color: var(--gold)
}
.weekly-gold{
    --menu-color: var(--green)
}
.cube-calc{
    --menu-color: var(--blue)
}
.mari-shop{
    --menu-color: var(--orange)
}


/* ----- FOOTER ----- */
.footer-grid{
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    grid-template-rows: auto;
}
.footer-logo{
    width: 4.5em;
}
.footer-left{
    display: flex;
    align-items: start;
}
.footer-middle{
    display: flex;
    grid-column: span 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.footer-right{
    display: flex;
    justify-content:right;
}
.footer-to-top-button{
    width: 2.5em;
    cursor: pointer;
}
.footer-discord-logo{
    width: 2.5em;
}
.footer-text{
    max-width: 65ch;
    text-align: center;
    margin-top: 1em;
}
.footer-text.small{
    font-size: 11px;
    opacity: 0.75;
}
.footer-text.legal{
    opacity: 0.25;
}
.footer-text:nth-child(3){
    margin-bottom: 1em;
}


/* ----- TAB SETUP ----- */
.tab-content{
    width: 100%;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 200ms ease, opacity 200ms ease;
}
.tab-content.active{
    grid-template-rows: 1fr;
    opacity: 100;
}
.tab-content-wrapper{
    overflow: hidden;
}

.tabs-container{
    display: flex;
    flex-wrap:wrap;
    margin-bottom: 0.5em;
}
.tab{
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0.75em 1.5em;
    min-width: 7em;
    font-weight: 700;
    background-color: var(--component_bg_dark);
    border-bottom: 0.2em solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    user-select: none;
    transition: border 200ms ease, color 200ms ease, text-shadow 200ms ease, background-color 200ms ease;
}
.tab::after{
    content: "";
    position:absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: radial-gradient(at bottom,var(--highlight), transparent 75%);
    opacity: 0;
    transition: opacity 300ms ease;
}
.tab.active{
    border-color: var(--highlight);
    text-shadow: 0 0 0.5em var(--highlight);
}
.tab.active::after, .tab:hover::after{
    opacity: 0.15;
}


/* ----- GRID SETUP ----- */
.flex{
    display: flex;
    flex-wrap:wrap;
    gap: clamp(1em, 2vw, 2.5em);;
}
.grid{
    display: grid;
    grid-row-gap: 1em;
    grid-column-gap: clamp(1em, 2vw, 2.5em);;
}

.four-grid{
    grid-template-rows: auto;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
    
}
.three-grid{
    grid-template-rows: auto;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
}
.two-grid, .home-grid{
    grid-template-rows: auto;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
}
.craft-details{
    display: grid;
    grid-row-gap:1em;
    grid-column-gap:clamp(1em, 2vw, 2.5em);;
    grid-template-rows: auto;
    grid-template-columns: 4.5fr 1.25fr 1.25fr 2.5fr 2fr 2fr;
}
.craft-details.hide-both{
    grid-template-columns: 4.5fr 1.5fr 2fr 2fr;
}
.craft-details.hide-cost{
    grid-template-columns: 4.5fr 1.5fr 2fr 2fr 2fr;
}
.craft-details.hide-energy{
    grid-template-columns: 4.5fr 1.5fr 1.5fr 2fr 2fr;
}

.raid-grid, .raid-value-grid{
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
}
.raid-item-grid{
    width: 100%;
    grid-template-rows: auto;
    grid-template-columns: 3fr 1fr 1fr;
}
.raid-item-grid .vlist-item{
    border-bottom: none;
}

.raid-details{
    display: grid;
    grid-row-gap:1em;
    grid-column-gap:clamp(1em, 2vw, 2.5em);;
    grid-template-rows: auto;
    grid-template-columns: 4.5fr 1.5fr;
}



/* ----- BASIC LIST SETUP ----- */
.vertical-list{
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: stretch;
    align-self: start;
    background-color: var(--component_bg);
    border: 0.2em solid var(--border);
    border-radius: var(--radius);
}
.vlist-item, .raid-header, .raid-footer {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: solid 0.1em var(--border);
}
.vlist-item:last-child, .craft-details>.vlist-item, .raid-details>.vlist-item{
    border-bottom: none;
}
.vertical-list > .vlist-item:nth-child(even), .cd-item:nth-child(even){
    background-color: var(--component_bg_light);
}


/* ----- GROUPS / GROUP TOGGLES ----- */
.group-toggle, .toggle-icon, .group-toggle .item-name, .toggle-status{
    display: none;
}
.group-toggle .item-name{
    user-select: none;
}
.group-toggle.toggle-open, .group-toggle.settings-active {
    display: flex;
    justify-content: space-between;
    height: calc(2em*var(--scale));
    padding: 0.25em 0em;
    border-top: solid 0.1em var(--border);
}
.group-toggle.settings-active {
    cursor: pointer;
}
.group-toggle.settings-active .toggle-status{
    display: block;
    height: calc(1.5em*var(--scale));
    width: calc(1.5em*var(--scale));
    margin: 0em 0.25em;
    border: solid 0.1em var(--red);
    border-radius: var(--radius);
    background: center/75% no-repeat url(../images/icons/inactive-cross.svg);
}
.group-toggle.settings-active .item-name{
    display: flex;
}
.group-toggle.settings-active .toggle-icon {
    display: block;
    height: calc(1.5em*var(--scale));
    width: calc(1.5em*var(--scale));
    margin-right: 0.25em;
    transform: scale(1,1);
    transition: 0.25s all;
}
.group-toggle.toggle-open .toggle-icon {
    transform: scale(-1,-1);
}

.group-toggle.toggle-open .toggle-status{
    border-color: var(--green);
    background: center/75% no-repeat url(../images/icons/active-circle.svg);
}
.toggle-item-group {
    display: none;
}
.toggle-item-group.toggle-open {
    display: block;
}

.toggle-item-group .cd-item{
    overflow: hidden;
}


/* ----- TUTORIAL SETUP ----- */
.tt-highlight{
    position: relative;
    z-index: 900;
    outline: 0.2em solid var(--highlight);
    box-shadow: 0 0 2em 0.5em var(--highlight);
}
.tt-overlay{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 800;
    width: 100vw;
    height: 100vh;
    background-color: var(--component_bg_dark);
    opacity: 0.5;
}
.tt-info-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    min-height: 20vh;
    width: 100vw;
    padding: 2em 2em;
    background-color: var(--component_bg_dark);
    border-top: 0.2em solid var(--border);
}
.tt-info-steps-wrapper{
    position: relative;
    max-width: 70ch;
    display: flex;
    flex-direction: column;
}

.tt-button {
    padding: 0.5em 1em;
    margin-top: 0.5em;
    flex: 1;
    display:flex;
    color: var(--green);
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    border: 0.2em solid var(--border);
    background-color: var(--component_bg_light);
    border-radius: var(--radius);
    transition: background-color 200ms ease;
    cursor:pointer;
    user-select: none;
}
.tt-button.end{
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.35em 0.6em;
    color: var(--red);
}
.tt-start-button{
    display: block;
    position: relative;
    padding: 0.5em 1em;
    margin-bottom: 0.5em;
    color: var(--gold);
    text-align: center;
    font-weight: 700;
    border: 0.2em solid var(--gold);
    background-color: var(--component_bg_light);
    border-radius: var(--radius);
    transition: background-color 200ms ease;
    cursor:pointer;
}
.tt-start-button.hidden{
    display: none;
}
.tt-button:hover, .tt-start-button:hover{
    background-color: var(--border);
}
.tt-step-number{
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8em;
}


/* ----- WELCOME SCREEN ----- */
.welcome-container{
    padding: 2em;
    margin-bottom: 1em;
    background-color: var(--component_bg_dark);
}
.welcome-logo{
    flex-shrink: 0;
    height: 7.5em;
    margin-right: 4em;
}
.welcome-link{
    font-size: 1.2em;
    color: var(--gold);
    text-decoration:underline;
}
h1, .h1{
    font-size: 1.5em;
    font-weight: 700;
}
h2, .h2{
    font-size: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 700;
}
h3, .h3{
    font-size: 1em;
    margin-bottom: 0.25em;
    margin-top: 1.5em;
    font-weight: 700;
}
h3:first-child{
    margin-top: 0;
}
.notes{
    max-width: 85ch;
}
.notes::before{
    content:"●";
    position: relative;
    font-size: 0.8em;
    left: -0.5ch;
    margin-left: -1ch;
}
.update-header{
    display: flex;
    width: 100%;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 0.5em;
    justify-content:space-between;
    align-items: baseline;
}
.update-version{
    white-space: nowrap;
}
.dotted-line{
    width: 100%;
    height: 0.2em;
    margin: 0 1em 0 1em;
    border-bottom: 0.2em dotted var(--primary);
}

.home-item{
    display: flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    position:relative;
    width: 100%;
    height: 7em;
    padding: 1em 2em;
    font-size: 1.25em;
    font-weight: 700;
    border-bottom: 0.2em solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border 300ms ease;
    user-select: none;  
}
.inactive {
    opacity: 0.5;
    pointer-events: none;
}
.home-item:hover{
    border-bottom: 0.2em solid var(--menu-color);
    text-shadow: 0 0 0.5em var(--menu-color);
    transition: text-shadow 0.2s ease;
}
.home-item.craft-calc{
    background: url('../images/home/cc-bg.png');
    background-repeat:no-repeat;
    background-position: bottom right;
    background-size:cover;
}
.home-item.drop-calc{
    background: url('../images/home/dc-bg.png');
    background-repeat:no-repeat;
    background-position: bottom right;
    background-size:cover;
}
.home-item.raid-loot{
    background: url('../images/home/rl-bg.png');
    background-repeat:no-repeat;
    background-position: bottom right;
    background-size:cover;
}
.home-item.weekly-gold{
    background: url('../images/home/wg-bg.png');
    background-repeat:no-repeat;
    background-position: bottom right;
    background-size:cover;
}
.home-item.cube-calc{
    background: url('../images/home/ec-bg.png');
    background-repeat:no-repeat;
    background-position: bottom right;
    background-size:cover;
}
.home-item.mari-shop{
    background: url('../images/home/ms-bg.png');
    background-repeat:no-repeat;
    background-position: bottom right;
    background-size:cover;
}


/* .main-nav-item{
    display: block;
    position: relative;
    padding: 1em 2.5em;
    font-weight: 700;
    border-bottom: 0.2em solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border 300ms ease;
    user-select: none;
}
.main-nav-item:hover, .main-nav-item.active{
    border-bottom: 0.2em solid var(--menu-color);
}
.main-nav-item:hover, .main-nav-item.active{
    text-shadow: 0 0 0.5em var(--menu-color);
    transition: text-shadow 0.2s ease;
} */


/* ----- BUTTONS ----- */
.settings-button {
    height:calc(2.5em*var(--scale));
    width: calc(100% - 0.5em);
    display:flex;
    color: var(--green);
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    margin: 0.25em;
    background-color: var(--component_bg);
    border: 0.2em solid var(--green);
    border-radius: var(--radius);
    cursor:pointer;
}
.settings-button:hover{
    background-color: var(--component_bg_light);
    color: var(--green-highlight);
    border-color: var(--green-highlight);
}
.settings-button.active{
    color: var(--primary-dark);
    background-color: var(--green);
}
.settings-button.active:hover{
    color: var(--primary-dark);
    background-color: var(--green-highlight);
}
.donate-button{
    padding: 0.7em 1.4em;
    font-weight: 700;
    color: var(--primary-dark);
    background-color: var(--green);
    border-radius: var(--radius);
    transition: transform 200ms ease;
}
.donate-button:hover{
    background-color: var(--green-highlight);
    transform: translateY(-0.2em);
}



/* ----- ICONS ----- */
.icon{
    --top:0;
    --left:0;
    width: calc(2em*var(--scale));
    height: calc(2em*var(--scale));
    background-size: calc(32em*var(--scale)) calc(32em*var(--scale));
    background-position: top calc(var(--top)*(-2em*var(--scale))) left calc(var(--left)*(-2em*var(--scale)));
    pointer-events:none;
    flex-shrink: 0;
}
.material-icon {
    background-image: url('../images/sprite_lifeskill20241020.png');
}
.item-icon {
    background-image: url('../images/sprite_items_20241020.png');
}
.small-icon{
    width: calc(1.6em*var(--scale));
    height: calc(1.6em*var(--scale));
    background-size: calc(1.6em*var(--scale)) calc(1.6em*var(--scale));
    background-position: center center; 
    background-repeat: no-repeat;
    margin: auto;
    flex-shrink: 0;
}
.vlist-item .small-icon{
    margin: auto 0px;
}
.money-icon {
    background-image: url('../images/icons/gold.png');
}
.energy-icon {
    width: calc(1.56em*var(--scale));
    height: calc(1.2em*var(--scale));
    background-size: calc(1.56em*var(--scale)) calc(1.2em*var(--scale));
    background-image: url('../images/icons/sh_energy_icon.png');
    margin: auto 0px;
    flex-shrink: 0;
}
.small-icon.fish-icon {
    background-image: url('../images/icons/fish_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.small-icon.relic-icon {
    background-image: url('../images/icons/relic_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.small-icon.meat-icon {
    background-image: url('../images/icons/meat_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.small-icon.abidos-fish-icon {
    background-image: url('../images/icons/abidos_fish_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.small-icon.abidos-relic-icon {
    background-image: url('../images/icons/abidos_relic_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.small-icon.abidos-meat-icon {
    background-image: url('../images/icons/abidos_meat_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.small-icon.abidos-timber-icon {
    background-image: url('../images/icons/abidos_timber_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.small-icon.abidos-flower-icon {
    background-image: url('../images/icons/abidos_flower_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.small-icon.abidos-ore-icon {
    background-image: url('../images/icons/abidos_ore_icon.png');
    margin-left:-0.25em;
    margin-right:0.5em;
}
.fourplayer-icon {
    width: 2em;
    height: calc(1.6em*var(--scale));
    background-size: calc(2em*var(--scale)) calc(0.8em*var(--scale));
    background-image: url('../images/icons/fourplayer.svg');
    background-position: center center; 
    background-repeat: no-repeat;
    margin: auto;
    flex-shrink: 0;
}
.eightplayer-icon {
    width: 4em;
    height: calc(1.6em*var(--scale));
    background-size: calc(4em*var(--scale)) calc(0.88em*var(--scale));
    background-image: url('../images/icons/eightplayer.svg');
    background-position: center center; 
    background-repeat: no-repeat;
    margin: auto;
    flex-shrink: 0;
}
.sixteenplayer-icon {
    width: 6em;
    height: calc(1.6em*var(--scale));
    background-size: calc(6em*var(--scale)) calc(0.88em*var(--scale));
    background-image: url('../images/icons/sixteenplayer.svg');
    background-position: center center; 
    background-repeat: no-repeat;
    margin: auto;
    flex-shrink: 0;
}
.thirtyplayer-icon {    
    background-image: url('../images/icons/compass.svg');
}
.highmargin-icon {
    width: calc(2em*var(--scale));
    height: calc(2em*var(--scale));
    margin: auto;
    margin-bottom:0.5em;
    background-size: calc(2em*var(--scale)) calc(2em*var(--scale));
    background-image: url('../images/icons/highmargin-icon.png');
}


/* ----- TEXT STYLING / NAME STYLING ----- */
.item-name {
    flex:1;
    display:flex;
    align-items: center;
    font-weight: 700;
    margin-left: 0.5em;
    white-space: nowrap;
}
.red{
    color: var(--red);
}



/* ----- INPUT FIELDS / CHECKBOXES ----- */
 .result-field, .description-field {
    display: block;
    min-width:6em;
    width: 100%;
    height:calc(2em*var(--scale));
    display:flex;
    color: inherit;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    border-radius: var(--radius);
}
.result-field{
    background-color: var(--component_bg_dark);
    border: solid 0.1em var(--border);
}

.user-input, .color-input {
    position: relative;
    width: 4em;
    min-height:calc(2em*var(--scale));
    background-color: var(--input);
    display:flex;
    color: var(--primary);
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    border: 0.1em solid var(--input);
    border-radius: var(--radius);
    transition: border 200ms ease, color 200ms ease;
}
.user-input.fixed{
    background-color: var(--component_bg_dark)
}
.color-input{
    width:6em;
}
.user-input:focus, .copy-button:focus {
    color: var(--highlight);
    border: 0.1em solid var(--highlight);
    outline: 0;
}
.input-notif{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right:4em;
    top:0em;
    height: 2em;
    width: 4em;
    background-color: var(--bg);
    color: var(--primary);
    font-size: 1em;
    font-weight: 700;
    border: 0.1em solid var(--red);
    border-radius: var(--radius);
    white-space:nowrap;
    pointer-events: none;
}
.input-notif.mats{
    width: 2em;
    border-color: var(--border);
}
.checkbox {
    width: 1.5rem;
    height: 1.5rem;
    border: 0.2em solid var(--green);
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
  }
.checkbox:hover{
    border-color: var(--green-highlight);
}
  
.checkbox:checked {
    background-color: var(--green);
    background-image: url("/images/icons/check-mark.svg");
    background-position: center;
    background-repeat: no-repeat;
}
.checkbox:checked:hover{
    background-color: var(--green-highlight);
}
.checkbox:focus{
    box-shadow: 0 0 10px var(--green);
}


/* ----- CRAFTING CALCULATOR LIST SETUP ----- */
.cd-item {
    border-top: solid 0.1em var(--border);
    padding: 0.1em 0px;
}
.list-header, .raid-list-header{
    position: sticky;
    z-index: 80;
    top: 0px;
    padding: 0.5em 0;
    background-color: var(--component_bg);
    border: 0.1em solid var(--border);
    border-radius: var(--radius);
}

/* ----- RAID LOOT LIST SETUP */
.raid-header{
    background-color: var(--component_bg_dark);
    border-width: 0.2em;
}
.raid-footer{
    border-bottom: 0;
    border-top: solid 0.2em var(--border);
}
.raid-overview {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: calc(4em*var(--scale));
    background-color: var(--component_bg_light);
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    margin-bottom: 1em;
    transition: background-color 200ms ease;
}
.raid-overview.active {
    background-color: var(--component_bg_highlight);
}
.raid-overview.dark {
    background-color: var(--component_bg_dark);
}
.raid-single-overview {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: calc(2.5em*var(--scale));
    background-color: var(--component_bg_light);
    margin-bottom: 1em;
}
.raid-overview.argos{
    background-image: url(/images/headers/argos.png);
}
.raid-overview.valtan{
    background-image: url(/images/headers/valtan.png);
}
.raid-overview.vykas{
    background-image: url(/images/headers/vykas.png);
}
.raid-overview.kakul-saydon{
    background-image: url(/images/headers/kakul-saydon.png);
}
.raid-overview.brelshaza{
    background-image: url(/images/headers/brelshaza.png);
}
.raid-overview.kayangel{
    background-image: url(/images/headers/kayangel.png);
}
.raid-overview.akkan{
    background-image: url(/images/headers/akkan.png);
}


.raid-header-name{
    font-size: 1.5em;
    font-weight: 700;
    user-select: none;
    text-shadow: 0em 0.1em 0.5em var(--component_bg_dark);
}
.raid-name{
    font-size: 1em;
    font-weight: 700;
    user-select: none;
    text-shadow: 0em 0.1em 0.5em var(--component_bg_dark);
}
.raid-toggle{
    position: absolute;
    right: 1em;
    display: block;
    height: calc(1.5em*var(--scale));
    width: calc(1.5em*var(--scale));
    margin-right: 0.25em;
    transform: scale(1,1);
    transition: 0.25s all;
}
.raid-overview.active .raid-toggle, .raid-single-overview.active .raid-toggle{
    transform: scale(-1,-1);
}

.raid-grid.active, .raid-value-grid.active{
    grid-template-rows: auto;
}

.raid-content{
    width: 100%;
    margin-bottom: 0em;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 200ms ease, opacity 200ms ease;
}
.raid-content.active{
    margin-bottom: 2em;
    grid-template-rows: 1fr;
    opacity: 100;
}
.raid-content-wrapper{
    overflow: hidden;
}



/* ----- DROP CALCULATOR LIST SETUP ----- */
.vertical-list.drop-calculator{
    height: 100%;
    width: 100%;
    padding: 1.5em;
    align-content: stretch;
    text-align: center;
}
.drop-calculator .result-field, .drop-calculator .user-input{
    font-size: 1.5em;
}
.drop-calculator .result-field.profit{
    border-color: var(--green);
}

.copy-button {
    display: block;
    padding-left: 1em;
    padding-right: 1em;
    display:flex;
    color: inherit;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    background-color: var(--input);
    border-radius: var(--radius);
    transition: background-color 200ms ease;
}
.copy-button:hover {
    background-color: var(--border);
}
.fourp{
    border-color: #2e405f;
}
.fourp .seperator{
    background-color: #2e405f;
}
.eightp{
    border-color: #654b2f;
}
.eightp .seperator{
    background-color: #654b2f;
}
.thirtyp{
    border-color: #612828;
}
.thirtyp .seperator{
    background-color: #612828;
}

/* ----- LEGAL ----- */
.legal .paragraph{
    max-width: 90ch;
}
.legal .welcome-container{
    padding: 1em 2em;
}
.legal .notes {
    margin-left: 2ch;
}
.legal .notes::before{
    left: -1ch;
    margin-left: -1ch;
    margin-right: 0ch;
}
.text-link{
    color: var(--gold);
}

/* ----- COMBO CLASSES ----- */
.full-width{
    width: 100%;
}
.flex-horizontal{
    display: flex;
    flex-wrap: nowrap;
    justify-content:center;
}
.seperator{
    width: 100%;
    background-color: var(--border);
    height: 0.1em;
    margin: 1.5em 0;
}
.bold{
    font-weight: 700;
}
.margin-left-1{
    margin-left: 1em;
}

/* ----- GREED SLIDER ----- */
.greed-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 90%;
    height: 6px;
    border-radius: 3px;
    background: var(--component_bg_light);
    outline: none;
    margin-top: 15px;
    cursor: pointer;
}

.greed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    transition: background 0.2s ease;
}

.greed-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
}

.greed-slider::-webkit-slider-thumb:hover {
    background: var(--green-highlight);
}

.greed-slider::-moz-range-thumb:hover {
    background: var(--green-highlight);
}

.greed-slider:focus {
    outline: none;
}

.greed-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 10px var(--green);
}

.greed-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 10px var(--green);
}

  @media only screen and (max-width: 1600px) {
    .main-nav-item{
        padding: 1em 2em;
    }
    
  }
  @media only screen and (max-width: 1440px) {
    
    .four-grid{
        grid-template-rows: auto;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
    }
    .menu-wrapper {
        padding: 1em 2em;
    }
  }
  @media only screen and (max-width: 1200px) {
    
    .four-grid.settings, .three-grid{
        grid-template-rows: auto;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }
    .raid-value-grid{
        grid-template-rows: auto;
        grid-template-columns: 1fr;
    }
    
    .result-field{
        min-width: 4em;
    }

  }
  @media only screen and (max-width: 981px) {
    
    main{
        padding: 2em 3em 2em 2em;
    }
    .four-grid{
        grid-template-rows: auto;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }
    .two-grid{
        grid-template-rows: auto;
        grid-template-columns: 1fr;
    }
    .nav-item-wrapper {
        width: 66vw;
        right: -66vw;
    }
    .tabs-container{
        align-items: stretch;
    }
    .tab{
        text-align: center;
    }
    
    .cd-item{
        padding: 2em 1em 2em 1em;
    }
    .craft-details, .raid-details{
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: auto;
        gap: 1em 2em;
    }
    .raid-item-grid{
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: auto;
        gap: 0.25em 2em;
        padding: 0.5em;
    }

    .list-header, .raid-header [data-type="raid-hide"], .raid-list-header [data-type="raid-hide"]{
        display:none;
    }
    [data-type="name"]{
        grid-column-start: 1;
        grid-column: span 6;
        order: 0;
    }
    [data-type="cost"]{
        grid-column-start: 1;
        grid-column: span 3;
        order: 4;
    }
    [data-type="profit"]{
        grid-column-start: 1;
        grid-column: span 3;
        order: 2;
    }
    [data-type="perhour"]{
        grid-column-start: 3;
        grid-column: span 3;
        order: 3;
    }
    [data-type="fullinventory"]{
        grid-column-start: 1;
        grid-column: span 6;
        order: 6;
    }
    [data-type="energy"]{
        grid-column-start: 4;
        grid-column: span 3;
        order: 5;
    }
    [data-type="amount"]{
        grid-column-start: 1;
        grid-column: span 3;
        order: 2;
    }
    [data-type="value"]{
        grid-column-start: 4;
        grid-column: span 3;
        order: 3;
    }
    [data-type="totalvalue"]{
        grid-column-start: 1;
        grid-column: span 6;
        order: 2;
    }
    [data-type="cost"]:before ,[data-type="profit"]:before,  [data-type="perhour"]:before, [data-type="fullinventory"]:before, [data-type="energy"]:before, [data-type="amount"]:before{
        font-weight: 700;
        margin-top: auto;
        margin-bottom: auto;
        margin-right: 0.5em;
        font-size: 0.75em;
        white-space: nowrap;
    }
    [data-type="cost"]:before{
        content:"COST:";
    }
    [data-type="profit"]:before{
        content:"PROFIT:";
    }
    [data-type="perhour"]:before{
        content:"PER HOUR:";
    }
    [data-type="fullinventory"]:before{
        content:"FULL (30 CRAFTS):";
    }
    [data-type="energy"]:before{
        content:"ENERGY COST:";
    }
    [data-type="amount"]:before{
        content:"AMOUNT:";
    }

    .craft-details.hide-both, .craft-details.hide-energy, .craft-details.hide-cost{
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
    .craft-details.hide-both [data-type="fullinventory"]{
        grid-column-start: 1;
        grid-column: span 6;
        order: 4;
    }
    .craft-details.hide-cost [data-type="energy"]{
        grid-column-start: 4;
        grid-column: span 3;
        order: 6;
    }
    .craft-details.hide-cost [data-type="fullinventory"] {
        grid-column-start: 1;
        grid-column: span 3;
        order: 5;
    }
    .craft-details.hide-energy [data-type="cost"]{
        grid-column-start: 4;
        grid-column: span 3;
        order: 6;
    }
    .craft-details.hide-energy [data-type="fullinventory"]{
        grid-column-start: 1;
        grid-column: span 3;
        order: 5;
    }
    .raid-header-name{
        font-size: 1.2em;
    }
    .raid-toggle{
        height: calc(1.2em*var(--scale));
        width: calc(1.2em*var(--scale));
    }
  }
  @media only screen and (max-width: 850px) {
    .four-grid.settings, .three-grid, .raid-grid{
        grid-template-rows: auto;
        grid-template-columns: 1fr;
    }
    .cd-item{
        padding: 1em 1em;
    }
    .footer-grid{
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }
    .footer-logo{
        width: 3em;
    }
    .footer-left{
        order: 1;
    }
    .footer-right{
        order: 2;
    }
    .footer-middle{
        margin-top: 2em;
        font-size: 12px;
        order:3;
    }
    .footer-to-top-button{
        width: 2em;
    }
    .footer-discord-logo{
        width: 3em;
    }
    .footer-text.small{
        font-size: 10px;
    }

  }
  @media only screen and (max-width: 576px) {
    main{
        padding: 2em 1em;
    }
    .four-grid{
        grid-template-rows: auto;
        grid-template-columns: 1fr;
    }
    .nav-item-wrapper {
        width: 100vw;
        right: -100vw;
    }
    [data-type="cost"]:before{
        content:"C:";
    }
    [data-type="profit"]:before{
        content:"P:";
    }
    [data-type="perhour"]:before{
        content:"PH:";
    }
    [data-type="fullinventory"]:before{
        content:"(30):";
    }
    [data-type="energy"]:before{
        content:"EC:";
    }
    [data-type="amount"]:before{
        content:"X:";
    }
    .vertical-list.drop-calculator{
        padding: 1em 2em;
    }
    .drop-calculator .result-field, .drop-calculator .user-input {
        font-size: 1.2em;
    }
    .item-name{
        white-space:normal;
    }
    .welcome-container, .legal .welcome-container{
        padding: 1em;
    }
    .copy-button{
        padding-left: 2.5em;
        padding-right: 2.5em;
    }
    .seperator{
        margin: 1em 0;
    }
    .raid-overview {
        height: calc(3em*var(--scale));
    }
    .raid-name{
        font-size: 1em;
    }
    .raid-toggle{
        height: calc(1em*var(--scale));
        width: calc(1em*var(--scale));
    }
  }
  @media only screen and (max-width: 481px){
    body{
        font-size: 14px;
    }
    .home-grid{
        grid-template-rows: auto;
        grid-template-columns: 1fr;
    }
  }

/* Bulk Crafting Calculator Styles */
.bulk-crafting-calculator {
    margin: 2em auto;
    background-color: var(--component_bg);
    border-radius: var(--radius);
}

.bulk-crafting-controls {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 1em;
    flex-wrap: wrap;
}
.bulk-item-selector {
    flex: 1;
    max-width: 35em;

}

.bulk-item-dropdown {
    min-width: 200px;
    padding: 0.5em;
    position: relative;
    background-color: var(--component_bg_dark);
    color: inherit;
    border: 0.1em solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
}

.bulk-item-selected {
    display: flex;
    align-items: center;
}

.bulk-item-selected:after {
    content: "";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    height: calc(1.5em*var(--scale));
    width: calc(1.5em*var(--scale));
    background-image: url("../images/icons/toggle-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.bulk-item-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 30vh;
    overflow-y: auto;
    background-color: var(--component_bg_dark);
    border: 0.1em solid var(--border);
    border-radius: var(--radius);
    z-index: 1000;
    display: none;
}

.bulk-item-dropdown.open .bulk-item-options {
    display: block;
}

.bulk-item-option {
    padding: 0.5em;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 0.1em solid var(--border);
}

.bulk-item-option:last-child {
    border-bottom: none;
}

.bulk-item-option:hover {
    background-color: var(--component_bg_light);
}

.bulk-quantity-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-crafting-results {
    display: none;
    margin-top: 20px;
}

.bulk-crafting-results.active {
    display: block;
}

.bulk-materials-container {
    margin-bottom: 20px;
}

.bulk-materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bulk-material-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: var(--component_bg_dark);
    border-radius: var(--radius);
}

.bulk-material-item.flex-width {
    width: auto;
    min-width: fit-content;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.bulk-material-quantity {
    font-weight: 700;
    margin-left: 0.5em;
    color: var(--primary);
}

.bulk-summary-container {
    display: flex;
    gap: 1em;
    margin-top: 1em;
}

.bulk-summary {
    background-color: var(--component_bg_dark);
    min-width: 10em;
    border-radius: var(--radius);
    padding: 1em;
    text-align: left;
    display: flex;
    flex-direction: column;
    font-weight: 700;
}

.bulk-summary .small-icon{
    margin-left: 0;
    margin-right: 0.5em;
}

.bulk-cost, .bulk-profit {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bulk-value-container {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-left: 0;
}


@media only screen and (max-width: 768px) {
    .bulk-crafting-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bulk-item-selector, .bulk-quantity-container {
        width: 80%;
    }
    
    .bulk-summary {
        flex-direction: column;
        gap: 15px;
        min-width: auto;
    }
}