/* import google font*/

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;700;900&display=swap");

blockquote,
body,
dd,
div,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
li,
ol,
p,
pre,
td,
th,
ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background: #f7f7f7;
    color: #000;
    margin: 0;
    padding: 1rem;
    font-family: Roboto;
    font-size: 12px;
    line-height: 1.3;
    min-height: calc(100vh - 80px);
    font-weight: 400;
}

h1 {
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.18em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    padding: 60px 0 500px;
    transition: all 0.3s cubic-bezier(.63, 0, .78, .71);
}

.grid.dark {
    opacity: 0.5;
    filter: blur(3px);
}

.nft-card {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    min-height: 180px;
    min-width: 180px;
    overflow: hidden;
    display: flex;
    position: relative;
}

.nft-card:hover {
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);

}

.nft-card img {
    min-width: 100%;
    /* width: 102%; */
    min-height: 100%;
    border-radius: 6px;
    transition: all 1.5s cubic-bezier(.63, 0, .78, .71);
}

.nft-card img:hover {
    transform: scale(1.1);
    transition: all 0.12s ease-in-out;
}

.nft-card:active img {

    filter: contrast(1.4) saturate(0.8);
}

.viewer {
    padding: 20px 0;
    background: #fff;
    border-radius: 18px;
    position: fixed;
    width: 100%;
    z-index: 9;
    left: 0;
    height: 400px;
    /* transition: all 1.2s cubic-bezier(.1,.52,.13,.93) ; */
    transition: all 0.6s cubic-bezier(.63, 0, .78, .71);
    top: 50%;
    left: 50%;
    width: calc(100vw - 200px);
    text-align: center;
    transform: translate(-50%, -350%);
    max-height: 100%;
    /* overflow: hidden; */
    box-shadow: 10px 20px 48px -2px rgba(0, 0, 0, 0.18);
    max-width: 1400px;
}

.viewer.show {
    height: 400px;
    transition: all .8s cubic-bezier(.1, .52, .13, .93);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.viewer.show.hide {
    pointer-events: none;
    opacity: 0;
}

.item-info {
    position: absolute;
    width: 100%;
    text-align: left;
    width: 100%;
    margin: 10px 0 0 30px;
    pointer-events: none;
    z-index: 2;
}

.avatar-title {
    font-size: 15px;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 8px 0 0 8px;
    display: inline-block;
    width: 180px;

    display: none;
}

.viewer iframe {
    width: calc(100% - 450px);
    height: 400px;
    border: none;
    margin: 0;
    margin: 0 0 0 10px;
    /* background-color: #000; */
    z-index: 0;
    position: relative;

}

.vrm-viewer {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    margin: 0 auto 1.5rem;
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
}

#vrmCanvas {
    width: 100%;
    height: 100%;
    display: block;
}
#glbCanvas:hover {
    cursor:ew-resize;
}
.preview-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.preview-wrapper img,
.preview-wrapper canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    /* object-fit: contain; */
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.preview-wrapper img,
.preview-wrapper canvas {
    transition: opacity 0.25s ease-out;
}

.toggle-preview {
    margin-top: 0;
    display: block;
    text-align: center;
    position: fixed;
    left: 10px;
    top: 26px;
    padding: 4px 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #888;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    opacity: 0.8;
    z-index: 999999999999;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards ;
    animation-delay: 1s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



.glb-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0, 0.4)
    backdrop-filter: blur(3px);
    font-size: 14px;
    color: #dddddd;
    opacity: 1;
    transition: opacity 0.25s ease-out;
    z-index: 10;
}

.glb-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid #000;
    border-top-color: #eee;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.avatar-image {
    max-width: 400px;
    border-radius: 8px;
    transition: all 1s ease;
    opacity: 0;
    transform: scale(1.03);
    filter: brightness(10) saturate(0);
}

.avatar-image.fade-out, .avatar-image.fade-in.fade-out {
    opacity: 0;
    filter: brightness(10) saturate(0);
    transform: scale(1.03);
}

.avatar-image.fade-in {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transition: all 2s ease;
    transform: scale(1);
}


.profilepic-holder {
    width: 400px;
    height: 400px;
    background: #fff;
    display: inline-block;
    border-radius: 12px;
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: url(../images/skeleton.webp);
    background-size: auto 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: center;
}

button:disabled {
    background-color: #ccc;
    cursor: no-drop;
}

.token-id, .rarity-rank {
    position: absolute;
    margin: 2px 0 0 5px;
    font-size: 10px;
    opacity: 0.4;
    z-index: 9;
    color: #000;
}

.rarity-rank {
    right: 4px;
    opacity: 0.2;
    margin: 2px 0 0 0;
}

.rarity-rank svg {
    position: absolute;
    margin: -2px 0 0 -16px;
    transform: scale(.8);
}



.topbar {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000;
    padding: 16px 18px;
    width: 100%;
    height: 24px;
    z-index: 999999;
}

.topbar h1 {
    display: inline-block;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 100;
    color: #fff;
    visibility: hidden;
    position: absolute;
    margin: -200px 0 0 -200px;
}

.topbar .logo {
    width: 250px;
    position: absolute;
    margin: -9px 0 0 -5px;
}

.topbar a:hover {
    cursor: pointer;
}

