/* ==================================================
    Name: Brandon Klein
    Course: ITWP 1050
    Assignment: Project 3
    Description: This stylesheet controls the layout,
    typography, and styling for the National Parks Photo
    Gallery webpage.
=================================================== */

/* Global Variable */
:root {
    --pageColor: #2f4f4f;
}

/* Web Font */
@font-face {
    font-family: serifDisplay;
    src: url("webfonts/DMSerifDisplay-Regular.ttf")
}

/* Body Selector */
body {
    font-family: serifDisplay, Arial, Helvetica, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;

    /* Background Image */
    background: url("images/background.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* h1 Selector */
h1 {
    font-family: serifDisplay, Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 5px black;
    text-align: center;
}

/* Footer Selector */
footer {
    font-family: serifDisplay, Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 0.75rem;
    margin: 50px 0;
}

/* a Pseudo-Class */
a {
    text-decoration: underline;
    color: var(--pageColor);
}

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

/* a:visited Pseudo-Class */
a:visited {
    text-decoration: underline;
    color: #6b8e23;
}

/* a:hover Pseudo-Class */
a:hover {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

/* a:active Pseudo-Class */
a:active {
    text-decoration: underline wavy #ffcc00;
    font-weight: bold;
}

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

/* p Responsive Text Class */
p.responsive-text {
    font-size: 1rem;
    line-height: 1.5;
    color: black;
    text-align: justify;
}

/* image Responsive Text Class */
.image-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    font-family: serifDisplay, Arial, Helvetica, sans-serif;
}

/* Media Query for Width < 600px */
@media (max-width: 600px) {
    .responsive-text {
        font-size: 1.5rem;
    }
}

/* CSS Grid */

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