html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }


body {
    background-color: #222;
    color: #fff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    width: 800px;
    max-width: 100%;
    margin: auto;
}



.flex-container-top {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 800px;
}

.flex-container-body {
    display: flex;
    flex-direction: column;
    width: 800px;
    max-width: 100%;
    padding-left:1%;
    padding-right: 1%;
    padding-bottom: 2%;

}

.header-div {
    display: flex;
    flex-direction: row;
    padding-top: 5%;
    max-width: 800px;
}

.nav-div {
    display: flex;
    flex-direction: row-reverse;
    width: 50%;
}

.title-div {
    width: 50%;
}

.nav-item {
    padding-left: 4%;
}

.about-body {
    display: flex;
    flex-direction: row;
}

.about-image {
    max-width: 40%;
    padding-right: 2.5%;
}

p {
    height: auto;
    text-align: left;
}

p img {
    display: block;
    margin: auto;
}


hr {
    width: 100%;
    margin-left: 0;
}

a:link {
    color: #fff;
    text-decoration: none;
}

a:visited {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #aaa;
    text-decoration: none;
}

p a:link {
    color: #aaa;
    text-decoration: underline;
}

p a:visited {
    color: #aaa;
    text-decoration: underline;
}

p a:hover {
    color: #ccc;
    text-decoration: underline;
}

img {
    max-width: 100%;
}


@media (max-width: 400px) {
    .header-div {
        flex-direction: column; /* Stacks the children vertically */
        align-items: flex-start; /* Aligns items to the left */
    }

    .nav-div {
        flex-direction: row-reverse; /* Makes nav items stack vertically */
        width: 100%; /* Optional: Makes the nav take full width */
        justify-content: left;
    }

    .nav-item {
        padding-right: 4%;
        padding-left: 0%;
        padding-top: 2%;
    }
}

.ascii-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch ;
}

