@font-face {
    font-family: 'Dumverse';
    src: url('./Dumverse_Font.ttf') format('truetype');
    font-weight: 200;
}

/* Main container */
.rarity-container {
    max-width: 1200px;
    left: 0;
    right: auto;
    padding: 0 20px;
    margin-top: 50px;
    z-index: 100;
    position: relative;
}

/* Browser layout */
.dumdumz-browser {

    display: flex;
    gap: 20px;
}

/* Sidebar styles */
.browser-sidebar {
    margin-top: 20px;
    width: 250px;
    flex-shrink: 0;
}

.search-container {
    font-family: 'Dumverse';
    background: #b47aea;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-box {
    font-family: 'Dumverse';
    width: 87%;
    padding: 8px 12px;
    border: 1px solid white;
    border-radius: 4px;
    font-size: 14px;
}

.traits-filter {
    background: #b47aea;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.traits-filter h3 {
    font-weight: 200;
    margin: 0 0 15px 0;
    font-size: 18px;
    color: white;
}
.trait-header h4 {
    font-weight: 200;
    padding: 0 0 15px 0;
    margin: 0;
    font-size: 18px;
    color: white;
}

.trait-item.rarest-trait {
    color: white;
    background: linear-gradient(
        to right,
        #462523 0%,
        #cb9b51 22%, 
        #f6e27b 45%,
        #f6e27b 55%,
        #cb9b51 78%,
        #462523 100%,
        #462523 122%
    );
    background-size: 200% 100%;
    padding: 4px 8px;
    margin: 4px 0;
}

.rarest-trait {
    color: transparent;
    background: linear-gradient(
        to right,
        #462523 0%,
        #cb9b51 22%, 
        #f6e27b 45%,
        #f6e27b 55%,
        #cb9b51 78%,
        #462523 100%,
        #462523 122%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.sort-dropdown {
    font-family: 'Dumverse';
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
}

.trait-section {
    font-weight: 200;
    margin-bottom: 2px;
    border-radius: 4px;
    overflow: hidden;
}

.trait-header {
    font-weight: 200;
    padding: 2px;
    background-color: #b47aea;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.trait-header:hover {
    background-color: #b47aea;
}

.trait-content {
    padding: 2px;
    display: none;
    border-top: 1px solid #ddd;
}

.trait-content.expanded {
    display: block;
}

.trait-header .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.trait-header.expanded .arrow {
    transform: rotate(180deg);
}

.trait-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding-left: 8px;
}

.trait-option label {
    font-size: 14px;
    color: white;
    cursor: pointer;
}

.trait-option input[type="checkbox"] {
    cursor: pointer;
}

.trait-option input[type="checkbox"] {
    cursor: pointer;
}

/* Main content area */
.browser-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* NFT Grid */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px;
    width: 100%;
    max-width: 100%;
}



