/* styles css external stylesheet for project 3 - Rachel Spelich - ITWP 1050 */

/*Section 1.0: Global Variable with Root Selector*/
:root {
    --pageColor: #f2f2f2;
}

/* Section 1.1: Web font from Google Fonts */
@font-face {
    font-family: 'HeadlineFont';
    src: url(webfonts/static/GoogleSansFlex_120pt-ExtraBold.ttf) format('truetype');
}

@font-face {
    font-family: 'BodyFont';
    src: url(webfonts/static/GoogleSansFlex_24pt-Regular.ttf) format('truetype');
}

/* Section 1.2: Body, h1 and footer styling */
body {
    font-family: 'BodyFont', Helvetica, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    background: url("images/background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: white;
}

h1 {
    font-family: 'HeadlineFont', sans-serif;
    text-shadow: white 1px 1px 1px;
    text-align: center;
}

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

/* Section 1.3: Psuedo-Classes for Hyperlinks */
a {
    text-decoration: underline;
    color: var(--pageColor);
}

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

a:visited {
    text-decoration: underline;
    color: darkmagenta;
}

a:hover {
    text-decoration: none;
    color: rgb(230, 222, 183);
    font-weight: bold;
}

a:active {
    text-decoration: underline wavy;
    color: white;
    font-weight: bold;
}

/* Section 1.4: Creating Responsive Text */
.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;
    text-align: center;
    margin-top: 20px;
    color: white;
    font-family: 'BodyFont', Helvetica, sans-serif;
}

@media (max-width: 600px) {
    .responsive-text {
        font-size: 1.5rem;
    }
}


/* Section 1.5: Creating the Grid */
.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);
}