body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

select, input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    text-align: center;
    display: none;
}

/* Animation Styles */
.animation-container {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-top: 20px;
}

.bulldozer, .dump-truck {
    position: absolute;
    bottom: 0;
    image-rendering: pixelated; /* For 8-bit look */
}

.bulldozer {
    width: 150px;
    height: 80px;
    animation: moveAcross 6s linear infinite;
    left: 180px; /* Increased from 100px to 180px to prevent overlap */
}

.dump-truck {
    width: 180px;
    height: 100px;
    animation: moveAcross 6s linear infinite;
    left: 0; /* Dump truck on the left */
}

/* Animation Keyframes (Right to Left) */
@keyframes moveAcross {
    0% {
        transform: translateX(100vw); /* Start off-screen right */
    }
    100% {
        transform: translateX(-100%); /* Move to off-screen left */
    }
}

@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 15px;
    }
    .animation-container {
        height: 80px;
    }
    .bulldozer {
        width: 120px;
        height: 70px;
        left: 150px; /* Increased from 80px to 150px to prevent overlap */
    }
    .dump-truck {
        width: 120px;
        height: 80px;
    }
}