* {
    box-sizing: border-box;
}

body {
    background-color: black;
	color: lightgray;
    font-family: Arial, Helvetica, sans-serif;
	text-align: center;
}

table {
	border: 1px solid lightgray;
	margin: 100px auto;
}

.cell {
    border: 1px solid gray;
	font-size: 1.5em;
	height: 40px;
	width: 40px;
}

.game-end-screen {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 10;
}

.game-end-screen h2 {
    font-size: 3em;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.victory-msg {
    color: limegreen;
}

.game-over-msg {
    color: crimson;
}

.btn-play-again {
	border: none;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    color: white;
    font-size: 1.1em;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-play-again:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

.victory-button {
    background: linear-gradient(135deg, #38ef7d, #11998e);
}

.gameover-button {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.hidden {
    display: none;
}

.pacman-img {
	display: block;
	height: 100%;
	object-fit: contain;
    transition: transform 0.15s;
    width: 100%;
}