.simulationContainer {
    display: flex;
    justify-content: center;
    padding: 25px;
}

.citySection {
    width: 50vw;
    max-width: 600px;
}

.metropolisGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid black;
    width: 100%;
}

.gridCell {
    aspect-ratio: 1 / 1;
    border: 1px solid black;
    background-color: lightblue;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gridCell img,
.gridCell svg {
    width: 90%;
    height: 90%;
    object-fit: contain;
    display: block;
}

.gridCell .functionItem {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin: 0;
    border: none;
    background: transparent;
    box-sizing: border-box;
}

.gridCell .functionItem img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.gridCell .functionItem p {
    display: none;
}

.delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    z-index: 9999;
}


.gridCell:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
}

.delete-btn:hover {
    background: red;
    transform: scale(1.1);
}

.functionsSection {
    width: 320px;
    margin-right: 30px;
}

#functionsList {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    width: 100%;
    height: 70vh;
    overflow-y: scroll;
}

.functionItem {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #ccc;
    background: white;
    padding: 10px;
    margin-bottom: 10px;
    cursor: grab;
}

.functionItem img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}