/* .topbar:before,
.topbar:after {
    display: block;
    content: ' ';
    position: fixed;
    width: 100%;
    height: 140px;
    top: 0;
    left: 0;
    background: linear-gradient(360deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.53) 50%, rgba(8, 0, 0, 0.99) 100%);
    z-index: -1;
    pointer-events: none;
}

.topbar:after {
    bottom: 0;
    top: unset;
    background: linear-gradient(360deg, rgba(8, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.53) 50%, rgba(0, 0, 0, 0) 100%);
} */

.search-bar {
    /* display: flex;
      justify-content: center;
      margin-bottom: 1rem; */
    display: inline-block;
    position: fixed;
    margin: 10px;
    right: 0;
    top: 0;
}

.search-bar-stats {
    position: absolute;
    margin: -58px 0 0 0;
    width: 193px;
    right: -8px;
    opacity: 1;
    transition: all 1s cubic-bezier(.63, 0, .78, .71);
}

.hide-navitem {
    opacity: 0 !important;
    pointer-events: none;
}

.search-bar input, .search-bar-stats input {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    width: 130px;
    border: none;
    /* border-radius: 6px 0 0 6px; */
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
    outline: none !important;
}

.search-bar input::placeholder, .search-bar-stats input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar-stats input {
    padding: 6px 1rem;
    font-size: 14px;
    width: 120px;
    background: #000;
    border: 1px solid rgba(2255, 255, 255, 0.2);
}

.search-bar button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: none;
}

.marketplace-button {
    position: absolute;
    right: 0;
    font-size: 15px;
    font-weight: 300;
    text-transform: uppercase;
    margin: 68px 68px 0 0;
    padding: 0;
    text-decoration: none;
    font-size: 0.9rem;
    transform: scale(.6);
    pointer-events: all;
}

.marketplace-button:hover {
    filter: saturate(0) contrast(40);
}

#closeViewerBtn {
    position: fixed;
    font-size: 15px;
    font-weight: 300;
    text-transform: uppercase;
    opacity: 1;
    margin: -40px -10px 0 0;
    right: 0;
    z-index: 8;
    background: #fff;
    font-size: 29px;
    cursor: pointer;
    color: #ccc;
    border: none;
    padding: 4px 12px;
    border-radius: 50%;
    pointer-events: all;
}

#closeViewerBtn:hover {
    color: #000000;
}

/* TBA */
#preview-img {
    max-width: 100%;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.2); */
}

/* #iframe-container {

    background: #000;
} */

iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
}

body.iframe-body {
    background: #fff;
}

button#toggle-btn {
    padding: 0rem 0.2rem;
    font-size: 1rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
}

button#toggle-btn:hover {
    background: #333;
}

button#toggleback-btn {
    /* padding: 0rem 0.2rem;
    font-size: 1rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 10px; */
    display: none;
}

button#toggleback-btn:hover {
    background: #333;
}



/* TBA content */
#address-label {
    margin-right: 4px;
}

.tba-address {
    color: #555;
    padding-right: 38px;

    max-width: 50px;
    overflow: hidden;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    float: right;

}

.inventory-holder {
    height: 310px;
    overflow-y: auto;
    min-height: 310px;
    min-height: 310px;
}

.inventory {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0 16px 0 0px;
}

.inventory-tabs {
    display: flex;
    gap: 8px;
    margin: -3px 0 0 0;
    /* opacity: 0;
    pointer-events: none; */
}


.inventory-tabs .tab, .download-vrm-btn {
    padding: 4px 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #888;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    opacity: 0.8;
}

.inventory-tabs .tab.active {
    border-color: #888;
    background: #262626;
    color: #fff;
}


.download-vrm-btn {
    position: absolute;
    right: 10px;
    top: 27px;
}

.download-vrm-btn svg, #togglePreviewBtn svg {
    width: 12px;
    height: 12px;
    stroke: #888;
    margin: 0 0 0 2px;
}
#togglePreviewBtn svg {
width: 16px;
    height: 16px;
    stroke: #888;
    margin: -3px 5px -3px 5px;
}

.download-vrm-btn:hover {
    color: #000000;
}

.download-vrm-btn:hover svg {
    stroke: #000000;
    transform: scale(1.1);
}

.asset-list .empty, .asset-list .loading, .asset-list .error {
    opacity: .8;
    padding: 0;

    font-size: 16px;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 0.1rem;
    opacity: 0.6;
}

