<style>
/* ===== GLOBAL & LANGIT SIANG ===== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(to top, #87ceeb 0%, #b0e0e6 100%);
    position: relative;
}

/* ===== JALANAN ASPAL ===== */
.road {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 25%;
    background: #444;
}

/* ===== SPBU ===== */
.spbu {
    position: absolute;
    bottom: 25%;
    right: 50px; /* di sisi kanan layar */
    width: 150px;
    height: 120px;
    background: #f5f5f5;
    border: 2px solid #b3b3b3;
    border-radius: 4px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

/* Atap SPBU */
.spbu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to top, #ff0000, #cc0000);
    border-bottom: 2px solid #b3b3b3;
    border-radius: 4px 4px 0 0;
}

/* Pompa bensin */
.spbu .pump {
    position: absolute;
    bottom: 10px;
    width: 20px;
    height: 40px;
    background: #0b5e03;
    border: 2px solid #034d02;
    border-radius: 2px;
}

/* Pompa kiri dan kanan */
.spbu .pump.left { left: 20px; }
.spbu .pump.right { left: 60px; }

/* Lampu SPBU (cahaya kuning) */
.spbu .light {
    position: absolute;
    top: -10px;
    left: 10px;
    width: 130px;
    height: 10px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,100,0.8), transparent 70%);
    border-radius: 50%;
    animation: lightBlink 2s linear infinite alternate;
}

/* Animasi lampu berkedip halus */
@keyframes lightBlink {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ===== HOTEL BINTANG 5 ===== */
.hotel {
    position: absolute;
    bottom: 25%;
    width: 120px;      /* lebih lebar dari rumah */
    height: 150px;     /* lebih tinggi dari rumah */
    background: linear-gradient(to top, #f5f5f5, #e0e0e0);
    border: 2px solid #b3b3b3;
    border-radius: 4px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

/* Atap hotel datar */
.hotel::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #d4d4d4;
    border-bottom: 2px solid #b3b3b3;
}

/* Jendela hotel berjejer (vertikal) */
.hotel .window {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #87ceeb;
    border: 1px solid #5c5c5c;
    border-radius: 2px;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.2);
}

/* Buat jendela berbaris rapi */
.hotel .window:nth-child(1) { top: 10px; left: 10px; }
.hotel .window:nth-child(2) { top: 10px; left: 40px; }
.hotel .window:nth-child(3) { top: 10px; left: 70px; }

.hotel .window:nth-child(4) { top: 40px; left: 10px; }
.hotel .window:nth-child(5) { top: 40px; left: 40px; }
.hotel .window:nth-child(6) { top: 40px; left: 70px; }

.hotel .window:nth-child(7) { top: 70px; left: 10px; }
.hotel .window:nth-child(8) { top: 70px; left: 40px; }
.hotel .window:nth-child(9) { top: 70px; left: 70px; }

.hotel .window:nth-child(10) { top: 100px; left: 10px; }
.hotel .window:nth-child(11) { top: 100px; left: 40px; }
.hotel .window:nth-child(12) { top: 100px; left: 70px; }

.hotel .window:nth-child(13) { top: 130px; left: 10px; }
.hotel .window:nth-child(14) { top: 130px; left: 40px; }
.hotel .window:nth-child(15) { top: 130px; left: 70px; }

/* ===== RUMAH DENGAN PINTU DAN JENDELA ===== */
.house {
    position: absolute;
    bottom: 25%;
    width: 80px;
    height: 60px;
    background: #ff6f61;
    border: 2px solid #b3473d;
    box-sizing: border-box;
}

/* Atap segitiga */
.house::before {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 20px solid #b3473d;
}

/* Pintu rumah */
.house .door {
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 30px;
    height: 35px;
    background: #7b3f00;
    border: 2px solid #5c2e00;
    border-radius: 2px;
}

/* Jendela rumah */
.house .window {
    position: absolute;
    top: 20px;
    left: 1px;
    width: 20px;
    height: 30px;
    background: #87ceeb;
    border: 2px solid #5c2e00;
    border-radius: 2px;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.2);
}

/* Rumah di kiri dan kanan */
.house.left { left: 50px; }
.house.right { left: 250px; }


