/*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;
}
/* rotate spider image add skew */
.intro img {
    transform: rotate(2deg) skew(5deg);
}
/*rotate p under spider img add skew */
/*.intro p {
    transform: rotate(2deg) skew(-5deg);
}*/
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
/* This section formats the body of the document */
body {
    margin: 2px 5vw;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    background-image: linear-gradient(
        #010000,
        #1d1c1d,
        #010000
    );
}
/* Line height and margin */
body p {
    margin: 25px;
    padding: 10px 50px;
    font-size: 1.5rem;
    line-height: 2.7rem;
    background-color: #2a282a;
    border: 4px solid var(--border-color);
    box-shadow: 0px 0px 4px 4px #2d0101;
}


/* styling h1 tag with a background image */
h1 {
    font-size: clamp(30px, 30vw, 80px);
    letter-spacing: 5px;
    font-variant: small-caps;
    font-family: 'Permanent Marker', Arial, Helvetica, sans-serif;
    text-shadow: 5px 5px 10px #af1119;
    background-image: linear-gradient(
        45deg,
        #af1119,
        #b823b7,
        #d8a839
    );
    margin: 0 auto;
    color: #ffffff;
    border: 5px solid #b823b7;
    transform:perspective(1000px) rotateX(45deg);
}

/*increase the font size for all h2 and h3 elements */
h2 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    height: auto;
    line-height: .5px;
    transform: skew(20deg);
}

h3 {
    font-size: 50px;
    transform: skew(20deg);
}

/* 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;
}
/* formatting the items in the containers */
.item {
    margin: 0.25rem;
    font-size: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    padding: 1rem;
}

/* image styles */

img {
   border: var(--border);
    border-radius: 10px;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}
/* imgs will increase in size and skew at a 45deg angle*/
img:hover {
    transform: scale(1.1) skew(4deg);
}

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

/*responsive layout */
/* cast section */
.cast-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: .10rem;
    align-content: stretch;
    margin-bottom: 20px;
    justify-content: space-evenly;
}

.cast-container p {
    text-align: left;
    background-color: #010000;
    padding-right: 150px;
    height: 200px;
}
/* when the screen gets narrow, all items will be put into one column */
.cast-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 10px;
}

/* changes the color of the italicized text */
.cast-item i {
color: #b823b7;
}


/* styling the sources section */
.sources {
    clear: both;
    background-color: #1d1c1d;
    padding: 10px 20px;
    box-shadow: 0px 0px 4px 4px #af1119;
}
/* adding transition */
.sources p {
    background: #2a282a;
    transition-property: background-color, transform;
    transition-duration: 500ms,500ms;
    transition-delay: 0ms;
    
}

.sources p:hover {
    background-color: var(--border-color);
    transform: scale(1.1);

}

/* 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: 90px;
}



/* media queries */
/* breakpoints*/
/* font size will change at 800 pixels or less */

@media screen and (max-width: 800px) {
    h1 {
        font-size: 1.2rem;
    }

    body {
        font-size: .5rem;
    }
}
/* changes the background color when the viewport is 600 pixels or less */
@media screen and (max-width: 600px) {
    body {
        background-color: #f0d4d4;
        color: #010000;
    }
}