/*
Filename: styles.css
Name: Raneen Algamal
Course: ITWP 1050
Assignment: Project 3
*/

/* CSS Variable */
:root {
    --mainColor: #1e3a8a;
}

/* Web Font */
@font-face {
    font-family: "headlineFont";
    src: url("webfonts/PlayfairDisplay-Regular.ttf");
}

/* Body Styling */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 30px;
    box-sizing: border-box;

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

/* Main Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.92);

    padding: 35px;

    border-radius: 15px;

    box-shadow: 0 0 15px rgba(0,0,0,.3);
}

/* Heading */
h1 {
    font-family: "headlineFont", Arial, Helvetica, sans-serif;

    text-align: center;

    font-size: 3rem;

    color: #111827;

    text-shadow: 2px 2px 4px #777;

    margin-bottom: 30px;
}

/* Paragraph Text */
.responsive-text {
    font-size: 1.1rem;

    line-height: 1.8;

    color: #102033;

    text-align: justify;

    margin-bottom: 30px;
}

/* Grid Gallery */
.gallery {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;

    margin-top: 40px;
}

/* Gallery Images */
.gallery img {
    width: 100%;

    height: 250px;

    object-fit: cover;

    border-radius: 10px;

    box-shadow: 2px 4px 10px rgba(0,0,0,.3);

    transition: transform .4s ease-in-out;
}

/* Hover Effect */
.gallery img:hover {
    transform: scale(1.08);
}

/* Image Caption */
.image-text {
    text-align: center;

    margin-top: 12px;

    font-family: "headlineFont", Arial, Helvetica, sans-serif;

    font-size: 1rem;

    color: #111827;
}

/* Footer */
footer {
    text-align: center;

    margin-top: 50px;

    margin-bottom: 20px;

    font-size: .9rem;
}

/* Links */
a {
    text-decoration: underline;
}

/* Link State */
a:link {
    color: var(--mainColor);

    font-weight: bold;
}

/* Visited State */
a:visited {
    color: purple;
}

/* Hover State */
a:hover {
    color: darkred;

    text-decoration: none;
}

/* Active State */
a:active {
    text-decoration: underline wavy darkred;
}

/* Responsive Media Query */
@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

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

    .gallery img {
        height: 200px;
    }
}