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

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
    overflow: hidden; /* Prevent scrolling */
}

.game-container {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exit-link a {
    font-size: 8px;
    color: #fff;
    text-decoration: none;
    margin: 10px auto;
}

/* Header Styling */
.game-header {
    width: 100%;
    margin-bottom: 10px;
}

.score-section {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.player-label, .high-score-label {
    color: #fff;
    margin-bottom: 5px;
}

.player-score, .high-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Game Board Styling */
.game-board-container {
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.game-board {
    background-color: #000;
    border: 4px solid #0033ff; /* More vibrant blue like in the arcade */
    aspect-ratio: 28/31; /* Match the original Pac-Man maze aspect ratio */
    width: 100%;
    max-height: 80vh; /* Ensure it fits on screen */
    position: relative;
    display: grid;
    box-shadow: 
        0 0 4px #0033ff,
        0 0 8px rgba(0, 51, 255, 0.7),
        inset 0 0 8px rgba(0, 51, 255, 0.5);
    padding: 2px;
}

.cell {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Create a continuous maze with a single outline - arcade style */
.wall {
    background-color: transparent; /* No fill color */
    position: relative;
    box-sizing: border-box;
}

/* Only add borders to the outer edges of the maze */
.wall:not(.wall-top) {
    border-top: 1px solid #0033ff;
}

.wall:not(.wall-bottom) {
    border-bottom: 1px solid #0033ff;
}

.wall:not(.wall-left) {
    border-left: 1px solid #0033ff;
}

.wall:not(.wall-right) {
    border-right: 1px solid #0033ff;
}


/* Add rounded corners to the maze blocks */
.wall:not(.wall-top):not(.wall-left) {
    border-top-left-radius: 4px;
}

.wall:not(.wall-top):not(.wall-right) {
    border-top-right-radius: 4px;
}

.wall:not(.wall-bottom):not(.wall-left) {
    border-bottom-left-radius: 4px;
}

.wall:not(.wall-bottom):not(.wall-right) {
    border-bottom-right-radius: 4px;
}

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

.power-pellet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #ffb8ae;
    border-radius: 50%;
    animation: pulse 0.8s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Footer Styling */
.game-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.lives-container {
    display: flex;
    align-items: center;
}

.fruit-container {
    display: flex;
    align-items: center;
}

/* Fruit styles */
.fruit {
    width: 16px;
    height: 16px;
    position: relative;
    margin-right: 5px;
}

/* Cherry - Level 1 */
.cherry {
    width: 16px;
    height: 16px;
    background-color: #ff0000;
    border-radius: 50%;
    position: relative;
    margin-right: 5px;
}

.cherry::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
}

.cherry::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 8px;
    width: 2px;
    height: 6px;
    background-color: #00ff00;
    transform: rotate(-30deg);
}

/* Strawberry - Level 2 */
.strawberry {
    width: 16px;
    height: 16px;
    background-color: #ff0000;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    margin-right: 5px;
}

.strawberry::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 6px;
    width: 4px;
    height: 6px;
    background-color: #00ff00;
    border-radius: 2px;
}

.strawberry::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background-color: transparent;
    box-shadow: 1px 1px 0 1px rgba(255, 255, 255, 0.6),
                3px 3px 0 1px rgba(255, 255, 255, 0.6),
                5px 5px 0 1px rgba(255, 255, 255, 0.6),
                7px 7px 0 1px rgba(255, 255, 255, 0.6),
                9px 9px 0 1px rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* Orange - Level 3 */
.orange {
    width: 16px;
    height: 16px;
    background-color: #ffa500;
    border-radius: 50%;
    position: relative;
    margin-right: 5px;
}

.orange::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 7px;
    width: 2px;
    height: 4px;
    background-color: #006400;
    border-radius: 1px;
}

/* Apple - Level 4 */
.apple {
    width: 16px;
    height: 16px;
    background-color: #ff0000;
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
    position: relative;
    margin-right: 5px;
}

.apple::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 7px;
    width: 2px;
    height: 6px;
    background-color: #654321;
    border-radius: 1px;
}

.apple::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 4px;
    width: 4px;
    height: 2px;
    background-color: #006400;
    border-radius: 1px;
    transform: rotate(-30deg);
}

