:root {
    --background-color: #333;
    --header-color: #777;
    --sidebar-color: rgba(85,85,85,0.7);
    --header-hover-color: #EEE;
    --dark-text-color: #000;
    --light-text-color: #FFF;
    --purple-accent-color: #8A2BE2;
    --blue-accent-color: #03a9f4;
    --red-accent-color: #f44336;
}

body {
    margin: 0;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', 'sans-serif';
    background-color: VAR(--background-color);
    color: VAR(--light-text-color); /* This is just text color. CSS fucking sucks*/
    text-align: left;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

form {
        /*flexbox*/
        display: flex;
        flex-direction: column;
        align-items: center;
}

input, button, select, .accordionExpansion, .image-dropdown, .materialCard, .templateCard, .learnMoreCard, .partCard, .orderCard, .aButton, .calcCard, .calcbox {
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    padding: 5px;
    margin: 10px;
    border-radius: 10px;
    border: none;
    box-shadow: 0px 0px 10px #000;
    font-size: 1em;
    text-align: center;
    color:#000;
    min-height: 25px;

}

input, select {
    margin-top: 0px;
    margin-bottom: 15px;
}
output {
    background-color: #bee6fa;
    padding: 5px;
    margin: 10px;
    border-radius: 10px;
    border: none;
    box-shadow: 0px 0px 10px #000;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    color:#000;
    min-width: 200px;
    margin-top: 0px;
    margin-bottom: 15px;
}

.qtyInput {
    width: 150px;
    align-self: center;
}

button, .aButton {
    background-color: #EEE;
    max-height: 35px;
}

button:hover, .aButton {
    cursor:pointer;
    background-color: #CCC;
}

.blueLinkButton, .redLinkButton {
    background-color: transparent;
    box-shadow: none;
    color: VAR(--blue-accent-color);
    padding: 0;
    margin: 5px;
}

.redLinkButton {
    color: VAR(--red-accent-color);
}
.blueLinkButton:hover, .redLinkButton:hover{
    background-color: transparent;
}

.trash-btn {
  display: inline-grid;
  place-items: center;
  border: none;
  padding: 0;
  background-color: transparent;
    box-shadow: none;
    margin:0;

}
.trash-img {
  width: auto;
  height: 20px;
}

.classicCheckbox {
    appearance: revert;
    -webkit-appearance: revert;
    box-shadow: none;
}
/*    border-radius: 0.15em;
    width: 1.15em;
    height: 1.15em;
    padding: 0;
    display: grid;
    place-content: center;
}

.classicCheckbox::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
}

.classicCheckbox:checked::before {
  transform: scale(1);
}*/


/******************* header styles *******************/
h1 {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    margin-bottom:10px;
}

h3 {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}
h4 {
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px;
}
h5 {
    font-size: 0.9em;
}

/* custom header styles */
.section1 h1 {
    text-align: right;
    padding: 5vw;
}

a {
    cursor: pointer;
    text-decoration: none;
}
.blueLink {
    color: VAR(--blue-accent-color);
}

label {
    margin-left: 10px;
    color:#000;
    
}
p, ol, ul {
    user-select:text;
    margin-bottom:10px;
    margin-left:10px;
    margin-right:10px;
}
ol {
    list-style-type: decimal;
    padding-left: 30px;
}

ol ol {
    list-style-type: upper-alpha;
}
ul {
    list-style-type: circle;
    padding-left: 30px;
}


hr {
    display: flex;
    align-self: center;
    width: 90%;
    height: 1px;
    background-color: #CCC;
    margin: 5px;
}


.centeredDiv {
    display:flex;
    justify-content: center;
    margin-bottom: 10px;
}
.spacedCenteredDiv {
    display:flex;
    justify-content: space-evenly;
    margin-bottom: 10px;
}




/*nav bar tutorial https://www.youtube.com/watch?v=U8smiWQ8Seg*/

.header-main {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: VAR(--header-color);
    position: absolute;
    z-index: 998;
    height:75px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
    
}
.corner-logo {
    height: 65px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    font-weight: bold;
    padding-left:5px;
}
.corner-logo img {
    height: 100%;
    object-fit: cover;
}


.topnav {
    display: flex;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    overflow:hidden;
}

.topnav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin:0;
}

