/* Project 2 | Emily Gorgees | ITWP 1050 | This week's project involves 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. | */

/* a global variable that uses the :root selector */
:root {
    --blackColor: #000000 ;
}

/* font face rule*/
@font-face {
    font-family: 'Title Font';
    src: url(webfonts/AmaticSC-Bold.ttf);
    font-style: normal;
}

/* rule for the body selector */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgba(102,204,255,.4);
}

/* paragraph element selector */
p {
    text-indent: 1em;
    line-height: 1.5em;
    font-size: 1.5vw;
}

/* styling h1 with font family, size, and text shadow */
h1{
    font-family: 'Title Font', Arial, Helvetica, sans-serif;
    font-size: 7vw;
    text-shadow: 1px 1px 4px #336699;
}

/* styling h2 with a background image, text shadow, padding, box-shadow, and more*/
h2{
    background: url(images/coloradomountains_bkgd.jpg) repeat center center;
    color: white;
    text-shadow: 1px 1px 5px var(--blackColor);
    padding: 25px;
    border:inset 2px var(--blackColor);
    font-variant: small-caps;
    box-shadow: inset 5px 10px 20px #336699;
    font: 3vw 'Title Font', Arial, Helvetica, sans-serif;
}

/* styling h3 with normal font variant, padding, font size, and border bottom*/

h3{
    font-variant: normal;
    padding: 5px;
    font-size: 2vw;
    border-bottom: 2px solid var(--blackColor);
}

/* styling h4 with normal font variant, padding, and font size */
h4{
    font-variant: normal;
    padding: 5px;
    font-size: 1.75vw;
}

/* styling h5 with italics, text color, and font size */
h5{
    font-style: italic;
    color: darkslategray;
    font-size: 1vw;
}

/* styling the image using the float, margin, and border properties */
img {
    float: right;
    margin: 0 15px 15px 15px;
    border: 1px solid var(--blackColor);
}

/* stateflag class */
.stateflag{
    float: left;
    border: inset 1px white;
    margin: 5px 15px 10px 0;
    box-shadow: 0px 3px 3px 1px var(--blackColor);
}

/* highlightSection class */

.highlightSection{
    padding: 10px;
    background-color: white;
    box-shadow: 1px 1px 2px 1px steelblue;
}

/* copyright class */
.copyright{
    font-size: 9px;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* unordered list and its list items */
ul li{
    line-height: 1.5em;
    font-size: 1.5vw;
}

/* validation ID*/ 
#validation{
    text-align: center;
    font-size: 11px;
}

/* pseudo-class named a with text decoration and black text color */
a{
    text-decoration: underline;
    color: var(--blackColor);
}

/* pseudo-class named a:link with text decoration, black text color, and bold font weight. */
a:link{
    text-decoration: underline;
    color: var(--blackColor);
    font-weight: bold;
}

/* pseudo-class named a:visited with text decoration and dark blue text color. */
a:visited{
    text-decoration: underline;
    color: darkblue;
}

/* pseudo-class named a:hover with bold dark red text */
a:hover{
    text-decoration: none;
    color: darkred;
    font-weight: bold;
}

/* pseudo-class named a:active with bold font and text decoration */
a:active{
    text-decoration: underline wavy darkred;
    font-weight: bold;
}