/*
    Name:   Lailee Bowman
    Course: ITWP 1050 
    Assignment: Project 2 (The Colorado Newsletter)
*/

/*global variable using root selector with a value of white*/
:root {
    --blackColor: #000;
}

/*load decorative webfont before anything tries to use it*/
@font-face {
    font-family: 'Title Font';
    src: url(webfonts/Amatic_SC/AmaticSC-Bold.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
}

/*body style sets font family and bg color*/
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgba(102,204,255,.4);
}

/*h1 element specifies font family including webfont, font size, and text shadow*/
h1 {
    font-family: "Title Font", Arial, Helvetica, sans-serif;
    font-size: 7vw;
    text-shadow: 1px 1px 4px #336699;
 }

/*h2 element adds background image and centers it. Adds text color, text shadow, padding, color variable, border width, border style, font variant, box shadow, and font size. */
h2 {
    background: url(images/coloradomountains_bkgd.jpg) center repeat;
    color: #fff;
    text-shadow: 1px 1px 5px var(--blackColor);
    padding: 25px;
    border: 2px inset var(--blackColor);
    box-shadow: 5px 10px 20px #336699 inset;
    font-size: 3vw;
    font-variant: small-caps;
}

/*h3 sets font size and variant, adds padding, and a bottom border using variable color. */
h3 {
    font-size: 2vw;
    font-variant: normal;
    padding: 5px;
    border-bottom: 2px solid;
    border-color: var(--blackColor);
}

/*h4 sets font size and variant, and adds padding */
h4 {
    font-size: 1.75vw;
    font-variant: normal;
    padding: 5px;
}

/*h5 sets font size, style, and color. this would not validate in the html because h5 does not come after h2. I made the section h3 in the html, turned h5 into a class, then removed the border bottom and padding so the alignment on page would match the screenshots. */
.old-h5 {
    font-style: italic;
    color: darkslategray;
    font-size: 1vw;
    border-bottom: none;
    padding: 0;
}

/*paragraph style sets text indent, line height, and font size*/
p {
    text-indent: 1em;
    line-height: 1.5em;
    font-size: 1.5vw;
}

/*image element selector sets margin, float, and border using variable color */
img {
    float: right;
    margin: 0 15px 15px 15px;
    border: 1px solid var(--blackColor);
}

/* table style was in the html. moved it to css. */
table {
    width:75%; 
    border:none; 
    padding:3px; 
    margin:auto;
}

/* unordered list/list items element selector sets line height and font size */
ul li {
    line-height: 1.5em;
    font-size: 1.5vw;
}

/* id validation centers text and sets font size.*/
#validation {
    text-align: center;
    font-size: 11px;
}

/* class stateflag sets float, border, margin, box-shadow */
.stateflag {
    float: left;
    border: 1px inset white;
    margin: 5px 15px 10px 0;
    box-shadow: 0px 3px 3px 1px var(--blackColor);
}

/* class highlightSection sets padding, background color, and box-shadow */
.highlightSection {
    padding: 10px;
    background-color: white;
    box-shadow: 1px 1px 2px 1px steelblue;
}

/* class copyright sets font and padding */
.copyright {
    font-size: 9px;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

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;
}