.topnav ul li {
    height: 100%;
}

.topnav ul li a {
    height: 100%;
    padding: 0px 10px;
    text-decoration: none;
    text-wrap: nowrap;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.topnav ul li:hover {
    background-color: VAR(--header-hover-color);
    color: VAR(--dark-text-color); /*this is just text color*/
    transition: all ease-in-out 300ms;
}


.topnav .sidebar {
    position: fixed;
    top:0;
    right: 0;
    height:100vh;
    width: 250px;
    z-index: 999;
    background-color: VAR(--sidebar-color);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.topnav .sidebar li {
    width: 100%
}
.topnav .sidebar a {
    width: 100%
}
.header-block { 
    /*shouldn't be visible - this just sits behind the header to space out other content*/
    height: 75px;
    width: 100%;
    background-color: #F0F;
}

.topnav .hamburger {
    display: none;
    font-size: 1.5rem;
    height: 100%;
    padding: 0px 10px;
    text-decoration: none;
    align-items: center;
    font-weight: bold;
}
.header-main .sidebar .closeSidebar {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: auto;
}

.header-main.collapsed .nav-list {
    display:none;
}
.header-main.collapsed .hamburger {
    display:flex;
}

.cartButton {
    height: 100%;
    padding: 0px 10px;
    text-decoration: none;
    align-items: center;
    display: flex;
    margin-right: 15px;
}
.cartButton img{
    height: 1.5em;
}
.cartButton img {
    filter: invert(100%);
}
.cartButton:hover img{
    filter: invert(0%);
    transition: all ease-in-out 300ms;
}
.cartButton:hover, .hamburger:hover {
    background-color: VAR(--header-hover-color);
    color: VAR(--dark-text-color); /*this is just text color*/
    transition: all ease-in-out 300ms;
}

@media(max-width: 400px) {
    .topnav .sidebar {
        width: 100%;
    }
}








.button,
.dropdown,
.numberInput, 
.integerInput {
    min-width: 200px;
    font: sans-serif;
}
.numberInput, 
.integerInput,
.dropdown {
    padding: 0px 0px 0px 15px;
}
.numberInput::-webkit-outer-spin-button,
.numberInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin:0;
}
.dropdown {
    -webkit-appearance: menulist;
    appearance: menu;
}







.InMm { 
    display: -webkit-flex; display: flex; 
    justify-content: center;
}


input.invalid {
    background-color: #ffaaaa;
}



.accordion {
    display:flex;
    flex-direction: column;
}
.accordionExpansion {
    display:flex;
    flex-direction: column;
    /*max-width: 400px;*/
}
.accordionExpansion .gearEntryLabel{
    display:flex;
    flex-direction: column;
}
.accordionExpansion .gearEntryLabel label{
    font-size: 0.7rem;
    max-width: 300px;
    word-wrap: normal;
}
.accordionExpansion .deleteLink{
    background-color: inherit;
    padding: 0px;
    margin: 0px;
    border-radius: 0px;
    border: none;
    box-shadow: none;
    font-size: 0.8em;
    text-align: center;
    color:#00F;

}



.accordionExpandedContent div {
    display:flex;
    flex-direction: row;
}

.accordionExpandedContent {
    display:flex;
    flex-direction: column;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
    /*transition-behavior: allow-discrete;*/
    
}

.accordionExpandedContent .unitToggler {
    display:flex;
    justify-content: center;
}

@supports (height: calc-size(auto, size)) {
    .accordionExpansion.active .accordionExpandedContent {
        height: calc-size(auto, size);
    }
}

@supports not (height: calc-size(auto, size)) {
    .accordionExpansion.active .accordionExpandedContent {
        height: auto;
    }
}






.label-with-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip {
  display: inline-block;
  margin-left: 5px;
  color: #007BFF;
  font-weight: bold;
  position: relative;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background-color: #f9f9f9;
  color: #000;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1001;
  top: 20px;
  right: -40px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s;
  font-size: 0.9em;
  /*display: flex;
  flex-direction: column;*/
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text a {
    display: block;
  margin-top: 8px;        /* optional spacing */
  color: #007BFF;         /* optional styling */
}

.image-dropdown {
    position: relative;
    z-index: 1000;
    list-style: none;
    display: block;
    margin-top:0;
}

.image-dropdown li {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    cursor: pointer;
    justify-content: space-around;
}

.image-dropdown li img {
    max-height: 85px;
    margin-right: 8px;
    width: auto;
}

.image-dropdown li:hover {
    background-color: #f0f0f0;
}
#PB_gear_addGear {
    margin-bottom: 0;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal form {
    display: flex;
    flex-direction: column;
}

.modalContent {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    width:fit-content;
    height: fit-content;
    max-width: 700px;
    color: #000;
    max-height: 80vh; /* important: restrict modal height */
    overflow-y: auto; /* scroll modal content if too tall */
}



/**/
.modalContent div {
    display: flex;
    flex-direction: row;
}
/**/
.modalContent div div {
    color: #000;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.legend {
    fill: white;
}


.materialCard {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    cursor: pointer;
    overflow:hidden;
}
.materialCard img {
    max-height: 85px;
}
.materialCard span {
    margin: 10px;
}
.materialCard:hover {
    background-color: VAR(--header-hover-color);
}

.learnMoreCard {
    display: flex;
    flex-direction: column;
    padding: 10px;
    cursor: pointer;
    
}

.learnMoreCard p {
    font-size: 0.9rem;
    max-width: 700px;
    word-wrap: normal;
    text-align: left;
}


.textWall {
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

.textWall h2{
    text-align: center;
}

.textWall p, ol li, ul li {
    margin-bottom: 15px;
    margin-top: 15px;
    text-align: left;
}

.textWall a {
    color:VAR(--blue-accent-color);
    text-decoration: underline;
}
.listNoSpace li{
    margin:0;
}
.smallText {
    font-size: 0.85em;
}


.plainTable td{
    color:black;
}



.expandingSpans {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.rightSpans {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
.expandingSpans span, .rightSpans span {
    margin: 3px 10px;
}




#passwordField {
    display: flex;
    flex-direction: row;
    position: relative;
}

#passwordField button {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    right: 2px;
    top: -8px;
}

#passwordField img {
    height: 15px;
}
#closeLogin {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    right: 10px;
    top: 10px;
}


.redErrors {
    color: red;
}



.web_footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: #555;
  padding: 60px 40px;
  gap: 30px;
}

