/* Reset default browser gaps so our numbers win */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

/* Stays on screen while you scroll the Home cards */
nav {
    width: var(--sidebar-width);
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--sidebar);
}

.logoContainer {
    margin: 20px 16px;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.linkContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* All sidebar links share this look */
a {
    width: 85%;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 700;
}

a:hover,
a.active {
    background: var(--sidebar-active);
}

/* Phone / small tablet: sidebar becomes a top bar */
/* Phone / small tablet: bar stays at the top while Work scrolls */
@media (max-width: 800px) {
    .navContainer {
        position: sticky;
        top: 10px;
        z-index: 20;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    nav {
        position: relative;
        width: 98%;
        height: auto;
        padding-bottom: 12px;
        border-radius: 15px;
    }

    .logoContainer {
        margin: 12px 16px;
        max-width: 140px;
    }

    .linkContainer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 12px;
    }

    a {
        width: auto;
        padding: 8px 14px;
        font-size: 14px;
    }
}