/* Mobile-friendly styles */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
        padding: 10px;
    }

    #container {
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
    }

    #main-content, #sidebar {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0;
    }

    img {
        max-width: 100%;
        height: auto;
        display: inline-block;
        vertical-align: middle;
    }

    /* Special handling for OS icons tables */
    table {
        width: 100% !important;
        height: auto !important;
        display: table !important;
        margin: 10px 0;
        border-collapse: collapse;
        table-layout: fixed;
    }

    table td {
        height: auto !important;
        width: auto !important;
        padding: 10px;
        text-align: center;
        vertical-align: middle;
        overflow: hidden;
    }

    /* First cell with OS icons */
    table td:first-child {
        width: 45% !important;
        white-space: normal;
        font-size: 0; /* Remove space between inline-block elements */
    }

    /* Container for OS icons */
    table td:first-child a {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Make OS icons display nicely */
    table td:first-child img {
        display: inline-block;
        height: 30px;
        width: auto;
        margin: 0 2px;
        vertical-align: middle;
    }

    /* Special handling for Mac logo which is taller */
    table td:first-child img[src*="mac"] {
        height: 38px;
    }

    /* Action buttons cells */
    table td:not(:first-child) {
        width: 27.5% !important;
    }

    h1 {
        font-size: 2em !important;
    }

    h2 {
        font-size: 1.5em !important;
    }

    h3 {
        font-size: 1.2em !important;
    }

    .links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .links p {
        margin: 5px 10px !important;
    }

    /* Make sure form inputs are touch-friendly */
    input, select, button {
        min-height: 44px;
        padding: 10px;
    }

    /* Improve spacing for better readability */
    p, li {
        margin-bottom: 1em;
    }

    /* Make sure pre blocks don't overflow */
    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
        margin: 10px 0;
        padding: 10px;
    }

    /* Fix for multiple links in table cells */
    td a {
        display: inline-block;
        margin: 5px 0;
    }

    /* Remove fixed dimensions from tables */
    table[width], table[height] {
        width: 100% !important;
        height: auto !important;
    }

    td[width], td[height] {
        width: auto !important;
        height: auto !important;
    }
} 