:root {
    --primary: #202020;
    --secondary: #262626;
    --darker: #313131;
    --backGround: #0e0e0f;
    --accent: #ab68ff;
    --hover: #424242;
    --textColor: #e3e3e3;
    --dimText: #bac1c3;
    --noteText: #767676;
    --borderColor: #2c2c2c;
    --textHilight: #1a4a7d;
    --blurColor: #2020206c;
    --boxShadow: rgba(0, 0, 0, 0.2);
}

:root {
    --font-xxSmall: 0.7rem;
    /* 11px */
    --font-xSmall: 0.75rem;
    /* 12px */
    --font-small: 0.80rem;
    /* 13px */
    --font-med: 0.9rem;
    /* 14px */
    --font-large: 0.93rem;
    /* 15px */
    --font-xlarge: 0.98rem;

    --font-xxlarge: 1.1rem;
    /* 16px */
    --codeFontWeight: 400;
}

:root {
    --primary: #ffffff;
    --secondary: #ffffff;
    --darker: #f7f7f7;
    --backGround: #ffffff;
    --accent: #ab68ff;
    --hover: #e9e9e9;
    --textColor: #000000;
    --dimText: #595959;
    --noteText: #9e9e9e;
    --borderColor: #e7e7e7;
    --textHilight: #1a4a7d;
    --blurColor: #ffffff77;
    --boxShadow: rgba(65, 65, 65, 0.1);
}

:root {
    --font-family-inter: 'Inter', sans-serif;
    --font-family-ibm-plex-mono: 'IBM Plex Mono', monospace;
    --font-family-Sans: 'DM Sans', sans-serif;
}

@font-face {
    font-family: 'NerdFontSymbols';
    src: url('NerdFontsSymbolsOnly/SymbolsNerdFontMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    background-color: var(--backGround);
    color: var(--textColor);
    font-family: var(--font-family-Sans);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    border-bottom: 1px solid var(--borderColor);
    display: flex;
    justify-content: flex-end;
    padding: 10px;

    /* box-shadow: 0 2px 2px var(--boxShadow); */
    z-index: 1000;
    height: 35px;
    font-family: var(--font-family-Sans);
}

.header button {
    padding: 8px 8px;
    border: none;
    background-color: transparent;
    color: var(--dimText);
    border-radius: 0px;
    cursor: pointer;
    font-size: 17px;

    /* padding-bottom: 6px;
    padding-top: 6px; */
    padding: 4px 9px;
    padding-top: 4px;
    font-weight: 500;
    margin-left: 5px;
    margin-top: 3px;
    transition: all 0.2s;
    border-radius: 30px;
    white-space: nowrap;
    font-family: var(--font-family-Sans);
}

.header button:hover {
    /* border-bottom: 2px solid var(--accent); */
    color: var(--textColor);
    /* font-size: 18px; */
    background-color: var(--hover);
    ;
}

.search-bar {
    width: 100%;
}

.search-wrapper {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background-color: var(--blurColor);
    backdrop-filter: blur(10px);
    padding: 15px;
    box-sizing: border-box;
    z-index: 999;
}

.search-bar {
    text-align: center;
}



.search-bar .dialog-input {
    width: 80%;
    padding: 8px;
    border: 1px solid var(--hover);
    border-radius: 10px;
    margin-left: 0%;
    margin-top: 1px;
}

.dialog-input {
    background-color: var(--darker);
    color: var(--textColor);
    border: none;
    padding: 10px;
    position: relative;
}

.input-container {
    display: flex;
    align-items: center;
    margin-left: 27%;
}

.search-icon {
    margin-right: 7px;
    /* Adjust the spacing between the icon and input */
    margin-top: -3px;
}

.magnify-glass::before {
    font-family: 'NerdFontSymbols';
    content: "\f0349";
    background-color: transparent;
    padding: 0px;
    color: var(--noteText);
    font-size: 21px;
}

.dialog-input::placeholder {
    color: var(--dimText);
}

.dialog-input:focus::placeholder {
    color: var(--textColor);
}

.dialog-input:focus {
    outline: none;
    border: 1px solid var(--accent);

}

.search-filter-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 5px;
    padding-top: 25px;
    white-space: nowrap;
}

.search-filter-buttons button {
    font-family: var(--font-family-Sans);
    padding: 5px 15px;
    border: none;
    background-color: transparent;
    color: var(--textColor);
    border-radius: 4px;
    cursor: pointer;
    border-radius: 30px;
    font-size: var(--font-large);
    font-weight: bold;

}