ul.asset-list {
    list-style: none;
    padding: 0;
    /* max-width: 800px; */
    margin: 0;
    display: flex;
    /* gap: 1rem; */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

ul.asset-list li {
    margin: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

ul.asset-list li.nft-item {

    margin: 4px 8px;
}

ul.asset-list li.nft-item img {
    height: 100px;
    width: 100px;
    border-radius: 6px;
    border: 1px solid #444;
}

ul.asset-list li.erc-20 {
    /* height: 66px;
    width: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 38px 18px 0px 18px;
    text-align: center;
    background: #222;
    margin: -20px 6px 0;
    border-radius: 6px;
    background: #0000f5;
    color: #fff; */

    height: 82px;
    width: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 38px 18px 0px 18px;
    text-align: center;
    background: #222;
    margin: 10px 6px 0;
    border-radius: 6px;
    background: #0000f5;
    color: #fff;
    margin: 4px 8px;
}


ul.asset-list li.erc-20::before {
    content: "";
    position: absolute;
    width: 35px;
    height: 30px;
    transform: translateY(-45px);
    background: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><g fill='none' fill-rule='evenodd'><g fill='%23FFF' fill-rule='nonzero'><path fill-opacity='.602' d='M16.498 4v8.87l7.497 3.35z'/><path d='M16.498 4L9 16.22l7.498-3.35z'/><path fill-opacity='.602' d='M16.498 21.968v6.027L24 17.616z'/><path d='M16.498 27.995v-6.028L9 17.616z'/><path fill-opacity='.2' d='M16.498 20.573l7.497-4.353-7.497-3.348z'/><path fill-opacity='.602' d='M9 16.22l7.498 4.353v-7.701z'/></g></g></svg>");
}

.erc20-label {
    opacity: 0.4;
}

.erc-20 .title {
    font-size: 18px;
    margin: -20px 0 0;
}

.erc-20 .title-type {
    font-size: 12px;
    /* color: #557ac9; */
    min-width: 60px;
    opacity: 0.75;

    margin: 0px 0 -50px;
}

.erc1155 .title, .erc721 .title {
    text-align: center;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 102px;
}

ul.asset-list li:hover {
    /* background: #222; */
}

.inventory-header {

    border-bottom: 1px solid #ccc;
    display: flex;
    margin: 15px 0 20px 0;
    padding: 0 0 10px 0;
    justify-content: space-between;
    /* pushes h1 left and p right */
    align-items: center;
    width: calc(100% - 10px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.inventory-header.fade-in {
    opacity: 1;
}

.inventory-header.fade-in.fade-out {
    opacity: 0;
}

.inventory-holder.fade-out {
    opacity: 0;
    transform: scale(0.5);
}

.inventory-header h1 {
    text-transform: uppercase;
    font-size: 16px;
}

.inventory-header p {
    color: #888;
}

p.deploy-status {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 0.1rem;
    opacity: 0.6;
    text-align: center;
    position: absolute;
    left: calc(50% - 150px);
    z-index: 9999999999999;
    width: 300px;
    margin-top: 80px;
}

li.load-status {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 0.1rem;
    opacity: 0.6;
}


.asset-panel {
    padding: 0;
}

.asset-panel img {
    max-width: 150px;
    opacity: 0;
    transform: scale(0.01);
    transition: all 0.6s cubic-bezier(.1, .52, .13, .93);
}

.asset-panel img:hover {
    opacity: 0.9;
}

.asset-panel img.loaded {
    opacity: 1;
    transform: scale(1);
}

.asset-panel img.x1,
.asset-panel img.x2,
.asset-panel img.x3 {
    max-width: 250px;
}

.asset-panel img.x4 {
    max-width: 200px;
}

.asset-panel img.x5 {
    max-width: 150px;
}

.asset-panel img.x12 {
    max-width: 120px;
}

.send-controls {
    margin-top: 1rem;

    display: none;
}

.send-controls input[type="text"],
.send-controls input[type="number"] {
    padding: 0.5rem;
    margin: 0.25rem;
    width: calc(100% - 2rem);
}

.send-controls button {
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    background: #444;
    border: 1px solid #666;
    color: #fff;
    cursor: pointer;
    display: block;
    width: 100%;
}

.item-quantity {
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #eee;
    border-radius: 50%;
}

img.token-thumb {
    max-width: 100px;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

#deploy-tba-btn {
    padding: 8px 12px 7px 12px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    cursor: pointer;
    margin: 1rem auto;
    border-radius: 8px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 0.1rem;
    opacity: 0.8;
    /* opacity: 0; */
    transform: scale(0.3);
    transition: all 0.5s;
    /* pointer-events: none;
    display: none; */
    position: absolute;
    left: calc(50% - 121px);
}

.copy-btn {
    margin: -11px 0 0 0;
    background: transparent;
    border: none;
    transform: translateY(5px);
    position: absolute;
    right: 162px;
}

.copy-btn:hover {
    cursor: pointer;

}

.copy-btn svg {
    width: 23px;
    height: 24px;
    fill: #888;
    display: block;
    margin: 0;
    transform: scale(0.6);
}

.copy-btn:hover svg {
    fill: #fff;
    transform: scale(0.65);
}

#inventory-list li {
    position: relative;
}

.item-actions {
    position: absolute;
    top: 0;
    left: 0;
    gap: 5px;
    z-index: 2;
    width: 102px;
    /* background: red; */
    display: none;
    padding: 4px 0;
    justify-content: space-evenly;
}

li.nft-item:hover .item-actions, li.erc-20:hover .item-actions, li.eth:hover .item-actions {
    display: flex;
}

.item-actions .mini {
    font: inherit;
    padding: 5px 8px 4px 8px;
    border-radius: 18px;
    border: 1px solid var(--border, #666);
    background: #111;
    cursor: pointer;
    color: #fff;
}

#inventory-list li#hidden-toggle-li {
    position: absolute;
    right: 5px;
    top: 45px;
}

#inventory-list li#hidden-toggle-li .mini {

    padding: 4px 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #ddd;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    opacity: 0.8;
}

.send-panel {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 10px 10px 4px 10px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .85);
    display: none;
    z-index: 3;
    border: 1px solid #555;
    max-width: 280px;
    overflow: hidden;
}

.send-panel.open {
    display: block;
}

.send-panel .mini {
    padding: 4px 12px;
    border: 1px solid transparent;
    background: #ccc;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    opacity: 0.8;
}

.send-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.send-row input {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #555;
    background: #111;
    color: #fff;
}

.send-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

@keyframes pulseOpacity {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.send-status {
    margin-top: 6px;
    font-size: .9em;
    opacity: .85;
    border-top: 1px solid #444;
    padding: 4px 0;
    opacity: 0.6;
    /* starting opacity */
    animation: pulseOpacity 1.5s ease-in-out infinite;
    text-align: center;
}

.send-status:empty {
    border: none;
    padding: 0;
}

.pending-remove {
    opacity: 0.5;
    transition: opacity .12s ease;
}

.pending-remove.removed {
    display: none;
}

#hidden-toggle-li {
    list-style: none;
    display: flex;
    justify-content: center;
}

#hidden-toggle-li .mini {
    margin: 8px auto;
}

