/* CSS Document used for the homework5 assignment
Author: Grace Trombley
Course: ITWP 1050
File: styles.css
Assignment: Final project; create a photo page with relatinng designs
*/

:root {
    --pagecolor: #fa8b8d;
}

@font-face {
    font-family: headerFont;
    src: url(webfonts/PlayfairDisplay-VariableFont_wght.ttf);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    background: url(images/bgpic.jfif) no-repeat center center fixed;
    background-size: cover;
}

h1 {
    font-family: 'headerFont', Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 3px;
    text-align: center;
}

footer {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: .75rem;
    margin-top: 50px;
    margin-bottom: 50px;
}

/*pseudo-classes */
a::after {
    text-decoration: underline;
    color: var(--pagecolor);
}

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

a:visited {
    text-decoration: none;
    color: rgb(189, 189, 255);
}

a:hover {
    text-decoration: none;
    color: rgb(0, 0, 255);
    font-weight: bold;
}

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

/*classes*/
.responsive-text {
    font-size: 3rem;
    line-height: 1.5;
    color: white;
}

p.responsive-text {
    font-size: 1rem;
    line-height: 1.5;
    color: white;
    text-align: justify;
}

.image-text {
    font-size: 1rem;
    line-height: 1.5;
    color: white;
    text-align: justify;
}

/* 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);
}