body {
    /* Set the width to 80% of the screen */
    max-width: 80vw;
    /* Automatically center the body */
    margin: 0 auto;
    background-color: rgb(178, 211, 207);
    line-height: 1.5;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

main {
    background-color: rgb(216, 233, 231);
}

/* set header */
header {
    color: #FFF;
    padding: 9rem 0 1rem 0;
    text-align: center;
    background-image: url('../images/lone-starfish-wide.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

h1 {
    font-size: 4rem;
}

h2 {
    margin-left: 5px;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

/* set navigation */
nav ul {
    margin-top: 0;
    padding: 5px 0px 10px 0px;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

nav ul li {
    font-size: 1.5rem;
    margin: 0 auto;
}

nav ul li a {
    color: #000;
    text-decoration: none;
}

/* 
nav ul li:not(:last-child)::after {
    content: "|";
    margin: 0 100px;
} */

/* set image and p */
.lone-starfish-img {
    float: left;
    margin: 5px 15px 5px 5px;
    max-width: 200px;
}

#home p {
    text-align: left;
    margin: 8px 8px;
}

.clear {
    clear: both;
}

/* set story */
#story ul {
    /* margin: 10px auto; */
    padding-left: 20px;
}

#story ul li {
    line-height: 1;
}

/* set form */
.form-container {
    padding: 10px;
    margin: 0px 5px;
    border: 1px solid #333;
}

input[type="text"],
input[type="email"],
textarea {
    /* It ensures your inputs and textarea expand nearly fully 
    across the form width while leaving a slight margin to avoid layout issues */
    width: 99%;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    padding: 2px;
}

textarea {
    resize: none;
}

label {
    margin: 10px 0px 0px 0px;
}

.form-container p {
    margin: 10px auto;
}

/* set button */
button {
    margin: 10px 0px;
    display: block;
    padding: 10px 10px;
    cursor: pointer;
    border: 1px solid #333;
    background-color: rgb(216, 233, 231);
    font-family: inherit;
    font-size: 0.8rem;
}

/* set footer */
footer {
    margin: 0 0;
    text-align: right;
    background-color: rgb(216, 233, 231);
}

footer p {
    padding: 20px 20px 20px 0px;
    margin: 0 0;
}