#deploy-tba-btn.fade-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#deploy-tba-btn:hover {
    background: #000;
    transform: scale(0.95);
}




/* loader */
#iframe-container {
    z-index: 1;
    position: relative;
}

@keyframes loaderFade {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }

    80% {
        opacity: 0;
        transform: scale(0.1);
    }

    100% {
        opacity: 1;
        transform: scale(0.8);
    }
}

.loader-holder {
    padding: 12px 24px;
    min-height: 36px;
    display: inline-block;
    margin: 0;
    border-radius: 4px;
    position: absolute;
    left: calc(62%);
    top: calc(50% - 22px);
    z-index: 0;
}

.viewer.show .loader-holder {
    animation-name: loaderFade;
    animation-duration: 2s;
    transform: scale(0.8);
}

.loader {
    position: relative;
    width: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loader::after, .loader::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #a494ed;
    background-image: radial-gradient(circle 12px, #0d161b 100%, transparent 0);
    background-repeat: no-repeat;
    border-radius: 50%;
    animation: eyeMove 10s infinite, blink 10s infinite;
    align-items: center;
}

@keyframes eyeMove {
    0%, 10% {
        background-position: 0px 0px
    }

    13%, 40% {
        background-position: -8px 0px
    }

    43%, 70% {
        background-position: 8px 0px
    }

    73%, 90% {
        background-position: 0px 8px
    }

    93%, 100% {
        background-position: 0px 0px
    }
}

@keyframes blink {
    0%, 10%, 12%, 20%, 22%, 40%, 42%, 60%, 62%, 70%, 72%, 90%, 92%, 98%, 100% {
        height: 36px;
        margin-top: 0px;
    }

    11%, 21%, 41%, 61%, 71%, 91%, 99% {
        height: 12px;
        margin-top: 12px;
    }
}



.h2 {
    transform: rotate(60deg);
    -webkit-transform: rotate(60deg);
}

.h3 {
    transform: rotate(-60deg);
    -webkit-transform: rotate(-60deg);
}

.gel {
    height: 30px;
    width: 30px;
    transition: all .3s;
    -webkit-transition: all .3s;
    position: absolute;
    top: 50%;
    left: 50%;
}

.center-gel {
    margin-left: -15px;
    margin-top: -15px;

    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
}

.c1 {
    margin-left: -47px;
    margin-top: -15px;
}

.c2 {
    margin-left: -31px;
    margin-top: -43px;
}

.c3 {
    margin-left: 1px;
    margin-top: -43px;
}

.c4 {
    margin-left: 17px;
    margin-top: -15px;
}

.c5 {
    margin-left: -31px;
    margin-top: 13px;
}

.c6 {
    margin-left: 1px;
    margin-top: 13px;
}

.c7 {
    margin-left: -63px;
    margin-top: -43px;
}

.c8 {
    margin-left: 33px;
    margin-top: -43px;
}

.c9 {
    margin-left: -15px;
    margin-top: 41px;
}

.c10 {
    margin-left: -63px;
    margin-top: 13px;
}

.c11 {
    margin-left: 33px;
    margin-top: 13px;
}

.c12 {
    margin-left: -15px;
    margin-top: -71px;
}

.c13 {
    margin-left: -47px;
    margin-top: -71px;
}

.c14 {
    margin-left: 17px;
    margin-top: -71px;
}

.c15 {
    margin-left: -47px;
    margin-top: 41px;
}

.c16 {
    margin-left: 17px;
    margin-top: 41px;
}

.c17 {
    margin-left: -79px;
    margin-top: -15px;
}

.c18 {
    margin-left: 49px;
    margin-top: -15px;
}

.c19 {
    margin-left: -63px;
    margin-top: -99px;
}

.c20 {
    margin-left: 33px;
    margin-top: -99px;
}

.c21 {
    margin-left: 1px;
    margin-top: -99px;
}

.c22 {
    margin-left: -31px;
    margin-top: -99px;
}

.c23 {
    margin-left: -63px;
    margin-top: 69px;
}

.c24 {
    margin-left: 33px;
    margin-top: 69px;
}

.c25 {
    margin-left: 1px;
    margin-top: 69px;
}

.c26 {
    margin-left: -31px;
    margin-top: 69px;
}

.c27 {
    margin-left: -79px;
    margin-top: -15px;
}

.c28 {
    margin-left: -95px;
    margin-top: -43px;
}

.c29 {
    margin-left: -95px;
    margin-top: 13px;
}

.c30 {
    margin-left: 49px;
    margin-top: 41px;
}

.c31 {
    margin-left: -79px;
    margin-top: -71px;
}

.c32 {
    margin-left: -111px;
    margin-top: -15px;
}

.c33 {
    margin-left: 65px;
    margin-top: -43px;
}

.c34 {
    margin-left: 65px;
    margin-top: 13px;
}

.c35 {
    margin-left: -79px;
    margin-top: 41px;
}

.c36 {
    margin-left: 49px;
    margin-top: -71px;
}

.c37 {
    margin-left: 81px;
    margin-top: -15px;
}

.r1 {
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .2s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .2s;
}

.r2 {
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .4s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .4s;
}

.r3 {
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .6s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .6s;
}

.r1>.hex-brick {
    animation-name: fade;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .2s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .2s;
}

.r2>.hex-brick {
    animation-name: fade;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .4s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .4s;
}

.r3>.hex-brick {
    animation-name: fade;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .6s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .6s;
}


@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(0.01);
        transform: scale(0.01);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes fade {
    0% {
        background: #dff3fa9f;
    }

    50% {
        background: #000000;
    }

    100% {
        background: #dff3fa9f;
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(0.01);
        transform: scale(0.01);
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(0.01);
        transform: scale(0.01);
    }
}

@-webkit-keyframes fade {
    0% {
        background: #ABF8FF;
    }

    50% {
        background: #389CA6;
    }

    100% {
        background: #ABF8FF;
    }
}


#prevBtn, #nextBtn, #shareBtn, #statsBtn, #profileBtn {
    position: fixed;
    margin: 160px 8px 0 0;
    left: -65px;
    pointer-events: auto;
    cursor: pointer;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: #fff;
    color: #ccc;
    font-size: 50px;
    overflow: hidden;
    z-index: 999999;
    box-shadow: 10px 10px 18px -2px rgba(0, 0, 0, 0.18);
}

