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

body {
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

#game-board {
    border: 2px solid #333;
    background-color: #000;
}

.info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
}

.score-board {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

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

h1 {
    color: white;
    margin-bottom: 20px;
}

.next-piece {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

#next-piece-canvas {
    background-color: #000;
    margin-top: 10px;
}

button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

button:hover {
    background-color: #45a049;
}

.game-over {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}
.mobile-controls {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center buttons horizontally */
    justify-content: center;
    gap: 10px; /* Space between the rows */
}
.btn-row{
    display: flex;
    justify-content: space-between; /* Spread out buttons evenly */
    width: 200px; /* Adjust width as needed */
  }

.mobile-controls button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
}

.mobile-controls button:hover {
background-color: #45a049;
}
