<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>BabyReverser - Can You Solve This?</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #181818;
      color: #F0F0F0;
      text-align: center;
    }
    .container {
      margin-top: 50px;
    }
    h1 {
      color: #FF6347;
      font-size: 40px;
    }
    h2 {
      color: #87CEEB;
    }
    p {
      font-size: 18px;
      color: #BBBBBB;
    }
    input[type="text"] {
      padding: 10px;
      margin: 20px;
      font-size: 16px;
      width: 200px;
      background-color: #333;
      border: 1px solid #888;
      color: #fff;
    }
    button {
      padding: 10px 20px;
      background-color: #6200EE;
      border: none;
      color: white;
      font-size: 16px;
      cursor: pointer;
    }
    button:hover {
      background-color: #3700B3;
    }
    .message {
      margin-top: 20px;
      font-size: 18px;
    }
    .troll-message {
      font-size: 20px;
      color: #FF6347;
      font-weight: bold;
      text-transform: uppercase;
    }
  </style>
</head>
<body>

  <div class="container">
    <h1>BabyReverser</h1>
    <h2>Can You Solve This? (Spoiler: You Can't)</h2>
    <p>Try decoding the string below. It's simple... but will you figure it out?</p>
    
    <p class="cipher-text">V’z n frperg zrffntr, zr lbh qba'g unir zrffntr yrnirf.</p>
    <p>Hint: It's a Caesar cipher.</p>
    
    <input type="text" id="codeInput" placeholder="Enter decoded message...">
    <button onclick="checkCode()">Submit</button>
    
    <p class="message" id="message"></p>
    <p class="troll-message" id="trollMessage"></p>
  </div>

  <script>
    function caesarCipher(str, shift) {
      return str.split('').map(char => {
        if (/[a-zA-Z]/.test(char)) {
          const code = char.charCodeAt(0);
          const base = code >= 65 && code <= 90 ? 65 : 97;
          return String.fromCharCode((code - base + shift) % 26 + base);
        }
        return char;
      }).join('');
    }

    const hiddenMessage = "I'm a secret message, me you don't have message leaks.";
    const encodedMessage = caesarCipher(hiddenMessage, 13);

    function checkCode() {
      const userInput = document.getElementById('codeInput').value.trim();
      const messageElement = document.getElementById('message');
      const trollMessage = document.getElementById('trollMessage');

      if (userInput === hiddenMessage) {
        messageElement.textContent = "Wow, you decoded it. Not bad... but you're still a noob!";
        messageElement.style.color = "green";
        trollMessage.textContent = "Nice try. You really thought you were a hacker, huh?";
      } else {
        messageElement.textContent = "Wrong! The cipher was not that hard... Try again.";
        messageElement.style.color = "red";
        trollMessage.textContent = "You thought it was too easy? Nah, you're not even close.";
      }
    }
  </script>

</body>
</html>