#prevBtn:hover, #nextBtn:hover, #shareBtn:hover, #profileBtn:hover {
    background: #000000;
    color: #fff;
}


#nextBtn {
    left: unset;
    right: -70px;
    margin: 160px 8px 0 0;
}

#shareBtn {
    left: unset;
    right: -70px;
    margin: 85px 8px 0 0;


}

#profileBtn {
    margin: 85px 8px 0 0;
}

#statsBtn {
    position: absolute;
    margin: 3px 0 0 0;
    left: -45px;
    height: 30px;
    width: 30px;
    background: #111;
}

#statsBtn:hover {
    background: #333;

}

#prevBtn svg, #nextBtn svg, #shareBtn svg, #statsBtn svg, #profileBtn svg, #profileBtn svg g {
    width: 40px;
    height: 40px;
    fill: #111;
    display: block;
    margin: 4px 0 0 10px;
}

#prevBtn:hover svg, #nextBtn:hover svg, #shareBtn:hover svg, #statsBtn:hover svg, #profileBtn:hover svg, #profileBtn:hover svg g {
    fill: #fff !important;
}

#shareBtn svg {
    margin: 5px 0 0 7px;
}

#statsBtn svg {
    margin: 3px 0 0 4px;
    /* border: 1px solid red; */
    position: absolute;
    width: 30px;
    height: 30px;
    transform: scale(0.6);
}

#profileBtn svg {
    margin: -5px 0 0 -5px;
    /* margin:1px 0 0 1px; */
}

#prevBtn:hover svg, #nextBtn:hover svg, #shareBtn:hover svg, #profileBtn:hover svg g, #profileBtn:hover svg path {
    fill: #333;
}


.notification-bar {
    position: fixed;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f9443;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999999;
    display: flex;
}

.notification-bar.nested {
    left: -25px;
    transform: translateX(0);
    background: #000000;
    color: #fff;
    padding: 13px 20px;
    border-radius: 0;
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
        /* margin-top: 12px; */
}

.notification-bar.alert {
    border-bottom: 1px solid #c1bd7e;
}

.notification-bar.show {
    opacity: 1;
}

.notification-bar svg {
    height: 30px;
    width: 30px;
    margin: -5px -10px -10px -1px;
    fill: #fff;
}


/* Leaderboard/stats */
body.stats {
    background: #111;
    /* padding: 40px 0 0 0; */
    padding: 0;
}

body.stats h1 {
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 12px;
}

#leaderboard {
    padding: 2rem 2rem 4rem;
    max-width: 1000px;
    margin: auto;
    position: relative;
}

#leaderboard h1 {
    font-size: 20px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 0 18px 0;
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-card {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    background: #000;
    padding: 8px 130px 16px 8px;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(.63, 0, .78, .71);
    transform: translateY(60px);
    overflow: hidden;
}

.stats-card.gold, .stats-card.silver, .stats-card.bronze {
    margin-bottom: 0.8rem;
}

.stats-card.show {
    opacity: 1;
    transform: translateY(0);
}

