<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Age Verification</title>

  <script>
  document.addEventListener("DOMContentLoaded", function() {
      const btnConfirm = document.getElementById('confirm-btn');
      const btnReject = document.getElementById('reject-btn');
  
      if (btnConfirm) {
          btnConfirm.addEventListener('click', () => {
              document.cookie = "age_verified_access=true; path=/; max-age=2592000; Secure; SameSite=Lax";
              sessionStorage.setItem("age_verified_session", "true");
              window.location.reload();
          });
      }
  
      if (btnReject) {
          btnReject.addEventListener('click', () => {
              window.location.href = "https://www.google.com";
          });
      }
  });
  </script>

  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: #000000;
      color: #ffffff;
      font-family: Arial, Helvetica, sans-serif;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    .container {
      max-width: 580px;
      width: 100%;
      text-align: center;
      padding: 40px 30px;
      background: rgba(20, 20, 20, 0.85);
      border-radius: 12px;
      border: 1px solid #333;
    }

    .logo {
      margin-bottom: 40px;
    }

    .logo img {
      max-width: 220px;
      height: auto;
    }

    h1 {
      font-size: 2.1rem;
      margin-bottom: 1.4rem;
      color: #ff6200;
    }

    .text {
      font-size: 1.1rem;
      line-height: 1.6;
      margin-bottom: 0.5rem;
      color: #ddd;
    }

    .declaration {
      font-size: 1.05rem;
      line-height: 1.7;
      margin: 2rem 0;
      text-align: left;
      display: inline-block;
    }

    .declaration li {
      margin-bottom: 0.8rem;
			margin-left: 1.0rem;
    }

    .buttons {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 2.5rem;
    }

    .btn {
      display: inline-block;
      padding: 16px 40px;
      font-size: 1.15rem;
      font-weight: bold;
      text-decoration: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.25s ease;
      border: 2px solid #ff6200;
      background: transparent;
      color: #ff6200;
    }

    .btn:hover {
      background: #ff6200;
      color: #000;
    }

    .btn.no {
      border-color: #888;
      color: #ccc;
    }

    .btn.no:hover {
      background: #555;
      color: white;
      border-color: #777;
    }

    @media (max-width: 480px) {
      .container {
        padding: 30px 20px;
      }
      h1 {
        font-size: 1.8rem;
      }
      .btn {
        padding: 14px 30px;
        font-size: 1.05rem;
      }
    }
  </style>
</head>
<body>

  <div class="container">

    <div class="logo">
      <img src="ver_logo.webp" alt="Logo">
    </div>

    <h1>Age Verification</h1>

    <div class="text">
     This website contains age-restricted materials including nudity and explicit depictions of sexual activity. 
    </div>

    <div class="declaration">
      <strong>I declare that:</strong><br><br>
      <ul>
        <li>I am 18 years old or have reached the legal age of majority in the jurisdiction from which I am accessing this website,</li>
        <li>I have read and understood the warning,</li>
        <li>I consent to entering a website containing erotic / pornographic materials.</li>
      </ul>
    </div>

    <div class="buttons">
        <button id="confirm-btn" class="btn">Yes - I confirm and enter</button>
        
        <button id="reject-btn" class="btn no">No - leave this page</button>
    </div>

  </div>

</body>
</html>
