/* Joshua McBrantie
ITWP-1050 
assignment name: Project 2
assignment description:
applying what you
have learned in Chapters 1-7 (plus some additional research), by taking a plain
newsletter and format it using CSS then validating the CSS and HTML code of the
finished project using an online validator.
*/

/* --------------------------------------------------- */

:root { /* a place for global */
    --blackColor: black;
    
}
@font-face { /*sets the font up for h1 use */
    font-family: Title Font;
    src: url(/itwp1050/project2/webfonts/AmaticSC-Bold.ttf);
    font-style: normal;
}
body {
    font-family: Arial, Helvetica, sans-serif; /*sets the font for the whole document */
    background-color: rgba(102, 204, 255, 0.4);
}
h1 {
    font-family: Title font, Arial, Helvetica, sans-serif; /*uses the @font-face title font */
    font-size: 7vw; /*auto sizing based on view width */
    text-shadow: 1px 1px 4px #336699;
}
h2 {
    background: url(/itwp1050/project2/images/coloradomountains_bkgd.jpg) repeat center;
    color: white;
    text-shadow: 1px 1px 5px var(--blackColor);
    padding: 25px;
    border: 2px var(--blackColor) inset;
    font-variant: small-caps;
    box-shadow: 5px 10px 20px #336699;
    font-size: 3vw;
}
h3 {
    font-variant: normal;
    padding: 5px;
    font-size: 2vw;
    border-bottom: 2px solid var(--blackColor);
}
h4 {
    font-variant: normal;
    padding: 5px;
    font-size: 1.75vw;
}
h5 {
    font-style: italic;
    color: darkslategray;
    font-size: 1vw;
}
p{
    text-indent: 1em;
    line-height: 1.5em;
    font-size: 1.5vw;
}
img {
    float: right;
    margin: 0 15px 15px;
    border: 1px solid var(--blackColor);
}
.stateflag { /*class targeting img */
    float: left;
    border: 1px inset white;
    margin: 5px 15px 10px 0px; /*margin pattern is top right bottom left */ 
    box-shadow: 0px 3px 3px 1px var(--blackColor);    
}

.highlightSection {
    padding: 10px;
    background-color: white;
    box-shadow: 1px 1px 2px 1px steelblue; 
} 
.copyright {
    font-size: 9px;
    font-style: italic;
    text-align: center;
    padding: 10px;
}
ul li { /*targets the li elements in the ul elements */
    line-height: 1.5em;
    font-size: 1.5vw;
}
#validation { /* used an id to target the validation div */
    text-align: center;
    font-size: 11px;
}
a {
    text-decoration: underline;
    color: var(--blackColor);
}
a:link { /* unvisited link */
    text-decoration: underline;
    color: var(--blackColor);
    font-weight: bold;
}
a:visited { /* visited link */
    text-decoration:  underline;
    color: darkblue;
}
a:hover { /*mouse over link */
    text-decoration: none;
    color: darkred;
    font-weight: bold;
}
a:active { /*selected link */
    text-decoration: underline wavy darkred;
    font-weight: bold;
}