/* CSS Document for Project 3
Student: Darrcelle Jackson
Course: ITWP 1050
File: styles.css */

/* sets background color for the html document */
:root {
    --pageColor: #5b3e31;
}

/* web safe font */
@font-face {
    font-family: 'headlineFont';
    src: url('webfonts/Sofia-Regular.ttf');
}

/* web safe font */
@font-face {
    font-family: 'bodyFont';
    src: url('webfonts/Kalam-Regular.ttf');
}

/* styles the body element */
body {
    font-family: 'bodyFont', Arial, Helvetica, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    background: url("images/yarnbackground.jpeg") no-repeat center center fixed;
    background-size: cover;
}

/* styles the h1 element */
h1 {
    font-family: 'headlineFont', Arial, Helvetica, sans-serif;
    text-shadow: 0px 0px 5px turquoise;
    text-align: center;
}


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


/* Styles the element(s) with the class name "responsive-text" */
.responsive-text {
    font-size: 3rem;
    line-height: 1.5;
    color: black;
}

/* Styles the paragraph element with the class name "responsive-text */
p.responsive-text{
    font-size: 1rem;
    line-height: 1.5;
    color: #000000;
    text-align: justify;
}

/* Styles the element(s) with the class name "image-text" */
.image-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
}

/* Styles the text and changes the font size on screens that are 600px or less */
@media screen and (max-width: 600px) {
    .responsive-text {
        font-size: 1.5rem;
    }
}

/* sets the text decoration and color for the psuedo-class "a" */
a {
    text-decoration: underline;
    color: var(--pageColor);
}

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

/* visited link */
a:visited {
    text-decoration: underline;
    color: #5e2e8b;
}

/* mouse over link */
a:hover {
    text-decoration: none;
    color: #2c9e94;
    font-weight: bold;
}

/* selected link */
a:active {
    text-decoration: underline wavy #a1456a;
    font-weight: bold;
}

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