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

#game-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#player1-container, #player2-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#player1-lives, #player2-lives {
    font-size: 24px;
    margin-bottom: 5px;
}

#player1-score, #player2-score {
    font-size: 18px;
}

.player-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

#player1-dot { background-color: red; }
#player2-dot { background-color: blue; }

#end-dot { 
    background-color: green;
    width: 15px;
    height: 15px;
}


#logo {
    font-size: 20px;
    font-weight: bold;
}

#level {
    background-color: #4a90e2;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 16px;
}

#maze {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    border: 1px solid #4a90e2;
    background-color: #1e1e1e;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.cell {
    position: absolute;
    box-sizing: border-box;
}


.cell-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #4a90e2;
    transform: translate(-50%, -50%);
}

.maze-wall {
    position: absolute;
    background-color: #4a90e2;
}

.maze-wall.top, .maze-wall.bottom {
    left: 0;
    right: 0;
    height: 1px;
}

.maze-wall.left, .maze-wall.right {
    top: 0;
    bottom: 0;
    width: 1px;
}

.maze-wall.top { top: 0; }
.maze-wall.bottom { bottom: -1px; }
.maze-wall.left { left: 0; }
.maze-wall.right { right: -1px; }

.player-dot {
    width: 8px;
    height: 8px;
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#player1-dot { background-color: red; }
#player2-dot { background-color: blue; }
#end-dot { background-color: green; }

#turn-indicator, #timer {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
}

#controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 180px;
    margin: 0 auto;
}

.control-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#up-btn { grid-column: 2; }
#left-btn { grid-column: 1; grid-row: 2; }
#down-btn { grid-column: 2; grid-row: 2; }
#right-btn { grid-column: 3; grid-row: 2; }