.search-filter-buttons button.active:hover {
    filter: brightness(0.9);
}

.search-filter-buttons button.active,
.search-filter-buttons button:hover {
    background-color: var(--hover);
    color: var(--textColor);
}

.dialog-box.list {

    background: transparent;
    border-radius: 5px;

    justify-content: center;
    align-items: center;
    font-family: var(--font-family-Sans);
    padding: 2.5%;
    padding-top: 125px;
}

.list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
    justify-items: center;
}

.list-item {
    background-color: var(--primary);
    box-shadow: 0 4px 10px var(--boxShadow);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 265px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    /* border: 1px solid var(--borderColor); */
    /* Add transition for smooth movement */
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 13px var(--boxShadow);
}

.list-item-button {
    background-color: var(--backGround);
    background-size: contain;
    border: none;
    cursor: pointer;
    border-radius: 5px 5px 0px 0px;
    padding: 0px;
    margin: 0px;
    min-height: 190px;
    max-height: 190px;
    position: relative;

}

.list-item-details-button {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 10;
    background-color: var(--secondary);
    border: none;
    color: var(--dimText);
    border-radius: 50%;
    padding: 5px 8px;
    margin: -1px;
    border: 1px solid transparent;
    width: 40px;
    height: 40px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.list-item-button:hover .list-item-details-button {
    opacity: 1;
    visibility: visible;
}

.list-item:hover .list-item-details-button {
    opacity: 1;
    visibility: visible;
}

.list-item-details-button:hover {
    /* border: 1px solid var(--textColor); */
    background-color: var(--hover);
    color: var(--textColor);
}

.list-item-details-button::before {
    font-family: 'NerdFontSymbols';
    content: "\f09a8";
    background-color: transparent;
    padding: 0px;
    /* color: var(--dimText); */
    font-size: 21px;
}

.list-item-cover {
    cursor: pointer;
    width: 100%;
    display: block;
    margin: 0;
    object-fit: cover;
    min-height: 190px;
    max-height: 190px;
    background: var(--borderColor);
}


.list-item-infoContainer {
    /* border-top: 1px solid var(--borderColor); */
    padding: 10px;
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--secondary);
    min-height: 55px;
    max-height: 55px;
    justify-content: center;
    align-items: left;
    max-width: calc(100% - 65px);

}

.data-row {
    border-top: 1px solid var(--borderColor);
    background-color: var(--secondary);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.list-item-profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 5px;
    margin-top: 15px;
    margin-right: 3px;
    padding: 2px;
    box-shadow: 0 2px 3px var(--boxShadow);
    transition: all 0.2s;
}

.list-item-profile-image:hover {
    filter: brightness(0.8);
}

.list-item-name {
    font-family: var(--font-family-Sans);

    font-size: var(--font-small);
    margin-top: -7px;

    font-weight: 600;
    color: var(--textColor);
    padding: 3px;
    padding-left: 0px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-user-name,
.list-item-date {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--font-small);
    color: var(--dimText);
}

.list-item-date {
    padding-top: 3px;
    font-size: var(--font-xxSmall);
}

.no-projects-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /*border: 1px solid var(--borderColor);*/
    border-radius: 4px;
    background-color: var(--primary);
    /*cursor: pointer;*/
    transition: all 0.2s;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .list-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .list-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-item-details-button {
        opacity: 1;
        visibility: visible !important;
    }
}

