html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #1a1a2e;
}

body {
    font-family: 'Press Start 2P', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #e0e0e0;
    box-sizing: border-box;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    border: 3px solid #00bcd4;
    background-color: #16213e;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.4);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

canvas#tetrisCanvas {
    border: 1px solid #0f3460;
    background-color: #000;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
    box-sizing: border-box;
}

.info {
    margin-left: 25px;
    flex-shrink: 0;
    width: 200px;
    padding: 15px;
    background-color: #0f3460;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.info h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #00bcd4;
    text-align: center;
    width: 100%;
    font-size: 1.5em;
}

.info p {
    margin: 10px 0;
    font-size: 1em;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info span {
    font-weight: normal;
    color: #ff9800;
    font-size: 1.1em;
}

.info small {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #a0a0a0;
    font-size: 0.8em;
    width: 100%;
}

.info h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #00bcd4;
    font-size: 1.3em;
    width: 100%;
    text-align: center;
}

canvas#nextPieceCanvas {
    display: block;
    border: 1px solid #0f3460;
    background-color: #000;
    margin-top: 10px;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2.2em;
    text-align: center;
    border-radius: 10px;
    z-index: 10;
    display: none;
    pointer-events: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.overlay.active {
    display: flex;
    pointer-events: auto;
    opacity: 1;
}

.overlay button {
    margin-top: 30px;
    padding: 12px 25px;
    font-size: 0.6em;
    cursor: pointer;
    background-color: #00bcd4;
    color: #1a1a2e;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    pointer-events: auto;
    font-family: 'Press Start 2P', cursive;
}

.overlay button:hover {
    background-color: #0097a7;
    transform: translateY(-2px);
}

.overlay button:active {
    transform: translateY(0);
}

#version-info {

    position: fixed;

    bottom: 10px;

    right: 10px;

    color: rgba(255, 255, 255, 0.3);

    font-size: 0.7em;

    z-index: 5;

}
