:root {
    --font-color: #e7e9ea;
}

button {
    touch-action: manipulation;
}

#main-content {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0px !important;
    margin-right: 0px !important;
    background-color: black;
}

#addToCartTemplate,
#discountTemplate,
#productFilterTemplate {
    font-family: "riviera-thin" !important;
}

#samples-builder-preheading {
    font-style: italic !important;
    color: gray !important;
    margin-bottom: 32px !important;
}

#samples-builder-directions-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: "riviera-thin" !important;
    font-size: 14pt;
    line-height: 21pt;
}

#samples-builder-directions {
    margin-bottom: 1.5rem !important;
    margin-top: 1.5rem !important;
}

#samples-builder-directions h2 {
    text-transform: uppercase;
    text-align: center;
    color: gray;
    margin-bottom: 0px !important;
    font-size: 22px;
    font-family: "riviera-thick" !important;
}

#samples-builder-heading {
    font-size: 28px;
    text-transform: uppercase;
    text-align: center;
    padding: 24px;
    border-style: solid;
    border-width: 1px;
    border-radius: 12px;
    border-color: #0053f1;
    color: #0053f1;
    line-height: 2rem !important;
    font-weight: bold;
    letter-spacing: 0.1rem;
    margin: 0;
}

#samples-builder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0px !important;
    margin-right: 0px !important;
    width: 100%;
}

/* .no-scroll {
    overflow: hidden;
    height: 100%;
    top: 0; 
    position: fixed;
    width: 100%;
} */

/* The Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    box-sizing: border-box;
    position: relative;
    background-color: black;
    margin: 20% auto;
    border: 1px solid rgb(38, 38, 38);
    width: 100%;
    height: 75%;
    color: white;
    border-radius: 12px;
    padding-top: 10px;
    overflow: hidden;
    max-width: 1280px;
}

.close {
    color: white;
    font-size: 28px;
    font-family: "riviera-thick";
    position: absolute;
    top: 35px; /* Adjust as needed */
    right: 15px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
}

#close-word {
    font-size: 14px;
}

.tab {
    display: flex;
}

#Tab1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    align-items: start;
    align-content: start;
}

#Tab2 {
    padding: 12px;
}

#Tab2 p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-family: "riviera-thin";
}

#topThreeButton {
    border-radius: 0;
}

.ingredient-item {
    position: relative;
    overflow: hidden; /* Ensures that the title overlay doesn't overflow */
}

.ingredient-item img {
    width: 100%;
    display: block;
}

.ingredient-item span {
    position: absolute;
    bottom: 0;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    background-color: rgba(0, 0, 0, 0.4); /* Grayish transparent background */
    color: white;
    text-align: center;
    /* padding: 5px 10px; */
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1rem;
    width: 100%;
    font-family: "riviera-thick";
    padding-top: 3px;
    padding-bottom: 3px;
    /* border-radius: 0.375rem; */
}

.tab button {
    padding: 15px 0px !important;
    margin: 0px !important;
    width: 100% !important;
    outline: none !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    border-bottom-width: 2px !important;
    border-style: solid !important;
    border-color: black !important;
    font-size: 13px !important;
    font-family: "riviera-thin" !important;
    letter-spacing: 0.08em !important;
    background-color: black !important;
    flex-grow: 1;
    border-top-width: 0px;
    border-right-width: 0px;
    border-left-width: 0px;
    border-radius: 0;
    color: white;
    justify-content: center;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    border-color: rgb(178, 0, 1) !important;
    background-color: black !important;
}

/* Style the tab content */
.tabcontent {
    border-top: none;
    overflow-y: auto;
    height: calc(100% - 50px);
}

.flush-text {
    text-align: justify; /* Makes the text flush on both sides */
    padding: 0 1rem; /* Add padding for mobile responsiveness */
}

#filter-section {
    width: 100%;
    max-width: 500px;
    display: none;
}

#product-filter {
    display: flex;
    justify-content: center;
    padding-bottom: 5px;
    width: 100%;
}

#product-filter button {
    margin: 0 !important;
    /* font-weight: bold; */
    padding: 10px 0px !important;
    flex-grow: 1;
    background-color: black;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(38, 38, 38);
    color: var(--font-color) !important;
    font-family: "riviera-thick" !important;
    justify-content: center;
}

#topTwoButton {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
#allProductsButton {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* #product-filter,
#instructions {
    visibility: hidden;
} */

#instructions {
    text-align: center;
    font-family: "riviera-thin" !important;
    margin-top: 4px;
}

#instructions p {
    margin-bottom: 1.5rem;
}

#keyword-filter button:active {
    background-color: #0053f1;
}

.red-background {
    background-color: rgb(178, 0, 1) !important;
}

.blue-background {
    background-color: #0053f1 !important;
}

#disclaimer-box {
    padding-bottom: 10px;
    padding-top: 10px;
    /* font-family: Georgia, "Times New Roman", Times, serif !important; */
}

.green {
    color: #76ff03 !important;
}

#controls {
    display: flex;
}

