body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: fixed;
    color: black;
}
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(100%); /* Adjust visibility */
}

#maze-container {
    position: relative;
    width: fit-content;
    margin: auto;
    padding: 10px;
}

#maze-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video fits inside */
    z-index: -1; /* Keeps it behind the maze */
    opacity: 0.4; /* Adjust transparency to improve visibility */
}

#maze {
    position: relative;
    display: grid;
    grid-template-columns: repeat(10, 50px);
    grid-template-rows: repeat(10, 50px);
    gap: 2px;
    background: none; /* Remove solid background so video is visible */
}


.cell {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

/* 🔹 Clearer Colors */
.wall {
    background: rgb(74, 81, 136); /* Walls remain dark for contrast */
}

.path {
    background: #ddeaf7; /* Bright cyan path for clear visibility */
}

.goal {
    background: gold;
    animation: glow 1s infinite alternate;
}

.player {
    background: blue;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

#timer {
    font-size: 20px;
    margin-bottom: 10px;
}

.warning {
    color: red;
    font-weight: bold;
}

@keyframes glow {
    from { box-shadow: 0 0 5px gold; }
    to { box-shadow: 0 0 15px gold; }
}