<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="robots" content="noindex,nofollow" />
    <title>Erro 500 / Error 500</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
    <link rel="stylesheet" media="screen" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600" />
    <link href="/lib/baseapp/fontAwesome5/css/fontawesome-all.css" rel="stylesheet" type="text/css">
    <style>
        * {
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }

        html, body, div {
            margin: 0;
            padding: 0;
            border: 0;
            outline: 0;
            vertical-align: baseline;
            background: transparent;
        }

        article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
            display: block;
        }

        html {
            font-size: 16px;
            line-height: 24px;
            width: 100%;
            height: 100%;
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
            overflow-y: hidden;
            overflow-x: hidden;
        }

        img {
            vertical-align: middle;
            max-width: 100%;
            height: auto;
            border: 0;
            -ms-interpolation-mode: bicubic;
        }

        body {
            min-height: 100%;
            -webkit-font-smoothing: subpixel-antialiased;
        }

        .clearfix {
            clear: both;
            zoom: 1;
        }

        .clearfix:before, .clearfix:after {
            content: "\0020";
            display: block;
            height: 0;
            visibility: hidden;
        }

        .clearfix:after {
            clear: both;
        }

        .plain.error-page-wrapper {
            font-family: 'Source Sans Pro', sans-serif;
            background-color: #333;
            padding: 0 5%;
            position: relative;
        }

        .plain.error-page-wrapper .content-container {
            -webkit-transition: left .5s ease-out, opacity .5s ease-out;
            -moz-transition: left .5s ease-out, opacity .5s ease-out;
            -ms-transition: left .5s ease-out, opacity .5s ease-out;
            -o-transition: left .5s ease-out, opacity .5s ease-out;
            transition: left .5s ease-out, opacity .5s ease-out;
            position: relative;
            left: -30px;
            opacity: 0;
        }

        .plain.error-page-wrapper .content-container.in {
            left: 0px;
            opacity: 1;
        }

        .plain.error-page-wrapper .head-line {
            transition: color .2s linear;
            font-size: 48px;
            line-height: 60px;
            color: rgba(255,255,255,.2);
            letter-spacing: -1px;
            margin-bottom: 5px;
        }

        .plain.error-page-wrapper .subheader {
            transition: color .2s linear;
            font-size: 26px;
            line-height: 36px;
            color: #fff;
        }

        .plain.error-page-wrapper hr {
            height: 1px;
            background-color: rgba(255,255,255,.2);
            border: none;
            width: 250px;
            margin: 35px 0;
        }

        .plain.error-page-wrapper .context {
            transition: color .2s linear;
            font-size: 18px;
            line-height: 27px;
            color: #fff;
        }

        .plain.error-page-wrapper .context p {
            margin: 0;
        }

        .plain.error-page-wrapper .context p:nth-child(n+2) {
            margin-top: 12px;
        }

        .plain.error-page-wrapper .buttons-container {
            margin-top: 45px;
            overflow: hidden;
        }

        .plain.error-page-wrapper .buttons-container a {
            transition: color .2s linear, border-color .2s linear;
            font-size: 14px;
            text-transform: uppercase;
            text-decoration: none;
            color: #fff;
            border: 2px solid white;
            border-radius: 99px;
            padding: 8px 30px 9px;
            display: inline-block;
            float: left;
        }

        .plain.error-page-wrapper .buttons-container a:hover {
            background-color: rgba(255,255,255,.05);
        }

        .plain.error-page-wrapper .buttons-container a:first-child {
            margin-right: 25px;
        }

        .sadFace {
            margin-bottom: 20px;
            color: #02A8F3;
            font-size: 120px;
        }

        @media screen and (max-width: 991px) {
            .plain.error-page-wrapper .head-line {
                font-size: 36px;
            }

            .plain.error-page-wrapper .subheader {
                font-size: 27px;
                line-height: 38px;
            }

            .plain.error-page-wrapper hr {
                width: 185px;
                margin: 25px 0;
            }

            .plain.error-page-wrapper .context {
                font-size: 16px;
                line-height: 24px;
            }

            .plain.error-page-wrapper .buttons-container {
                margin-top: 35px;
            }

            .plain.error-page-wrapper .buttons-container a {
                font-size: 13px;
                padding: 8px 0 7px;
                width: 45%;
                text-align: center;
            }

            .plain.error-page-wrapper .buttons-container a:first-child {
                margin-right: 10%;
            }
        }
    </style>
</head>
  <body class="plain error-page-wrapper">
      <div class="content-container">
          <i class="fal fa-frown sadFace"></i>
          <div class="head-line">
              Erro 500 / Error 500
          </div>
          <div class="subheader">
              Parece que estamos a ter alguns problemas no servidor.
              <br />Looks like we're having some server issues.
              <br />Parece que estamos a ter algunos problemas no servidor.
          </div>
          <hr>
          <div class="clearfix"></div>
          <div class="context">
              <p>
                  Volte para a página anterior e tente novamente. Se você acha que algo está errado, comunique o problema.
                  <br />Go back to the previous page and try again. If you think something is broken, report a problem.
                  <br />Volte para una página anterior y tente novamente. Se você acha que algo está errado, comunique o problem.
              </p>
          </div>
          <div class="buttons-container">
              <a class="border-button" href="mailto:apoiocliente@normax.pt">Comunique o problema / Report a problem</a>
          </div>
      </div>


    <script>
     function ErrorPage(container) {
       this.$container = $(container);
       this.$contentContainer = this.$container.find('.content-container');
     }
     ErrorPage.prototype.centerContent = function () {
       var containerHeight = this.$container.outerHeight()
         , contentContainerHeight = this.$contentContainer.outerHeight()
         , top = (containerHeight - contentContainerHeight) / 2
         , offset = 0;

       this.$contentContainer.css('top', top + offset);
     };
     ErrorPage.prototype.initialize = function () {
       var self = this;
       this.centerContent();
       this.$container.on('resize', function (e) {
         e.preventDefault();
         e.stopPropagation();
         self.centerContent();
       });
         window.setTimeout(function () {self.$contentContainer.addClass('in');  }, 500);
     };
     var ep = new ErrorPage('body');
     ep.initialize();
        
     $(window).on('resize', function() {
       $('body').trigger('resize')
     });

    </script>
  </body>
</html>