/* Melon - Level 5 */
.melon {
    width: 16px;
    height: 16px;
    background-color: #32cd32;
    border-radius: 50%;
    position: relative;
    margin-right: 5px;
}

.melon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.melon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

/* Galaxian - Level 6 */
.galaxian {
    width: 16px;
    height: 16px;
    background-color: #0000ff;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    position: relative;
    margin-right: 5px;
}

.galaxian::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Bell - Level 7 */
.bell {
    width: 16px;
    height: 16px;
    background-color: #ffd700;
    border-radius: 50% 50% 10% 10% / 50% 50% 10% 10%;
    position: relative;
    margin-right: 5px;
}

.bell::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 6px;
    width: 4px;
    height: 4px;
    background-color: #000;
    border-radius: 50%;
}

.bell::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 6px;
    width: 4px;
    height: 2px;
    background-color: #ffd700;
    border-radius: 2px;
}

/* Key - Level 8 */
.key {
    width: 16px;
    height: 16px;
    background-color: #00bfff;
    position: relative;
    margin-right: 5px;
}

.key::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background-color: #00bfff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #000;
}

.key::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 2px;
    background-color: #00bfff;
    box-shadow: 0 2px 0 0 #000, 0 4px 0 0 #000;
}

/* Pac-Man Styling */
.pacman {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffff00;
    border-radius: 50%;
}

/* Pac-Man mouth animations */
@keyframes chomp-right {
    0%, 100% { clip-path: polygon(0 0, 50% 0, 50% 50%, 100% 50%, 50% 50%, 50% 100%, 0 100%); }
    50% { clip-path: circle(50% at center); }
}

@keyframes chomp-left {
    0%, 100% { clip-path: polygon(100% 0, 100% 100%, 50% 100%, 50% 50%, 0 50%, 50% 50%, 50% 0); }
    50% { clip-path: circle(50% at center); }
}

@keyframes chomp-up {
    0%, 100% { clip-path: polygon(0 100%, 0 0, 50% 0, 50% 50%, 50% 0, 100% 0, 100% 100%); }
    50% { clip-path: circle(50% at center); }
}

@keyframes chomp-down {
    0%, 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%, 50% 100%, 0 100%); }
    50% { clip-path: circle(50% at center); }
}

/* Apply animations based on direction */
.pacman.right.chomping {
    animation: chomp-right 0.2s steps(2) infinite;
}

.pacman.left.chomping {
    animation: chomp-left 0.2s steps(2) infinite;
}

.pacman.up.chomping {
    animation: chomp-up 0.2s steps(2) infinite;
}

.pacman.down.chomping {
    animation: chomp-down 0.2s steps(2) infinite;
}

/* Default state when not moving - full circle */
.pacman:not(.chomping) {
    clip-path: circle(50% at center);
}

/* Ghost Styling */
.ghost {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 5px 5px 0 0 !important;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 80%,
        83.33% 80%,
        83.33% 100%,
        66.66% 80%,
        50% 100%,
        33.33% 80%,
        16.66% 100%,
        0% 80%
    ) !important;
}

.ghost.red {
    background-color: #ff0000 !important;
    color: #ff0000 !important;
}

.ghost.pink {
    background-color: #ffb8ff !important;
    color: #ffb8ff !important;
}

.ghost.cyan {
    background-color: #00ffff !important;
    color: #00ffff !important;
}

.ghost.ghost-orange {
    background-color: #ffb852 !important;
    color: #ffb852 !important;
    border-radius: 50% 50% 0 0 !important;
}

.ghost.vulnerable {
    background-color: #2121ff !important;
    color: #2121ff !important;
    animation: flash 0.4s infinite;
    border-radius: 50% 50% 0 0 !important;
}

.ghost.vulnerable.blinking {
    background-color: #8080ff !important; /* Lighter blue */
    color: #8080ff !important;
    animation: blink 0.2s infinite;
    border-radius: 50% 50% 0 0 !important;
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Ghost Eyes Animation */
.ghost-eyes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 101;
    pointer-events: none;
}

.ghost-eyes div {
    position: absolute;
    background-color: white;
    border-radius: 50%;
}

.ghost-eyes div:nth-child(1),
.ghost-eyes div:nth-child(2) {
    width: 30%;
    height: 30%;
    top: 20%;
}

