@font-face {
    font-family: 'Conquera';
    src: url('../fonts/8404Conquera.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 1px;
    background-color: #ffffff;
    color: #fff;
    /* overflow: hidden; */
}

.configuration-container {
    position: relative; /* To position the layout selection absolutely */
    height: 100vh; /* Ensure full screen height */
    overflow: hidden; /* Hide overflow to prevent scrolling */
}

/* Wrapper for Left-side panel and Screen overlay */
.configuration-elements {
    display: flex;
    height: 100vh; /* Ensure full height for the elements */
}

.screen-overlay {
    position: absolute;
    top: 0;
    left: 25em; /* This matches the width of the left-side panel */
    right: 0;
    bottom: 0;
    background-color: #ffffff; /* Set the overlay to white */
    z-index: 1000; /* Ensure it's behind the tab content */
    transition: all 0.3s ease; /* Smooth transition for changes in size */
}
.left-side-panel {
    width: 25em;
    background-color: #111111;
    height: 100vh;
    border-right: 1px solid #444;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
}

.tabs {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #444;
    background: linear-gradient(135deg, #1b1b1b, #111111); /* Subtle gradient */
}

.tab-button {
    flex: 1;
    background-color: transparent;
    border: none;
    border-right: 1px solid #444;
    padding: 15px;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
}

.tab-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #D78565;
    transition: width 0.3s ease;
}

.tab-button.active::after {
    width: 100%;
}

.tab-button img {
    display: block;
    margin: 0 auto 5px;
    height: 32px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button.active {
    background-color: #1b1b1b;
    color: #D78565;
    box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.3); /* Shadow for active button */
}

.tab-button.active img {
    filter: brightness(0) invert(58%) sepia(65%) saturate(6311%) hue-rotate(6deg) brightness(100%) contrast(102%);
}

.tab-button:hover:not(.active) {
    background-color: #1b1b1b;
    transform: scale(1.02); /* Slight scale-up on hover */
}

.content {
    flex-grow: 1;
    padding: 0;
    /* margin-bottom: 50px; */
    background-color: #121212; /* Darker background for content */
    display: flex;
    flex-direction: column
}

/* Webkit-based browsers (Chrome, Safari, Edge) */
.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: 2px solid #333;
}

.content::-webkit-scrollbar-thumb:hover {
    background-color: #D78565;
}

/* Firefox */
.content {
    scrollbar-width: thin;
    scrollbar-color: #555 #333;
}

.tab-title-container {
    padding: 20px;
    border-bottom: 1px solid #444;
    background-color: #111111;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab-title {
    display: flex;
    align-items: center;
}

.tab-title img {
    height: 50px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.tab-title h2 {
    margin: 0;
    font-family: 'Conquera', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    text-align: center;
    color: #D78565;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.tab-content {
    /* 060808 */
    background-color: #111111;
    display: none; /* Keep this for initial hiding */
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, width 0.4s ease;
    position: absolute;
    width: 25em;
    top: 83px;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 133px);
    margin-bottom: 50px;
}

.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: 2px solid #333;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background-color: #D78565;
}

/* Firefox */
.tab-content {
    scrollbar-width: thin;
    scrollbar-color: #555 #333;
}

.active-content {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.config-button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the icon and text */
    background-color: #D78565;
    color: white;
    border: none;
    padding: 15px;
    text-align: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    width: 25em;
    border-radius: 4px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, width 0.3s ease;
    z-index: 1000;
    position: fixed;
    bottom: 0;
}

.config-button img.arrow-icon {
    margin-left: 10px;
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
    /* rotate: 180deg; */
}

.config-button:hover {
    background-color: #b06452;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.option {
    width: 100%;
    margin-bottom: 10px;
}

.option-header {
    background-color: #1b1b1b;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.option-header:hover {
    background-color: #2a2a2a;
}

.option-content {
    display: none;
    /* max-height: 0; */
    background-color: #111111;
    border-right: 1px solid #444;
}

.arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.expanded .arrow {
    transform: rotate(90deg);
}

.tile {
    background-color: #1b1b1b;
    border: 1px solid #333;
    border-left: 4px solid transparent; /* Default transparent border */
    margin: 0;
    padding: 10px;
    position: relative;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tile .toggle input:checked ~ .tile {
    border-left: 4px solid #D78565; /* Orange color when the toggle is selected */
}

.tile:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tile.grayed-out {
    filter: grayscale(100%);
    opacity: 0.7;
}

.image-container {
    width: 120px;
    height: 80px;
    overflow: hidden; /* Ensures the image doesn't overflow the container */
    border-radius: 4px;
    position: relative;
    flex-shrink: 0; /* Prevents the container from shrinking */
    margin-right: 10px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire container */
    position: absolute; /* Ensures the image covers the container */
    top: 0;
    left: 0;
}

.tile-image {
    width: 120px;
    height: 80px;
    object-fit: cover; /* Makes sure the image covers the entire area of the container */
    border-radius: 4px;
}


.tile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 0;
}

.tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tile-info h3 {
    margin: 0;
    padding-right: 30px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.tile-info p {
    margin: 5px 0 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: #bbb;
}

.info-button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.info-button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Toggle container */
.toggle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-color: transparent;
}

/* Hide the checkbox input */
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider style for the icon */
.toggle .slider {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease;
    border: none;
    outline: none;
}

/* Default (off) state - show the plus icon */
.toggle .slider {
    background-image: url('../icons/SubCategories/plus.png');
}

/* Checked (on) state - show the minus icon */
.toggle input:checked + .slider {
    background-image: url('../icons/SubCategories/minus.png');
}

.incompatibility-notice {
    background-color: #6c757d;
    color: white;
    padding: 10px;
    width: calc(100% - 20px);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.incompatibility-notice p {
    margin: 0;
}

/* Styles for the brand logo */
.screen-overlay .brand-logo {
    position: absolute;
    top: 20px;
    left: calc(50% - 100px);
    width: 200px; /* Adjust the size as needed */
    height: auto;
    /* filter: brightness(0) invert(1); Adjust the filter to match the theme */
    z-index: 1001;
}

/* Styles for the reset button */
.screen-overlay .reset-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #D78565; /* Use a color that matches the theme */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    z-index: 1001;
}

.screen-overlay .reset-button:hover {
    background-color: #b06452; /* Slightly darker on hover */
}

/* Ensure that Left-side panel and Screen overlay are hidden when Layout selection is visible */
.configuration-elements {
    opacity: 0;
    pointer-events: none; /* Prevent interaction when layout selection is visible */
}

.hidden {
    opacity: 0;
    height: 0 !important;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.visible {
    opacity: 1;
    height: auto;
    pointer-events: all;
    transition: opacity 0.5s ease, height 0.5s ease;
}

@media (max-aspect-ratio: 1/1) {

    .screen-overlay {
        top: 0;
        left: 0;
        right: 0;
        bottom: 50%; /* Covers the top 50% when width is less than or equal to height */
        background-color: #ffffff; /* Keep the overlay white */
        /* height: calc(50% - 50px); */
    }

    .left-side-panel {
        width: 100%;
        height: 50vh;
        border-right: none;
        border-top: 1px solid #444;
        position: fixed;
        bottom: 0;
        left: 0;
        flex-direction: column;
        justify-content: space-between;
    }

    .tabs {
        flex-direction: row;
        width: 100%;
        flex-grow: 1;
    }

    .tab-button {
        flex: 1;
        padding: 15px 0;
    }

    .content {
        flex-grow: 1;
        padding: 0;
        height: calc(50vh - 40px);
        width: 100%;
    }

    .tab-title-container {
        padding: 10px;
        border-bottom: none;
        border-right: 1px solid #444;
        width: 100%;
    }

    .tab-content {
        max-height: calc(50vh - 133px);
        width: 100%;
    }

    .config-button {
        width: 100%;
     }
}
