#shop-container {
    margin-top: 50px;
    font-family: 'Courier New', Courier, monospace;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    gap: 10px; /* Add space between items instead of padding in item */
    max-height: 500px; /* Set a fixed height for scrolling */
    width: 100%; /* Ensure the width takes up the full available space */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden;
    padding: 10px; /* Adjust overall padding */
    box-sizing: border-box; /* Include padding and border in the element's total size */
    scrollbar-width: none;
    align-content: start; /* Align content to the start for better scrolling */
}

/* WebKit (Chrome, Safari, Opera) */
#shop-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for WebKit browsers */
}

#shop-container .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background-color: none;
    border: 3px double steelblue;
    padding: 10px;
    box-sizing: border-box; /* Ensure padding is within the element */
    height: auto; /* Allow height to adjust based on content */
    white-space: normal;
    max-width: 100%; /* Ensure the items do not exceed the container width */
}

#shop-container .item:hover {
    transform: scale(1.05);
}

#shop-container .item h3 {
    font-family: gamefont;
    color: steelblue;
    text-align: center;
    margin: 0;
    font-size: 1em;
}

#shop-container .item p {
    font-family: mingliu;
    margin: 5px 0;
    font-size: 0.6em;
    overflow-wrap: break-word;
}

.shop-window {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