.ghost-eyes div:nth-child(1) {
    left: 20%;
}

.ghost-eyes div:nth-child(2) {
    right: 20%;
}

.ghost-eyes div:nth-child(3),
.ghost-eyes div:nth-child(4) {
    width: 15%;
    height: 15%;
    background-color: blue;
    top: 25%;
}

.ghost-eyes div:nth-child(3) {
    left: 25%;
}

.ghost-eyes div:nth-child(4) {
    right: 25%;
}

/* Lives Display */
.life {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #ffff00;
    border-radius: 50%;
    margin-right: 5px;
    clip-path: polygon(0 0, 50% 0, 50% 50%, 100% 50%, 50% 50%, 50% 100%, 0 100%);
}

/* Logo Styling */
.logo {
    margin-top: 20px;
    text-align: center;
}

.pacman-logo-text {
    font-size: 24px;
    color: #ffff00;
    text-shadow: 2px 2px 0 #ff0000, -2px -2px 0 #ff0000, 2px -2px 0 #ff0000, -2px 2px 0 #ff0000;
    letter-spacing: 2px;
    font-weight: bold;
    transform: scale(1, 1.2);
    display: inline-block;
}

/* Ready Text */
.ready-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffff00;
    font-size: 16px;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Score Text Animation */
.score-text {
    font-family: 'Press Start 2P', cursive;
    position: absolute;
    z-index: 100;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: score-float 0.8s forwards;
}

@keyframes score-float {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

/* Death Animation */
@keyframes pacman-death {
    0% { transform: scale(1); opacity: 1; }
    10% { transform: scale(1.2); opacity: 1; }
    20% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.2); opacity: 1; }
    40% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 1; }
    60% { transform: scale(1); opacity: 1; }
    70% { transform: scale(0.8); opacity: 0.8; }
    80% { transform: scale(0.6); opacity: 0.6; }
    90% { transform: scale(0.4); opacity: 0.4; }
    100% { transform: scale(0.2); opacity: 0; }
}

.pacman.dying {
    animation: pacman-death 1s forwards;
    background-color: #ffff00 !important;
    border-radius: 50% !important;
    clip-path: none !important;
    z-index: 100;
}

/* Joystick Controls */
.joystick-container {
    display: none; /* Only show on mobile devices */
    width: 100%;
    max-width: 200px;
    margin: 15px auto;
    position: relative;
}

#joystick-area {
    width: 100%;
    height: 150px;
    position: relative;
    touch-action: none; /* Prevent default touch actions */
}

#joystick-base {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #0033ff;
    box-shadow: 0 0 10px rgba(0, 51, 255, 0.5);
}

#joystick-thumb {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #ffff00;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.8);
    transition: box-shadow 0.1s;
}

#joystick-thumb.active {
    box-shadow: 0 0 15px rgba(255, 255, 0, 1);
}

@media (max-width: 768px) {
    .joystick-container {
        display: block;
    }
    
    .score-section {
        font-size: 10px;
    }
    
    .game-container {
        padding: 10px;
    }
    
    .controls {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    /* Adjust logo size for mobile */
    .pacman-logo-text {
        font-size: 20px;
    }
    
    /* Ensure the game board doesn't take too much vertical space */
    .game-board {
        max-height: 65vh;
    }
}

/* Specific adjustments for very small screens */
@media (max-width: 400px) {
    #joystick-base {
        width: 100px;
        height: 100px;
    }
    
    #joystick-thumb {
        width: 40px;
        height: 40px;
    }
    
    #joystick-area {
        height: 120px;
    }
}

/* Fruit Styling in the maze */
.fruit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
}

/* Cherry - Level 1 */
.fruit.cherry {
    background-color: #ff0000;
    border-radius: 50%;
    position: relative;
}

.fruit.cherry::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
}

.fruit.cherry::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 8px;
    width: 2px;
    height: 6px;
    background-color: #00ff00;
    transform: rotate(-30deg);
}

/* Strawberry - Level 2 */
.fruit.strawberry {
    width: 16px;
    height: 16px;
    background-color: #ff0000;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
}

.fruit.strawberry::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 6px;
    width: 4px;
    height: 6px;
    background-color: #00ff00;
    border-radius: 2px;
}

