/* 
Name: Samuel Barnes II
Course: ITWP 1050
Assignment: Homework 5
Description: External CSS file including responsive design, media queries,
animations, transitions, and layout styling.
*/

/* ===== BODY STYLING ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

/* ===== HEADER ===== */
h1 {
    text-align: center;
    font-size: 36px;
    color: darkgreen;
    animation: fadeIn 2s ease-in;
}

/* ===== PARAGRAPHS ===== */
p {
    padding: 15px;
    line-height: 1.6;
}

/* ===== IMAGES (RESPONSIVE) ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* ===== FLEXBOX CONTAINER ===== */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 10px;
}

/* ===== BOX ITEMS ===== */
.box {
    background-color: lightgreen;
    width: 18%;
    margin: 5px;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s;
}

/* ===== TRANSFORM + TRANSITION ===== */
.box:hover {
    transform: scale(1.1);
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== MEDIA QUERY (800px) ===== */
@media (max-width: 800px) {
    h1 {
        font-size: 28px;
    }

    body {
        font-size: 14px;
    }

    .box {
        width: 45%;
    }
}

/* ===== MEDIA QUERY (600px) ===== */
@media (max-width: 600px) {
    body {
        background-color: lightyellow;
    }

    .box {
        width: 100%;
    }
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: white;
}

footer a {
    color: lightblue;
    text-decoration: none;
}