* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f4dc;
    font-family: Arial, sans-serif;
}

/* HEADER */
header {
    padding: 30px;
    text-align: center;
    color: #5d8a8e;
}

/* NAV */
nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

nav li {
    flex: 1;
    background: #e08b8b;
    border-bottom: 2px solid #b9d7d5;
}

nav a {
    display: block;
    padding: 15px;
    text-align: center;
    color: white;
    text-decoration: none;
}

/* TOP SECTION */
#top {
    padding: 30px;
}

aside {
    color: #5d8a8e;
    font-size: 1.4rem;
    margin-bottom: 30px;
}

/* CARDS */
#cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#cards article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
}

#cards h3 {
    background: #5d8a8e;
    color: white;
    padding: 10px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* IDEAS */
.idea {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: #5d8a8e;
    color: white;

    /*  THIS IS THE FIX */
    justify-content: flex-start;
}

.idea.light {
    background: #b9d7d5;
    color: #333;
}

/* Lock image size so it never creates phantom space */
.idea img {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

/* Prevent text from stretching across the whole screen */
.idea article {
    max-width: 600px;
}

/* FOOTER */
footer {
    background: #e08b8b;
    color: white;
    text-align: center;
    padding: 20px;
}

/* DESKTOP */
@media (min-width: 900px) {

    nav ul {
        flex-direction: row;
    }

    nav li {
        border-bottom: none;
        border-right: 2px solid #b9d7d5;
    }

    nav li:last-child {
        border-right: none;
    }

    #top {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }

    aside {
        flex: 1;
        margin-bottom: 0;
    }

    #cards {
        flex: 3;
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}