body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    padding: 15px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

header a {
    text-decoration: none;
    color: #000;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: #000;
    padding: 10px;
    margin: 5px;
    transition: 0.5s;
}

nav a:hover {
    background-color: #ccc;
    border-radius: 5px;
    transition: 0.5s;
}

main {
    padding: 10px 10%;
    padding-bottom: 0;
}

@media(min-width:860px) {
    nav {
        flex-direction: row;
    }

    nav a {
        margin: 10px;
    }

    header {
        flex-direction: row;
    }
}