/* ===== BUS ICON SAMPING ===== */
.bus {
    position: absolute;
    bottom: 27%;
    width: 200px;
    height: 80px;
    background: linear-gradient(145deg, var(--bus1), var(--bus2));
    border-radius: 10px;
    animation: busMove 12s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #fff;
}

/* ===== WARNA BUS BERBEDA (GRADIENT HALUS) ===== */
/* BUS 1 – MERAH */

.bus:nth-of-type(1) {
    background: #dc2626; /* merah solid */
    box-shadow:
        inset 0 -10px 0 rgba(0,0,0,0.35), /* bayangan bawah */
        inset 0 3px 0 rgba(255,255,255,0.25); /* highlight atas */
}

/* BUS 2 – PUTIH (ELEGAN) */
.bus:nth-of-type(2) {
    background: linear-gradient(145deg, #ffffff, #e5e7eb);
    color: #111;
}

/* BUS 3 – ORANGE */
.bus:nth-of-type(3) {
    background: linear-gradient(145deg, #ffb703, #fb8500);
}

/* BUS 4 – HITAM */
.bus:nth-of-type(4) {
    background: #111111; /* hitam solid */
    box-shadow:
        inset 0 -10px 0 rgba(0,0,0,0.6),   /* bayangan bawah */
        inset 0 3px 0 rgba(255,255,255,0.15); /* highlight tipis */
}

/* BUS 5 – PINK */
.bus:nth-of-type(5) {
    background: linear-gradient(145deg, #f9a8d4, #ec4899);
}


/* BUS HITAM GARIS-GARIS KUNING */
.bus-striped-yellow{
    background:
        repeating-linear-gradient(
            0deg,
            #000000 0px,
            #16a34a 18px,
            #16a34a 18px,
            #16a34a 36px
        );
    box-shadow:
        inset 0 6px 10px rgba(255,255,255,0.35),
        inset 0 -8px 12px rgba(0,0,0,0.35),
        0 6px 12px rgba(0,0,0,0.4);
}

/* BUS HIJAU GARIS-GARIS */
.bus-striped-green{
    background:
        repeating-linear-gradient(
            45deg,
            #22c55e 0px,
            #22c55e 18px,
            #16a34a 18px,
            #16a34a 36px
        );
    box-shadow:
        inset 0 6px 10px rgba(255,255,255,0.35),
        inset 0 -8px 12px rgba(0,0,0,0.35),
        0 6px 12px rgba(0,0,0,0.4);
}

/* BUS GARIS VERTIKAL PINK & PUTIH */
.bus-striped-pink{
    background:
        repeating-linear-gradient(
            180deg,              /* VERTIKAL */
            #ec4899 0px,        /* pink */
            #ec4899 22px,
            #ffffff 44px,       /* putih */
            #ffffff 44px
        );
    box-shadow:
        inset 0 6px 10px rgba(255,255,255,0.35),
        inset 0 -8px 12px rgba(0,0,0,0.35),
        0 6px 12px rgba(0,0,0,0.4);
}


/* BUS GARIS MERAH & PUTIH */
.bus-striped-red{
    background:
        repeating-linear-gradient(
            180deg,              /* VERTIKAL */
            #ff0000 0px,        /* merah */
            #ec4899 22px,
            #ec4899 22px,
            #ec4899 22px,
            #ec4899 22px,
            #ffffff 44px,       /* putih */
            #ffffff 44px,       /* putih */
            #ffffff 44px,       /* putih */
            #ffffff 44px,       /* putih */
            #ffffff 44px,       /* putih */
            #ffffff 44px,       /* putih */
            #ffffff 44px,       /* putih */
            #ffffff 44px,       /* putih */
            #ffffff 44px
        );
    box-shadow:
        inset 0 6px 10px rgba(255,255,255,0.35),
        inset 0 -8px 12px rgba(0,0,0,0.35),
        0 6px 12px rgba(0,0,0,0.4);
}

/* Kabin ikut menyesuaikan warna */
.bus:nth-of-type(1) .cab { background:#fecaca; }
.bus:nth-of-type(2) .cab { background:#f9fafb; }
.bus:nth-of-type(3) .cab { background:#fed7aa; }
.bus:nth-of-type(4) .cab { background:#fef3c7; }
.bus:nth-of-type(5) .cab { background:#fbcfe8; }

/* Tulisan di dinding bus */
.bus::after {
    content: "BIS MALAM";
    position: absolute;
    top: 15px;
    left: 80px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-shadow: 1px 1px 2px #fff;
}

/* Kabin bus */
.bus .cab {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 60px;
    background: #ffd633;
    border-radius: 6px;
}

/* Jendela bus */
.bus .window {
    position: absolute;
    top: 15px;
    left: 70px;
    width: 120px;
    height: 40px;
    background: rgba(135,206,250,0.6);
    border-radius: 4px;
}

/* Roda bus */
.bus .wheel {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #222;
    border-radius: 50%;
    bottom: -15px;
    box-shadow: inset -3px -3px 6px rgba(255,255,255,0.2);
    animation: wheelRotate 0.6s linear infinite;
}
.bus .wheel.front { left: 20px; }
.bus .wheel.rear { left: 140px; }


/* ===== MOTOR ICON SAMPING ===== */
.motor {
    position: absolute;
    bottom: 20%;
    left: -60px; /* mulai dari kiri */
    font-size: 40px; /* ukuran motor */
    color: #ff0000; /* warna motor */
    animation: motorMove 6s linear infinite;
	
	transform: scaleX(-1); /* putar horizontal supaya menghadap kiri */
}

/* Lampu depan motor */
.motor .headlight {
    position: absolute;
    top: 15px;
    left: 38px; /* posisi lampu di depan motor */
    width: 20px;
    height: 6px;
    background: radial-gradient(ellipse at left, rgba(255,255,255,0.8), transparent 70%);
    border-radius: 50%;
}

/* Animasi motor bergerak dari kiri ke kanan */
@keyframes motorMove {
    0% { left: -60px; }   /* start dari kiri */
    100% { left: 110%; }  /* keluar kanan */
}





/* ===== MOBIL POLISI / AMBULANCE ICON SAMPING ===== */
.police {
    position: absolute;
    bottom: 25%;
    width: 120px; /* sedikit lebih panjang supaya muat tulisan */
    height: 50px;
    background: #fff; /* putih */
    border: 3px solid #000; /* outer hitam */
    border-radius: 8px;
    animation: policeMove 5s linear infinite;
    font-family: 'Segoe UI', sans-serif;
    color: red;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Lis merah horizontal mobil polisi */
.police::after{
    content:'AMBULANCE';
    position:absolute;
    left:0;
    top:50%;
    width:100%;
    height:6px;
    background: linear-gradient(to bottom,#fecaca,#dc2626,#7f1d1d);
    transform: translateY(-50%);
    border-radius:3px;
}



/* Sirine polisi merah-biru */
.police .light {
    position: absolute;
    top: 0;
    left: 10px;
    width: 15px;
    height: 10px;
    border-radius: 4px;
    animation: siren 0.5s linear infinite alternate;
    background: red; /* default merah */
}

/* Animasi sirine merah-biru */
@keyframes siren {
    0% { background: red; }
    50% { background: blue; }
    100% { background: red; }
}

/* Roda polisi / ambulance */
.police .wheel {
    width: 20px;
    height: 20px;
    bottom: -10px;
    position: absolute;
    background: #222; /* hitam */
    border-radius: 50%;
    box-shadow: inset -2px -2px 4px rgba(255,255,255,0.2);
}
.police .wheel.front { left: 10px; }
.police .wheel.rear { left: 90px; }

/* Animasi mobil bergerak */
@keyframes policeMove {
    0% { left: 110%; }
    100% { left: -140px; }
}

/* ===== ANIMASI ===== */
@keyframes siren {
    0% { background: red; }
    50% { background: blue; }
    100% { background: red; }
}

@keyframes wheelRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes busMove {
    0% { left: 110%; }
    100% { left: -220px; }
}

@keyframes motorMove {
    0% { left: 110%; }
    100% { left: -60px; }
}

@keyframes policeMove {
    0% { left: 110%; }
    100% { left: -120px; }
}

/* Overlay cahaya ringan */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(0,255,255,0.08), transparent 60%);
    pointer-events: none;
}
