/* 
Jordan Winburn
ITWP-1050
Project 3
I've chosen to write about Weezer. Yippee.
*/

/*For screens with 600 pixels or less, style the responsive class accordingly.*/
@media(max-width: 600px) {
    .responsive-text {
        font-size: 1.5rem;
    }
}

/*Custom font used for all tag types.*/
@font-face {
    font-family: weezerFont;
    src: url(fonts/weezerfont.ttf);
}

/*Root selector with universal variable "pageColor".*/
:root {
    --pageColor: rgb(66, 226, 119);
}

/*Placeholder background color.*/
html {
    background-color: black;
}

/*Style the body element to the specifications of Project 3's checklist.*/
body {
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    /*Doing a gradient instead of an actual photo/image.*/
    background-image: linear-gradient(to bottom, dodgerblue, darkblue);
    background-size: cover;
    /*For redundancy, <p> should override.*/
    font-family: Arial, Helvetica, sans-serif;
}

p {
    font-family: weezerFont;
}

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

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

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

a:hover {
    text-decoration: none;
    color: yellow;
    font-weight: bold;
}

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

/*Style the header 1 element to the project instructions' specifications.*/
h1 {
    font-family: weezerFont;
    text-shadow: 2px 2px 5px black;
    text-align: center;
}

/*Style the footer element to the project instructions' specifications.*/
footer {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 0.75rem;
    margin-top: 50px;
    margin-bottom: 50px;
}

/*Create classes to apply to elements we want to be styled 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;
    font-family: weezerFont;
}

/*Project instruction's grid layout.*/
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, lfr));
    gap: 20px;
    padding: 10px;
}

.gallery img {
    width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 4px 8px 10px rgba(0, 0, 0, 0.1);
}

.gallery img:hover {
    transform: scale(1.3);
}