/* 
   Student Name: Ledell Garcia
   File Name: Styles.CSS
   Date: September 25
*/

/*CSS Reset*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f7f2;
    color: #333;
}


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

header {
    background-color: #2f6b45;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
}


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

nav {
    background-color: #244f35;
    text-align: center;
    padding: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    color: #b8e0c2;
}


/* -------------------------
   Introduction / Hero
------------------------- */

.hero,
.intro {
    text-align: center;
    padding: 45px 20px;
    background-color: #dcefe0;
}

.hero h2,
.intro h2 {
    font-size: 30px;
    color: #2f6b45;
}

.hero p,
.intro p {
    max-width: 750px;
    margin: auto;
    line-height: 1.6;
    font-size: 18px;
}


/* -------------------------
   Main Content
------------------------- */

.content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.content h2 {
    text-align: center;
    color: #2f6b45;
}


/* -------------------------
   Cards
------------------------- */

.cards,
.causes,
.effects,
.solutions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.card,
.cause-card,
.effect-card,
.solution-card {
    background-color: white;
    width: 280px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.card h3,
.cause-card h3,
.effect-card h3,
.solution-card h3 {
    color: #2f6b45;
}

.card p,
.cause-card p,
.effect-card p,
.solution-card p {
    line-height: 1.6;
}


/* -------------------------
   Bottom Sections
------------------------- */

.actions,
.bottom-section,
.tips {
    background-color: #e4f2e7;
    padding: 40px 20px;
    text-align: center;
}

.actions h2,
.bottom-section h2,
.tips h2 {
    color: #2f6b45;
}

.actions p,
.bottom-section p {
    max-width: 750px;
    margin: auto;
    line-height: 1.6;
}


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

.actions ul,
.tips ul {
    display: inline-block;
    text-align: left;
    line-height: 2;
}


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

footer {
    background-color: #244f35;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}


/* -------------------------
   Mobile Friendly Design
------------------------- */

@media (max-width: 600px) {

    header h1 {
        font-size: 32px;
    }

    header p {
        font-size: 16px;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    .hero h2,
    .intro h2 {
        font-size: 26px;
    }

    .card,
    .cause-card,
    .effect-card,
    .solution-card {
        width: 85%;
    }

    .content {
        padding: 10px;
    }
}
