{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    Page header.
}}

{{{ output.doctype }}}
<html {{{ output.htmlattributes }}}>
<head>
    <title>{{{ output.page_title }}}</title>
    <link rel="shortcut icon" href="{{{ output.favicon }}}" />

    {{^CustomWebFont}}<link href="{{#googlefonturl}}{{{googlefonturl}}}{{/googlefonturl}}{{^googlefonturl}}https://fonts.googleapis.com/css?family=Poppins:300,400,500,700{{/googlefonturl}}" rel="stylesheet">{{/CustomWebFont}}
    {{#CustomWebFont}}
      {{{ CustomWebFontHTML }}}
    {{/CustomWebFont}}

    {{#additionalcustomfont}}
    {{{ CustomWebFontHTML }}}
    {{/additionalcustomfont}}

    <script src="{{siteurl}}/theme/space/addons/overlayscrollbars/OverlayScrollbars.min.js"></script>
    
    {{{ output.standard_head_html }}}

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    {{#morefonts}}
    <style type="text/css">
    {{#fonts}}
    [lang="{{langcode}}"] body {
        font-family: {{{additionalfontname}}};
    }
    {{/fonts}}
    </style>
    {{/morefonts}}

    {{#CustomWebFontSH}}
    <style type="text/css">
    @font-face {
        font-family: {{{googlefontname}}};
        src: url('{{#customfontlighteot}}{{.}}{{/customfontlighteot}}');
        src: url('{{#customfontlighteot}}{{.}}{{/customfontlighteot}}?#iefix') format('embedded-opentype'),
            url('{{#customfontlightwoff2}}{{.}}{{/customfontlightwoff2}}') format('woff2'),
            url('{{#customfontlightwoff}}{{.}}{{/customfontlightwoff}}') format('woff'),
            url('{{#customfontlightttf}}{{.}}{{/customfontlightttf}}') format('truetype'),
            url('{{#customfontlightsvg}}{{.}}{{/customfontlightsvg}}#{{#customfontlightname}}{{.}}{{/customfontlightname}}') format('svg');
        font-weight: 300;
        font-style: normal;
    }
    @font-face {
        font-family: {{{googlefontname}}};
        src: url('{{#customfontregulareot}}{{.}}{{/customfontregulareot}}');
        src: url('{{#customfontregulareot}}{{.}}{{/customfontregulareot}}?#iefix') format('embedded-opentype'),
            url('{{#customfontregularwoff2}}{{.}}{{/customfontregularwoff2}}') format('woff2'),
            url('{{#customfontregularwoff}}{{.}}{{/customfontregularwoff}}') format('woff'),
            url('{{#customfontregularttf}}{{.}}{{/customfontregularttf}}') format('truetype'),
            url('{{#customfontregularsvg}}{{.}}{{/customfontregularsvg}}#{{#customfontregularname}}{{.}}{{/customfontregularname}}') format('svg');
        font-weight: 400;
        font-style: normal;
    }
    @font-face {
        font-family: {{{googlefontname}}};
        src: url('{{#customfontmediumeot}}{{.}}{{/customfontmediumeot}}');
        src: url('{{#customfontmediumeot}}{{.}}{{/customfontmediumeot}}?#iefix') format('embedded-opentype'),
            url('{{#customfontmediumwoff2}}{{.}}{{/customfontmediumwoff2}}') format('woff2'),
            url('{{#customfontmediumwoff}}{{.}}{{/customfontmediumwoff}}') format('woff'),
            url('{{#customfontmediumttf}}{{.}}{{/customfontmediumttf}}') format('truetype'),
            url('{{#customfontmediumsvg}}{{.}}{{/customfontmediumsvg}}#{{#customfontmediumname}}{{.}}{{/customfontmediumname}}') format('svg');
        font-weight: 500;
        font-style: normal;
    }

    @font-face {
        font-family: {{{googlefontname}}};
        src: url('{{#customfontboldeot}}{{.}}{{/customfontboldeot}}');
        src: url('{{#customfontboldeot}}{{.}}{{/customfontboldeot}}?#iefix') format('embedded-opentype'),
            url('{{#customfontboldwoff2}}{{.}}{{/customfontboldwoff2}}') format('woff2'),
            url('{{#customfontboldwoff}}{{.}}{{/customfontboldwoff}}') format('woff'),
            url('{{#customfontboldttf}}{{.}}{{/customfontboldttf}}') format('truetype'),
            url('{{#customfontboldsvg}}{{.}}{{/customfontboldsvg}}#{{#customfontboldname}}{{.}}{{/customfontboldname}}') format('svg');
        font-weight: 700;
        font-style: normal;
    }
    </style>
    {{/CustomWebFontSH}}

  {{{ additionalheadhtml }}}
</head>