/* Author: Guilherme Modelli
   Course: ITWP 1050
   Assignment: Homework4
*/

/*Sets font color to all elements in the page*/
* {
    color: teal;
}

/* Styling for the body*/
body {
    margin: 25px auto;
    max-width: 800px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    text-align: left;
}

/* Styling for the Header*/
h1 {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    transform: skewX(-40deg);
}

/* Styling for the paragraph*/
p {
    font-size: 1em;
    line-height: 1.8;
    margin: 15px 0;
    text-align: justify;
}

/* Applying transform properties to the first paragraph */
p:first-of-type {
    transform: scale(0.7) translateX(300px);
    background-color: #f0f8ff;
    padding: 10px;
    border: 1px solid #ddd;
}

/*Applying transition properties to all paragraphs*/
p {
    background-color: #f0f8ff;
    transition-property: background-color, transform;
    transition-duration: 200ms, 300ms; 
    transition-delay: 0ms, 300ms; 
}

p:hover {
    background-color: #add8e6;
    transform: scale(2.1);
}

/* Image styling with translateX */
img {
    border: 1px solid black;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    transform: translateX(-260px);
}

/* Second image styling for the second image, translateX and rotate */
.img2 {
    transform: translateX(-260px) rotate(180deg);
}

/* Styling for the footer*/
footer {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 0.8em;
    color: #333;
    text-align: center;
    padding: 10px 0;
}

/* Pseudo element with the :: after selector for the source of the text */
a.external::after {
    content: " (external)";
    color: darkorange;
    font-style: italic;
}