﻿/* styles.css
   Jessom Selmanllari
    ITWP1050
    styles sheet for project 3
*/

:root {
    --pageColor: #FF6103;
}

@font-face {
    font-family: 'headlineFont';
    src: url('webfonts/Jacquard24-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    background: url('images/background.jpeg') no-repeat center center fixed; 
    background-size: cover;
}

h1 {
    font-family: 'headlineFont', Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

footer {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 0.75rem;
    margin: 50px 0;
}

/* 1. Base <a> selector */
a {
    text-decoration: underline;
    color: var(--pageColor);
}

    /* 2. Unvisited link */
    a:link {
        text-decoration: underline;
        color: var(--pageColor);
        font-weight: bold;
    }

    /* 3. Visited link */
    a:visited {
        text-decoration: underline;
        color: purple;
    }

    /* 4. Hover state */
    a:hover {
        text-decoration: none;
        color: #ff5722; 
        font-weight: bold;
    }

    /* 5. Active (when being clicked) */
    a:active {
        text-decoration: underline wavy #2196f3; /* Blue wavy underline */
        font-weight: bold;
    }

/* 1. Responsive heading or large text */
.responsive-text {
    font-size: 3rem;
    line-height: 1.5;
    color: #FF6103;
}

/* 2. Responsive paragraph text */
p.responsive-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #FF6103;
    text-align: justify;
}

/* 3. Image description text */
.image-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    color: #FF6103;
}

/* 4. Media query for small screens */
@media (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);

}