﻿/* Katherine Townsend, CISS 216 Homework08, 3/30/2020 */

/* base/default settings, best for min-width 700px */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'roboto', sans-serif;
}

@font-face {
    font-family: 'roboto';
    src: url('font/Roboto-Regular-webfont.eot');
    src: url('font/Roboto-Regular-webfont.eot?#iefix') format('embedded-opentype'), url('font/Roboto-Regular-webfont.woff2') format('woff2'), url('font/Roboto-Regular-webfont.woff') format('woff'), url('font/Roboto-Regular-webfont.ttf') format('truetype'), url('font/Roboto-Regular-webfont.svg#robotoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'roboto';
    src: url('font/Roboto-Bold-webfont.eot');
    src: url('font/Roboto-Bold-webfont.eot?#iefix') format('embedded-opentype'), url('/font/Roboto-Bold-webfont.woff2') format('woff2'), url('font/Roboto-Bold-webfont.woff') format('woff'), url('font/Roboto-Bold-webfont.ttf') format('truetype'), url('font/Roboto-Bold-webfont.svg#robotobold') format('svg');
    font-weight: bold;
    font-style: normal;
}

.container {
    max-width: 1920px;
}

header {
    width: 100%;
    border-top: ridge .25em;
}

h1 {
    padding: .5em 1.5vw .25em;
}

h2 {
    padding: 0 2% .5em 0;
}

nav, footer {
    min-height: 2.5em;
    width: 100%;
    background: black;
}

nav {
    padding-right: 2.25%;
}

    nav a {
        float: right;
        text-decoration: none;
        min-height: inherit;
        color: white;
        display: flex;
        align-items: center;
        justify-content: right;
        border-top: black solid .25em;
        padding: 0 .25em;
    }

        nav a:hover, nav a:focus {
            background: white;
            color: black;
            border-top-right-radius: 1.25em;
            border-top-left-radius: 1.25em;
            text-decoration: underline black;
        }

main {
    font-size: 1em;
}

.mobile-img {
    max-width: 15vw;
    float: left;
    margin: 1em 1.5vw;
}

    .mobile-img img {
        max-width: 100%;
    }

section {
    margin: 1em 1.25vw;
}

    section:nth-child(2) {
        float: left;
        max-width: 50%;
        margin-left: 2vw;
    }

    section:nth-child(3) {
        float: right;
        border: groove .5em;
        width: 25%;
        margin-top: 1.5em;
        padding: 0 1em 1em;
    }

        section:nth-child(3) h2 {
            text-align: center;
        }

    section:nth-child(4) {
        clear: left;
    }

ul {
    margin: 0 2.5em;
}

code {
    font-style: italic;
}

.indent {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.75em;
    padding: 1em 0;
}

footer {
    clear: both;
    border-bottom: ridge .25em;
    display: flex;
    align-items: center;
    justify-content: center;
}

    footer p {
        color: white;
        font-size: .5em;
    }

@media only print {

    img {
        display: none;
    }

    body {
        font-size: 12pt;
        background: none;
        color: black;
        margin: 6%;
    }

    p, h1, h2, nav, main, footer, header, nav a, nav a:hover, nav a:focus, footer p {
        color: black;
        background: none;
        border: hidden;
    }

    h1, h2 {
        page-break-after: avoid;
    }
}

@media only speech {
    img {
        display: none;
    }
}

@media only screen and (max-width: 44em) {
    header, h1, div, nav, ul {
        width: 100%;
        display: block;
        border: none;
        float: none;
        margin: 0;
    }

    .mobile-img {
        max-width: 100%;
        float: none;
        padding: 1em;
        margin: 0;
    }

    nav a {
        float: none;
        border: none;
    }

    ul {
        padding: 1em;
    }

    main section:nth-child(2) {
        max-width: 100%;
    }

    section:nth-child(3) {
        border: none;
    }

    section:nth-child(2), section:nth-child(3), section:nth-child(4) {
        width: 100%;
        padding: 1em;
        margin: 0;
    }
}
