:root {
    --dark: #1a1a1a;
    --light: #f7eef4;
    --primary: #c03323;
    --secondary: #daa99d;
    --extra: #ffeeea;
    --text: #1a1a1a;
    --text-light: #f7eef4;

    font-size: large;
}

header {
    display: flex;
    justify-content: space-between;

    align-items: center;
    background: var(--dark);
    height: 70px;
    font-family: "Heading";
    font-size: 2.75rem;

    box-shadow: 4px 4px 0 var(--primary);
    margin-right:2px;
    margin-bottom: 4px;
    color: var(--text-light);
    padding: 0 12px;

}

.header-left, .header-right {
    flex: 1; /*  */
    display: flex;
    align-items: center;
    margin: 5px;
}

.header-right {
    justify-content: flex-end; /* Pushes the dropper icon to the far right */
}

.header-center {
    flex: 0; /* Only takes up as much space as the text needs */
    white-space: nowrap;
    text-align: center;
}

body{
    background: color-mix(in srgb, var(--light) 50%, transparent);
    display: grid;
}

table{
    border-collapse: collapse; /*Overlaps borders of <tr>*/
    padding:5px;
    max-width: 300px;
    width: 100%;

    th, td {
        padding-top: 1px;
        border: none;
        border-bottom: 1px solid var(--dark)

    }

    p{
        margin: 0px;
    }
}


button{
    box-shadow: 3px 3px 0 var(--dark);
    transition: all 0.1s ease;
    margin: 4px;
    border: 2px solid var(--dark);
}

button:hover{
    box-shadow: 0px 0px 0 0px var(--primary);
    transform: translate(2px, 2px);
    border-color: var(--dark);
}

.content{
    display: flex;
    align-items: flex-start; /*center vertically*/
    justify-content: center; /*center horizontally*/
}

.color-hr{ /*removes original line, replaces with a 2px tall colored box*/
    height: 2px;
    border-width:0;
    background-color:var(--secondary);
    margin: 0 0 10px 0;
}

.a-external{
    display: inline-block;
    align-self: flex-start;

    background: none;
    color: var(--primary);

    padding: 0.3em 0.4em;
    margin: 3px 0;
    outline: 2px solid var(--dark); /*Using border applies to the outside and counts for width, when srhinking border it shifts other elements too. Outline fixes this*/

    font-family: "Body-bold";
    font-size: 0.9em;
    cursor: pointer;
    text-transform: uppercase;

    transition: all 0.1s ease;
}

.a-external:hover{
    background: var(--dark);
    outline: 1px solid var(--primary);

}

.a-internal{
    display: inline-block;

    background: var(--primary);
    color: var(--extra);

    padding: 0.4em;
    margin: 7px 0;
    border: 2px solid var(--dark);

    font-family: "Body-bold";
    cursor: pointer;
    text-transform: uppercase;

    /* The Shape */

    box-shadow: 3px 3px 0 var(--dark);
    transition: all 0.1s ease;


}

.a-internal:hover{
    background: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 0 0 var(--primary);
    transform: translate(3px, 3px);

}


aside{
    width: 30%;
    min-width: 250px;
    max-width: 350px;
    flex-shrink: 0;

}

article{
    max-width: 950px;

    background:var(--extra);
    color: var(--text);
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0 var(--primary);

    transition: all 0.1s ease;
    line-height: 0.9;
    font-family: "Body";

    margin: 15px;
    padding: 15px;

    h1, h2, h3, h4, h5, h6{
        margin: 10px 0;
    }

    section{
        text-decoration: underline var(--secondary) 0.12em;
    }

    .number{
        font-family: "Heading";
        font-size: 0.75rem;
        margin: 0;
        margin-bottom: 10px;
    }
}

.services{
    flex-grow: 1;
    justify-content: flex-start;
    display: flex;
    flex-wrap: wrap;
}

.card{
    display: flex;
    flex-direction: column;
    max-width: 350px;
    min-height: 80px;

    background:var(--extra);
    color: var(--text);
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0 var(--primary);
    transition: all 0.1s ease;

    font-family: "Body";

    margin: 7px 10px;
    padding: 10px;

    a{
        text-decoration: none;
    }

    .number{
        margin: 3px 0px 7px 0px;
    }
    .name{
        font-family: "Body-bold";
        font-size: 1.2rem;
        margin: 0;
    }
    .description{
        margin: 6px 0 8px 0;
    }

    .a-internal {
        margin-top: auto;
    }

    .a-external {
        margin-top: auto;
    }

}

.card:hover{
    box-shadow: 0px 0px 0 0px var(--primary);
    transform: translate(2px, 2px);
}

@media (max-width: 768px) { /*on mobile stacks the sidebar and main elements*/
    .content {
        flex-direction: column;
    }
    aside {
        width: 100%;
        max-width: 100%;
    }
}
