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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.game-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

#blocker {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#instructions {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    line-height: 1.5;
}

/* Split-screen HUD styling */
.hud {
    position: absolute;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-shadow: 1px 1px 1px black;
}

.selected-block {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

/* Screen divider */
.divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: white;
    z-index: 10;
}

/* Player-specific styling */
#hud-p1 {
    left: 0;
}

#hud-p2 {
    left: 50%;
}

/* Player labels */
.player-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #instructions {
        max-width: 90%;
        font-size: 14px;
    }
    
    .crosshair {
        font-size: 18px;
    }
    
    .selected-block, .player-label {
        font-size: 12px;
    }
}