#control-forwards {
    opacity: 0.75;
    scale: 0.8;
}

#control-backwards {
    opacity: 0.75;
    scale: 0.8;
}

.control-button {
    background-color: transparent !important;
    margin: 0px !important;
    transition: transform 0.1s;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    margin-top: 52px;
    border-width: 1px !important;
    border-color: rgb(38, 38, 38) !important;
    border-style: solid;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    z-index: 10;
    background-color: #141414;
    box-sizing: border-box;
    font-family: "riviera-thick" !important;
}

#dropdownSearch {
    font-family: "riviera-thick" !important;
    display: flex;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 8px;
    height: 3rem;
    border-radius: 50px;
    background-color: #141414;
}

#dropdownSearch > input {
    padding: 10px 50px;
    margin: 0;
    font-size: 16px;
    width: 100%;
    background-color: #141414 !important;
    border-radius: 50px !important;
    color: var(--font-color) !important;
    border-width: 1px !important;
    border-color: rgb(38, 38, 38) !important;
}
.icon-container {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    cursor: pointer;
}

.search-icon {
    left: 0;
}

.clear-icon {
    right: 0;
}

.dropdown-keyword {
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    gap: 10px;
    border-style: solid;
    border-bottom-width: 1px;
    border-color: rgb(38, 38, 38);
}

.dropdown-keyword > label {
    margin-bottom: 0px !important;
    padding-bottom: 14px !important;
    padding-top: 14px !important;
    font-size: 12px !important;
    flex-grow: 1;
    color: var(--font-color) !important;
    font-weight: 400;
}

#filter-dropdown {
    border-radius: 10px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    /* width: 100px !important; */
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 7px !important;
    padding-right: 17px !important;
    background-color: black !important;
    color: var(--font-color) !important;
    margin: 0px !important;
    gap: 5px;
    height: 100%;
}

#filter-container {
    position: relative;
    /* display: inline-block;  */
}

#filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Position it below the button */
    right: 0;
    left: auto;
    border-width: 1px !important;
    border-color: rgb(38, 38, 38) !important;
    border-style: solid;
    border-radius: 10px;
    background-color: #141414;
    z-index: 1;
    margin-top: 2px;
    overflow: hidden;
}

#filter-dropdown-content button {
    width: 100%;
    padding: 10px;
    text-align: left;
    border: none;
    background-color: transparent;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 0px !important;
    padding-bottom: 14px !important;
    padding-top: 14px !important;
    font-size: 12px !important;
    color: var(--font-color) !important;
}

/* #filter-dropdown-content button:hover {
    background-color: #f1f1f1;
} */

#products {
    color: var(--font-color);
    /* margin-bottom: 25px; */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    gap: 20px;
    padding-left: 16px;
    padding-right: 16px;
}

#products li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ingredients-wrapper {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.star-button {
    background-color: black !important;
    color: goldenrod !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.star-wrapper {
    margin-top: 8px;
}

.review-star {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
    margin-top: 3px;
}

.ingredients-button {
    background-color: #282828 !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    color: yellow !important;
    letter-spacing: 0.05em !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    display: block !important;
    text-align: center !important;
    height: 2rem !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    line-height: 0px !important;
    font-family: "riviera-thick" !important;
}

.product-container {
    /* background-color: rgb(38, 38, 38, 0.5); */
    /* padding: 10px; */
    width: 100%;
    /* border-width: 0.5px; */
    /* border-color: rgb(38 38 38); */
    /* border-style: solid; */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

#products span {
    color: var(--font-color);
    font-weight: 400;
    font-size: 14px;
    text-transform: none;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0;
    /* white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis;  */
    color: rgb(96, 165, 250);
    display: block;
    text-align: center;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 8px;
}

.sample-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    height: calc(3 * 14pt);
    font-family: "riviera-thick" !important;
}

#products button,
#products input {
    margin: 0px !important;
    color: white;
    background: black;
}

.quantity {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 10px !important;
    flex-grow: 1;
    text-align: center;
    font-size: 1.125rem;
    border: none !important;
    background-color: transparent !important;
    outline: none !important;
    color: var(--font-color) !important;
}

.plus-btn,
.minus-btn {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0%;
    font-size: 1.125rem;
    /* flex-grow: 1; */
}

.plus-btn:active,
.minus-btn:active {
    background-color: initial; /* Reset to the default value */
    color: gray !important; /* Reset to the default value */
}

.plus-btn:focus,
.minus-btn:focus {
    background-color: transparent !important;
    color: var(--font-color);
}

.plus-btn:hover,
.minus-btn:hover {
    background-color: transparent !important;
    color: var(--font-color);
}

.quantity-input:focus {
    color: var(--font-color) !important;
    background-color: black !important;
    outline: none !important;
}

#discount-section {
    display: block;
    margin-top: 10px;
}

#discount-section span {
    display: block;
}

.sentinel {
    width: calc(100% + 40px);
}

