
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    font-family: Consolas, monospace;
    background: linear-gradient(#16110b, #16110b);
    background-size: cover;
    background-repeat: no-repeat;
}

.top-bar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: clamp(56px, 8vh, 80px);
    background: #29201577;
    backdrop-filter: blur(30px);
    border-bottom: 1px solid #5a4b4b;
    box-shadow: #16110b 0 30px 50px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    z-index: 10;
}

.top-bar-title {
    color: white;
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    padding-right: 1rem;
    white-space: nowrap;
}

.top-bar-button {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    padding: 0.5em 1em;
    min-height: 44px;
    margin-right: 10px;
    background: #16110b;
    border: 2px solid #61523B;
    aspect-ratio: 1/1;
    height: 60%;
    border-radius: 10px;
    color: white;
    box-shadow: #5c4545 0px 2px 0px;
    backdrop-filter: blur(100px);
    transition: all 0.25s ease;
}

.top-bar-button:hover {
    aspect-ratio: 1;
    background: rgba(39, 28, 25, 0.71);
    background-image: linear-gradient(#61523B, #61523B);
    box-shadow: rgba(81, 62, 57, 0.71) 0px 2px 0px;
    border: 3px solid #0e0a06;
    height: 80%;
}

.top-bar-button:active {
    background: rgba(60, 47, 41, 0.71);
    box-shadow: rgba(81, 62, 57, 0.71) 0px 2px 0px;
    border: 3px solid rgba(76, 57, 54, 0.71);
    height: 70%;
}

.big-icon {
    display: flex;
    justify-content: center;
    margin: 30px auto 0;
    height: 50vh;
}

.big-icon img {
    object-fit: contain;
    aspect-ratio: 1;
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(90vw, 600px);
    height: 56px;
    margin: 40px auto 0;
    font-size: clamp(1rem, 4vw, 1.5rem);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: #3a3123 0px 0px 60px;
    color: #352828;
    font-weight: bold;
    text-align: center;
}
.item-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    min-height: 100vh;
}

.item-display-grid .grid-item {
    height: 30vh;       /* keeps boxes tall */
    background-image: linear-gradient(#292115, #332b1f, #292115);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.item-display-grid .grid-item.in-view {
    opacity: 1;
    transform: translateY(0);

}
.item-display-grid .grid-item:hover {
    scale: 110%;
    z-index: 6;
    border: 2px solid rgba(104, 88, 88, 0.96);
    box-shadow: #8d8d8d 0 0 20px;
}
.item-display-grid .grid-item:active {
    transition: all 0.2s ease;
    scale: 90%;
}
.item-display-grid .grid-item .item-title {

    text-align: center;
    margin: auto;
    margin-top: -20px;
    margin-bottom: 0;
    color: white;
    font-weight: bold;
    font-size: large;
}
.item-display-grid .grid-item .grid-image {

    height: 50%;
    margin: auto;
    margin-bottom: 0;
    margin-top: 0px;
    object-fit: contain;
    image-rendering: pixelated;        /* Chrome, Edge, Firefox */
    image-rendering: crisp-edges;      /* Safari fallback */
    -ms-interpolation-mode: nearest-neighbor; /* Old Edge/IE */
}
.item-display-grid .grid-item hr {
    align-self: stretch;
    height: 1px;
    background: white;
    border: none;
    margin: 8px 16px;
}
.item-display-grid .grid-item .order-info {
    text-align: center;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 0;
    margin-left: 10%;
    color: rgba(174, 150, 150, 0.96);
    font-weight: bold;
    font-size: medium;
}
.item-display-grid .grid-item .auction-info {
    text-align: center;

    color: #9b85a6;
    font-weight: bold;
    font-size: medium;
}

