#garden-container {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: #f0f8ff;
    z-index: 5;
}

#garden-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0px;
    left: 0px;
    background: #f0f8ff;
    box-shadow:10px 11px 0px 0px #f0f8ff;
    z-index: 0;
}

.itemselected {
    background: #f0f8ff;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.2);
}

#farm-button {
    display: none;
    position: absolute;
    top: 52px;
    right: 20px;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 1px 3px #ddd;
    z-index: 6;
    -webkit-tap-highlight-color: transparent;
}

#garden-button {
    cursor: pointer;
    position: fixed;
    bottom: -29px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 70px;
    padding: 10px;
    background: #ffffff;
    border-radius: 50%;
    font-size: 1.7rem;
    text-align: center;
    box-shadow: 0px 0px 3px #a6a6a6;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

#copy-button {
    cursor: pointer;
    position: fixed;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 60px;
    width: 50px;
    height: 50px;
    padding: 10px;
    background: #ffffff;
    border-radius: 50%;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0px 0px 3px #a6a6a6;
    text-shadow: 0px 0px 2px rgb(0 0 0 / 0.3);
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.market-garden {
    width: 32% !important;
}

#closegardeninventory {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 7px;
    -webkit-tap-highlight-color: transparent;
}

#clearselected {
    display: none;
    position: absolute;
    bottom: -33px;
    right: 10px;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
    padding: 7px 15px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
}

#sellselected {
    display: none;
    position: absolute;
    bottom: -33px;
    left: 10px;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
    padding: 7px 15px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
}

#wrapgrid-inventory {
    position: fixed;
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    left: 50%;
    bottom: 0px;
    height: 200px;
    padding-top: 30px;
    transform: translate(-50%, 220px);
    transition: all 0.3s ease;
    box-shadow: 0 -3px 5px rgba(50, 50, 50, 0.1);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    z-index: 2;
}

.grid-inventory {
    margin-bottom: 0px;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    height: 100%;
    width: 100%;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    grid-auto-flow: row;
    font-size: 1.5rem;
    gap: 10px;
    padding-top: 15px;
    padding-bottom: 45px;
    overflow: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inventorygrid-item {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 7px;
    padding-left: 5px;
    padding-right: 5px;
    line-height: 1;
    width: 78px;
    max-height: 65px;
    border-radius: 5px;
    border: 1px solid #ddd;
    -webkit-tap-highlight-color: transparent;
}

.garden-grid {
    position: relative;
    margin-top: 90px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(11, 60px);
    gap: 0;
    row-gap: 0;
    column-gap: 0;
    background: #e6f7e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1;
    width: fit-content;
    justify-content: center;
    justify-items: center;
}

.grid-cell {
    width: 60px;
    height: 60px;
    background-color: #e6f7e6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.grid-cell:hover,
.grid-cell.dragging-over {
    background-color: rgba(165, 214, 167, 0.9);
}

.grid-cell.dragging-over {
    background-color: rgba(255, 245, 157, 0.9);
}

.grid-cell.dragging {
    opacity: 0.2;
}

.drag-ghost {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    line-height: 1.9;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

@media (max-width: 600px) {
    .garden-grid {
        grid-template-columns: repeat(11, 33px);
        gap: 0;
        row-gap: 0;
        column-gap: 0;
        width: 100%;
    }

    .grid-cell,
    .inventory-item,
    .drag-ghost {
        width: 33px;
        height: 33px;
        font-size: 18px;
    }
}