* {
    box-sizing: border-box;
}

body {
    color: #000000;
    font-size: 16px;
    font-family: "Courier", Courier New, monospace;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.6;
}

a:link, a:visited {
    color: #494949;
    font-weight: bold;
    text-decoration: none;
}

a:hover, a:active {
    color: #000000;
}

.principles {
    margin-left: 20px;
    border-left: 2px solid #494949;
    padding-left: 20px;
}

.principles h2 {
    margin-top: 30px;
}

.principles section:first-child h2 {
    margin-top: 0;
}

#header {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
    text-align: center;
}

#header img {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

nav {
    font-size: 17px;
    font-weight: bold;
    margin-top: 10px;
}

nav a {
    display: inline-block;
    margin: 0 5px;
}

.address {
    margin-left: 20px;
    font-style: italic;
}

#legal {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
    text-align: center;
    font-size: 11px;
}

#about, #services, #approach, #main-content {
    text-align: left;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

h1, h2 {
    font-family: "Courier", Courier New, monospace;
}

h1 {
    font-size: 24px;
    margin-bottom: 30px;
}

h2 {
    font-size: 20px;
    margin-top: 30px;
}

section {
    margin-bottom: 30px;
}

#contact {
    text-align: left;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

#contact ul {
    padding-left: 20px;
}

#contact a {
    color: #494949;
    text-decoration: underline;
}

#contact a:hover {
    color: #000000;
}

#success-stories {
    margin-top: 40px;
}

#legal a {
    color: #494949;
    text-decoration: underline;
}

#legal a:hover {
    color: #000000;
}

#snail-mail p {
    margin-bottom: 20px;
}

.story {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 3px solid #494949;
}

.story h3 {
    margin-top: 0;
    font-size: 18px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    nav {
        font-size: 15px;
    }

    nav a {
        margin: 0 3px;
    }

    #header img {
        width: 100%; /* Full width on small screens */
    }
}

@media screen and (max-width: 400px) {
    body {
        padding: 0 10px;
    }

    nav a {
        margin: 0 2px;
    }
}

/* Fade-in effect */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* Hover effect for links */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

/* Responsive design improvements */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }
}

@media (min-width: 769px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }
}