#keywords {
    width: 100%;
    overflow-x: auto;
    margin-left: -20px;
    margin-right: -20px;
    text-align: left;
    /* -ms-overflow-style: none;
    scrollbar-width: auto !important;
    scrollbar-color: #888 rgb(178, 0, 1) !important; */
    display: flex;
    flex-direction: column;
    margin-top: 5px;
    gap: 0.75rem;
    padding-bottom: 12px;
    font-family: "riviera-thick" !important;
}

#keywords div {
    display: inline-block;
    white-space: nowrap;
    margin-left: 16px;
}

#keywords div label {
    display: inline-block !important;
    padding: 8px 16px !important;
    background-color: black;
    /* font-family: "Roboto", sans-serif; */
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
    font-size: 12px;
    border-radius: 50px;
    border-width: 2px;
    border-style: solid;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    color: var(--font-color);
}

.display-keyword {
    /* background-image: url('https://theinterstellarplan.com/wp-content/uploads/2023/09/blue-4.png'); */
    /* border-radius: 20px; */
    padding-left: 7px;
    padding-right: 7px;
    text-align: center; /* For horizontal centering */
    color: #ffffff !important; /* This sets the text color to blue */
    background-size: contain; /* Makes sure the entire image is visible */
    background-repeat: no-repeat; /* Stops image from repeating */
    background-position: center; /* Centers the image */
    font-size: 11px !important;
    white-space: pre-wrap !important;
    line-height: 12px !important;
    margin-top: 12px !important;
    font-family: "riviera-thin" !important;
}

.spacer {
    display: inline-block;
    width: 12px;
}

.row {
    display: inline-block;
}

.sampleImage {
    height: auto;
    width: 100%;
    object-fit: contain;
    box-sizing: border-box;
    border-radius: 8px;
    border-style: solid;
    border-width: 0.5px;
    border-color: #464646;
}

.end-of-list {
    display: inline-block;
    height: 10px;
    width: 10px;
    background-color: red;
    border-radius: 50px;
}

#keywords div input[type="checkbox"] {
    display: none;
}

#keywords div input[type="checkbox"]:checked + label {
    background-color: rgb(178, 0, 1);
    border-color: rgb(178, 0, 1) !important;
}

/* For Chrome, Safari, and Opera */
#keywords::-webkit-scrollbar,
#products::-webkit-scrollbar {
    width: 5px;
    /* width of the entire scrollbar */
    height: 8px;
}

#keywords::-webkit-scrollbar-track,
#products::-webkit-scrollbar-track {
    background: rgb(24, 24, 27);
    /* color of the tracking area */
}

#keywords::-webkit-scrollbar-thumb,
#products::-webkit-scrollbar-thumb {
    background: rgb(178, 0, 1);
    /* color of the scroll thumb */
}

/* #keywords::-webkit-scrollbar-thumb:hover,
#products::-webkit-scrollbar-thumb:hover {
    background: #555;

} */

.control-button:hover svg {
    color: #e0e0e0;
}
.control-button:active svg {
    transform: scale(0.95);
}

#cartInfo {
    margin-top: 1rem;
    max-width: 600px;
}

#cartInfo table{
    font-family: 'riviera-thin';
    text-transform: uppercase;
}

#cartInfo table th {
    color: #B2B2B2;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 2s linear infinite;
    margin-left: 4px;
}

#cart {
    background-color: #b20001;
    margin-top: 10px;
    color: var(--font-color);
    width: 100%;
    font-size: large;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'riviera-thin';
}

#cart:disabled {
    background-color: gray;
}

@media (min-width: 768px) {
    #product-filter button,
    #keyword-filter button {
        width: 150px;
    }
    #products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
    }
    #product-filter button,
    #keyword-filter button {
        font-size: 12px !important;
    }

    .sample-title {
        height: calc(4 * 16px);
        font-size: 16px !important;
    }

    .display-keyword {
        font-size: 12px !important;
    }

    .quantity-input,
    .plus-btn,
    .minus-btn {
        font-size: 16px !important;
    }
    .modal-content {
        margin: 5% auto;
    }

    #allProductsButton,
    #topThreeButton,
    #topTwoButton,
    #filter-dropdown {
        font-size: 14px !important;
    }

    #Tab1 {
        grid-template-columns: repeat(2, 1fr);
    }

    #samples-builder-container {
        border-width: 1px;
        border-style: solid;
        border-radius: 24px;
        border-color: #262626;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    #samples-builder-heading {
        font-size: 32px;
    }

    #samples-builder-directions {
        margin-bottom: 24px !important;
    }
    #samples-builder-directions h2 {
        font-size: 28px !important;
    }
}

@media (min-width: 1024px) {
    #products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #Tab1 {
        grid-template-columns: repeat(3, 1fr);
    }
    #samples-builder-directions-steps {
        flex-direction: row;
        gap: 18px;
    }

    .ingredients-button {
        width: 9rem;
        height: 2.5rem !important;
    }
}

@media (min-width: 1280px) {
    #Tab1 {
        grid-template-columns: repeat(4, 1fr);
    }
}