.fruit.strawberry::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background-color: transparent;
    box-shadow: 1px 1px 0 1px rgba(255, 255, 255, 0.6),
                3px 3px 0 1px rgba(255, 255, 255, 0.6),
                5px 5px 0 1px rgba(255, 255, 255, 0.6),
                7px 7px 0 1px rgba(255, 255, 255, 0.6),
                9px 9px 0 1px rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* Orange - Level 3 */
.fruit.orange {
    width: 16px;
    height: 16px;
    background-color: #ffa500;
    border-radius: 50%;
    position: relative;
}

.fruit.orange::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 7px;
    width: 2px;
    height: 4px;
    background-color: #006400;
    border-radius: 1px;
}

/* Apple - Level 4 */
.fruit.apple {
    width: 16px;
    height: 16px;
    background-color: #ff0000;
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
    position: relative;
}

.fruit.apple::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 7px;
    width: 2px;
    height: 6px;
    background-color: #654321;
    border-radius: 1px;
}

.fruit.apple::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 4px;
    width: 4px;
    height: 2px;
    background-color: #006400;
    border-radius: 1px;
    transform: rotate(-30deg);
}

/* Melon - Level 5 */
.fruit.melon {
    width: 16px;
    height: 16px;
    background-color: #32cd32;
    border-radius: 50%;
    position: relative;
}

.fruit.melon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.fruit.melon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

/* Galaxian - Level 6 */
.fruit.galaxian {
    width: 16px;
    height: 16px;
    background-color: #0000ff;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    position: relative;
}

.fruit.galaxian::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Bell - Level 7 */
.fruit.bell {
    width: 16px;
    height: 16px;
    background-color: #ffd700;
    border-radius: 50% 50% 10% 10% / 50% 50% 10% 10%;
    position: relative;
}

.fruit.bell::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 6px;
    width: 4px;
    height: 4px;
    background-color: #000;
    border-radius: 50%;
}

.fruit.bell::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 6px;
    width: 4px;
    height: 2px;
    background-color: #ffd700;
    border-radius: 2px;
}

/* Key - Level 8 */
.fruit.key {
    width: 16px;
    height: 16px;
    background-color: #00bfff;
    position: relative;
}

.fruit.key::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background-color: #00bfff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #000;
}

.fruit.key::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 2px;
    background-color: #00bfff;
    box-shadow: 0 2px 0 0 #000, 0 4px 0 0 #000;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.welcome-content {
    background-color: #000;
    border: 4px solid #0033ff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 51, 255, 0.7),
                0 0 20px rgba(0, 51, 255, 0.5);
    max-width: 80%;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 10px rgba(0, 51, 255, 0.7), 0 0 20px rgba(0, 51, 255, 0.5); }
    50% { box-shadow: 0 0 15px rgba(0, 51, 255, 0.9), 0 0 30px rgba(0, 51, 255, 0.7); }
    100% { box-shadow: 0 0 10px rgba(0, 51, 255, 0.7), 0 0 20px rgba(0, 51, 255, 0.5); }
}

.welcome-content h1 {
    color: #ffff00;
    margin-bottom: 30px;
    font-size: 36px;
    text-shadow: 2px 2px 0 #ff0000, -2px -2px 0 #ff0000, 2px -2px 0 #ff0000, -2px 2px 0 #ff0000;
    letter-spacing: 2px;
    transform: scale(1, 1.2);
}

.welcome-content p {
    color: #fff;
    margin-bottom: 15px;
    font-size: 14px;
}

#startGameBtn {
    background-color: #0033ff;
    color: #fff;
    border: none;
    padding: 15px 25px;
    margin-top: 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    transition: all 0.3s;
    box-shadow: 0 0 8px rgba(0, 51, 255, 0.7);
}

#startGameBtn:hover {
    background-color: #0055ff;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(0, 51, 255, 0.9);
}

/* Game Over Modal */
.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #000;
    border: 4px solid #0033ff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 51, 255, 0.7);
    max-width: 80%;
}

.modal-content h2 {
    color: #ffff00;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.5);
}

.modal-content p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

#playAgainBtn {
    background-color: #0033ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    transition: background-color 0.3s;
}

#playAgainBtn:hover {
    background-color: #0055ff;
}
