/*
    Author: Philip Howard
    Date:   2026-05-03
    Course: ITWP 1050

    Stylesheet for Homework 5

    Note: assignment required items are marked 'assigned' at col 60
*/


/*Default font color*/
* {
    color: black;
}

/*Body style*/
body {
    margin: 25px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    text-align: center;
    background-color: bisque;
}

/*Paragraph style*/
p{
    line-height: 120%;
    max-width: 50%;
    text-align: left;
    margin-left: 25%;
    text-indent: 50px;
    background-color: lightgrey;
    padding: .5%;
}


/*Heading 1 style*/
h1{
    /*format border*/
    border: 5px solid #000000;
    background-clip: border-box;
    /*Set size and position*/
    width: 30rem;
    height: 10rem;
    margin: auto;
    /*Set text*/
    align-content: center;
    font-size: 4em;
    text-shadow: .05em .05em 0 black;
    letter-spacing: .10em;
    font-variant: small-caps;
    white-space: nowrap;
    /*Background*/
    background-color: lightslategray;
}


/*Footer style*/
footer {
    margin-top: 25px;
    margin-bottom: 50px;
}
footer::before{
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000000;
    margin-bottom: 25px;

}
/*Footer paragraph style*/
footer > p {
    text-align: center;
    margin: auto;
}


/*Format source link*/
p.source{
    text-align: center;
    margin: auto;
    margin-top: 50px;
}
a.source::after {
    content: " (external)";
    color: red;
}

/*********************************Assigned*********************************/
/*Viewport breakpoint to change text size when viewport is less than 800px*/
@media screen and (max-width: 800px){
    h1 {
        font-size: 3em;
    }
    body {
        font-size: .75em;
    }
}
/*Viewport breakpoint to change background color when viewport is less than 600px*/
@media screen and (max-width: 600px) {
    body {
        background-color: burlywood;
    }
}
/*img resizes to scale to viewport*/
img {
    max-width: 100%;
    height: auto;
}
/*Resposive flexbox for sand grades*/
/*Container style*/
.gritContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    background-color: aquamarine;
    padding: 0.25rem;
}
/*Cell style*/
.gritItem {
    background-color: slategrey;
    color: beige;
    text-align: center;
    margin: 0.25rem;
    font-size: 1rem;
}
.wide {
    width: 300px;
}