body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
}

.animation-container {
    position: relative;
    text-align: center;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    margin-bottom: 20px;
    cursor: pointer;
}

.scene {
    position: relative;
    width: 800px;
    height: 400px;
    background-color: #1a1a2e;
    overflow: hidden;
}

.person-with-box {
    position: absolute;
    display: flex;
    align-items: flex-end;
    left: -80px;
    bottom: 20px;
    transition: transform 20s linear;
}

.person {
    width: 20px;
    height: 60px;
    background-color: #ffcc00;
    position: relative;
}

.box {
    width: 30px;
    height: 30px;
    background-color: #8B4513;
    position: relative;
    margin-left: 10px;
}

.bus {
    width: 150px;
    height: 60px;
    background-color: #000;
    position: absolute;
    bottom: 20px;
    right: -150px;
    transition: transform 15s linear;
}

.front-light {
    width: 20px;
    height: 20px;
    background-color: #fff;
    position: absolute;
    top: 20px;
    right: -20px;
    opacity: 0;
    transition: opacity 1s;
}

.lamp-post {
    width: 10px;
    height: 100px;
    background-color: #666;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -5px;
    transition: background-color 1s;
}

.lamp-light {
    width: 20px;
    height: 20px;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1s;
}

.move-person-with-box {
    transform: translateX(580px);
}

.hide-person-with-box {
    display: none;
}

.move-bus {
    transform: translateX(-580px);
}

.light-on {
    opacity: 1;
}

.lamp-on {
    background-color: #ffcc00;
}
