@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    font-size: 62.5%;
}

body {
    background-color: #0A9396;
    color: #160036;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    line-height: 2.6rem;
}

/* CIS195 Homepage */
/* Mobile - Up to 700px */

/* Page Header */
.index header.page {
    background-color: #160036;
    color: #B33F62;
    border: 4px solid #B33F62;
    text-align: center;
}
.index header.page h1 {
    font-size: 4rem;
    padding: 8px 30px;
    line-height: 4rem;
}

/* Navbar */
.index nav.navbar {
    background-color: #160036;
    border: 4px solid #B33F62;
    padding: 8px 30px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 5px;
}
.index nav.navbar a {
    text-decoration: none;
    color: #0A9396;
    background-color: #0c001f;
    box-shadow: 2px 2px 3px;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 10px;
    max-width: 45%;
    flex-grow: 1;
}
.index nav.navbar a:hover {
    transition: all 200ms linear;
    color: #B33F62;
    box-shadow: 2px 2px 3px;
}

/* Main */
.index main {
    margin: 5px 30px;
}
.index article {
    border: 2px solid #160036;
    background:#c5b4cf; 
    border-radius: 10px;
    box-shadow: 2px 4px 8px;
    margin: 20px 0;
    overflow: hidden;
}
.index article h2 {
    text-align: center;
    padding: 10px 0 5px 0;
}
.index article p {
    padding: 5px 15px;
}
.index article ul {
    padding: 5px 15px 5px 36px;
}

/* Intro Article */
.index article.intro figure.hero {
    background-image: url(../images/wyatt-weston-mirror-selfie.png);
    background-size: cover;
    background-position: top;
    min-height: 300px;
}

/* Participation Article */
.index article.participation nav {
    background-color: #160036;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    padding: 10px 0;
}
.index article.participation nav a {
    text-decoration: none;
    color: #0A9396;
    background-color: #0c001f;
    box-shadow: 2px 2px 3px;
    border-radius: 5px 10px;
    padding: 5px;
    margin: 5px;
    flex-grow: 1;
    max-width: 40%;
    hyphens: auto;
}
.index article.participation nav a:hover {
    transition: all 200ms linear;
    color: #B33F62;
    box-shadow: 2px 2px 3px;
}

/* Hobby Article */

/* Footer */
.index footer {
    background-color: #160036;
    color: #D3D3D3;
    padding: 10px 30px;
    font-size: 1.5rem;
}


/* Tablet - 700px to 1020px */

@media screen and (min-width: 700px) {

    /* Navbar */
    .index nav.navbar a {
        max-width: 30%;
    }

    /* Main */
    .index article p {
        padding: 5px 45px;
    }
    .index article ul {
        padding: 5px 45px 5px 66px;
    }

    /* Intro Article */
    .index article.intro figure.hero {
        width: 200px; height: 200px;
        background-size: 200%;
        background-position: right top;
        min-height: 0;
        display: block;
        float: left;
        margin: 16px 16px 10px 16px;
        border: 2px solid #160036;
        border-radius: 10px;
        box-shadow: 2px 2px 3px;
    }
    .index article.intro h2 {
        padding: 10px 16px 5px 0;
    }
    .index article.intro p:nth-of-type(2) {
        clear: both;
    }

    /* Participation Article */
    .index article.participation nav a {
        max-width: 30%;
    }
}

/* Monitors - 1020px and above */

@media screen and (min-width: 1020px) {

    /* Header */
    .index header.page h1 {
        padding: 8px 15%;
        text-align: left;
    }

    /* Navbar */
    .index nav.navbar {
        padding: 8px 15%;
    }
    .index nav.navbar a {
        min-width: 25%;
    }

    /* Main */
    .index main {
        width: 70%;
        margin: auto;
    }

    /* Intro Article */
    .index article.intro figure.hero {
        margin: 45px 16px 16px 45px;
        border-right: 2px solid #160036;
        box-shadow: 0 0 0;
        width: 250px; height: 250px;
    }

    /* Participation Article */
    .index article.participation nav a {
        min-width: 25%;
    }
    
    /* Footer */
    .index footer {
        padding: 10px 15%;
    }
}


/* Module 8 Particpiation */
/* Product Comparison Table */

body.m08 {
    background-color: white;
    color: black;
    padding: 8px;
}

.m08 h3 {
    text-align: center;
    font-size: 5rem;
    padding: 20px;
    line-height: 6rem;
}

.m08 table {
    width: 100%;
    max-width: 750px;
    margin: auto;
    text-align: center;
    border-collapse: collapse;
}

.m08 th {
    text-transform: uppercase;
}

.m08 figure.th1 {
    background-image: url(../images/edamame.png);
    background-size: cover;
    background-position: center;
    width: 50%; margin: auto;
    aspect-ratio: 1.3;
}
.m08 figure.th2 {
    background-image: url(../images/other_beans.png);
    background-size: cover;
    background-position: center;
    width: 50%; margin: auto;
    aspect-ratio: 1.3;
}
.m08 figure.th3 {
    background-image: url(../images/nuts.png);
    background-size: cover;
    background-position: center;
    width: 50%; margin: auto;
    aspect-ratio: 1.3;
}

.m08 tr:first-child th {
    font-size: 1.8rem;
    padding: 10px 0;
}

.m08 table tr :nth-child(2) {
    background-color: #a6cb38;
    font-weight: bold;
    font-size: 2.4rem;
}

.m08 td {
    width: 25%;
    height: 60px;
}

.m08 tr {
    border-top: 2px solid black;
}
.m08 tr:nth-of-type(1) {
    border-top: 0px;
}

.m08 tr > :nth-child(4) {
    border-left: 2px solid black;
}


/* Printable Training Table */

body.m08p {
    padding: 4px;
}

.m08p h1 {
    text-align: center;
    font-size: 4rem;
    line-height: 4rem;
    max-width: 600px;
    margin: auto;
}

.m08p blockquote {
    display: none;
    font-size: 2rem;
    line-height: 2rem;
    max-width: 600px;
    margin: 10px auto;
    font-family: cursive;
    font-style: italic;
}
.m08p blockquote p {
    display: block;
    text-align: center;
    font-style: normal;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    margin: 20px auto;
}

.m08p table {
    border: 4px solid #160036;
    margin: 10px auto;
    border-collapse: collapse;
}

.m08p th, .m08p td {
    border: 2px solid #0c001f;
    padding: 2px;
    text-align: center;
    vertical-align: middle;
    font-size: 1.4rem;
}

.m08p td.test {
    font-weight: bold;
    background-color: #160036;
    color: #B33F62;
}

.m08p tr:nth-child(even) {
    background-color: #0caeb1;
}

.m08p tr:nth-child(odd) {
    background-color: #0fd0d3;   
}

/* Print Version */
@media print {

    .m08p blockquote {
        display: block;
    }

    a {
        text-decoration: none;
        color: #160036;
    }

    .m08p table {
        font-size: 10pt;
        font-family: "courier new";
    }

    .m08p td, .m08p th {
        height: auto;
    }

}