.stats-card.ghost {
    height: 90px;
    /* opacity: 1; */
    background: linear-gradient(100deg, #222 30%, #333 40%, #222 50%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    /* transition: all 0.4s ease; */
    margin: 0px 0 100px;
    padding: 0 38px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #333;
}


.stats-card.ghost.hide {
    opacity: 0;
    animation: none;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes topThree-loader {
    0% {
        filter: brightness(1);
    }

    25% {
        filter: brightness(21);
    }

    100% {
        filter: brightness(1);
    }
}


.stats-card.gold {
    border: 1px solid #FFD700;
    /* Gold */
    box-shadow: 0 0 8px #FFD700 inset;
    background: linear-gradient(135deg, #000, #4f4313);
    animation: topThree-loader 2s 1 ease-in-out;
}

.stats-card.gold .badge-score {
    color: #FFD700;

}



.stats-card.silver {
    border: 1px solid #C0C0C0;
    /* Silver */
    box-shadow: 0 0 8px #C0C0C0 inset;
    background: linear-gradient(135deg, #000, #484848);
    animation: topThree-loader 2.5s 1 ease-in-out;
}

.stats-card.silver .badge-score {
    color: #C0C0C0;
}

.stats-card.bronze {
    border: 1px solid #cd7f32;
    /* Bronze */
    box-shadow: 0 0 8px #cd7f32 inset;
    background: linear-gradient(135deg, #000, #4c3115);
    animation: topThree-loader 3s 1 ease-in-out;
}

.stats-card.bronze .badge-score {
    color: #cd7f32;
}



.stats-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    transition: all 0.1s cubic-bezier(.63, 0, .78, .71);
    margin-bottom: -12px;

}

.stats-card.gold .stats-thumb, .stats-card.silver .stats-thumb, .stats-card.bronze .stats-thumb {
    width: 100px;
    height: 100px;
}



.stats-thumb:hover {
    filter: contrast(1.4) saturate(0.8);
    transform: scale(0.95);
}

.stats-info h3 {
    margin: 0px 0 5px 6px;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.5;
}

.stats-info a {
    display: block;
    margin: -5px 0px -5px;
    float: left;
}


.stats-card.gold .stats-info, .stats-card.silver .stats-info, .stats-card.bronze .stats-info {
    margin: 0px -4px -5px;
}







.stats-badges {
    margin-top: 10px;
}

.stats-badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    mix-blend-mode: plus-lighter;
    filter: brightness(1.1);
}

.stats-card.gold .stats-badge-icon, .stats-card.silver .stats-badge-icon, .stats-card.bronze .stats-badge-icon {
    width: 60px;
    height: 60px;
}

.loading-banner {
    text-align: center;
    color: #eee;
    background-color: #000;
    font-weight: bold;
    padding: 10px 0 6px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.6s cubic-bezier(.63, 0, .78, .71);
    animation: pulse-loader 4s infinite ease-in-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    top: 0px;
    width: 100%;
    overflow: hidden;
    z-index: 99;
    margin-top: -50px;
}

.loading-banner.show {
    margin-top: 0px;
}

#load-text {
    padding-right: 20px;
    font-weight: 700;
}

@keyframes pulse-loader {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
        filter: invert(1);
    }

    100% {
        opacity: 0.4;
    }
}



.stats-badges a img {
    transition: transform 0.2s ease-in-out;
}

.stats-badges a:hover img {
    transform: scale(1.4);
}


.badge-score {
    color: #222;
    margin: -5px 18px 6px 50px;
    font-size: 68px;
    position: absolute;
    right: 0;
    font-weight: 900;
    top: 0;
    letter-spacing: -5px;
    z-index: -1;
}


.stats-card.gold .badge-score, .stats-card.silver .badge-score, .stats-card.bronze .badge-score {
    margin: 3px 18px 6px 50px;
    font-size: 88px;
}

.badge-filter, .trait-filter {
    position: absolute;
    margin: -64px 0 0 -12px;
    transition: all 1.5s cubic-bezier(.63, 0, .78, .71);
    opacity: 1;
    padding: 4px 12px;
    border-radius: 8px;
}

.trait-filter {
    margin: -22px 0 0 200px;
    right: 300px;
}

.trait-filter label {
    display: none;
}

.trait-filter select {
    text-align: right;
    padding-right: 6px !important;
}

#no-results {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 100;
    margin-top: 100px;
}

.badge-filter label {
    margin: 0px 0 0 0;
    opacity: 0.4;
    display: block;

}

.badge-filter select, .trait-filter select {
    filter: invert(1);
    opacity: 0.6;
    width: 140px;
    padding: 0;
    border-radius: 4px;
    border: none;
    background: transparent;
    margin: 22px 0 0 0;
    outline: none;
}


h3.metadata-title {
    border-top: 1px solid #333;
    padding-top: 15px;
    border-bottom: 1px solid #333;
}

h4 {
    letter-spacing: .5px;
    text-align: left;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
    padding: 0px 0 0px 0;
}

p.profile-desc {
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--muted);
}


/* Container for the traits */
.traits-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 10px;
    /* space between cards */
    list-style: none;
    margin: 10px 0;
    padding: 0;
}

/* Each trait card */
.traits-list .trait {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ddd;
    /* light gray */
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: system-ui, sans-serif;
        position: relative;
}

.traits-list .trait:hover {
    background-color: #000000;
    cursor: pointer;
}

/* Trait type (top label) */
.traits-list .trait-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.traits-list .trait:hover .trait-type {
    color: #fff;
}



/* Trait value (main text) */
.traits-list .trait-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 2px;
}

.traits-list .trait:hover .trait-value {
    color: rgba(255, 255, 255, 0.6);
}

/* Rarity display */
.traits-list .trait-rarity {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    background: var(--card);
    border-radius: 4px;
    padding: 2px 6px;
    align-self: flex-start;
    border: 1px solid #ccc;
        position: absolute;
    right: 10px;
}

