<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
</head>
<body>
    <style>
        @media only screen and (max-width: 600px) {
            .inner-body {
                width: 100% !important;
            }

            .footer {
                width: 100% !important;
            }
        }

        @media only screen and (max-width: 500px) {
            .button {
                width: 100% !important;
            }
        }
    </style>

    <style>
      /* Base */
      body, body *:not(html):not(style):not(br):not(tr):not(code) {
        font-family: Avenir, Helvetica, sans-serif;
        box-sizing: border-box;
      }

      body {
        background-color: #F2F4F6;
        color: #333333;
        height: 100%;
        line-height: 1.4;
        margin: 0;
        width: 100% !important;
        -webkit-text-size-adjust: none;
      }

      p,
      ul,
      ol,
      blockquote {
        line-height: 1.4;
        text-align: left;
      }

      a {
        color: #333333;
      }

      a img {
        border: none;
      }

      /* Typography */

      h1 {
        color: #2F3133;
        font-size: 19px;
        font-weight: bold;
        margin-top: 0;
        text-align: left;
      }

      h2 {
        color: #2F3133;
        font-size: 16px;
        font-weight: bold;
        margin-top: 0;
        text-align: left;
      }

      h3 {
        color: #2F3133;
        font-size: 14px;
        font-weight: bold;
        margin-top: 0;
        text-align: left;
      }

      p {
        color: #74787E;
        font-size: 16px;
        line-height: 1.5em;
        margin-top: 0;
        text-align: left;
      }

      p.sub {
        font-size: 12px;
      }

      img {
        max-width: 100%;
      }

      /* Layout */

      .wrapper {
        background-color: #FFFFFF;
        margin: 0;
        padding: 0;
        width: 100%;
        -premailer-cellpadding: 0;
        -premailer-cellspacing: 0;
        -premailer-width: 100%;
      }

      .content {
        margin: 0;
        padding: 0;
        width: 100%;
        -premailer-cellpadding: 0;
        -premailer-cellspacing: 0;
        -premailer-width: 100%;
      }

      /* Header */

      .header {
        padding: 25px 0 0;
        text-align: center;
      }

      .header a {
        color: #bbbfc3;
        font-size: 19px;
        font-weight: bold;
        text-decoration: none;
        text-shadow: 0 1px 0 white;
      }

      /* Body */

      .body {
        background-color: #FFFFFF;
        margin: 0;
        padding: 0;
        width: 100%;
        -premailer-cellpadding: 0;
        -premailer-cellspacing: 0;
        -premailer-width: 100%;
      }

      .inner-body {
        background-color: #FFFFFF;
        margin: 0 auto;
        padding: 0;
        width: 700px;
        -premailer-cellpadding: 0;
        -premailer-cellspacing: 0;
        -premailer-width: 700px;
      }

      /* Subcopy */

      .subcopy {
        border-top: 1px solid #EDEFF2;
        margin-top: 25px;
        padding-top: 25px;
      }

      .subcopy p {
        font-size: 12px;
      }

      /* Footer */

      .footer {
        border-top: 3px solid #3333;
        margin: 0 auto;
        padding: 0;
        text-align: center;
        width: 700px;
        -premailer-cellpadding: 0;
        -premailer-cellspacing: 0;
        -premailer-width: 700px;
      }

      .footer p {
        color: #AEAEAE;
        font-size: 12px;
        text-align: center;
      }

      /* Tables */

      .table table {
        margin: 30px auto;
        width: 100%;
        -premailer-cellpadding: 0;
        -premailer-cellspacing: 0;
        -premailer-width: 100%;
      }

      .table th {
        border-bottom: 1px solid #EDEFF2;
        padding-bottom: 8px;
      }

      .table td {
        color: #74787E;
        font-size: 15px;
        line-height: 18px;
        padding: 10px 0;
      }

      .content-cell {
        padding: 35px;
      }

      /* Buttons */

      .action {
        margin: 30px auto;
        padding: 0;
        text-align: center;
        width: 100%;
        -premailer-cellpadding: 0;
        -premailer-cellspacing: 0;
        -premailer-width: 100%;
      }

      .button {
        width: 250px;
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
        color: #FFF;
        display: inline-block;
        text-decoration: none;
        -webkit-text-size-adjust: none;
      }

      .button-primary {
        background-color: #11b590;
        border-top: 10px solid #11b590;
        border-right: 18px solid #11b590;
        border-bottom: 10px solid #11b590;
        border-left: 18px solid #11b590;
        text-align: center;
      }

      .button-blue {
        background-color: #3097D1;
        border-top: 10px solid #3097D1;
        border-right: 18px solid #3097D1;
        border-bottom: 10px solid #3097D1;
        border-left: 18px solid #3097D1;
      }

      .button-green {
        background-color: #2ab27b;
        border-top: 10px solid #2ab27b;
        border-right: 18px solid #2ab27b;
        border-bottom: 10px solid #2ab27b;
        border-left: 18px solid #2ab27b;
      }

      .button-red {
        background-color: #bf5329;
        border-top: 10px solid #bf5329;
        border-right: 18px solid #bf5329;
        border-bottom: 10px solid #bf5329;
        border-left: 18px solid #bf5329;
      }

      /* Panels */

      .panel {
        margin: 0 0 21px;
      }

      .panel-content {
        background-color: #EDEFF2;
        padding: 16px;
      }

      .panel-item {
        padding: 0;
      }

      .panel-item p:last-of-type {
        margin-bottom: 0;
        padding-bottom: 0;
      }

      /* Promotions */

      .promotion {
        background-color: #FFFFFF;
        border: 2px dashed #9BA2AB;
        margin: 0;
        margin-bottom: 25px;
        margin-top: 25px;
        padding: 24px;
        width: 100%;
        -premailer-cellpadding: 0;
        -premailer-cellspacing: 0;
        -premailer-width: 100%;
      }

      .promotion h1 {
        text-align: center;
      }

      .promotion p {
        font-size: 15px;
        text-align: center;
      }
    </style>

    <style>
        i.fa {
            background-color: #fbbb3e;
            color: #ffffff;
            display: inline-block;
            border-radius: 50%;
            box-shadow: 0px 0px 2px #3333;
            font-size: 0.7em;
            padding: 0.5em 0.7em;
        }

        .header-subject {
            text-align: center;
            margin-bottom: 30px;
        }

        .header-subject .title {
            text-align: center;
            white-space:nowrap;
            font-weight: bold;
            font-size: 26px;
            padding-right: 20px;
        }

        .horizontalLine {
            border: 3px solid #11b590;
        }
    </style>

    <table class="wrapper" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table class="content" width="100%" cellpadding="0" cellspacing="0">
                    {% block header %}
                    {% endblock %}

                    <!-- Email Body -->
                    <tr>
                        <td class="body" width="100%" cellpadding="0" cellspacing="0">
                            <table class="inner-body" align="center" width="700" cellpadding="0" cellspacing="0">
                                <!-- Body content -->
                                <tr>
                                    <td class="content-cell">
                                        {% block slot %}{% endblock %}
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                    {% block footer %}
                    {% endblock %}
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
