body {
    margin: 50px 0;
    padding: 0;
    text-align: center;
    background: url(../img/gradient.png) repeat-x;
    overflow-wrap: anywhere;
}

#content, #header, #nav, #footer {
    width: 700px;
    margin: 0 auto;
    padding: 15px;
    border-left: 1px dotted #284E98;
    border-right: 1px dotted #284E98;
    background-color: #EEF1F2;
}

#content {
    text-align: left;
    border-bottom: 1px dotted #284E98;
}

#header {
    border-top: 1px dotted #284E98;
}

#nav {
    border-top: 1px dotted #284E98;
    border-bottom: 1px dotted #284E98;
}

#nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #EEEEEE;
    font: 0.93em "Times New Roman", serif;
}

#nav a {
    display: block;
    padding: 2px 5px;
    color: #284E98;
    text-decoration: none;
}

#nav a:hover, #nav a:focus-visible {
    background-color: #284E98;
    color: white;
}

#footer {
    border-bottom: 1px dotted #284E98;
}

@media (max-width: 760px) {
    body { margin: 16px 0; }
    #content, #header, #nav, #footer {
        box-sizing: border-box;
        width: calc(100% - 24px);
    }
}
