/*
    Exercise1.css

    Rules that only apply to Exercise 4
*/

:root {
    --light-blue: #35d0f2;
    --dark-blue: #0511f2; 
    --light-green: #93f205;
    --dark-green: #9CBE6A;

}

header {
    padding-bottom: 2em;
}

section > div {
    padding: 0 1em 0 1em;
}

section > div:nth-of-type(even) p {
    padding-bottom: 1em; 
}

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;
}

.Legend {
    outline: solid 2px black;
    padding: 0;
}

.Legend > p {
    display: block;
    padding: .75em;
}

.SitemapRoot {
    background-color: white;
    color: black;
}

.Pages {
    background-color: var(--light-blue);
    color: black;
}

.PageCategories {
    background-color: var(--light-green);
    color: black;
}

.InternalContent {
    background-color: var(--dark-blue);
    color: white;
}

.ExternalLinks {
    background-color: var(--dark-green);
    color: black;
    
}

footer > a {
    padding: 1em;
}

@media (min-width:75ch) {

    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;
    }
    
    footer > a {
        padding: 2em;
    }
}


