/*
Author: Melissa Daoud
Course: ITWP 1050 - CSS
Date: 12/14/2023
File name: styles.css
This file contains the css styling for project 3.
I chose to model my project with a bakery theme. I named it Gâteau de Luxe.
*/

/* Global variable */
/* Root selector */
:root {
    --pageColor: #641b30; /*This is the hex code for 'wine'*/
}

/* @font-face rule */
/* For use in the h1 header tag */
@font-face {
    font-family: "headlineFont";
    src: url("../webfonts/Niconne-Regular.ttf");
}

/* @font-face rule */
/* For use photo titles */
@font-face {
    font-family: "pageFont";
    src: url("../webfonts/Salsa-Regular.ttf");
}

/* Body Selector */
/* Set the font family and background color */
body {
    font-family: 'pageFont', Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 3rem;
    padding: 0%;
    box-sizing: border-box;
    background: url("../images/damask_bg.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* h1 selector */
h1 {
    font-family: 'headlineFont', Arial, Helvetica, sans-serif;
    text-shadow: 1px 2px #63c5da; /* Hex code for sky blue */
    text-align: center;
   
}

/* Footer selector */
/* Set the font family and size, center text, and set top and bottom margin */
footer {
    font-family: 'pageFont', Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: .75em;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Hyperlink selectors and their pseudo classes */
/* Set the text color using the root variable, add text decoration (underline) */
a {
    color: var(--pageColor);
    text-decoration: underline;
}

/* Pseudo class :link */
/* Set the text color using the root variable, add text decoration (underline), set font weight to bold */
a:link {
    color: var(--pageColor);
    text-decoration: underline;
    font-weight: bold;
}

/* Pseudo class :visited */
/* Set the text color, add text decoration (underline) */
a:visited {
    /* color: #9b0047; */
    color: #b11226;
    text-decoration: underline;
}

/* Pseudo class :hover */
/* Set the text color, add text decoration (underline) */
a:hover {
    /* color: #9b0047; */
    /* color: #4f86f7; */
    color: #1338be;
    text-decoration: none;
    font-weight: bold;
}

/* Pseudo class :active */
/* Set the text color, add text decoration (underline with wavy style) */
a:active {
    /* color: #9b0047; */
    /* color: #464196; */
    color: #1338be;  
    text-decoration: underline #1338be wavy;
    font-weight: bold;
}

/* Classes*/
/* Responsive text class */
.responsive-text {
    font-size: 3rem;
    line-height: 1.5;
    color: black;
}

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

/* Class for image descriptions */
.image-text {
    font-family: 'pageFont', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: bold; /* Added this to make the font easier to read */
    text-align: center;
    margin-top: 20px;
}

/* Media query with breakpoint that changes:
responsive-text class font size is 1.5rem 
when viewport <= 600px */
@media screen and (max-width: 600px) {
   /* Make sure the responsive-text classes font size is 1rem */
   .responsive-text {
    font-size: 1.5rem;
   }
}

/* Creating the Grid */
/* 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 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
}

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

#sign-off {
    font-size: 1rem;
    color: black;
    text-align: right;
}

#signature {
    font-size: 1rem;
    color: black;
    text-align: right;
}

