/*
Author: Melissa Daoud
Course: ITWP 1050 - CSS
Date: 11/16/2023
File name: styles.css
This file contains the css styling for project 2.
*/

/* Global variable */
/* Root selector */
:root {
    --blackColor: #000000;
}

/* @font-face rule */
/* For use of Google Fonts in the project */
@font-face {
    font-family: "Title Font";
    src: url("../webfonts/AmaticSC-Bold.ttf");
    font-style: normal;
}

/* Body Selector */
/* Set the font family and background color */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgba(102, 204, 255, .4);
}

/* Paragraph Selector */
/* Set the text indent, line height, and font size */
p {
    text-indent: 1em;
    line-height: 1.5em;
    font-size: 1.5vw;
}

/*--------------- Styling the Heading Element Selectors (h1 to h5) ---------------*/

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

/* h2 Selector */
/* Set background image, text color, text shadow, padding, border, font-variant, and box shadow */
/* NOTES: 
Using shorthand font property (font: 3vw;) will cause the font to be too small and the entire banner to shrink
This: (font: small-caps 3vw;) didn't work properly either
*/
h2 {
    background: url("../images/coloradomountains_bkgd.jpg") repeat center;
    color: white;
    text-shadow: 1px 1px 5px var(--blackColor);
    padding: 25px;
    border: 2px inset var(--blackColor);
    font-variant: small-caps;
    box-shadow: 5px 10px 20px inset #336699;
    font-size: 3vw;
}

/* h3 Selector */
/* Set the font variant, padding, font size, and bottom border */
h3 {
    font-variant: normal;
    padding: 5px;
    font-size: 2vw;
    border-bottom: 2px solid var(--blackColor);
}

/* h4 Selector */
/* Set the font variant, padding, and font size */
h4 {
    font-variant: normal;
    padding: 5px;
    font-size: 1.75vw;
}

/* h5 Selector */
/* Set font style, text color, and font size */
h5 {
    font-style: italic;
    color: darkslategray;
    font-size: 1vw;
}

/*--------------- Styling the Image(s) ---------------*/

/* Set the float property, margins, and border for images */
img {
    float: right;
    margin: 0px 15px 15px 15px;
    border: 1px solid var(--blackColor);
}

/* CSS rule for unordered list items */
ul li {
    line-height: 1.5em;
    font-size: 1.5vw;
}

/*--------------- Creating Classes, an ID, and Styling a List ---------------*/

/* Classes */

/* Class to set the float, margin and box-shadow */
.stateflag {
    float: left;
    margin: 5px 15px 10px 0px;
    box-shadow: 0px 3px 3px 1px var(--blackColor);
}

/* Class to set padding, background color, and box-shadow */
.highlightSection {
    padding: 10px;
    background-color: white;
    box-shadow: 1px 1px 2px 1px steelblue;
}


/* Class to set font size, font style, align the text, padding, and set the border */
.copyright {
    font-size: 9px;
    font-style: italic;
    text-align: center;
    padding: 10px;
    border-top: 1px medium var(--blackColor);
}

/* IDs */

/* ID to set the font size and cetner align the text*/
#validation {
    text-align: center;
    font-size: 11px;
}

/* Pseudo-Classes for Hyperlinks */

/* Set text decoration and text color for hyperlinks */
a {
    text-decoration: underline;
    color: var(--blackColor);
}

/* Make links black with a bold font weight and underlined */
a:link {
    text-decoration: underline;
    color: var(--blackColor);
    font-weight: bold;
}

/* Make visited links blue and underlined */
a:visited {
    text-decoration: underline;
    color: darkblue;
}

/* When hovering over a link, make the text color dark red and bold */
a:hover {
    text-decoration: none;
    color: darkred;
    font-weight: bold;
}

/* Make an active link (it's active when you click and hold the link) a bold dark red with a wavy underline */
a:active {
    text-decoration: underline darkred wavy;
    font-weight: bold;
}