/* =========================================
   File Name: styles.css
   Author: Klajdi Bicaku
   Course: ITWP1050
   Assignment: Module 8 Project 3
   Description: Responsive Soccer Photo Gallery
========================================= */

/* =========================================
   ROOT VARIABLES
========================================= */

:root {
    --main-color: #00ffff;
}

/* =========================================
   WEB FONT
========================================= */

@font-face {
    font-family: headlineFont;
    src: url("webfonts/Bebas_Neue/BebasNeue-Regular.ttf");
}

/* =========================================
   BODY
========================================= */

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

    background: url("images/background.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* =========================================
   BACKGROUND OVERLAY
========================================= */

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.35);

    z-index: -1;
}

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

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

    position: relative;
    z-index: 1;
}

/* =========================================
   MAIN HEADING
========================================= */

h1 {
    font-family: headlineFont, Arial, Helvetica, sans-serif;
    text-align: center;
    text-shadow: 3px 3px 5px black;
    color: gold;
}

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

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

/* =========================================
   INTRODUCTION PARAGRAPHS
========================================= */

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

    background-color: rgba(0, 0, 0, 0.5);

    padding: 10px;

    border-radius: 5px;
}

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

.image-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    color: white;
}

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

@media screen and (max-width: 600px) {

    .responsive-text {
        font-size: 1.5rem;
    }

}

/* =========================================
   HYPERLINKS
========================================= */

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

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

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

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

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

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

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

/* =========================================
   GALLERY GRID
========================================= */

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

/* =========================================
   GRID ITEMS
========================================= */

.grid-item {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 10px;
}

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

.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;
    object-fit: cover;
}

/* =========================================
   IMAGE HOVER EFFECT
========================================= */

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