body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fbf8f2;
}

.container {
    display: flex;
    min-height: 100vh;
}

.left-side {
    width: 75%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.canvas-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2 / 3;
    position: relative;
    overflow: hidden;
}

.nft-display {
    width: 100%;
    height: 100%;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.reset-button, .download-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.reset-button {
    background-color: #f44336;
}

.reset-button:hover {
    background-color: #d32f2f;
}

.download-button {
    background-color: #000000;
}

.download-button:hover {
    background-color: #45a049;
}

.right-side {
    width: 25%;
    padding: 20px;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.category {
    margin-bottom: 20px;
}

.category h2 {
    margin-bottom: 10px;
}

.component-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.component-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.component-button.selected {
    background-color: #fff;
    border: 2px solid #f8a732;
}

.component-button svg {
    width: 100%;
    height: 100%;
}

.nft-display svg {
    isolation: isolate;
}

.nft-display [data-category="Background"] { z-index: 1; }
.nft-display [data-category="Action"] { z-index: 2; }
.nft-display [data-category="Body"] { z-index: 3; }
.nft-display [data-category="Head"] { z-index: 4; }
.nft-display [data-category="Accessories"] { z-index: 5; }

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-side, .right-side {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .canvas-container {
        max-width: 90%;
        margin: 0 auto;
    }

    .button-group {
        width: 100%;
        justify-content: center;
    }

    .right-side {
        box-shadow: none;
        overflow-y: visible;
    }

    .component-list {
        justify-content: flex-start;
    }
}
