body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('images/background0.webp') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    color: #fff;
    font-family: 'Titan One', cursive;
}

.tetris-container {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

canvas {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #555;
}

.side-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

.scoreboard {
    text-align: center;
    margin-top: 20px;
}

.scoreboard p {
    margin: 5px 0;
    font-size: 18px;
}

.side-panel div {
    margin-bottom: 20px;
    text-align: center;
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 60px;
    flex-direction: column;
}

.start-screen p {
    margin-top: 0px;
    font-size: 36px;
    font-family: 'Titan One', cursive;
    text-shadow: 4px 3px 0 #cc6699;
}

.start-screen img {
    max-width: 80%;
    max-height: 80%;
}

.overlay-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    display: none;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 2s infinite;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 36px;
    font-family: 'Titan One', cursive;
    color: #000;
}

.hidden {
    visibility: hidden;
}

.hold-label,
.next-label,
.score-label,
.level-label,
.lines-label {
    color: rgba(0, 0, 0, 0.7);
}

.background-hidden {
    background: none !important;
}

.instructions-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.instructions-screen h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.instructions-screen ul {
    list-style-type: none;
    padding: 0;
}

.instructions-screen li {
    font-size: 18px;
    margin: 10px 0;
}

.start-screen .instructions-prompt {
    font-size: 24px; /* Modifica la dimensione del font */
    color: lightgray;
    margin-top: 20px;
}

.back-prompt {
    font-size: 16px;
    margin-top: 20px;
    color: lightgray;
}
