<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$base_url = load_class('Config')->config['base_url'];
?>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>404 Page Not Found</title>
  <style type="text/css">
    body {
      margin: 0;
      padding: 0;
      background: url('<?=$base_url.'/assets/img/404.jpg';?>');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
    }

    #container {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh; /* Set the container to full viewport height */
    }

    .section {
      text-align: center;
      color: #fff; /* Set text color to be visible against the background */
    }

    .back-home {
      color: #000;
      font-weight: bold;
      background: lightgreen;
      padding: 10px 20px;
      text-decoration: none;
      border-radius: 5px;
    }

    .back-home {
      color: #000; /* Set the initial text color */
      text-decoration: none;
      font-weight: bold;
      transition: color 0.5s ease, background 0.5s ease, padding 0.5s ease;
    }

    .back-home:hover {
      color: red;
      font-weight: bold;
      background: lightcyan;
      padding: 10px 20px;
      text-decoration: none;
      border-radius: 5px;
      transition-delay: 0.2s; /* Set a delay for the hover effect */
    }


  </style>
</head>
<body>
  <div id="container">
    <div class="section">
      <a class="back-home" href="<?=$base_url;?>">Back to home</a>
    </div>
  </div>
</body>
</html>