/*
Filename: styles.css
Author: Samuel Ulysses Barnes II
Course: ITWP 1050
Project: Project 3 - CSS Photo Gallery
*/

/* =========================
   WEB FONTS
========================= */

@font-face {
    font-family: headlineFont;
    src: url("./webfonts/font1.ttf") format("truetype");
}

@font-face {
    font-family: bodyFont;
    src: url("./webfonts/font2.ttf") format("truetype");
}

/* =========================
   ROOT VARIABLE
========================= */

:root {
    --pageColor: #ffffff;
}

/* =========================
   BODY (FIXED CONTRAST)
========================= */

body {
    font-family: bodyFont, Arial, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;

    /* dark overlay + background image for readability */
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url("./images/background.jpg") no-repeat center center fixed;

    background-size: cover;

    color: white;
}

/* =========================
   CONTAINER
========================= */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================
   H1
========================= */

h1 {
    font-family: headlineFont, Arial, sans-serif;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    color: white;
}

/* =========================
   GRID LAYOUT
========================= */

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

/* =========================
   IMAGES
========================= */

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease-in-out;
}

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

/* =========================
   IMAGE TEXT
========================= */

.image-text {
    font-family: bodyFont, Arial, sans-serif;
    font-size: 1rem;
    text-align: center;
    margin-top: 10px;
}

/* =========================
   RESPONSIVE TEXT
========================= */

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

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

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    font-size: 0.75rem;
    margin: 50px 0;
}

/* =========================
   LINKS
========================= */

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

a:visited {
    color: #c0c0c0;
}

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

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

/* =========================
   MEDIA QUERY
========================= */

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