/** {
    box-sizing: border-box; /* Include padding and border in element's total width and height */
/*}*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; /* Set height to 100% */
    margin: 0; /* Remove default margin */
}

body {
    font-family: Arial, sans-serif;
    background-color: #2c2c2c;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
	margin-top: 5px;
    padding-bottom: 5px;
    height: calc(100% - 45px);
}

.main-panel {
    background: #3c3d37;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1; /* Allow the panel to grow */
    margin: 2px 8px;
    min-width: 350px;
    container-type: inline-size;
}

.main-heading {
    color: beige;
    padding-left: 10px;
    font-size: 18px;
}

.sub-heading {
    color: beige;
    padding-left: 10px;
    font-size: 14px;
}

.gear-slot-list {
    background: #2b2c27;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
}

.selectable-gear-button {
    background: #707462;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2px;
    color: beige;
    min-width: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-shrink: 0;
}

.selectable-gear-button-close {
    background: #3b3c36;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2px;
    padding: 2px;
    color: beige;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.selectable-gear-button:hover {
    background: #5b5e4f;
}

.selectable-gear-button-close:hover {
    background: #691212;
    border: 1px solid #570404;
}

.selectable-gear-button.inactive {
    border: 2px solid #333;
}

.selectable-gear-button-text {
    padding: 3px;
    text-align: center;
}

.settings-panel {
    background: #2b2c27;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: beige;
    margin-left: 5px;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.settings-pair {
    font-size: 14px;
}

.checkbox {
    accent-color: beige;
}

.build-name-group {
    padding: 2px;
}

.build-name {
    width: 90%;
}

.io-button-group {
    display: flex;
    flex-direction: row;
}

.io-button {
    background: #707462;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2px;
    color: beige;
    min-width: 80px;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.io-button:hover {
    background: #5b5e4f;
}

.alternating>div:nth-child(4n-1),
.alternating>div:nth-child(4n-2) {
    background-color: #3c3d37;
}

.stat-pair {
    padding: 0px;
    display: flex;
    justify-content: space-between;
    border-radius: 8px;
}

.stat-name {
    color: beige;
    padding: 4px;
    font-size: 11px;
}

.stat-value {
    width:100px;
    background-color: #333;
    border: 2px solid #434343;
    border-radius: 8px;
    padding: 2px;
    color: beige;
    text-align: right;
    font-size: 11px;
}

.content {
    display: flex;
    z-index: 1;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
}

.scrollbar-container {
	margin: 5px;
	height: 90%;
    padding: 20px;
    width: 900px;
    background-color: #505349;
    margin: 2px;
    border-radius: 15px;
    border: 2px solid #2b2c27;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
}

.search-bar {
    width: 100%; /* Full width of the container */
    padding: 10px; /* Padding inside the search bar */
    margin-bottom: 10px; /* Space below the search bar */
    border: 1px solid #ccc; /* Border style */
    border-radius: 5px; /* Rounded corners */
}

.gear-list {
    overflow-y: auto; /* Enable vertical scrolling */
    border-radius: 5px;
    background-color: #5a5a5a;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: flex; /* Flexbox for internal layout */
    flex-direction: column; /* Stack items vertically */
    border: 2px solid #2c2c2c;
    flex-grow: 1;
}

.button-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.button-list li {
    margin: 5px 0; /* Add spacing between list items */
	width: 100%;
}

.gear-button {
    width: calc(100% - 10px);
    padding: 10px;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.overlay-tooltip-container:hover {
    background-color: #3c3d37;
}

.unclickable-gear-button {
    width: calc(100% - 10px);
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gear-title-container {
    height: 12.5%;
}

.material-builder {
	padding: 5px;
    margin-left: 10px; /* Indent child button containers */
	display: flex;
    flex-direction: row;
    overflow: auto;
    height: calc(100% - 100px);
    border: 2px solid beige;
    border-radius: 5px;
    margin-right: 10px;
}

.material-count {
	width: 20%;
	overflow-y: auto;
}

.builder-container {
	width: 90px;
	height: 80px;
	padding: 0px;
    border-radius: 15px;
    background: #2b2c27;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #333;
    display: block;
}

.builder-container:enabled {
    background-color: #ccc;
    
}

.builder-container:enabled:hover {
    background-color: #999;
}

.colour-tier-one { 
    color: #f7ffbd; 
    border: 2px solid #f7ffbd; 
}
.colour-tier-two { 
    color: #9ff78f; 
    border: 2px solid #9ff78f; 
}
.colour-tier-two-plus { 
    color: #9ff78f; 
    border: 2px solid #9ff78f; 
}
/*.colour-tier-two-plus { background-color: #6df754; }*/
.colour-tier-three { 
    color: #acfcfa; 
    border: 2px solid #acfcfa; 
}
.colour-tier-three-plus { 
    color: #acfcfa; 
    border: 2px solid #acfcfa; 
}
.colour-tier-three-plus-plus {
     color: #acfcfa; 
     border: 2px solid #acfcfa; 
}
/*.colour-tier-three-plus { background-color: #73f5f2; }
.colour-tier-three-plus-plus { background-color: #21deff; }*/
.colour-tier-four { 
    color: #fa75ba; 
    border: 2px solid #fa75ba; 
}
.colour-tier-five { 
    color: #fcbf6f; 
    border: 2px solid #fcbf6f; 
}

.selectable-builder-container {
	width: 90px;
	height: 80px;
	padding: 0px;
	background-color: #505349; /* Light background color */
    margin: 0px;
    border-radius: 15px;
    border: 2px solid #2b2c27;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.selectable-builder-container:hover {
    background-color: #3d3f38; /* Light background color */
}

.panel-content {
    padding: 0px;
    margin: 0px;
    color: beige;
    font-size: 11px;
}

.button-container {
    display: grid;
}

.button-container-vertical {
    display: flex;
    flex-direction: column; /* Arrange buttons horizontally */
}

.button-container-horizontal {
    display: flex;
    flex-direction: row; /* Arrange buttons horizontally */
}

.builder-tile {
    font-size: 12px; /* Increase font size */
    color: beige; /* Set text color */
    border: 1px solid beige; /* Optional border for visual separation */
    padding: 0px; /* Padding for the content */
    border-radius: 5px; /* Rounded corners */
    background-color: #707462;
    margin: 3px;
}

.overlay {
    z-index: 10; 
    position: relative;
    
}

.popup {
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    height: 100%; /* Make the popup take the full height of the overlay */
}

.overlay-choice {
    z-index: 10; 
    position: relative;
    border: 1px solid beige; /* Optional border for visual separation */
    padding: 0px; /* Padding for the content */
    border-radius: 5px; /* Rounded corners */
    background-color: #707462;
    width: 120px;
    top: 45px;
}

.popup-choice {
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    height: 100%; /* Make the popup take the full height of the overlay */
}

.tooltip-container {
    position: relative;
}

.overlay-tooltip-container {
    background-color: #505349;
    margin: 2px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.tooltip {
    display: none;
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    z-index: 100;
    max-width: 300px;
}

.tooltip-container:hover .tooltip {
    display: block;
}

.tab-container {
    width: 80%;
    margin: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.tab-header {
    display: flex;
	overflow-x: auto;
    color: white;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    transition: background-color 0.3s;
}

.tab.active {
    background-color: #666;
    border-top: 2px solid #007bff;
}

.tab:hover {
    background-color: #999;
}

.tab-content {
    padding: 15px;
    border: 1px solid #ccc;
	height: 90%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
	height: 97.5%;
}

.toggle-group {
    display: flex;
  flex-direction: row;
  padding-bottom: 5px;
  justify-content: space-between;
}

.toggle-option {
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: transform 0.2s;
  flex-grow: 0;
  background-color: #333;
  padding: 5px;
  margin: 5px;
}

.toggle-option:hover {
    transform: scale(1.05);
}

.toggle-option.active {
    opacity: 0.7;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: beige;
    padding: 4px 16px;
    font-size: 14px;
    border: none;
    cursor: pointer;
	margin-right: 5px;
    border-radius: 5px; /* Rounded corners */
    background-color: #505349;
    margin: 2px;
    border: 2px solid #2b2c27;
}

.augment-block {
    padding-top: 10px;
}

.dropdown-content {
	flex: none;
    display: none;
    position: absolute;
    min-width: 160px;
    z-index: 1;
    left: 0;
  right: 0;
  top: 45px;
  bottom: 0;
  height: 600px;
}

.dropdown-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.dropdown-content .dropdown-button {
    color: black;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
}

.dropdown-content .dropdown-button:hover {
    background-color: #f1f1f1;
}

.dropdown-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.popup-load {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
	z-index: 1;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    width: 300px;
	height: 80%;
}

.hidden {
    display: none;
}

.close {
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
}

.close-overlay {
    cursor: pointer;
    font-size: 20px;
    width: 30px;
    background-color: #3b3c36;
    margin: 2px;
    border-radius: 5px;
    border: 2px solid #2b2c27;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: beige;
}

.close-overlay:hover {
    background-color: #434343;
}

.options-container {
	display: flex;
	flex-direction: column;
	overflow-y : auto;
	height: 90%;
}

.gear-title {
    color: white;
}

.equipment-info-panel {
    display: flex;
    flex-direction: row;
}

.material-line {
    background-color: #505349;
    margin: 2px;
    border-radius: 15px;
    border: 2px solid #2b2c27;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    color: beige;
    font-size: 12px;
}

.centre-spacer {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.item-panel {
    height: calc(100% - 20px);
    overflow: hidden;
}

.save-popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background: #3c3d37;
    border-radius: 8px;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
	height: 80%;
    position: relative;
	max-width: 800px;
    display: flex;
    flex-direction: column;
}

.close {
    color: #777;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  padding-right: 5px;
}

input[type="text"] {
    padding:
  10px;
    border:
  1px solid #ccc;
    border-radius:
  5px;
    width: 100%;
    margin-bottom: 5px;
  }

  .scroll-container {
    overflow-y: auto;
    margin-top: 10px;
    border:
  2px solid beige;
    border-radius:
  8px;
    padding:
  5px;
    background:
  #1e201e;
    flex-grow: 1;
  }

  .close:hover {
    color: red;
  }

  .clickable-element {
    display: flex;
    align-items: center;
    text-decoration:
  none;
    color: #333;
    background-color: #555955;
    border:
  1px solid #444;
    border-radius:
  5px;
    transition:
  background-color 0.3s ease;
    margin:
  1px;
    width: calc(100% - 2px);
    cursor: pointer;
    max-height: 210px;
  }

  .skills-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .basic-text {
    color: beige;
    line-height: 1.5em;
    opacity: 1;
    padding-left: 5px;
  }

  .clickable-element:hover {
	background-color: #acacac;
}

.scrollable {
    display: grid;
    gap: 2px;
    overflow: auto;
}

.footer {
    text-align: center;
    color:beige;
    padding-bottom:5px;
}

@media (max-width: 1080px) {
    .container {
        flex-direction: column;
        padding-bottom: 55px;
        height: auto;
    }

    .item-panel {
        height: auto;
    }

    .material-builder {
        height: auto;
    }

    .panel {
        margin: 10px 0; /* Adjust margin for vertical stacking */
    }

    .footer {
        text-align: right;
        padding-right: 10px;
    }
}

@media (max-width: 520px) {
    .settings-panel {
        background: #2b2c27;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 2px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        color: beige;
        margin-left: 5px;
        display: grid;
        grid-template-columns: repeat(1, minmax(240px, 1fr));
    }

    .alternating>div:nth-child(odd) {
        background-color: #3c3d37;
    }

    .alternating>div:nth-child(even) {
        background-color: #2b2c27;
    }
}

@container (max-width: 492px) {
    .settings-panel {
        background: #2b2c27;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 2px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        color: beige;
        margin-left: 5px;
        display: grid;
        grid-template-columns: repeat(1, minmax(240px, 1fr));
    }

    .alternating>div:nth-child(odd) {
        background-color: #3c3d37;
    }

    .alternating>div:nth-child(even) {
        background-color: #2b2c27;
    }
}

.material-count-container {
    flex-grow: 1;
    padding-left: 5px;
}

.redundant {
    display: none;
}