.traits-list .trait:hover .trait-rarity {
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
}


.metadata-holder {
    overflow: hidden;
    transition: all .8s cubic-bezier(.63, 0, .78, .71);
    position: relative;
    max-height: 100%;
    width: 100%;
}

.metadata-holder.closed {
    max-height: 3.5rem;
    /* just enough to show the button */
    transition: all .3s cubic-bezier(.63, 0, .78, .71);
}

.metadata-toggle-btn {
    display: flex;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: absolute;
    right: 5px;
    margin-top: 10px;

    width: 100%;
    /* text-align: right; */
    justify-content: flex-end;
    align-items: baseline;
}

.metadata-toggle-btn svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s cubic-bezier(.63, 0, .78, .71);
    transform: rotate(0deg) translateY(5px);
}

.metadata-toggle-btn.closed svg {
    transform: rotate(180deg) translateY(-5px);
}

.metadata-content {
    padding: 1rem;
}

.traits-section #no-results {
    margin: 0;

}

/* RESPONSIVE */

/* less than 1600px */
@media (max-width: 1600px) {
    .viewer {}

}

@media (max-width: 1400px) {
    .marketplace-button {
        margin: 50px 52px 0 0;
    }

}

/* less than 1290px */
@media (max-width: 1290px) {
    .viewer {
        width: calc(100vw - 50px);
    }

    #prevBtn, #profileBtn {
        left: -10px;
    }

    #nextBtn, #shareBtn {
        right: -17px;
    }
}

/* less than 1024px */
@media (max-width: 1024px) {
#closeViewerBtn {
        background: #000;
    }
    .preview-wrapper {
    max-width: 100%;
    max-height: 400px;
    }
   .toggle-preview {
        margin: 0;
    top: 12px;
    right: 15px;
    left: unset;
    }
    .viewer, .viewer.show {
        top: 80px;
        z-index: 999999999;
    }

    .viewer.show {
        transform: translate(-50%, 0);
        top: 80px;
        height: calc(100vh - 145px);
        padding: 0;
    }

    .loader-holder {
        left: calc(50% - 67px);
        top: 508px;
        position: fixed;
    }

    .item-info {
        margin: 30px 0 0 30px;
    }

    .avatar-title {
        margin: 0px 0 0 -20px;
        position: fixed;
        top: 1%;

    }

    .item-info .marketplace-button {
        /*position: fixed;
         margin: -38px 38px 0 0;
        right: 0;
        padding: 15px 16px 12px;  */
        position: fixed;
        left: -17px;
        right: unset;

        margin: -20px 0 0 30px;
        transform: scale(.74);
    }

    .viewer iframe {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        margin-top: -5px;

    }

    body.iframed {
        overflow: hidden;
        padding: 0;
    }

    img.avatar-image {
        max-width: 100%;
        border-radius: 0;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        background-color: #000;
    }

    .search-bar input, .search-bar-stats input {
        font-size: 0.8rem;
        width: 82px;
    }



    .topbar h1 {
        font-size: 13px;
        letter-spacing: 0.2em;
    }

    .trait-filter {
        margin: -18px 0 0 200px;
    }



}

/* INSIDE IFRAME - less than 800px */
@media (max-width: 800px) {

 

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .nft-card {
        min-height: 100px;
        min-width: 100px;

    }


    .stats-card.gold {
        background: linear-gradient(135deg, #000 60%, #6e5800 100%);
    }

    .stats-card.silver {
        background: linear-gradient(135deg, #000 60%, #636363 100%);
    }

    .stats-card.bronze {
        background: linear-gradient(135deg, #000 60%, #6c3e11 100%);
    }

    .stats-thumb, .stats-card.gold .stats-thumb, .stats-card.silver .stats-thumb, .stats-card.bronze .stats-thumb {
        width: 40px;
        height: 60px;
    }

    .stats-card.gold .stats-badge-icon, .stats-card.silver .stats-badge-icon, .stats-card.bronze .stats-badge-icon {
        width: 30px;
        height: 30px;
    }

    .badge-score, .stats-card.gold .badge-score, .stats-card.silver .badge-score, .stats-card.bronze .badge-score {
        margin: 0 6px 0 0;
        font-size: 18px;
        letter-spacing: 0px;
        top: 1px;
        position: absolute;
        filter: brightness(1.3);
    }

    .stats-info .stats-card.gold .stats-info, .stats-card.silver .stats-info, .stats-card.bronze .stats-info {
        margin: -8px -4px -5px;
    }

    .stats-card.gold, .stats-card.silver, .stats-card.bronze {
        margin-bottom: 0.5rem;
    }

    .stats-info h3 {
        display: inline;
    }

    .stats-card {
        padding: 8px 8px 14px;
    }

    .stats-card.ghost {
        font-size: 18px;
        color: #666;
        height: auto;
        padding: 18px;

    }

    .asset-panel img.x1,
    .asset-panel img.x2,
    .asset-panel img.x3,
    .asset-panel img.x4,
    .asset-panel img.x5,
    .asset-panel img.x6 {
        max-width: 150px;
    }

    .asset-panel img,
    .asset-panel img.x12 {
        max-width: 100px;
    }


    #prevBtn, #nextBtn, #shareBtn {
        margin-top: 40%;
    }

    #statsBtn {
        margin: 0;
    }

    #prevBtn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        left: -25px;
    }

    #nextBtn {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        right: -34px;
    }

    #shareBtn {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        right: -25px;
        margin-top: 25%;
    }

    .inventory {
        padding: 0;
    }

    .inventory-header {
        width: 100%;
        margin: 0 0 20px 0;
     
    }

    .traits-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 3px;
        margin: 10px 0 0 0;
        padding: 0;
        pointer-events: none;
    }


    .traits-list .trait {
  flex-direction: row;
        padding: 2px 14px 3px 14px;
        justify-content: flex-start;
    }

    .traits-list .trait-type {
        margin: 4px 0 0 0;
        width: 50%;
    }

    .traits-list .trait-rarity {
        border: none;
        font-size: 10px;
        padding: 6px 6px 0 12px;
    }

    .item-info .marketplace-button {
        position: fixed;
        left: -40px;
        right: unset;
        margin: 178px 8px 0 0;
        transform: scale(.5);
        padding: 12px 12px 8px 18px;
        border-radius: 50%;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        margin: -42px 8px 0 0;
        /* filter: saturate(0) contrast(40); */
        background: #fff;
        /* box-shadow: 10px 10px 18px -2px rgba(0, 0, 0, 0.18);*/

    }

    #profileBtn {
        position: fixed;
        right: 20px;
        top: -98px;
        left: unset;
        background: #000;
        transform: scale(0.8);


    }

    .marketplace-button:hover {
        background: #fff;
    }

    .marketplace-button:hover svg {
        filter: invert(1) saturate(0) contrast(40);
    }

    #closeViewerBtn {
        margin: -47px -18px 0 0;
        right: 0;
    }

    .profilepic-holder {
        width: 100%;
        height: auto;
    }

    .avatar-title span {
        display: none;
    }

    #load-text {
        display: none;
    }

    .badge-filter, .search-bar-stats {
        display: none;
    }
    .download-vrm-btn {
  right: 0px;
    top: 14px;
}

}

