* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-width: 0;
    color: #616161;
    cursor: default;
    font-family: "Roboto", "Open Sans", "sans serif";
    font-style: normal;
    font-weight: 100;
    letter-spacing: 0.08rem;
    line-height: 130%;
}

/* TAGS */

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #BB133E;
    cursor: pointer;
    font-weight: 300;
}

b {
    color: #BB133E;
    font-style: inherit;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #f5f3f0;
    color: #616161;
    font-size: .95rem;
}

head,
title {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", "EB Garamond", serif;
    color: #002147;
    letter-spacing: 0rem;
    font-weight: 500;
    margin: 0.25em 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.7em;
}

h3 {
    font-size: 1.17em;
}

h4 {
    font-size: 1em;
}

h5 {
    font-size: .83em;
}

h6 {
    font-size: .67em;
}

hr {
    height: .9px;
    width: 100%;
    display: block;
    clear: both;
    background-color: #D0D0D0;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 10px;
}

i {
    font-style: italic;
}

p {
    padding-top: 5px;
    padding-bottom: 10px;
}

small {
    font-size: .6rem;
}

/* CLASSES */

/* GENERAL FORMATTING AND ALIGNMENT */

.main {
    width: 70%;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 0px 0px 0px; /* Top padding for header, bottom for footer */
    min-height: 100vh; /* Ensures content area fills space */
}

.header-logo {
    cursor: default;
    height: 124px;
    width: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.header-img {
    cursor: default;
    height: auto;
    width: 100%;
}

.social-img {
    cursor: default;
    height:15px;
    width: auto;
}

.social-img:hover {
    cursor: pointer;
}

.justify-center {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.justify-left {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
}

.justify-right {
    align-items: flex-end;
    text-align: right;
    justify-content: flex-end;
}

.italic {
    font-style: italic;
}

.about_pic {
    border: 1px solid #002147;
    width: 100px;
    height: auto;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 50% !important
}

.about-container {
    width: 100%;
    display: flex;
}

.about-item {
    width: 50%;
    display: flex;
}

/* TEMPLATE - HEADER */

header {
    width: 100%;
    display: flex; /* Changed from inline-flex for better control */
    position: fixed;
    left: 0;
    top: 0;
    padding: 10px 20px; /* Added horizontal padding */
    z-index: 1000;
    font-size: .75rem;
    background-color: #f5f3f0; /* Explicit background */
    height: 30px; /* Fixed height for calculations */
}

.header-group {
    width: 50%;
}

.nav-item-left,
.nav-item-right,
.nav-item {
    margin: 0;
    cursor: pointer;
}

.nav-item-right {
    margin-left: 24px;
}

.nav-item-left {
    margin-right: 24px;
}

/* TEMPLATE - FOOTER */

footer {
    width: 100%;
    display: flex;
    position: fixed;
    left: 0;
    bottom: 0;
    padding: 10px 20px;
    font-size: .75rem;
    background-color: #f5f3f0;
    /* box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);  Optional: top shadow */
    height: 160px;
}

.footer-padder {
    height: 160px;
}

/* PAGE CONTENT */

.about-image {
    display: inline;
    width: 314px;
    height: 314px;
    margin: 1px;
}

.centered-page-content {
    width: 100%;
    text-align: center;
}

.donate_button {
    height: 24px;
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .main {
        padding: 100px 15px 60px 15px; /* Adjusted padding for mobile */
    }
    
    header {
        height: 70px; /* Smaller header on mobile */
        padding: 10px 15px;
    }
    
    footer {
        height: 250px; /* Smaller footer on mobile */
        padding: 10px 15px;
    }

    .footer-padder {
        height: 250px;
    }


    .about-container {
        width: 100%;
    }

    .about-item {
        width: 100%;
    }

    .header-logo {
        cursor: default;
        height: 80px;
        width: auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* Improve touch targets for iPhone */
    .nav-item-right, .nav-item-left {
        margin: 0 12px; /* Smaller margins on mobile */
        padding: 8px 0; /* Add padding for easier tapping */
    }
    
    /* Ensure images scale properly */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better font sizing for mobile */
    body {
        font-size: 0.9rem;
    }
    
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.1em; }

}

/* Add iPhone 16 specific optimization (393px is iPhone 16 width) */
@media (max-width: 393px) {

    .header-logo {
        height: 40px; /* Better size for iPhone 16 */
    }

    .header-img {
        cursor: default;
        height: auto;
        width: 150px;
    }
    
    .main {
        width: 95%; /* Use more screen width */
        padding-left: 10px;
        padding-right: 10px;
    }

    header {
    position: fixed;
    height: 60px;
    }

    footer {
        position: fixed;
        height: 300px;
    }

    .footer-padder {
        height: 300px;
    }

    .donate_button {
        height: 20px;
        width: auto;
    }

}