*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    display: grid;
    grid-template-columns: minmax(auto, 1024px);
    justify-content: center;
    margin: 0 10px;
}

.wrapper {
    display: grid;
    gap: 20px;
    background-color: #ffffee;
}

nav,
footer {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    background: lightgray;
}

nav a,
footer a {
    line-height: 2;
    padding: 0 1em;
    
}

nav :first-child {
    margin-right: auto;
}

p,
li {
    max-width: 70ch;
    line-height: 1.8;
}

ol {
	list-style-type: none;
	counter-reset: li;
}

ol li:before {
  counter-increment: li;
  content: counter(li, decimal-leading-zero);
  margin-right: 10px;
}

.intro {
    background-color: #95eaea;
    border-radius: 8px;
    box-shadow: 1.5px 1.5px black;
    padding-left: 5px;
}

a:link {
    color: #144660;
}

a:visited {
    color: #6e4706;
}

a:hover {
    color: #951010;
    text-decoration: none;
}

.error-parent {
    background: #f5c3c3;
}

.error {
    display: block;
    color: #0c0cbb;
    font-weight: bold; 
}

@media screen and (min-width: 768px) {
    .wrapper {
        grid-template-columns: repeat(6, 1fr);
    }

    header,
    nav,
    footer {
        grid-column: span 6;
        flex-direction: row;
    }

    main {
        grid-column: span 4;
    }

    aside {
        grid-column: span 2;
    }
}
