#board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    gap: 1px;
    background-color: #999;
}

.cell {
    width: 30px;
    height: 30px;
}

.empty {
    background-color: #f0f0f0;
}

.block {
    background-color: #333;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0; /* Voit poistaa tämän, jos haluat että taustakuva peittää koko taustan */
    background-image: url('kuva.png'); /* Korvaa 'taustakuvasi.png' taustakuvan polulla */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.8); /* Läpinäkyvä valkoinen tausta pelialueelle */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.2); /* Lisää varjostus visuaalisen syvyyden luomiseksi */
}

/* Muut tyylit pysyvät ennallaan */


.board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#nextPiece {
    display: grid;
    place-items: center;
    width: 130px;            /* Adjusted to match the total width of the next piece grid */
    height: 130px;           /* Adjusted to match the total height of the next piece grid */
    margin-right: 20px;
    background-color: #999;
}

#nextPiece > div {
    display: grid;
    grid-template-columns: repeat(4, 30px);
    gap: 1px;
    margin: auto;  /* This should center the piece grid */
}

#board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    gap: 1px;
    background-color: #999;
    border: 5px solid #666;
}

.cell {
    width: 30px;
    height: 30px;
}

.empty {
    background-color: #f0f0f0;
}

.block {
    background-color: #333;
}

.block0 {
    background-color: #FF0;
}

.block1 {
    background-color: #0FF;
}

.block2 {
    background-color: #F00;
}

.block3 {
    background-color: #0F0;
}

.block4 {
    background-color: #00F;
}

.block5 {
    background-color: #FFA500; // Orange for the first L-shape
}

.block6 {
    background-color: #FF4500; // Red-orange for the second L-shape
}

@keyframes flash {
    from { opacity: 1; }
    to { opacity: 0; }
}

.flash {
    animation: flash 0.2s linear 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

#points {
	margin-top: 20px; 
    font-size: 1.5em;             /* Increase font size */
    font-weight: bold;            /* Bold the text */
    background-color: #333;      /* Dark background for contrast */
    color: #FFD700;              /* Golden text color */
    padding: 5px 10px;           /* Padding around text */
    border-radius: 5px;          /* Rounded corners */
    box-shadow: 2px 2px 5px #888888; /* Add some shadow for depth */
    transition: transform 0.2s;  /* Smooth transform transition */
}


/* Mobile touch buttons */
.touch-controls {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    z-index: 100;
}

.touch-button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.touch-button:active {
    background-color: rgba(200, 200, 200, 0.9);
}