@media (max-width: 600px) {
    .list-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.footer-links a {
    text-decoration: none;
    border-radius: 5px;
    border-radius: 30px;
}

.footer-links a:first-child {
    margin-left: 50px;

}

.footer-links a:first-child::before {
    font-family: 'NerdFontSymbols';
    content: "\f0219";
    background-color: transparent;
    padding: 5px;
    font-size: var(--font-med);
    position: relative;
    top: -2px;
}

.footer-links a:hover {
    background-color: var(--hover);
}


.logo-container {
    display: flex;
    /* Aligns child content (the image) */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    max-width: 40px;
    min-width: 40px;
    min-height: 40px;
    /* Add this to ensure the container is a perfect circle */
    max-height: 40px;
    margin-right: 20px;
    transition: transform 0.3s;
    margin-left: 5px;
    margin-top: -5px;
    border-radius: 50%;
    /* Adjust to 50% for a perfect circle */
    padding: 0px;
    background: transparent;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    /* Ensures no part of the image spills out */
}

.logo {
    width: 71%;
    /* Slightly larger than the container */

    transition: transform 0.3s ease;
    /* Smooth transition */
    margin-left: -1px;
}

.logo-span {
    font-weight: bold;
    color: var(--dimText);
    font-size: 2.05rem;
    font-family: var(--font-family-Sans);
    padding: 0px;
    margin: -10px;
    margin-left: 5px;
    transition: all 0.3s;
}

.logo-container:hover .logo-span,
.logo-span:hover {
    color: var(--accent);
    opacity: 0.95;
}

.explore-title {
    text-align: left;
    font-size: 35px;
    /* Adjust the font size as needed */
    font-weight: bold;
    font-family: var(--font-family-Sans);
    /* Adjust the font weight as needed */
    margin-top: 25px;
    /* Adjust the top margin to position it */
    color: var(--textColor);
}

.list-item-cover-icon::before {
    position: absolute;
    top: 55px;
    left: 110px;
    object-fit: cover;
    border-radius: 5px;
    font-size: 61px;

    font-family: 'NerdFontSymbols';
    content: "\f05df";
    background-color: transparent;
    font-style: normal;
    color: var(--noteText);

}

#themetoggle {
    position: relative;

}

.dark-theme,
.light-theme {
    color: var(--dimText);
}

.dark-theme:hover,
.light-theme:hover {
    border: none !important;
    color: var(--accent);
}

.dark-theme::before {
    font-family: 'NerdFontSymbols';
    content: "\f0f65";
    background-color: transparent;
    padding: 0px;

    font-size: 21px;
}

.light-theme::before {
    font-family: 'NerdFontSymbols';
    content: "\f185";
    background-color: transparent;
    padding: 0px;

    font-size: 21px;
}

#languageSelector {
    padding: 0px;
    padding-top: 5px;
    padding-left: 5px;
    margin-bottom: 0;
    background-color: var(--primary);
    color: var(--dimText);
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: var(--font-family-Sans);
    font-size: var(--font-xxlarge);
    font-weight: 500;
    margin-left: 5px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    top: -1px;
}


#hamburger-menu {
    display: none;
    /* Hide by default */
    cursor: pointer;
    font-size: 22px;
    /* Adjust size as needed */
    background: none;
    border: none;
    color: var(--textColor);
    /* Adjust color as needed */

    position: relative;
    padding: 5px 10px;
    padding-top: 0px;

    margin-left: -10px;

}

#hamburger-menu:hover {
    background-color: var(--hover);
}

#headerNavbar {
    flex: 0 1 200px;
    min-width: 200px;
    max-width: 200px;
    overflow-y: auto;
    height: 100vh;
    padding: 10px;
    background-color: var(--primary);
    position: fixed;
    padding-bottom: 200px;
    display: none;
    top: 55px;
    right: 0px;
    margin: 0px;
    z-index: 1000000000000000000000000000;
    list-style-type: none;
    padding: 20px;
    border-left: 1px solid var(--borderColor);

}

#headerNavbar a {
    text-decoration: none;
}

#headerNavbar button {
    font-family: var(--font-family-Sans);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 15px;
    padding-top: 4px;
    margin-bottom: 5px;
    cursor: pointer;
    background-color: var(--secondary);
    border-radius: 30px;
    border: 1px solid transparent;
    color: var(--textColor);
    font-size: 1.2rem;
    width: 100%;
    text-align: left;

}


#headerNavbar button:hover {
    /* color: white; */
    background-color: var(--hover);
    /* border: 1px solid var(--accent); */
}

#headerNavbar::-webkit-scrollbar {
    width: 8px;
}

#headerNavbar {
    scrollbar-width: thin;
    scrollbar-color: var(--hover) var(--primary);
}

.patreon-header-button {

    border: 1px solid var(--accent) !important;
}

#headerNavbar a {}

@media (max-width: 800px) {

    #listSearch {
        margin-right: 15px;

    }

    .input-container {
        margin-left: 0%;
    }

    #hamburger-menu {
        display: block;
        /* Only show the hamburger menu at specific screen width */
    }

    .logo-container {
        margin-right: 5px;

    }

    #headerNavbar {
        flex: 0 1 200px;
        min-width: 200px;
        max-width: 200px;
        overflow-y: auto;
        height: 100vh;
    }

    #headerNavbar {
        display: none;
    }

    #headerNavbar.active {
        display: block;
    }

    .header-original-button {
        display: none;
    }
}