/*
    Exercise1.css

    Rules that only apply to Exercise 1
*/

header {
    padding-bottom: 2em;
}

nav {
    padding: 1em;
}

section > div {
    padding: 0 1em 0 1em;
}

section div:nth-of-type(even) p {
    padding-bottom: 1em; 
}

section div:nth-of-type(even) p:last-of-type {
    padding-bottom: 0;
}

section div:nth-of-type(odd) {
    font-weight: bold;
}

section div:nth-of-type(even) {
    max-width: 60ch;
    padding-bottom: 1em;
  
}

section div:nth-of-type(even) ul {
    padding-left: 1em;
}

section {
    padding: 1em;
}


footer > a {
    padding: 1em;
}


@media (min-width:75ch) {

    nav  {
        max-width: 80ch;
        margin-inline: auto;
    }
  
    nav > ol {
        display: flex;
        flex-wrap: wrap;
        padding: .5em;
    }

    nav > ol > li {
        flex: 1 0 50%; 
    }

    section {
        display: grid;
        gap: 1em;
        grid-template-columns: 1fr 3fr;
        
        max-width: 80ch;
        margin-inline: auto;
    }

    section > div {
        padding: 0;
    }

    section div:nth-of-type(even) {
        padding-bottom: 0em;
    }
    
    footer {
        display: flex;
        justify-content: center;
        gap: 2em;
        flex-wrap:wrap;
        min-height: 2em;
    }
    
    footer > a {
        padding: 2em;
    }
}


