/*
   New Perspectives on HTML and CSS
   Tutorial 4
   Case Problem 1

   History Style Sheet
   Author: Xavier De Jesus
   Date:   3/7/2025

   Filename:         history.css
   Supporting Files: 

*/


header, section, nav {
    display: block;
}


* {
    margin: 0;
    padding: 0;
}

/* Style for the header section */
header {
    background-color: rgb(51, 51, 51);
    text-align: center;
    width: 55em;   
}

/* Style for the image insede the header */
header img {
    height: 4em;
}

/* Style for the navigation menu */
nav {
    background-color: rgb(51, 51, 51);
    width: 15em;
    float: left;
}

/* Style for navigation list items */
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;
}

/* Styles for navigation links */
nav a {
    color: rgb(212, 212, 212);
    text-decoration: none;
}

/* Changes link color when hover */
nav a:hover {
    color: white;
}

/* Styles for the main content section #speech */
#speech {
    background-color: rgb(212, 212, 212);
    width: 40em;
    float: left;
    font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
}

/* Style for the speech section heading */
#speech h1 {
    background-color: rgb(51, 51, 51);
    color: rgb(212, 212, 212);
    font-size: 2em;
    text-align: center;
}

/* Styles for paragraphs inside the speech section */
#speech p {
    font-size: 0.9em;
    margin: 1em;
}

/* First letter styling for the first paragraph */
#speech 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;
}

/* Uppercasers the firat line of the first paragraph */
#speech p:first-of-type::first-line {
    text-transform: uppercase;
}

/* Style for images inside the speech section */
#speech img {
    float: right;
    clear: right;
    height: 4em;
}