/*

Author: Safaa Sabir
Course: ITWP 1050 
Assignment: Project 3
Filename: styles.css

*/


/* Root Variable */
:root {
    --pageColor: #f5d7a1;
}

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

}

/* Body Styles */

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

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

/* Container Styling */

.container {
    margin-bottom: 50px;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 30px;
    border-radius: 15px;
}

/* Heading Styles */

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

/* Footer Styles */

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

/* Hyperlink Styles */

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


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

a:visited {
    text-decoration: underline;
    color: rgb(102, 45, 4);
}

a:hover {
    text-decoration: none;
    color: rgb(95, 188, 250);
    font-weight: bold;
}

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

/* Responsive Text */

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

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

/* Image Description Text */

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


/* Gallery Grid Layout */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual Gallery Item */

.gallery-item {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Image Styling */
.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;

}

/* Hover Effect */

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

/* Tablet Layout */

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

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Media Query */

@media screen and (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }

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