* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1e201e;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
	align-items: flex-start; /* Align items to the top */
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100vw;
	margin-top: 0.5em;
    height: calc(100vh - 60px);
}

.panel {
    background: #3c3d37;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1; /* Allow the panel to grow */
    margin: 5px;
    display: flex;
    flex-direction: column;
    width: 33%;
}

.button-container {
    display: flex;
    flex-direction: column;
}

.row-container {
    display: flex;
    flex-direction: row;
}

button {
    margin: 5px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
	text-align: left;
}

button:hover {
    background-color: #0056b3;
}

.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;
}

.close:hover {
    color: red;
}

.scroll-container {
    overflow-y: auto;
    margin-top: 10px;
    border: 2px solid beige;
    border-radius: 8px;
    padding: 5px;
    background: #1e201e;
    flex-grow: 1;
}

.scrollable {
    display: grid;
    gap: 2px;
    overflow: auto;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 5px;
}

.scrollable button {
    width: 100%; /* Full width buttons */
    margin: 5px 0;
	text-align: left;
}

.slot-container {
	margin: 5px;
}

.list-container {
    margin: 5px;
    border-radius: 5px;
    padding: 5px;
    background-color: #3c3d37;
}

.list-container:hover {
    background-color: #848484;
}

.list-element {
    display: flex;
    align-items: center;
    padding: 5px;
    text-decoration: none;
    color: #333;
    background-color: #55595588;
    border: 1px solid #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
	margin: 1px;
	width: 100%;
}

.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;
}

.clickable-element:hover {
	background-color: #acacac;
}

.fit-clickable-element {
    display: flex;
    align-items: center;
    padding: 0.1em;
    text-decoration: none;
    color: #333;
    background-color: #555955;
    border: 1px solid #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
	margin: 1px;
    min-width: 130px;
	flex: 1 1 0px;
}

.unclickable-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;
}

.transparent-fit-clickable-element {
    display: flex;
    align-items: center;
    padding: 0.1em;
    text-decoration: none;
    color: #333;
    background-color: #55595588;
    border: 1px solid #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
	margin: 1px;
    min-width: 130px;
	flex: 1 1 0px;
}

.vertical-fit-clickable-element {
    display: flex;
    align-items: center;
    padding: 5px;
    text-decoration: none;
    color: #333;
    background-color: #1f221f87;
    border: 1px solid #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
	margin: 1px;
	width: 100%;
    height: 100%;
}

.third-width {
    max-width: 33%;
}

.skills-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.element-image {
    padding-right: 15px; /* Add left padding to the image */
    width: auto;
    height: 1.5em;
}

.element-image-nopad {
    width: auto;
    height: 1.5em;
}

.element-title {
    margin: 0;
}

.sharpness-segment {
	display: inline-block;
	height: 10px;
}

.max-sharpness-segment {
	display: inline-block;
	height: 3px;
	vertical-align: top;
}

.skill-icon-have {
	background-color: blue;
	height: 14px;
	width: 14px;
	display: inline-block;
	margin: 0px 2px;
    border-radius: 7px;
    border: 2px solid #1e201e;
}

.skill-icon-over {
	background-color: red;
	height: 14px;
	width: 14px;
	display: inline-block;
	margin: 0px 2px;
    border-radius: 7px;
    border: 2px solid #1e201e;
}

.skill-icon-cap {
	background-color: gray;
	height: 14px;
	width: 14px;
	display: inline-block;
	margin: 0px 2px;
    border-radius: 7px;
    border: 2px solid #1e201e;
}

.skill-icon-breakpoint {
    border-left: 2px solid gray;
    height: 14px;
    width: 0px;
    display: inline-block;
}

.skill-icon-breakpoint-have {
    border-left: 2px solid blue;
    height: 14px;
    width: 0px;
    display: inline-block;
}

.basic-text {
    color: beige;
    line-height: 1.5em;
    opacity: 1;
    padding-left: 5px;
}

.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #333;
    border-radius: 10px;
}
  
.tab button {
    background-color: #444;
    float: left;
    border: 2px solid #3c3d37;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    margin-left: 5px;
}

.tab button:hover {
    background-color: #ddd;
}
  
.tab button.active {
    background-color: #ccc;
    border: 2px solid beige;
}
  
.tab-content {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    flex-grow: 1;
    border-radius: 10px;
    background-color: #333;
    overflow-y: scroll;
    height: calc(100vh - 500px);
}

.tab-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
}

.skill-search-container {
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #444;
    padding: 5px;
    margin: 2px;
}

.selectable:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.search-result-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.toggle-skill {
    margin-left: 4px;
    accent-color: beige;
}

.sharpness-text-container {
    display: flex;
    gap: 5px;
    padding-left: 5px;
}

.sharpness-blade-container {
    padding-left: 5px;
    display: inline-grid;
}

.weapon-filtering-container {
    display: flex;
    justify-content: space-around;
    padding-bottom: 0.5em;
    flex-grow: 1;
    max-height: 2.5em;
}

.selectable-icon {
    border: solid 2px #8e8e74;
    border-radius: 5px;
    padding: 2px;
    background-color: #333;
    cursor: pointer;
    min-width: 2em;
    justify-content: center;
    display: flex;
}

.selected {
    border: solid 2px #ffff96 !important;
}

.damage-part-container {
    display: flex;
    width: 130px;
}

.shot-part-container {
    display: flex;
    width: 240px;
}

.wrapping-spacer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.vrow {
    padding: 5px;
    gap: 5px;
}

.sort-button {
    border: 2px solid #2b2b2b;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin: auto auto;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    display: none; /* Hidden by default */
    z-index: 1001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.color-r1 {
    color: #969696;
}

.color-r2 {
    color: #DEDEDE;
}

.color-r3 {
    color: #A4C43B;
}

.color-r4 {
    color: #47A33F;
}

.color-r5 {
    color: #5CAEBB;
}

.color-r6 {
    color: #575FD9;
}

.color-r7 {
    color: #9272E3;
}

.color-r8 {
    color: #C76D46;
}

.footer {
    height: 50px;
    text-align: center;
}

.clickable {
    cursor: pointer;
}

.panel1 {
    overflow: auto;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 5px;
    gap: 5px;
    position: absolute;
}

.def-section {
    justify-content: space-between;
    width: 100%;
}

.armour-collection {
    width:100%;
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px;
}

.highlightable {
    background-color: #1f221f87;
}

.confirmed {
    color: white;
    background-color: #47A33F;
}

.confirmed:hover {
    background-color: #47A33F;
}

.dropdown {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: beige;
    background-color: #555955;
    border: 1px solid #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 1px;
    width: calc(100% - 2px);
    cursor: pointer;
    font-size: 1em;
    height: 1.5em;
}

.number-input {
    color: beige;
    background-color: #555955;
    border: 1px solid #444;
    border-radius: 5px;
    margin: 1px;
}


@media (max-width: 1300px){
    .sharpness-blade-container {
        transform: scale(0.8);
        transform-origin: 0 0;
    }

    .footer {
        text-align: right;
        padding-right: 10px;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .panel {
        margin: 10px 0; /* Adjust margin for vertical stacking */
        width: 100%;
    }

    .sharpness-blade-container {
        transform: scale(0.8);
        transform-origin: 0 0;
    }

    .scrollable {
        min-height: 540px;
    }

    .footer {
        text-align: right;
        padding-right: 10px;
    }
}

@media (max-width: 640px) {
    .sharpness-blade-container {
        transform: scale(0.65);
        transform-origin: 0 0;
    }

    .footer {
        text-align: right;
        padding-right: 10px;
    }
}