/* CSS Document used for the project 3 assignment
Author: Ahmed Rokeeb
Course: ITWP 1050
File: styles.css
*/

/* This is a global variable set to the color white */
:root {
    --pageColor: #000000;
}

/* This is the downloaded font from Google being applied in the @font-face property */
@font-face {
    font-family: 'pageFont';
    src: local('OpenSans-Regular'), url('../project3/webfonts/OpenSans-Regular.ttf') format('truetype');
}

/* Styling for the body */
body {
    font-family: 'pageFont', Arial, Helvetica, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    background: url('../project3/images/back.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* h1 styling for the header */
h1 {
    font-family: 'pageFont', Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 4px rgb(255, 255, 255);
    text-align: center;
}

/* Footer styling */
footer {
    font-family: 'pageFont', Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 0.75rem;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Styling for psuedo classes made for the hyperlinks */
a {
    text-decoration: underline;
    color: var(--pageColor);
}

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

a:visited {
    text-decoration: underline;
    color: #ffffff;
}

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

a:active {
    text-decoration: underline wavy #8400ff;
    font-weight: bold;
}

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

/* Class for paragraph text (introductory text) */
p.responsive-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #000000;
    text-align: justify;
}

/* Class for image description text */
.image-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    font-family: 'pageFont', Arial, Helvetica, sans-serif;
}

/* Media query for devices with viewport less than 600px */
@media (max-width: 600px) {
    .responsive-text {
        font-size: 1.5rem;
    }
}

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

/* Styling for the gallery images and their display */
.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);
}