*,
*::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;
    background-color: goldenrod;
}

.wrapper {
    display: grid;
    gap: 20px;
    color: firebrick;
    background-color: lightgoldenrodyellow;
    height: auto;
    padding: 10px;
}

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

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

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

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

ol {
    list-style-type: decimal-leading-zero;
}

a:link {
    color: crimson;
}

a:visited {
    color: darkcyan;
}

a:hover {
    color: mediumspringgreen;
}

@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;
    }
}

.intro {
    border-radius: 20px;
    background-color: lightgray;
    box-shadow: 5px 5px 5px crimson;
    text-align: center;
}

.output {
    background-color: green;
    color: yellow;
    padding: 10px;
    text-align: center;
    border-radius: 20px;
    font-size: 30px;
    font-weight: bold;
    border: 5px dashed black;
}

#img04 {
    width: 300px;
    height: 300px;
    margin: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    background-color: crimson;
    padding: 5px;
}

.grid-item {
    background-color: lightgray;
    border: 2px solid black;
    padding: 3px;
    text-align: center;
}

.json-grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    background-color: crimson;
    padding: 5px;
}