@charset "UTF-8";
/* CSS Document used for homework 5
Author: Melissa Daoud
Date created: 12/8/2023
Course: ITWP 1050
File: styles.css
*/

/* Font type: Agbalumo
Source: https://fonts.google.com/specimen/Agbalumo*/
@font-face {
    font-family: 'Title Font';
    src: url("../fonts/Agbalumo/Agbalumo-Regular.ttf");
}

/* Body tag: Declare font family and line height, center align text, add background image */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    text-align: center;
    background-color: #ede3d9;
    overflow-x: hidden;
}


/* h1 tag: Use custom font, change font size to better suit page, customize the text */
/* For homework 4, move, rotate, and scale the title so it looks like it's tilted a little bit. Moved it up and away from the <h2> section.*/
h1 {
    font-family: 'Title Font', Arial, sans-serif;
    text-align: center;
    font-size: 36px;
    text-shadow: 3px 3px 0px #bd8191;
    letter-spacing: 2px;
    font-variant: small-caps;
    white-space: nowrap;
    transform: translate(2rem, -1rem) rotateX(-35deg) rotateY(2deg) scale(1.5, 1.75);
}

/* Move the header section down. */
header {
    padding-top: 50px;
}

/* Universal selector; set the color of all elements to dark green */
* {
    color: darkgreen;
}

/* Give the image within the img tag a 1 pixel, solid black border with rounded edges */
img {
    border: 1px solid #000000;
    border-radius: 10px;
}

img.layFlat {
    height: 250px;
    width: 200px;
}

img.translateLeftImg {
    transform: translate(-1rem, -.5rem) perspective(200px) rotateX(10deg);
}

img.translateRightImg {
    transform: translate(1rem, -.5rem) perspective(200px) rotateX(10deg);
}

/* Add a top and bottom margin of 50 pixels */
footer {
    margin-top: 50px;
    margin-bottom: 50px;
}


/* Classes */
/* Place the word (external) after a link and made it blueviolet colored */
.external-link::after {
    content: ' (external)';
    color: blueviolet;
}

/* Create a container for the daffodils and wordsworth images*/
.img_container {
    width: 50%;
    margin: auto;
    border: 5px solid black;
    border-radius: 2rem;
}

/* Handle the color gradient for the image container (for daffodils and wordsworth images) */
.gradient_container {
    background-image: linear-gradient(45deg,
            #000000,
            #881c39,
            #a34f65,
            #bd8191,
            #d7b3bd,
            #bd8191,
            #a34f65,
            #881c39,
            #000000);
}

/* Make a button with a black border, rounded corners, and create a transition color 
of dark green to plum to match website aesthetic */
.button {
    border: black solid;
    border-radius: 12px;
    background-color: darkgreen;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 20px 30px;
    cursor: pointer;
    transform: translate(0rem, -1.5rem);
}

/* Handles the transition from dark green to plum while maintaining white text, timing of 500ms*/
.buttonColorTransition:hover {
    transition-property: background-color, transform;
    transition-duration: 500ms, 500ms;
    transition-delay: 50ms, 500ms;
    background-color: #a34f65;
    color: white;
}

/* Newly added styling for homework 5 */
/*------------------------------------*/
/* Responsive layout classes */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.5rem;
}

.item {
    text-align: center;
    margin: auto;
}

/* Move the first <p> section down and away from the picture container */
p:first-of-type {
    padding-top: 20px;
}

/* Class to move contents of the website up for better content flow */
.moveContentUp {
    transform: translate(0rem, -2rem);
}

/* Responsive class for homework 5 (used for images) */
.responsive {
    max-width: 100%;
    height: auto;
}


/* IDs */
/* Allows the Poems in Two Volumes book image to lay somewhat flat, as though it were sitting on a table */
#layFlat {
    height: 250px;
    width: 200px;
    transform: perspective(200px) rotateX(15deg);
}

/* Media Queries - for homework 5 */
/*-----------------------------------*/
/* Media query with breakpoint that changes:
Font size of <h1> when viewport is <= 800px
Font size of body text when viewport is <= 800px */
@media screen and (max-width: 800px) {
    h1 {
        font-size: 24px;
    }

    body {
        font-size: 18px;
    }

    /* Readjust the daffodil and Wordsworth images so they're centered properly */
    img.translateLeftImg {
        transform: translate(0rem, -1rem) perspective(200px) rotateX(10deg);
    }

    img.translateRightImg {
        transform: translate(0rem, -.5rem) perspective(200px) rotateX(10deg);
    }
}

/* Media query with breakpoint that changes:
Font size of <h1> when viewport is <= 600px
Font size of body text when viewport is <= 600px */
@media screen and (max-width: 600px) {

    /* Changing font color to black to make it easier to read */
    * {
        color: #000000;
    }

    /* Adjust <h1> font size and bring the text-shadow closer to the text to make it easier to read */
    h1 {
        font-size: 18px;
        text-shadow: 1.5px 1.5px 0px #a34f65;
    }

    /*Adjusting <h2> as well so it scales properly and doesn't look out of place with <h1> */
    h2 {
        font-size: 15px;
    }

    /* Change the font size of the body to 15px and change the background color (viewport <= 600px) */
    body {
        font-size: 15px;
        background-color: #dcd0ff;
    }

    /* Readjust the daffodil and Wordsworth images so they're centered properly */
    img.translateLeftImg {
        transform: translate(0rem, -1rem) perspective(200px) rotateX(10deg);
    }

    img.translateRightImg {
        transform: translate(0rem, -.5rem) perspective(200px) rotateX(10deg);
    }
}