/* Farmer River Crossing Game Styles */
#farmer-river-game {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.game-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.side {
    width: 300px;
    height: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.left-side {
    background-image: url('images/bank1.png');
}

.right-side {
    background-image: url('images/bank2.png');
}

.river {
    width:900px;
    text-align: center;
    background-image: url('images/river.png');
    background-size: cover;
    background-position: center;
    height: 200px;
    position: relative;
}

.items {
    min-height: 150px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.item {
    width: 50px;
    height: 50px;
    object-fit: contain;
    position: relative;
    transition: transform 0.65s ease;
}

.item.jump {
    animation: jump-animation 0.65s ease; /* Increased to 0.65s to match 1.3s total */
}

@keyframes jump-animation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.boat {
    width: 80px;
    height: 80px;
    background-image: url('images/boat.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 10px;
    transition: left 2.8s ease-in-out; /* Updated to 2.8s */
}

.boat-left {
    left: 10px;
}

.boat-right {
    left: calc(100% - 90px);
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.controls select, .controls button {
    padding: 10px;
    margin: 5px;
    font-size: 16px;
}

#game-message {
    text-align: center;
    font-weight: bold;
    color: #d32f2f;
}

#timer {
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
}