body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-image: url('https://64.media.tumblr.com/276ac633d947ba5c8bbebaa0bb6d4574/tumblr_n1xcz4UPBU1rrftcdo1_640.gifv');
    background-size: cover;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    text-shadow: 2px 2px #000;
}

h1 {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 1rem;
    text-align: center;
}

#game-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

canvas {
    border: 3px solid #fff;
    background: #000;
}

#info {
    text-align: center;
    font-size: 1.2rem;
    width: 120px; /* Reduced width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#next-pieces h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

#next-pieces canvas {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 60px; /* Smaller canvas */
    height: 60px; /* Smaller canvas */
}

#mobile-controls {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 240px;
}

#mobile-controls button {
    padding: 15px;
    font-size: 24px;
    background: #ff0000; /* Red like Mario's hat */
    color: white;
    border: 2px solid #fff;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
}

#mobile-controls #rotate-btn {
    background: #00d800; /* Green like a pipe */
}

#mobile-controls #down-btn {
    grid-column: span 3;
    background: #ffcc00; /* Yellow like a coin */
}

#mobile-controls button:active {
    transform: translateY(2px);
}
