body {
    background-color: lightgray;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
}

hr {
    margin-top: 2em;
}

/* Skip link for keyboard navigation - hidden until focused */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Visually hidden class for screen reader only text */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Nav Bar Start */

nav {
    background-color: rgb(128, 128, 128);
    border-bottom: 1px solid black;
    height: 100px;
    padding-top: 10px;
}

div.enclosure {
    margin-left: 25px;
    margin-right: 25px;
    max-width: 1000px;
    text-align: center;
}

div.name {
    color: white;
    font-size: 24px;
    float: left;
    margin-right: 10px;
    margin-top: 5px;
    text-align: left;
}

/* Updated navigation list styles for accessibility */
ul.links {
    float: right;
    margin-top: 10px;
    list-style: none;
    padding: 0;
    margin-right: 0;
}

ul.links li {
    display: inline;
}

div.wrapper {
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
}

nav a {
    background-color: rgb(64, 128, 255);
    border-radius: 5px;
    color: white;
    margin-right: 0px;
    padding: 8px;
    text-decoration: none;
    transition: 0.25s;
}

nav a:hover {
    background-color: rgb(0, 64, 192);
}

nav a.active,
nav a[aria-current="page"] {
    background-color: rgb(0, 64, 192);
}

/* Enhanced focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Main Body Start */

main {
    background-color: white;
    height: 100%;
    max-width: 960px;
    text-align: center;
}

div.content {
    display: inline-block;
    margin-left: 25px;
    margin-right: 25px;
    max-width: 1000px;
    min-width: 400px;
}

div.content p {
    text-align: left;
}

.center {
    margin: auto;
    text-align: center;
}

.left {
    text-align: left;
}

h1,
h2,
h3,
h4 {
    text-align: center;
}

h2,
h3,
h4 {
    color: rgb(50, 50, 50);
}

.underline {
    text-decoration: underline;
}

img.takashi {
    margin: auto;
    width: 350px;
}

.preview {
    width: 50%;
}

p.float-right {
    float: right;
    text-align: right;
}

table {
    width: 100%;
}

@media (max-width: 640px) {

    div.name,
    ul.links {
        float: left;
    }

    .preview,
    img.takashi {
        width: 80%;
    }

}