/*Created by: Kailynn Anderson
Course: ITWP 1050 - Basic Web Design - CSS
This assignment requires me to use my new knowledge of CSS Selectors */

/* declaring variables */
:root {
    --border-color: #76313c;
    --border-style: solid;
    --border-width: 4px;
    --border:
        var(--border-color)
        var(--border-style)
        var(--border-width);

    --speaker-color: #b823b7;
}

/*font color and background color throughout the document */
* {
    color: #ffffff;
    font-size: 24px;
    box-sizing: border-box;
}
/* font style from google fonts */
@font-face {
    font-family: 'Permanent Marker';
    src: url(https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap) format(woff2);
    font-style: normal;
}

/* This section formats the body of the document */
body {
    margin: 25px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    background-image: linear-gradient(
        #010000,
        #1d1c1d,
        #010000

    );
}
/* Line height and margin */
body p {
    margin: 30px auto;
    padding-top: 10px;
    font-size: 1.5rem;
    line-height: 2.7rem;
    width: 60rem;
}

/* styling h1 tag with a background image */
h1 {
    font-size: 4rem;
    white-space: nowrap;
    letter-spacing: 5px;
    font-variant: small-caps;
    font-family: 'Permanent Marker', Arial, Helvetica, sans-serif;
    text-shadow: 5px 5px 10px #af1119;
    background-image: url(../assets/image/poster2.jpg);
    background-repeat: no-repeat;
    background-clip: padding-box;
    background-size: cover;
    background-position-y: top;
    height: 150px;
    width: 90%;
    margin: 0 auto;
    color: #ffffff;
    border: 5px solid #b823b7;
}

/*increase the font size for all h2 elements */
h2 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    height: 3.5rem;
    line-height: 3.5rem;
}
/* gradient background on all h2 */
.gradient {
    background-image: linear-gradient(
        45deg,
        #af1119,
        #b823b7,
        #d8a839
    );
    height: 3.5rem;
    width: 90%;
    margin: 35px auto;
    text-align: center;
}


/* image styles */

img {
   border: var(--border);
    border-radius: 10px;
    height: 30rem;
    width: 60rem;
    margin: 0 auto;

}

 /* style for the speaker of each quote */
.speaker {
    color: var(--speaker-color);
    font-style: italic;
    font-size: 1.5rem;
}
/* horizontal rule style */
hr {
    border: var(--border);
}

/* source formatting */

.source-1::after, .source-2::after, .source-3::after {
content: ' (external)';
color: var(--speaker-color);
}

/* footer formatting */

footer {
    margin-top: 50px;
    margin-bottom: 50px;
}