/*
   New Perspectives on HTML and CSS
   Tutorial 4
   Case Problem 1

   History Style Sheet
   Author: ELizabeth Willard
   Date: Mar 25, 2025

   Filename:         history.css
   Supporting Files: 

*/

/* Reset defaults for all elements */
* {
    margin: 0;
    padding: 0;
}

/* Step 3: Display as block */
header, section, nav {
    display: block;
}

/* Step 5: Style for header */
header {
    background-color: rgb(51, 51, 51);
    text-align: center;
    width: 55em;
}
header img {
    height: 4em;
}

/* Step 6: Navigation styling */
nav {
    float: left;
    width: 15em;
    background-color: rgb(51, 51, 51);
}

/* Step 7: List items within navigation */
nav li {
    font-family: 'Century Gothic', sans-serif;
    font-size: 0.7em;
    list-style-type: none;
    line-height: 1.4em;
    margin-left: 1em;
    margin-bottom: 1.2em;
}

/* Step 8: Hyperlink styles within navigation */
nav a {
    color: rgb(212, 212, 212);
    text-decoration: none;
}
nav a:hover {
    color: white;
}

/* Step 9: Style for speech section */
section {
    background-color: rgb(212, 212, 212);
    width: 40em;
    float: left;
    font-family: 'Palatino Linotype', 'Book Antiqua', 'Palatino', serif;
}

/* Step 10: Style for h1 in speech section */
section h1 {
    background-color: rgb(51, 51, 51);
    color: rgb(212, 212, 212);
    font-size: 2em;
    text-align: center;
}

/* Step 11: Style for paragraphs in speech section */
section p {
    font-size: 0.9em;
    margin: 1em;
}

/* Step 12: Drop cap */
section p:first-of-type::first-letter {
    float: left;
    font-size: 4em;
    line-height: 0.8em;
    margin-right: 0.3em;
    padding-right: 0.2em;
    padding-bottom: 0.2em;
    border-right: 0.02em solid black;
    border-bottom: 0.02em solid black;
}

/* Step 13: Uppercase for first line */
section p:first-of-type::first-line {
    text-transform: uppercase;
}

/* Step 14: Inline images in speech section */
section img {
    float: right;
    height: 4em;
    clear: right;
}