/* CSS Document used for project 3 assignment
Author: Braxton Young
Course: ITWP 1050
File: style.css
*/


/* global varible for page color */

:root {
    --pagecolor: #99f399;

}

/* Adding font face for headline font */

@font-face{
    font-family: "Headline Font";
    font-weight: 400;
    font-style: normal;
    src: url(/webfonts/GFSNeohellenic-Bold.ttf)
}

/*adding font face for body font */

@font-face{
    font-family: "Body Font";
    font-weight: 400;
    font-style: normal;
    src: url(/webfonts/GFSNeohellenic-Regular.ttf)
}

/*adding font face for footer font*/

@font-face{
    font-family: "Footer Font";
    font-weight: 400;
    font-style: normal;
    src: url(/webfonts/GFSNeohellenic-BoldItalic.ttf)
}

/* body selector with font face reference, margin, padding, box size,
border box, background image and background size.
*/

body {
    
    font-family: "Body Font", Arial, Helvetica, sans-serif;
    color: white;
    margin: 3rem; 
    padding: 0;
    box-sizing: border-box;
    background: url("images/backgroundhex.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* h1 element selectors, font family, text shadow, align */

h1 {
    font-family: "Headline Font", Arial, Helvetica, sans-serif;
    text-shadow: 4px 0px 8px green;
    text-align: center;
}

/* CSS element selector for footer declarations */

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


/* pseudo class for links, link */


a {
    text-decoration: underline;
    color: var(--pagecolor);
}

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

/* pseudo class for links,  visited */
a:visited {
    text-decoration: underline;
    color: rgb(242, 239, 70);
}
/* pseudo class for links, hover */
a:hover {
    text-decoration: none;
    color: rgb(212, 65, 148);
    font-weight: bold;
}

/* pseudo class for links, active */
a:active {
    text-decoration: underline wavy rgb(238, 233, 233);
    font-weight: bold;
}

/*creating responsive text */

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

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

image-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    font-family: "Body Font", Arial, Helvetica, sans-serif;
}

/* adding the media screen */

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

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