.game-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px auto;
    width: 90%;
    max-width: 800px;
    border: 2px solid #444;
    background-color: #9ee4ff;
    position: relative;
    overflow: hidden;
}

/* Banks */
.bank {
    width: 20%;
    min-height: 150px;
    background-color: #a8e6cf;
    border: 2px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
}

/* River & Boat */
.river {
    width: 40%;
    height: 150px;
    position: relative;
    /* overflow: hidden; */
}

.boat {
    width: 100px;
    height: 50px;
    background-color: #8b4513;
    border-radius: 5px;
    position: absolute;
    bottom: 10px;
    left: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s ease-in-out;
}

.boat.right {
    transform: translateX(200%);
}

.farmer {
    font-size: 24px;
    position: absolute;
    top: -20px;
}

.boat-item {
    font-size: 24px;
}

/* Items */
.item {
    font-size: 24px;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.3s ease-in-out;
}

.item:hover {
    transform: scale(1.2);
}

/* Controls */
.controls {
    margin-top: 20px;
}

button {
    margin: 5px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

#game-status {
    margin-top: 10px;
    font-weight: bold;
    color: red;
}

@media screen and (max-width: 768px) {
    /* Adjust boat positioning for narrow screens */
    .boat {
        left: -10px; /* shift so that the left edge touches the bank */
        transform: translateX(0); /* starting position */
    }
    .boat.right {
        /* Move boat so its right edge touches the river's right boundary */
        transform: translateX(calc(100% - 90px)); /* calculates move to align right edge */
    }
    /* Optionally, adjust river height to better contain the boat */
    .river {
        height: 170px;
    }
    /* Increase touch target sizes */
    .item {
        font-size: 28px;
    }
    button {
        font-size: 16px;
        padding: 10px 20px;
    }
}
