*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    display: grid;
    grid-template-columns: minmax(auto, 5000px);
    justify-content: center;
    margin: 0 10px;
    background-image: linear-gradient(black, white);
    min-height: 100%;
    
}

.wrapper {
    display: grid;
    color: lightgray;
    min-height: 100%;
    height: auto;
    padding: 10px;
    background: rgba(128, 128, 128, 0.7);
}

header {
    text-align: center;
}

nav,
footer {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

nav a,
footer a {
    padding: 0 1em;
}

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: white;
}

a:visited {
    color: black;
}

a:hover {
    color: yellow;
}

@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;
    }
}