.sidebar-toggle {
    display: none;
    position: absolute;
    top: -50px;
    margin-top: 0px;
    left: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    padding: 8px;
    border: 1px solid white;
    border-radius: 4px;
    background: linear-gradient(to right, #9cd7ed, #029dd1);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Add the exact active effect */
.sidebar-toggle:active {
    transform: scale(0.95);
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.sidebar-toggle .hamburger-icon {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* Base styles for the container */
.hamburger-icon {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* Common styles for all three lines */
.hamburger-icon::before,
.hamburger-icon::after,
.hamburger-icon div {
    content: '';
    position: absolute;
    height: 2px;
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Top line */
.hamburger-icon::before {
    top: calc(50% - 10px);
    width: 26px;
}

/* Middle line */
.hamburger-icon div {
    top: 53%;
    transform: translate(-50%, -50%);
    width: 20px;
}

/* Bottom line */
.hamburger-icon::after {
    top: calc(50% + 10px);
    width: 14px;
}




/* Active state */
.sidebar-toggle.active {
    background: #b47aea;
}

/* Rest of the sidebar styles remain the same */
.browser-sidebar {
    width: 250px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: static;
    height: auto;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}






/* NFT Cards */
.nft-card {
    background-color: #b47aea;
    border-radius: 8px;
    padding: 15px;
    width: 210px;
    height: 300px; /* Static height for the thumbnail */
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nft-card:hover {
    transform: translateY(-2px);
}

.nft-card img {
    width: 100%;
    height: 200px; /* Static height */
    object-fit: contain; /* Scale image to fit the box without overflowing */
    border-radius: 8px;
}

.nft-card h3 {
    margin: 2px 0;
    padding-bottom: 5px;
    font-size: 20px;
    font-weight: 200;
    color: white;
    text-align: center;
    border-bottom: 1px solid white;
}

.nft-card p {
    margin: 2px 4px;
    font-size: 14px;
    color: white;
    text-align: left;
}

/* Pagination */
.pagination-container {
    margin: auto;
    padding: 20px 0;
    background: transparent;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-controls button {
    padding: 8px 16px;
    border: 1px solid white;
    color: white;
    border-radius: 4px;
    background: linear-gradient(to right, #9cd7ed, #029dd1);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-controls button:hover {
    background: white;
    color: #029dd1;
}

.pagination-controls button.active {
    background: #b47aea;
    color: white;
    border-color: white;
}

.pagination-controls button:disabled {
    background: transparent;
    cursor: not-allowed;
    opacity: 0.0;
}

/* Modal */
.nft-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
}

.modal-header h2 {
    font-weight: 200;
    font-size: 32px;
    text-align: center;
    top: 0;
    margin-top: 0px;
    margin-bottom: 0px;
    text-decoration: underline;
}


.rarity-section {
    text-align: center;
    margin-bottom: 0;
    bottom: 0;
    margin-top: 5px;
}

.rarity-rank {
    font-weight: 200;
}

.modal-content {
    font-weight: 200;
    background: #b47aea;
    border: solid 1px white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 26px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 36px;
    cursor: pointer;
    color: white;
    font-weight: 200;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 0px;
}

.left-column {
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
    padding: 0;
}

.right-column {
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
    padding: 0;
}

.bazar-linkout {
    text-align: center;
    margin-top: 0;  
    margin-bottom: 5px;
    padding: 0;  /* Reset padding */
}

.bazar-link {
    font-family: Dumverse;
    color: white;
    text-decoration: none;
    display: inline-block;  /* Makes the link respect line-height */
}

.bazar-link:hover {
    font-family: Dumverse;
    opacity: 0.8;
}

.truncated-id {
    font-family: Dumverse;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 0;
}

.modal-image img {
    margin-top: 0px;
    width: 100%;
    border-radius: 8px;
}

.modal-details {
    margin-top: 5px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 26px;
    width: auto;
    height: 360px; /* Allow it to grow fully in height */
    overflow-y: auto;
    display: flex;  /* Use flexbox */
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Ensure space is evenly distributed */
    box-sizing: border-box;
    
    &::-webkit-scrollbar {
        width: 8px;  /* Width of the scrollbar */
    }

    &::-webkit-scrollbar-track {
        background: rgba(140, 82, 255, 0.6);  /* Subtle track */
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
        background: rgba(140, 82, 255, 0.6);  /* Using your #b47aea with opacity */
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: rgba(140, 82, 255, 0.8);  /* Lighter on hover */
    }

    /* For Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.modal-details h3 {
    text-align: center;
    font-size: 26px;
    font-weight: 200;
    margin: 10px 0;
    padding-bottom: 5px;
    border-bottom: white 2px solid;
    width: 100%;
}



.modal-details p {
    font-weight: 200;
    font-size: 18px;

}

.trait-item {
    background: #b47aea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 200;
    margin-left: 5px;
}

.trait-count {
    margin-left: auto;
    font-size: 12px;
    color: white;
    padding-right: 10px;
}

.total-score {
    text-align: center;
    width: 100%;
    padding-top: 5px;
    border-top: white 2px solid;
}

@media (max-width: 850px) {
    .nft-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .rarity-container {
        width: 75vw;
        left: 0;
        margin-left: 0;
        right: auto;
        padding: 0 20px;
        margin-top: 90px;

    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .browser-sidebar {
        position: absolute;
        left: auto;
        right: auto;
        top: 10px;
        margin-top: 0;
        height: fit-content;
        background: #b47aea;
        border-radius: 26px;
        z-index: 999;
        transform: translateX(-200%);
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    .browser-sidebar.active {
        transform: translateX(3%);
    }

    .dumdumz-browser {
        position: relative;
    }

    .browser-main {
        width: 100%;
    }

    .bazar-linkout {
        font-size: 12px;
        text-align: center;
        margin-top: 0;  
        margin-bottom: 5px;
        padding: 0;  /* Reset padding */
    }

    .nft-modal {
        display: none;
        position: fixed;
        height: 150%;
        top: -70px;
        z-index: 10000;
    }

    .modal-content {
        transform: scale(.8);
        font-weight: 200;
        background: #b47aea;
        border: solid 1px white;
        margin: 2.5% auto;
        padding: 20px;
        width: 90%;
        max-width: 800px;
        border-radius: 26px;
        position: relative;
    }
    
    .modal-body{
        display: flex;
        flex-direction: column;
    }

    .modal-header h2 {
        font-weight: 200;
        font-size: 26px;
        text-align: center;
        top: 0;
        margin-top: 0px;
        margin-bottom: 0px;
        text-decoration: underline;
    }

    .modal-details h3 {
        text-align: center;
        font-size: 18px;
        font-weight: 200;
        margin: 10px 0;
        padding-bottom: 5px;
        border-bottom: white 2px solid;
        width: 100%;
    }
    
    
    
    .modal-details p {
        font-weight: 200;
        font-size: 14px;
    
    }

    .trait-item {
        background: #b47aea;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 95%;
        padding: 5px;
        margin-bottom: 10px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 200;
        margin-left: 5px;
    }
    
    .trait-count {
        margin-left: auto;
        font-size: 10px;
        color: white;
        padding-right: 10px;
    }

}

@media (min-width: 880px) {
    .nft-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browser-sidebar {
        width: 250px;
        flex-shrink: 0;
    }


}

@media (min-width: 1120px) {
    .nft-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1390px) {
    .nft-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1650px) {
    .nft-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}