/* SimplyTempting.com - refreshed styles */

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #6b1520;
    background-image: linear-gradient(135deg, #6b1520 0%, #800000 50%, #5a1018 100%);
    color: #2d2d2d;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.6;
    min-height: 100vh;
}

/* ---- Header ---- */
table:first-of-type {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
    margin: 0;
    letter-spacing: 2px;
    text-transform: lowercase;
}

h2 font {
    font-family: 'Georgia', serif !important;
    font-weight: 300 !important;
    font-style: italic;
}

/* ---- Links ---- */
a:link, a:visited {
    color: #b03040;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #d4626e;
}

a:active {
    color: #b03040;
}

/* ---- Navigation ---- */
.style7 {
    font-family: 'Georgia', serif !important;
    font-weight: normal !important;
    font-size: 10.5pt;
    letter-spacing: 0.5px;
}

/* Nav links only — scoped to nav column to avoid breaking inline links in content */
td[width="150"] .style7 a {
    display: inline-block;
    padding: 2px 0;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

td[width="150"] .style7 a:hover {
    border-bottom-color: #d4626e;
}

/* Active (non-linked) nav item should match linked items vertically */
td[width="150"] p.style7:not(:has(a)) {
    display: inline-block;
    padding: 2px 0;
    border-bottom: 1.5px solid transparent;
}

/* ---- Content area ---- */
td[bgcolor="#ECE9D8"] {
    background: #f5f0e8 !important;
}

td[bgcolor="#FFFFFF"] {
    background: #fff !important;
}

/* ---- Book cover image ---- */
td[bgcolor="#ECE9D8"] img[src*="Cover2ndEd400"],
td[bgcolor="#f5f0e8"] img[src*="Cover2ndEd400"] {
    border-radius: 4px;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.2);
    max-width: 230px;
    height: auto;
}

/* ---- Content text ---- */
p {
    margin: 0.8em 0;
}

blockquote {
    margin: 0.3em 0 0.8em 1.5em;
    padding-left: 0.8em;
    border-left: 2px solid #d4a0a8;
    font-style: italic;
    color: #555;
}

blockquote i {
    font-style: normal;
}

ul {
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

li b i {
    color: #8b2030;
}

/* ---- Recipe card (sample page) ---- */
div[style*="background:#eeeeee"] {
    background: #faf8f4 !important;
    border: 1px solid #d8d0c4 !important;
    border-radius: 6px !important;
    padding: 16px 20px !important;
    box-shadow: 1px 2px 6px rgba(0,0,0,0.08);
}

/* ---- Contact form ---- */
form table {
    border-spacing: 0 6px;
}

form table td {
    padding: 3px 5px;
    font-family: 'Georgia', serif;
    font-size: 10pt;
    color: #555;
    vertical-align: top;
}

form input[type="text"],
form textarea {
    font-family: 'Georgia', serif;
    font-size: 10pt;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input[type="text"]:focus,
form textarea:focus {
    outline: none;
    border-color: #b03040;
    box-shadow: 0 0 0 2px rgba(176, 48, 64, 0.12);
}

form input[type="submit"] {
    font-family: 'Georgia', serif;
    font-size: 10.5pt;
    padding: 10px 28px;
    background: #800000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

form input[type="submit"]:hover {
    background: #a02030;
}

/* ---- PayPal button area ---- */
form input[type="image"] {
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

form input[type="image"]:hover {
    opacity: 0.85;
}

/* ---- Footer bar ---- */
table[bgcolor="#800000"],
table[bgcolor="#6b1520"] {
    background: transparent !important;
    height: 20px;
}

/* ---- Spacer gifs - reduce oversized gaps ---- */
img[src*="t.gif"][height="60"] {
    height: 30px !important;
}

/* ---- Page width constraint ---- */
body > table {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Overall page wrapper feel ---- */
body > table:nth-of-type(3) {
    box-shadow: 0 1px 12px rgba(0,0,0,0.12);
}

/* ---- Content spacing ---- */
body > table:nth-of-type(3) > tbody > tr > td:last-child {
    padding: 20px 30px !important;
}

/* ---- Thank you page ---- */
.thankyou-msg {
    background: #f0f7f0;
    border-left: 3px solid #5a9e5a;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 1em 0;
}

/* ---- Responsive ---- */
@media only screen and (max-width: 600px) {
    body {
        font-size: 10pt;
        overflow-x: hidden;
    }

    table {
        width: 100% !important;
        table-layout: fixed;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Header: prevent mid-word breaks */
    body > table:first-of-type td {
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    /* Book cover sidebar: show as centered banner on mobile */
    td[width="250"] {
        display: block !important;
        width: 100% !important;
        text-align: center;
        padding: 15px 10px !important;
    }

    td[width="250"] img[src*="t.gif"] {
        display: none;
    }

    td[width="250"] img[src*="Cover2ndEd400"] {
        max-width: 180px;
    }

    /* Nav sidebar: horizontal bar on mobile */
    td[width="150"] {
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
        text-align: center;
        padding: 4px 10px !important;
        border-bottom: 1px solid #e0d8cc;
    }

    td[width="150"] > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
    }

    td[width="150"] p.style7 {
        margin: 0;
        padding: 6px 11px;
        white-space: nowrap;
        font-size: 10pt;
        border-right: 1px solid #ddd;
    }

    td[width="150"] p.style7:last-child {
        border-right: none;
    }

    td[width="150"] img[src*="t.gif"] {
        display: none;
    }

    /* Content td: full-width block */
    body > table:nth-of-type(3) > tbody > tr > td:last-child {
        display: block !important;
        width: 100% !important;
        padding: 15px !important;
    }

    form input[type="text"],
    form textarea {
        font-size: 16px;
        width: 100%;
    }

    form table {
        width: auto !important;
    }

    form input[type="submit"] {
        width: 100%;
        padding: 14px;
    }

    h2 font {
        font-size: 22px !important;
    }
}
