/*
Author: William Bergler
Course ITWP 1050
File: styles.css
CSS external file for project 1
*/

/*Creates a global variable that has color green*/
:root{
    --pageColor: blue;
}

/*Imports custom font for header*/
@font-face {
    font-family: 'Header Font';
    src: url(webfonts/SedgwickAveDisplay-Regular.ttf);
    font-style: normal;
}

/*Sets font and margins for the body*/
body{
    font-family: Arial, Helvetica, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    background: green url(images/background.jpg) no-repeat center center fixed;
    background-size: cover;
}

/*Sets font settings for h1*/
h1{
    font-family: 'Header Font', Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 0px green;
    text-align: center;
}

/*Sets footer font settings*/
footer{
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: .75rem;
    margin: 50px 0px;
}

/*creates an anchor class*/
a{
    text-decoration: underline;
    color: var(--pageColor);
}

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

/*pseudo class for visited link*/
a:visited{
    text-decoration: underline;
    color: red;
}

/*pseudo class for when mouse is over link*/
a:hover{
    text-decoration: none;
    color: rgb(255, 0, 0);
    font-weight: bold;
}

/*pseudo class for selected link*/
a:active{
    text-decoration: underline;
    text-decoration-style: wavy;
    color: darkred;
    font-weight: bold;
}

/*makes the text responsive to the screen size*/
.responsive-text{
    font-size: 3rem;
    line-height: 1.5;
    color: black;
}

/*intruductory text responsiveness*/
p.responsive-text{
    font-size: 1rem;
    line-height: 1.5;
    margin: 20px 0 0 0;
    text-align: justify;
}

/*edits the image description text*/
.image-text{
    font-size: 1rem;
    text-align: center;
    margin: 20px 0 0 0;
}

/*sets it when the viewport is under 600px the text size changes*/
@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);
}