/* GLOBAL RESET */
body {
    margin: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background: rgb(213,213,213) url(bkgd.png) top repeat-x;
}

/* PAGE WRAPPER WITH TOP IMAGE + REAL BOTTOM CURVES */
#page {
    margin: auto;
    max-width: 771px;
    width: 100%;
    background: #ffffff;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;   /* prevents content from breaking rounded bottom */
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

/* HEADER (preserve header.png exactly as you asked) */
#title {
    background: url(header.png) top no-repeat;
    padding: 40px 0 2px 0;
    text-align: center;
}

#title a {
    color: white;
    text-decoration: none;
}

/* MAIN CONTENT */
#page-content {
    max-width: 771px;
    width: 100%;
    margin: auto;
}

#main {
    margin: 0 10px;
}

/* REMOVE OLD FOOTER IMAGE STRUCTURE */
#page-bottom {
    background: transparent;
    padding: 40px 30px 20px 30px;
    text-align: center;
    color: rgb(110,110,110);
}

img {
    max-width: 100%;
    height: auto;
}

/* MOBILE FIXES */
@media (max-width: 600px) {

    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    #title div,
    h1.title div {
        font-size: 28px !important;
        line-height: 1.2 !important;
        padding: 0 10px;
    }

    h2.title div {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .RichTextElement p {
        font-size: 18px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        padding: 0 12px !important;
    }

    .RichTextElement p[style*="60px"] {
        font-size: 22px !important;
    }

    .RichTextElement img {
        max-width: 80% !important;
    }
}

/* TABLET FIX */
@media (max-width: 900px) {
    #page,
    #page-content {
        width: 95%;
    }
}

#page-bottom {
    background: transparent;
    padding: 20px 30px;
    text-align: center;
    color: rgb(110,110,110);
    width: 100%;
    max-width: 771px;
    margin: 0 auto;
}

#page-bottom img {
    max-width: 100%;
    height: auto;
    border-radius: 0 0 40px 40px; /* matches page curves */
}

