﻿/* Jessom Selmanllari
    ITWP1050
    Styles sheet for homework 4
*/


body {
    font-family: Georgia, serif;
    line-height: 1.6;
    background-color: #f9f7f1;
    color: #333;
    padding: 20px;
}

header h1 {
    text-align: center;
    color: #5a2a27;
    margin-bottom: 30px;
}

/* 1. Rotation function on the first image */
img:first-of-type {
    transform: rotate(5deg);
    transition: transform 0.5s ease;
}

    img:first-of-type:hover {
        transform: rotate(0deg);
    }

/* 2. Scale function on the second image */
img:nth-of-type(2) {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

    img:nth-of-type(2):hover {
        transform: scale(1);
    }

/* 3. Skew function on the first paragraph */
main p:first-of-type {
    transform: skewX(-5deg);
    background-color: #fff4f0;
    padding: 10px;
    border-left: 5px solid #c78c8c;
}

/* 4. Multiple transforms using the transform shorthand */
main p:nth-of-type(2) {
    transform: rotate(-2deg) scale(1.05) translateX(10px);
    background-color: #eef6f9;
    padding: 10px;
    border-left: 5px solid #77a6b6;
}

/* 5. Transition class for general use */
.transition-highlight {
    transition-property: background-color;
    transition-duration: 1s;
    transition-delay: 0.5s;
    background-color: #fff0b3;
}

    .transition-highlight:hover {
        background-color: #ffde59;
    }

/* Example usage of transition class on the 3rd paragraph */
main p:nth-of-type(3) {
    padding: 10px;
    border-left: 5px solid #c2b280;
}

    main p:nth-of-type(3).transition-highlight {
        cursor: pointer;
    }

/* Footer styling */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
}

    footer a {
        color: #5a2a27;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }
