* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

:root {
    /* variables for frequent use */
    --cl-bglight: #98AEC8;
    --cl-bgdark: #2C5367;
    --fs-standard: 16px; /* or 1.6em (base of ten) */
    --fs-headline1: 48px;
    --fs-headline2: 38px;
}

body {
    background-color: var(--cl-bglight);
}

header {
    background-color: var(--cl-bgdark);
    height: 100px;
    padding: 10px;
}

header .logo {
    width: 100%; 
    height: 80px;
    background-color: rgba(255,255,255,.7);
    padding: 10px;
    font-size: 24px;
}

#mainbody {
    display: flex;
    flex-flow: row wrap;
    min-height: calc(100vh - 100px);
}

aside {
    background-color: orange;
    flex-grow: 1;
    flex-basis: 50%;
    text-align: center;
}

nav a {
    display: inline-block;
    width: 25%; height: 45px;
    background-color: rgba(0,0,0,.7);
    margin: 10px;
    line-height: 40px;
    color: white;
}

nav a:last-child {
    display: none;
}

article {
    background-color: #EEE;
    flex-grow: 1;
    flex-basis: 65%;
    padding: 15px;
}

article img {
    transform: translateX(50%) rotate(270deg);
    width: 50%;
    float: none;
    margin-right: 0px;
    margin-bottom: 20px;
}

article h2 {
    font-size: var(--fs-headline2);
}

article p {
    font-size: var(--fs-standard);
    margin-top: 10px;
    margin-bottom: 16px;
    line-height: 1.5;
}


/* ====== styles for wide-screen users ====== */
@media screen and (min-width: 750px) {
   
    header .logo {
        width: 300px;
    }

    aside {
        flex-grow: 0;
        flex-basis: 250px;
    }
    
    nav a {
       margin: 10px; 
       width: 80%;
    }

    nav a:last-child {
        display: inline-block;
    }

    article img {
        transform: translateX(0%);
        width: 300px;
        float: left;
        margin-right: 15px;
        margin-bottom: 0px;
    }


}