/*=========================================
    Grace in Motion
    Project Planning Stylesheet
    Author: Emily
==========================================*/

/* ---------- General Page ---------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    line-height: 1.7;
    background: linear-gradient(to bottom, #EAF8FF, #F8F9FF);
    color: #2F3E63;
}

/* ---------- Headings ---------- */

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
}

h2 {
    color: royalblue;
    border-bottom: 4px solid #B8F2E6;
    padding-bottom: 8px;
}

h3 {
    color: #9C6ADE;
}

/* ---------- Header ---------- */

header {
    background: linear-gradient(to right,
            royalblue,
            #A7D8FF,
            #C8B6FF,
            #B8F2E6);
    color: White;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    margin: 0;
    font-size: 3em;
}

header p {
    margin-top: 10px;
    font-size: 1.2em;
}

/* ---------- Navigation ---------- */

nav {
    background-color: White;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 15px;
    position: sticky;
    top: 0;
}

nav ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin: 0 18px;
}

nav a {
    text-decoration: none;
    color: royalblue;
    font-weight: bold;
    transition: color .3s;
}

nav a:hover {
    color: hotpink;
}

/* ---------- Main Sections ---------- */

section {
    background: #F0F8FF;
    width: 82%;
    margin: 30px auto;
    padding: 30px;
    border-radius: 18px;
    border-left: 8px solid #A7D8FF;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ---------- Paragraphs ---------- */

p {
    font-size: 1rem;
}

/* ---------- Lists---------- */

ul,
ol {
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
}

/* ---------- Table ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background-color: royalblue;
    color: white;
    padding: 14px;
}

td {
    border: 1px solid #D6EFFF;
    padding: 14px;
}

tr:nth-child(even) {
    background-color: #F7F2FF;
}

tr:nth-child(odd) {
    background-color: #F0FAFF;
}

tr:hover {
    background-color: #E8FFF5;
}

/* ---------- Links ---------- */

a {
    color: royalblue;
}

a:hover {
    color: hotpink;
}

/* ---------- Images ---------- */

img {
    max-width: 100%;
    border-radius: 12px;
}

/* ---------- Footer ---------- */

footer {
    background: linear-gradient(to right, royalblue, #A7D8FF);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {

    section {
        width: 92%;
        padding: 20px;
    }

    nav li {
        display: block;
        margin: 12px 0;
    }

    header h1 {
        font-size: 2.2em;
    }
}