<!DOCTYPE html>
<html lang="en"> <!-- Set this to the main language of your site -->
<head>
    <meta charset="utf-8">

    <title>{{title}}</title>

    <!-- Enter a brief description of your page -->
    <meta name="description" content="">

    <!-- Define a viewport to mobile devices to use - telling the browser to assume that the page is as wide as the device (width=device-width,
    and setting the initial page zoom level to be 1 (initial-scale=1.0), and fixing width=device-width for iOS9 (shtink-to-fit=no) -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">

    <!-- Add normalize.css which enables browsers to render all elements more consistently and in line with modern standards as it only targets particular styles that need normalizing -->
    {{!-- <link href="css/normalize.css" rel="stylesheet" media="all"> --}}
    <!-- For legacy support (IE 6/7, Firefox < 4, and Safari < 5) use normalize-legacy.css instead -->
    <!--<link href="css/normalize-legacy.css" rel="stylesheet" media="all">-->

    <!-- Include the site stylesheet -->
    {{#if googleFont}}
        <link href="https://fonts.googleapis.com/css?family={{googleFont}}:400,500,600,700,800,900&display=swap" rel="stylesheet">
      {{/if}}
    {{#if css }}
    {{#each css}}
    <link href="{{this}}" rel="stylesheet" media="all">
    {{/each}}
    
    {{/if}}
    <style>
      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      body {
        background: transparent;
        {{#if fontFamily}}font-family: {{{fontFamily}}};{{/if}}
        overflow: hidden;
        /* width: {{width}}px;
        height: {{height}}px; */
        width: 100vw;
        height: 100vh;
      }
        .body {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 152px;
        height: 100%;
      }
      h1 {
        display: flex;
        align-items: center;
        flex-grow: 1;
        font-size: {{fontSize}};
        font-weight: {{fontWeight}};
        text-align: center;
        margin: 0;
      }
      .Image {
  width: 100%;
  height: 100%;
  background-size: cover;  
  background-repeat: no-repeat;
  background-origin: center;
}

.Main {
  background: {{#if imageUrl}} transparent {{else}}{{background}}{{/if}};
  position: relative;
  width: 100%;
  height: 100%;
}

.Inner {
  background: {{#if imageUrl}} transparent {{else}} {{ background }}{{/if}};
  color: {{color}};
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
      .logo {
        height: 100px;
        width: 100%;
        margin-bottom: 24px;
        max-width: 150px;
      }
      .logo-inner {
        align-items: center;
        display: flex;
        justify-content: center;
        font-size: 48px;
      }
      .logo-inner img{
        height: 100px;
      }
      .logo-text {
        font-weight: 600;
        margin-left: 24px;
        whitespace: nowrap;
      }
      .watermark {
        margin-top: 40px;
        height: 80px;
        opacity: 0.7;
      }
      .watermark-inner {
        font-size: 32px;
        font-weight: 500;
      }
    </style>
</head>
<body>
  <div class="Main">
        {{#if imageUrl}}
          <div class="Image" style="background-image: {{#if backgroundImageOverlay}}linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%), {{/if}}url('{{imageUrl}}');"></div>
        {{/if}}

        <div class="Inner">
          <div class="body">
        <div class="logo">
          <div class="logo-inner">
            {{#if logo}}<img src="{{logo}}" />{{/if}}
          </div>
        </div>
        <h1>{{title}}</h1>
        <div class="watermark">
          {{#if includeWatermark}}
          <div
            class="watermark-inner"
          >
            {{watermark}}
          </div>
          {{/if}}
        </div>
      </div>
        </div>
      </div>
      </body>
</html>