/* less than 650px */
@media (max-width: 650px) {
    .trait-filter {
        display: none;
    }

}

/* INSIDE IFRAME - less than 500px */
@media (max-width: 500px) {

    .topbar .logo {
        width: 180px;
        margin: -4px 0 0 0px;
    }
    
    .asset-panel img.x1,
    .asset-panel img.x2,
    .asset-panel img.x3,
    .asset-panel img.x4,
    .asset-panel img.x5,
    .asset-panel img.x6 {
        max-width: 80px;
    }

    .asset-panel img, .asset-panel img.x12 {
        max-width: 50px;
    }

    #prevBtn, #nextBtn, #shareBtn, #statsBtn, #profileBtn {
        box-shadow: none;
    }

    .search-bar {
        margin: 12px;
    }

    .inventory-holder {
        height: calc(100vh - 390px);
        /* min-height: 100px; */
        /* background: red; */
        /* max-height: 500px; */
    }

    .inventory-header {
        flex-wrap: wrap;
        margin: 0;
    }


    .inventory-header p {
        font-size: 11px;
        right: -35px;
        position: absolute;
        margin: 45px 0 0 0;

    }

    .notification-bar.nested {
        left: -20px;
    }



    .deploy-status {
        display: none;
    }

    #leaderboard h1 {
        font-size: 13px;
    }

    .inventory-tabs {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        justify-content: end;
        padding: 0 0 10px 0;
        margin: -25px 0 20px 0;
    }

    ul.asset-list li.nft-item img {
        height: 75px;
        width: 75px;
    }

    ul.asset-list li.erc-20 {
        height: 57px;
        width: 50px;
        margin: 0px 6px 0;

    }

    ul.asset-list li.erc-20::before {
        transform: translateY(-40px);
    }

    .erc-20 .title {
        font-size: 15px;
        margin-top: -20px;
    }

    .erc1155 .title, .erc721 .title {
        max-width: 77px;
    }

    .item-actions {
        gap: 5px;
        width: 69px;
        padding: 2px 4px;
        flex-direction: column;
    }

    .erc-20 .item-actions {
        width: 78px;
    }

    .item-actions .mini {
        padding: 8px;
    }

    #inventory-list li#hidden-toggle-li {
        top: 75px;
    }

    .send-panel {
        bottom: unset;
        top: 88px;
        z-index: 9999999;
        position: fixed;
    }

    .copy-btn {
        right: 157px;
    }

    .hero-card {
        margin: -40px -36px 10px -36px;
    }

    img.avatar-image, img.avatar-image.fade-out {
        transition: all 2s ease;
        margin: 0px 0 -10px 0;
        transform: scale(1);
    }



    img.avatar-image.fade-in {
        transform: scale(1);
        border-radius: 12px;
        transition: all 2s ease;

    }

    .avatar-title {
        margin: 8px 0 0 -28px;
        text-align: center;
        width: 100%;
    }

    #closeViewerBtn {
        margin: -27px -18px 0 0;
        padding: 3px 8px;

        color: #111;
    }

    #profileBtn {
        position: fixed;
        right: unset;
        top: -82px;
        left: -15px;
        transform: scale(0.8);
    }

    .viewer {
        box-shadow: 0 100px 0 100px #fff;
    }

    .viewer.show {
        top: 56px;
    }

    .profilepic-holder {
        width: 100%;
        height: auto;
        margin-bottom: -5px;
    }


}



#profileBtn, #shareBtn {
    display: none;
}