/* responsive.css - Media queries and responsive design */
@media (max-width: 768px) {
    h1 { 
        font-size: 2em; 
    }
    
    .skills { 
        gap: 10px; 
    }
    
    .skill { 
        font-size: 0.9em; 
    }
    
    .code-block { 
        font-size: 0.8em; 
    }
    
    .ascii-canvas {
        grid-template-columns: repeat(16, 18px);
        grid-template-rows: repeat(12, 18px);
    }
    
    .ascii-cell {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .brush-selection {
        justify-content: center;
    }

    /* Stack game controls vertically on mobile */
    .mining-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .difficulty {
        justify-content: center;
    }

    /* Adjust modal sizes for mobile */
    .snake-container,
    .blockchain-container,
    .ascii-container {
        width: 95%;
        max-width: none;
        margin: 10px;
        padding: 15px;
    }

    /* Smaller terminal spacing on mobile */
    .terminal-body {
        padding: 15px;
    }

    .output {
        margin-left: 10px;
    }

    /* Adjust header padding for mobile */
    header {
        padding: 40px 20px;
    }

    /* Make process headers more readable on mobile */
    .process-header {
        font-size: 0.8em;
        flex-wrap: wrap;
    }

    .game-item {
        font-size: 0.8em;
        flex-wrap: wrap;
    }

    .ps-col {
        min-width: 40px;
        margin-right: 8px;
        font-size: 0.9em;
    }

    .game-name {
        min-width: 80px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    main {
        padding: 0 15px;
    }

    .terminal-body {
        padding: 12px;
    }

    .commit {
        padding: 15px;
    }

    .commit-meta {
        flex-direction: column;
        gap: 10px;
    }

    /* Further reduce game canvas size on very small screens */
    .ascii-canvas {
        grid-template-columns: repeat(12, 16px);
        grid-template-rows: repeat(10, 16px);
    }
    
    .ascii-cell {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
}
