/* CSS Document used for homework 5 assignment
Author: Braxton Young
Course: ITWP 1050
File: style.css
*/

/* CSS element selector for body declarations, added line-height */

body {
    margin: 25px; 
    font-family: "La Belle Aurore", cursive, Arial, Helvetica, sans-serif;
    font-size: 1em;
    text-align: center;
    line-height: 3rem;
    background-color: white;
}

/* CSS universal selector for text color for each HTML */

* {
    color: #4682B4;
}

/*adding media query and breakpoint for h1 and body*/

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

    body {
        font-size: 0.9em;
    }
    
}

/* media query for background color change */

@media screen and (max-width: 600px) {
    body {
        background-color: burlywood;
    }
}

/* CSS element for H1, font family, text shadow, letter spacing, 
small caps font variant*/

h1 {
    font-family: "La Belle Aurore", cursive, Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 0px pink;
    letter-spacing: 5px;
    font-variant: small-caps;
    white-space: nowrap;
    
}

/* CSS element selector for number headings */

h2 {
    font-weight: bold;
    color: black;
}

/* CSS element selector for footer declarations */

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

/* CSS element selector for image declarations */
/* adding responsive images */

img {
    border: 25px solid black;
    border-radius: 45px;
    width: 275px;
    height: 400px;
}

/* making images stay side by side and responsive */

.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.image-row img {
    width: 100%;
    max-width: 275px;
    min-width: 200px;
    height: auto;
    box-sizing: border-box;
}


/* CSS step 1 - background gradient 1 of 2 option */
/*updaing to adjust the gradient to be responsive */
.gradient1 {
    background-image: radial-gradient(blue, pink);
    width: 100%;
    min-height: 300px;
    padding: 2rem;
    box-sizing: border-box;
}

/* CSS step 2 - Background Image 2 of 2 option */

.background-image {
    background-image: url(shakespeare-banner.jpg);
    height: 14rem;
    width: auto;
}

/* H1 element for web fonts step 2 a-e */

@font-face{
    font-family: "La Belle Aurore";
    font-weight: 400;
    font-style: normal;
    src: url(LaBelleAurore-Regular.ttf)
}


/* CSS ::after pseudo-element */

.external-link::after {
    content: ' (external)';
    color: red
}

.five-item-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background-color: #f5f5f5;
    margin-top: 40px;
}

.five-item-section .item a {
    background-color: #4682B4;
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.five-item-section .item:hover {
    transform: scale(1.05);
}