* {
    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;
    height: 100vh;
    color: #333;
    overflow: hidden; /* Prevent scrolling */
}

.container {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-height: 95vh; /* Limit height to 95% of viewport */
    overflow: hidden; /* Prevent container overflow */
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 200px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
}

.score-container {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
}

.score-container p {
    margin: 5px 0;
    font-weight: bold;
}

.next-piece-container {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
}

#next-piece {
    height: 80px;
    width: 80px;
    margin: 10px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.controls {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
}

.controls ul {
    list-style-type: none;
    padding-left: 10px;
}

.controls li {
    margin: 5px 0;
}

#start-button, #restart-button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#start-button:hover, #restart-button:hover {
    background-color: #27ae60;
}

.game-board-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(20, 1fr);
    width: 300px;
    height: 600px;
    max-height: 80vh; /* Limit height to 80% of viewport */
    background-color: #ecf0f1;
    border: 2px solid #34495e;
    border-collapse: collapse; /* Ensure borders collapse */
}

.cell {
    border: none; /* Remove the border that creates spaces */
    margin: 0; /* Ensure no margin */
    padding: 0; /* Ensure no padding */
}

.tetromino {
    border: none; /* Completely remove borders */
    margin: 0; /* Ensure no margin */
    padding: 0; /* Ensure no padding */
}

/* Tetromino colors */
.I {
    background-color: #00f0f0; /* Cyan */
}

.J {
    background-color: #0000f0; /* Blue */
}

.L {
    background-color: #f0a000; /* Orange */
}

.O {
    background-color: #f0f000; /* Yellow */
}

.S {
    background-color: #00f000; /* Green */
}

.T {
    background-color: #a000f0; /* Purple */
}

.Z {
    background-color: #f00000; /* Red */
}

.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 300px;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Add responsive scaling for smaller screens */
@media (max-height: 700px) {
    #game-board {
        width: 250px;
        height: 500px;
    }
    
    .cell {
        width: 25px;
        height: 25px;
    }
}

@media (max-height: 600px) {
    #game-board {
        width: 200px;
        height: 400px;
    }
    
    .cell {
        width: 20px;
        height: 20px;
    }
    
    .game-info {
        width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
.ghost {
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity from 0.3 to 0.1 */
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Changed from dashed to dotted and reduced opacity */
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.game-over-content p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
   .game-info {
        width: 300px;
        order: 2;
    }
   .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }
}

.touch-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.touch-controls button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.touch-controls button:hover {
    background-color: #2980b9;
}