﻿/* Jessom Selmanllari 
    ITWP1050
    Styles sheet for homework 5
*/

/* styles.css */

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    font-size: 16px; /* Default body font size */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f5f5f5;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

h1 {
    font-size: 2.5rem; /* Default h1 size */
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Flex container for the responsive section */
.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Wraps items for better responsiveness */
    justify-content: center;
    background: skyblue;
    padding: 0.5rem;
}


    /* Style each paragraph inside the flex container */
    .container p {
        background: #b30000; /* Dark red background */
        color: white;
        text-align: center;
        margin: 0.5rem;
        padding: 1rem;
        font-size: 1.2rem;
        flex: 1 1 250px; /* Make paragraphs flexible, with minimum width */
        border-radius: 10px; /* Optional: rounded corners */
    }

        /* Make the second and fifth paragraph wider */
        .container p:nth-child(2),
        .container p:nth-child(5) {
            flex: 1 1 300px; /* Make selected paragraphs wider */
        }

/*
Media Query #1: When viewport is 800px or less
- Change h1 font-size
- Change body font-size
*/
            @media (max-width: 800px) {
                h1 {
                    font-size: 2rem; /* Smaller h1 size for smaller screens */
                }

                body {
                    font-size: 14px; /* Smaller body text */
                }
            }
            /* 
Media Query #2: When viewport is 600px or less
- Change background color of the body
*/
            @media (max-width: 600px) {
                body {
                    background-color: #d1e0e0; /* Light blue background for small screens */
                }
            }