.web_footer h4 {
  margin-bottom: 20px;
  color: VAR(--blue-accent-color);
}

.web_footer ul {
  list-style: none;
}

.web_footer ul li {
  margin-bottom: 10px;
}

.web_footer ul li a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

.web_footer ul li a:hover {
  color: #fff;
}

.web_footer p {
  color: #ccc;
  margin-bottom: 10px;
}

.web_footer .socials a {
  margin-right: 10px;
}
.web_footer .socials img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  opacity: 0.8;
  transition: 0.3s;
}
.web_footer .socials img:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .web_footer {
    padding: 40px 20px;
  }
}

@media (max-width: 600px) {
  .web_footer h4 {
    font-size: 1rem;
  }
}



.secondary-header {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: VAR(--header-color);
    position: relative;
    z-index: 997;
    height:75px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
    
}

.secondary-header .topnav ul {
    justify-content: flex-start;
}


.leftnav {
    height: 100%;
    width: fit-content;

}

.leftnav ul{
    height: 100%;
    width: fit-content;
    list-style-type: none;

}

.leftnav ul li {
    background-color: VAR(--header-color);

    
}

.leftnav ul li:hover {
    background-color: VAR(--header-hover-color);
    color: VAR(--dark-text-color); /*this is just text color*/
    transition: all ease-in-out 300ms;
}

.leftnav ul li a {
    padding: 0px 10px;
    display: block;
    line-height: 45px;  /*this centers the text vertically. nothing else works*/
    font-weight: bold;


    
}