*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-image: radial-gradient(circle, rgb(120, 71, 218), indigo);
    display: grid;
    grid-template-columns: minmax(auto, 5000px);
    justify-content: center;
    margin: 0 10px;
}

.wrapper {
    display: grid;
    color: gold;
    background-color: rgb(179, 157, 223);
    height: auto;
    padding: 10px;
  border-radius: 20px; 
}

header {
    text-align: center;
}

nav,
footer {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

nav a,
footer a {
    line-height: 2;
    padding: 0 1em;
    background: rgb(221, 188, 250);
}

nav :first-child,
footer :first-child {
    margin-right: auto;
}

p,
li {
    color:black;
    line-height: 1.8;
}

ol {
    list-style-type: decimal-leading-zero;
}

a:link {
    color: crimson;
}

a:visited {
    color: rgb(90, 131, 241);
}

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 6;
    }
}