@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    margin: 0;
    min-height: 100vh;
    background: #000;
    color: #fff;
    font-family: "Press Start 2P", monospace;
    padding: 30px;
    box-sizing: border-box;
}

/* Top bar for points overlay */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.points {
    font-size: 28px;
}

/* Responsive Main Layout Container */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

/* Navigation Links */
.links-div {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
    min-width: 250px;
}

.links-div a {
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 20px;
    text-align: center;
    transition: 0.2s;
}

.links-div a:hover {
    background: white;
    color: black;
}

/* Center Showcase Area */
.showcase-div {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 15px;
    flex: 1;
    min-width: 350px;
    max-width: 400px;
    background-color: transparent;
    border-radius: 12px;
}

.showcase-img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background-color: transparent;
}

.title-txt {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-align: center;
}

.desc-txt {
    font-size: 16px;
    color: white;
    line-height: 1.4;
    text-align: center;
}

.buy {
    margin-top: 10px;
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    width: 100%; /* Spans the width of the showcase-div */
    height: 80px;
    transition: background-color 0.2s;
    font-family: "Press Start 2P", monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.buy:hover {
    background-color: #37883b;
}

/* Right Side Shop Display */
.button-holder {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 2;
    min-width: 350px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.category-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

/* Auto-wrapping grids based on screen size */
.skins, .items {
    border-bottom: 2px solid white;
    padding-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    justify-items: center;
}

.cosmetic-btn {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 96px;
    height: 96px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1100px) {
    .main-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .links-div {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .button-holder {
        width: 100%;
        overflow-y: visible;
    }
    
    .top-bar {
        justify-content: center;
    }
}