/* style.css */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #333;
}

#game {
    display: grid;
    grid-template-columns: repeat(16, 30px); /* 16 columns */
    grid-template-rows: repeat(16, 30px);    /* 16 rows */
    position: relative;
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #444;
    border: 1px solid #555;
}

.wall {
    background-color: #222;
}

.furniture {
    background-color: beige;
}

.on-fire {
    background-color: orange;
}

#flame {
    width: 30px;
    height: 30px;
    background-color: orange;
    position: absolute;
    border-radius: 50%;
    z-index: 10;
}

.firefighter {
    width: 30px;
    height: 30px;
    background-color: red;
    position: absolute;
    border-radius: 50%;
    z-index: 9;
    /* No animation property here */
}

.move {
    animation: firefighter-move 0.5s ease-in-out;
}

@keyframes firefighter-move {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}


.spark {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255,255,0,1) 0%, rgba(255,255,0,0) 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkAnimation 0.5s ease-out;
}

@keyframes sparkAnimation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}


@keyframes flame-flicker {
    0% { background-color: orange; }
    50% { background-color: darkorange; }
    100% { background-color: orange; }
}

#flame {
    animation: flame-flicker 1s infinite;
}

.extinguish {
    background-color: lightblue;
}
