
/* UNIVERSAL STYLES                                 */


/* Universal box-sizing (provided starter code) */
* {
    box-sizing: border-box;
}


/* TASK 2: SMALL SINGLE-COLUMN LAYOUT (DEFAULT)*/


/* Task 2, Step 1:
   body selector — margin set to 0, background color changed */
body {
    margin: 0;
    background-color: #90C7E3;
    color: #666666;
    font-family: Verdana, Arial, sans-serif;
}

/* Task 2, Step 3:
   header selector — height removed, padding set */
header {
    background-color: #002171;
    color: #FFFFFF;
    font-family: Georgia, serif;
    padding: 1em;
}

/* Task 2, Step 4:
   h1 selector — font-size 1.5em, padding & letter-spacing removed */
h1 {
    text-align: center;
    font-size: 1.5em;
    color: #FFFFFF;
}

/* Header link styling (existing requirement retained) */
header a {
    text-decoration: none;
    color: #FFFFFF;
}

/* Task 2, Step 5:
   nav selector — float, width, padding removed; centered text */
nav {
    font-size: 1.2em;
    background-color: #FFFFFF;
    text-align: center;
}

/* Navigation link styles (existing styles retained) */
nav a {
    text-decoration: none;
}

nav a:link { color: #5C7FA3; }
nav a:visited { color: #344873; }
nav a:hover { color: #A52A2A; }

/* Task 2, Step 6:
   nav ul selector — flex container, column direction */
nav ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

/* Task 2, Step 7:
   nav li selector — padding, full width, bottom border */
nav li {
    padding: 0.5em 1em;
    width: 100%;
    border-bottom: 1px solid #000;
}

/* Task 2, Step 8:
   main selector — background, margin, overflow removed;
   padding adjusted */
main {
    padding: 0 1em;
    display: block;
}

/* Task 2, Step 9:
   section selector — float & width removed, padding adjusted */
section {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

/* Task 2, Step 10:
   hero images — margin-left removed, cropped background */
#homehero,
#yurthero,
#trailhero {
    height: 300px;
    background-size: 200% 100%;
    background-repeat: no-repeat;
}

/* Task 2, Step 11:
   footer selector — margin-left removed */
footer {
    font-size: 0.70em;
    font-style: italic;
    text-align: center;
    padding: 1em;
    background-color: #FFFFFF;
}

/* Task 2, Step 12:
   phone number visibility for SMALL displays */
#mobile {
    display: inline;
}

#desktop {
    display: none;
}


/* TASK 3: MEDIUM LAYOUT (600px and up)              */

@media (min-width: 600px) {

    /* Task 3, Step 1:
       h1 selector — larger text and letter spacing */
    h1 {
        font-size: 2em;
        letter-spacing: 0.25em;
    }

    /* Task 3, Step 2:
       nav ul selector — horizontal flex navigation */
    nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        padding-right: 2em;
    }

    /* Task 3, Step 3:
       nav li selector — fixed width, border removed */
    nav li {
        width: 12em;
        border-bottom: none;
    }

    /* Task 3, Step 4:
       section selector — increased padding */
    section {
        padding-left: 2em;
        padding-right: 2em;
    }

    /* Task 3, Step 5:
       flow id selector — flex container for content columns */
    #flow {
        display: flex;
        flex-direction: row;
    }

    /* Task 3, Step 6 & 7:
       phone number visibility switched for medium+ screens */
    #mobile {
        display: none;
    }

    #desktop {
        display: inline;
    }

    /* Task 3, Step 8:
       hero images adjusted for medium display */
    #yurthero,
    #trailhero {
        background-size: 100% 100%;
    }
}


/* TASK 4: 1024px display */


@media (min-width: 1024px) {

    /* Task 4, Step 1:
       body selector — gradient background */
    body {
        background-image: linear-gradient(
            #FFFFFF 20%,
            #90C7E3,
            #FFFFFF
        );
    }

    /* Task 4, Step 2:
       main selector — increased horizontal padding */
    main {
        padding-left: 10%;
        padding-right: 10%;
    }

    /* Task 4, Step 3:
       wrapper selector — centered, fixed width */
    #wrapper {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}