




/* Game Instructions Styles */
.game-instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.key {
    background: #007bff;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 1px 2px rgba(0,123,255,0.3);
    margin: 0 2px;
    display: inline-block;
}

.highlight {
    background: #ffc107;
    color: #000;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
}

/* Game Canvas Styles */
#gameCanvas {
    width: 100%;
    max-width: 90%;
    height: 45vh;
    min-height: 300px;
    max-height: 500px;
    border: 2px solid #333;
    border-radius: 8px;
    background: linear-gradient(180deg, #87CEEB 0%, #98D8E8 100%);
    display: block;
    margin: 20px auto;
    box-sizing: border-box;
    cursor: crosshair;
}

#successMessage {
    margin-top: 15px;
    text-align: center;
    font-size: 1rem;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1440px) {
    body {
        font-size: 15px;
    }
    
    #gameCanvas {
        height: 42vh;
        min-height: 280px;
        max-height: 450px;
    }
}

@media (max-width: 1024px) {
    body {
        font-size: 14px;
    }
    
    #gameCanvas {
        height: 40vh;
        min-height: 250px;
        max-height: 400px;
        margin: 15px auto;
    }
    
    #successMessage {
        font-size: 0.9rem;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .game-instructions {
        padding: 6px 10px;
        margin: 8px 0;
        font-size: 0.85rem;
    }
    
    .key {
        font-size: 0.75rem;
        padding: 1px 4px;
    }
    
    #gameCanvas {
        width: 95%;
        height: 35vh;
        min-height: 200px;
        max-height: 350px;
        margin: 12px auto;
        border-width: 1px;
    }
    
    #successMessage {
        font-size: 0.85rem;
        margin-top: 10px;
        min-height: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    .game-instructions {
        padding: 5px 8px;
        margin: 6px 0;
        font-size: 0.8rem;
    }
    
    .key {
        font-size: 0.7rem;
        padding: 1px 3px;
    }
    
    #gameCanvas {
        width: 98%;
        height: 30vh;
        min-height: 180px;
        max-height: 300px;
        margin: 10px auto;
        border-width: 1px;
    }
    
    #successMessage {
        font-size: 0.8rem;
        margin-top: 8px;
        min-height: 18px;
    }
}

@media (max-width: 375px) {
    body {
        font-size: 11px;
    }
    
    .game-instructions {
        padding: 4px 6px;
        margin: 4px 0;
        font-size: 0.75rem;
    }
    
    .key {
        font-size: 0.65rem;
        padding: 1px 2px;
    }
    
    #gameCanvas {
        height: 28vh;
        min-height: 150px;
        max-height: 250px;
        margin: 8px auto;
    }
    
    #successMessage {
        font-size: 0.75rem;
        margin-top: 5px;
        min-height: 16px;
    }
}
