/*
Claire Muller
ITWP 1050
Project 3
styles.css
*/

/* Root selector for declaring global variable */
:root {
    --pageColor: #301808;
}


/* Setting up 2 font faces */
@font-face {
    font-family: "Petit";
    src: url(webfonts/Petit\ Formal\ Script.woff2);
}

@font-face {
    font-family: "Spectral";
    src: url(webfonts/Spectral.woff2);
}


/* This selector controls h1 */
h1 {
    font-family: "Petit", Arial, Helvetica, sans-serif;
    text-align: center;
    text-shadow: 4px 4px 5px #442714;
}


/* This selector controls the body */
body {
    font-family: "Spectral", Arial, Helvetica, sans-serif;
    background: url(images/background.jpg) no-repeat center center fixed;
    font-weight: bold;
    background-size: cover;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
}


/* This selector controls the footer */
footer {
    font-family: "Spectral", Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: .75rem;
    margin-top: 50px;
    margin-bottom: 50px;
}


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


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


/* Pseudoclass for a:visited */
a:visited {
    text-decoration: underline;
    color: #700a55;
}


/* Pseudoclass for a:hover */
a:hover {
    text-decoration: none;
    color: #803301;
    font-weight: bold;
}


/* Pseudoclass for a:active */
a:active {
    text-decoration: underline wavy #803301;
    font-weight: bold;
}


/* Class for responsive text */
.responsive-text {
    font-size: 3rem;
    line-height: 1.5;
    color: black;
}


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


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


/* Media query for responsive text */
@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);
}