/* 
Project3
Author: Kailynn Anderson
Course: ITWP1050
Assignment: Create a Photo gallery Website using everything i've learned in the class.
Making Memories - Photo gallery of some of my favorite pictures from past trips
*/

/* setting the global page color */
:root {
    --pageColor: #faa4dc;
}

/* adding font styles from google fonts */
@font-face {
    font-family: 'Title Font';
    src: url(../project3/webfonts/Rowdies/Rowdies-Bold.ttf);
    font-style: normal;
}

@font-face {
    font-family: 'Intro Text';
    src: url(../project3/webfonts/Outfit/static/Outfit-Regular.ttf);
    font-style: normal;
}

@font-face {
    font-family: 'Photo';
    src: url(../project3/webfonts/Lilita_One/LilitaOne-Regular.ttf);
    font-style: normal;
}

/* adding a background image to the page, formatting the body */
body {
    font-family: 'Intro Text', Arial, Helvetica, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    background: url(../project3/images/detroit-windsor.jpg) center / cover no-repeat fixed;
}
/* styling the h1 tag */
h1 {
    font-family: 'Title Font', Arial, Helvetica, sans-serif;
    text-shadow: 3px 3px #2e022c;
    text-align: center;
}
/* footer tag style */
footer {
    font-family: 'Intro Text', Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: .75rem;
    margin: 50px 0;
}
/* styling the links with pseudo-classes */
a {
    text-decoration: underline;
    color: var(--pageColor);
}

a:link {
    text-decoration: underline;
    color: var(--pageColor);
    font-weight: bold;
}

a:visited {
    text-decoration: underline;
    color: #2e022c;
}

a:hover {
    text-decoration: none;
    color: #2e022c;
    font-weight: bold;
}

a:active {
    text-decoration: underline wavy #faa4dc;
    font-weight: bold;
}

/* styling the text */
.responsive-text {
    font-size: 3rem;
    line-height: 1.5;
    color: var(--pageColor);
}

p.responsive-text {
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
    color: #faa4dc;
    text-shadow: 1px 1px #2e022c;
}

.image-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    font-family: 'Photo', Arial, Helvetica, sans-serif;
    text-shadow: .25px .25px var(--pageColor);
}
/* media querie to change the font size of the text when the viewport is less than 600px */
@media  screen and (max-width: 600px) {
    .responsive-text {
        font-size: 1.5rem;
    }
}
/* grid layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}
.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 4px 8px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
}
.gallery img:hover {
    transform: scale(1.3);
}