* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #333333;
    margin-bottom: 20px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
}

.level-info, .move-info {
    display: flex;
    align-items: center;
}

#level-select {
    margin-left: 10px;
    padding: 5px;
    font-size: 16px;
}

#move-count {
    font-weight: bold;
    margin-left: 10px;
}

.game-board {
    display: grid;
    gap: 2px;
    background-color: #333333;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.cell {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wall {
    background-color: #666666;
}

.floor {
    background-color: #f0f0f0;
}

.player {
    background-color: #4CAF50;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 5px;
    left: 5px;
    transition: all 0.2s ease;
}

.box {
    background-color: #FF9800;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 5px;
    left: 5px;
    transition: all 0.2s ease;
}

.target {
    background-color: #E3F2FD;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    position: absolute;
    top: 2.5px;
    left: 2.5px;
}

.box-on-target {
    background-color: #FF5722;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 5px;
    left: 5px;
}

.game-controls {
    display: flex;
    justify-content: center;
}

#reset-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#reset-btn:hover {
    background-color: #0b7dda;
}

@media (max-width: 600px) {
    .game-container {
        padding: 10px;
    }
    
    .cell {
        width: 30px;
        height: 30px;
    }
    
    .player, .box, .box-on-target {
        width: 20px;
        height: 20px;
        top: 5px;
        left: 5px;
    }
    
    .target {
        width: 25px;
        height: 25px;
        top: 2.5px;
        left: 2.5px;
    }
}