@charset "UTF-8";
/* CSS Document used for homework 4 (styling a given topic part 2, I chose "I Wandered Lonely as a Cloud" by William Wordsworth)
Author: Melissa Daoud
Date created: 12/2/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;
    line-height: 1.5rem;
    text-align: center;
    background-image: url("../images/flowers_clipped.jpg");
    background-size: cover; 
    background-repeat: no-repeat;
    /* Moves the background image (on the x-axis) so it's more aesthetically pleasing */
     background-position-x: -47vh;
    /*Forces the website to be on one page with no horizontal scrolling - it previously had a horizontal scroll due to the scaling on h1 */
    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: 40px;
    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 to account for the background image */
header {
    padding-top: 160px;
}

/* 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;
}

/* Skew the top two images (Daffodils and Wordsworth images) */
/* Skews the image on the left inwards to the right */
img.skewLeft{
    transform:perspective(900px)
    translate(-1rem, -.5rem)
    skew(0deg, -5deg)
    rotate3d(1, 1, 0, 45deg);  
}

/* Skews the image on the right inwards to the left */
img.skewRight{
    transform:perspective(900px)
    translate(1rem, -.5rem)
    skew(0deg, -.5deg)
    rotate3d(.6, -.6, .10, 45deg);  
}

/* 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: 70%;
    margin: auto;
    padding-top: 2px;
    padding-bottom: 2px;
    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
    );
}

/* Newly added styling for homework 4 */

/* Classes */

/* 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; 
    margin: 10px;
    padding: 20px 30px;
    cursor: pointer;
}

/* 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;
}

/* 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);
}