/*File name: project2
Author: Grace Trombley
Course: ITWP 1050
Assignment: Format a plain newsletter using CSS.
*/

/*global variable*/
:root {
    --blackColor: #000000;
}

/*Amatic SC font from google to style the title*/
@font-face {
    font-family: Title Font;
    src: url(webfonts/AmaticSC-Bold.ttf);
    font-style: normal;
}

/*changes body and child elements to have blue background*/
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgba(102,204,225,.4);
}

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

/*styles the firat header element*/
h1 {
    font-family: 'Title Font', Arial, Helvetica, sans-serif;
    font-size: 7vw;
    text-shadow: 1px 1px 4px #336699;
}

/*formats the second header*/
h2 {
    background: url(images/coloradomountains_bkgd.jpg) center repeat;
    color: white;
    text-shadow: 1px 1px 5px var(--blackColor);
    padding: 25px;
    border: 2px inset var(--blackColor) ;
    font-variant: small-caps;
    box-shadow: inset 5px 10px 20px #336699;
    font-size: 3vw;
}

/*formats the third header*/
h3 {
    font-variant: normal;
    padding: 5px;
    font-size: 2vw;
    border-bottom: 2px solid var(--blackColor);
}

/*formats the forth header*/
h4 {
    font-variant: normal;
    padding: 5px;
    font-size: 1.75vw;
}

/*formats the fifth header*/
h5 {
    font-style: italic;
    color: darkslategray;
    font-size: 1vw;
}

/*gives all images on the page borders*/
img {
    float: right;
    margin-top: 0;
    margin-bottom: 15px;
    margin-left: 15px;
    margin-right: 15px;
    border: 1px solid var(--blackColor);
}

/*gives the picture of the state flag some style with borders and margins*/
.stateflag {
    float: left;
    border: inset 1px white;
    margin-top: 5px;
    margin-right: 10px;
    margin-left: 0;
    box-shadow: 0px 3px 3px 1px var(--blackColor);
}

/*this class gives part of the article a white background, making it stand out more*/
.highlightSection {
    padding: 10px;
    background-color: white;
    box-shadow: 1px 1px 2px 1px SteelBlue;
}

/*makes the copyright section italicized and small*/
.copyright {
    font-size: 9px;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/*formats the lists*/
ul li {
    line-height: 1.5em;
    font-size: 1.5vw;
}

/*aligns and sizes the validation links*/
#validation {
    text-align: center;
    font-size: 11px;
}

/*these all relate to how a link is viewed*/
a {
    text-decoration: underline;
    color: var(--blackColor);
}

a:link {
    text-decoration: underline;
    color: var(--blackColor);
    font-weight: bold;
}

a:visited {
    text-decoration: underline;
    color: darkblue;
}

a:hover {
    text-decoration: none;
    color: darkred;
    font-weight: bold;
}

a:active {
    text-decoration: underline wavy darkred;
    font-weight: bold;
}