<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>OSRS Services | Skilling, Bossing, PvM, OSRS Gold</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="icon" href="favicon.png" type="image/png">
    <style>
      /* Smooth Page Transition */
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        margin: 0;
        font-family: 'Roboto', sans-serif;
        background: url('background.png') no-repeat center center fixed;
        background-size: cover;
        overflow-y: scroll;
        position: relative;
      }

      /* Custom Scrollbar */
      ::-webkit-scrollbar {
        width: 8px;
      }

      ::-webkit-scrollbar-track {
        background: #f1f1f1;
      }

      ::-webkit-scrollbar-thumb {
        background: #2ea2cc;
        border-radius: 4px;
      }

      ::-webkit-scrollbar-thumb:hover {
        background: #1f6bb5;
      }

      .navbar {
        background: rgba(9, 55, 144, 0);
        /* New color with 80% transparency */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 1000;
      }

      .navbar .logo img {
        height: 50px;
      }

      .navbar .logo a {
        text-decoration: none;
      }

      .navbar ul {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
      }

      .navbar ul li {
        position: relative;
      }

      .navbar ul li a {
        color: white;
        text-decoration: none;
        font-weight: 600;
        padding: 10px 15px;
        display: block;
      }

      .navbar ul li.has-dropdown>a::after {
        content: '\25BC';
        margin-left: 8px;
        font-size: 0.8em;
      }

      .navbar ul li:hover>a {
        background: rgba(6, 40, 104, 0.8);
      }

      .navbar ul li .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(6, 40, 104, 0.9);
        min-width: 200px;
        z-index: 1001;
      }

      .navbar ul li:hover .dropdown,
      .navbar ul li.show .dropdown {
        display: block;
      }

      .dropdown li {
        width: 100%;
      }

      .dropdown li a {
        padding: 10px;
        color: white;
      }

      .dropdown li a:hover {
        background-color: rgba(4, 30, 78, 0.9);
      }

      .menu-toggle {
        display: none;
        cursor: pointer;
        color: white;
        font-size: 1.5em;
        margin-left: 20px;
        z-index: 1001;
        transition: transform 0.3s ease;
      }

      .menu-toggle.active {
        transform: rotate(90deg);
      }

      @media (max-width: 768px) {
        .navbar ul {
          flex-direction: column;
          display: none;
          background: rgba(9, 55, 144, 0.9);
          position: absolute;
          top: 60px;
          right: 0;
          width: 100%;
          transition: all 0.5s ease-in-out;
        }

        .navbar ul.active {
          display: flex;
        }

        .menu-toggle {
          display: block;
        }

        .navbar ul.active li.has-dropdown .dropdown {
          display: none;
          position: static;
          background: rgba(6, 40, 104, 0.9);
        }

        .navbar ul.active li.has-dropdown.show .dropdown {
          display: block;
        }

        .navbar ul li.has-dropdown>a {
          display: flex;
          justify-content: space-between;
        }

        .navbar ul.active li.discord {
          text-align: center;
          margin-top: 20px;
        }

        .navbar ul.active li.discord a {
          display: inline-block;
        }

        .navbar ul.active li.discord a img {
          height: 40px;
        }

        .navbar .social {
          display: none;
        }
      }

      .hero {
        text-align: center;
        color: white;
        margin: 50px 20px;
        animation: fadeIn 1.5s ease-in-out;
      }

      .hero h1 {
        font-size: 2.5em;
        font-weight: bold;
        margin: 0;
      }

      .hero p {
        font-size: 1.2em;
        font-weight: bold;
        color: white;
        margin: 10px 0;
        background: none;
        border: none;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      /* Hero Section Styling */
      .hero-section {
        text-align: center;
        margin: 50px auto;
        padding: 20px;
        color: white;
        font-family: 'Roboto', sans-serif;
        animation: fadeIn 1.5s ease-in-out;
      }

      .hero-section h1 {
        font-size: 3.5em;
        /* Increased font size */
        font-weight: bold;
        margin-bottom: 10px;
      }

      .hero-section p {
        font-size: 1.2em;
        margin: 5px 0;
      }

      .hero-section a {
        color: #2ea2cc;
        text-decoration: underline;
      }

      /* Image Links Section */
      .image-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 50px auto;
        flex-wrap: wrap;
      }

      .image-card {
        text-align: center;
        position: relative;
        overflow: hidden;
        width: 180px;
        height: 180px;
        border-radius: 10px;
        background: rgba(9, 55, 144, 0.8);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        text-decoration: none;
        color: white;
      }

      .image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
      }

      .image-card span {
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 1em;
        font-weight: bold;
        background: rgba(0, 0, 0, 0.6);
        padding: 5px 0;
        transition: background 0.3s ease-in-out;
      }

      /* Hover Animation */
      .image-card:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      }

      .image-card:hover span {
        background: rgba(0, 0, 0, 0.8);
      }

      /* Trustpilot Review Section */
      .trustpilot-reviews {
        text-align: center;
        background: rgba(9, 55, 144, 0.1);
        padding: 40px 20px;
        margin: 40px auto;
      }

      .trustpilot-reviews h2 {
        font-size: 2em;
        margin-bottom: 20px;
        color: #ffffff;
        /* Change text color to white */
      }

      .review-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
      }

      .review {
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 20px;
        width: 300px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
      }

      .review:hover {
        transform: translateY(-5px);
      }

      .review-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
      }

      .review-header img {
        height: 24px;
      }

      .review-name {
        font-weight: bold;
        color: #093790;
        flex-grow: 1;
      }

      .review-rating {
        color: #ffcc00;
      }

      .review-text {
        font-size: 0.9em;
        color: #555;
        line-height: 1.4;
      }

      /* Disable Sticky Navbar on PC */
      @media (min-width: 769px) {
        .navbar {
          position: static;
          /* Remove sticky behavior on larger screens */
        }
      }

      /* Payment Options Section */
      .payment-options {
        text-align: center;
        margin: 50px auto;
        padding: 20px;
        background: rgba(9, 55, 144, 0.1);
        border-radius: 10px;
      }

      .payment-options h2 {
        font-size: 2em;
        font-weight: bold;
        margin-bottom: 20px;
        color: #ffffff;
        /* White text */
      }

      .payment-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
      }

      .payment-icon {
        width: 120px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
      }

      .payment-icon img {
        max-width: 60%;
        max-height: 60%;
        object-fit: contain;
      }

      .payment-icon:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
      }

      /* About Section Styling */
      .about-section {
        background: rgba(9, 55, 144, 0.1);
        /* Slight blue background */
        padding: 50px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .about-container {
        display: flex;
        align-items: center;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
      }

      .about-image {
        flex: 1;
        max-width: 500px;
      }

      .about-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }

      .about-text {
        flex: 1;
        font-family: 'Roboto', sans-serif;
        color: #fff;
      }

      .about-text h2 {
        font-size: 2em;
        margin-bottom: 10px;
        color: #ffffff;
      }

      .about-text p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 15px;
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .about-container {
          flex-direction: column;
          text-align: center;
        }

        .about-image,
        .about-text {
          max-width: 100%;
        }

        .about-text h2 {
          font-size: 1.8em;
        }

        .about-text p {
          font-size: 0.9em;
        }
      }

      /* Why Choose OSRS-PVM Section Styling */
      .why-choose-section {
        text-align: center;
        padding: 50px 20px;
        background: rgba(9, 55, 144, 0);
        /* Slight blue background */
        color: #ffffff;
      }

      .why-choose-section h2 {
        font-size: 2.5em;
        margin-bottom: 30px;
        font-weight: bold;
      }

      .why-choose-container {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 20px;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto;
      }

      .why-choose-box {
        background: rgba(9, 55, 144, 0.2);
        /* Solid blue box */
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
        padding: 20px;
        flex: 1;
        min-width: 250px;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
      }

      .why-choose-box h3 {
        font-size: 1.5em;
        margin-bottom: 10px;
        color: #ffffff;
      }

      .why-choose-box p {
        font-size: 1em;
        color: #d0e6ff;
        /* Light blue text */
      }

      .why-choose-box:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .why-choose-container {
          flex-direction: column;
          gap: 15px;
        }

        .why-choose-box {
          min-width: 100%;
        }

        .why-choose-section h2 {
          font-size: 2em;
        }
      }

      /* Footer Section Styling */
      .footer {
        background: rgba(9, 55, 144, 0.4);
        /* Transparent Dark Blue Footer */
        color: white;
        padding: 40px 20px;
        font-family: 'Roboto', sans-serif;
        backdrop-filter: blur(5px);
        /* Slight blur effect for clarity */
      }

      /* Footer Container */
      .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
      }

      /* Left Section */
      .footer-left {
        flex: 1;
        min-width: 280px;
      }

      .footer-left img {
        width: 150px;
        margin-bottom: 15px;
      }

      .footer-left p {
        font-size: 0.9em;
        line-height: 1.6;
        color: #d0e6ff;
      }

      /* Middle Section */
      .footer-middle {
        flex: 1;
        min-width: 280px;
        text-align: center;
      }

      .footer-middle h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
        text-transform: uppercase;
        color: #ffffff;
      }

      .footer-middle ul {
        list-style: none;
        padding: 0;
        text-align: center;
      }

      .footer-middle ul li {
        margin-bottom: 8px;
      }

      .footer-middle ul li a {
        color: #d0e6ff;
        text-decoration: none;
        transition: color 0.3s ease;
      }

      .footer-middle ul li a:hover {
        color: #2ea2cc;
      }

      /* Right Section */
      .footer-right {
        flex: 1;
        min-width: 280px;
        text-align: right;
      }

      .footer-right h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
        text-transform: uppercase;
        color: #ffffff;
      }

      .footer-right p {
        font-size: 0.9em;
        line-height: 1.6;
        color: #d0e6ff;
        margin-bottom: 15px;
      }

      .footer-right h4 {
        font-size: 1em;
        margin-top: 20px;
        color: #ffffff;
      }

      .footer-social {
        margin-top: 10px;
        text-align: center;
        /* Center social icons on mobile */
      }

      .footer-social a {
        display: inline-block;
        margin: 5px;
        transition: transform 0.3s ease;
      }

      .footer-social img {
        width: 24px;
        height: 24px;
      }

      .footer-social a:hover {
        transform: scale(1.1);
      }

      /* Bottom Section */
      .footer-bottom {
        text-align: center;
        margin-top: 30px;
        font-size: 0.8em;
        color: #d0e6ff;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
        background: transparent;
        /* Fully Transparent */
        backdrop-filter: none;
        /* Remove any blur effect */
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .footer-container {
          flex-direction: column;
          text-align: center;
          align-items: center;
          gap: 20px;
        }

        .footer-left,
        .footer-middle,
        .footer-right {
          text-align: center;
          margin-bottom: 20px;
        }

        .footer-left img {
          margin: 0 auto 10px;
        }

        .footer-middle ul {
          text-align: center;
        }

        .footer-right h3,
        .footer-right p {
          text-align: center;
        }

        .footer-social {
          text-align: center;
          margin-top: 10px;
        }
      }

      .centered-gif {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 40px 0;
        /* Add space around the GIF */
        text-align: center;
      }

      .centered-gif img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        /* Optional: adds rounded corners */
        transition: transform 0.3s ease-in-out;
      }

      .centered-gif img:hover {
        transform: scale(1.05);
        /* Slight zoom on hover */
      }

      /* Services Section */
      .services-section {
        text-align: center;
        padding: 40px 20px;
        background: rgba(9, 55, 144, 0.2);
        border-radius: 10px;
        max-width: 900px;
        margin: 50px auto;
      }

      .services-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
        color: white;
      }

      /* Services Grid */
      .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns */
        gap: 20px;
        justify-items: center;
        margin-top: 20px;
      }

      .service-card {
        text-align: center;
        position: relative;
        overflow: hidden;
        width: 200px;
        height: 200px;
        border-radius: 10px;
        background: rgba(9, 55, 144, 0.6);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        cursor: pointer;
        color: white;
      }

      .service-card img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
      }

      .service-card p {
        margin: 10px 0;
        font-size: 1em;
        font-weight: bold;
      }

      /* Popup Modal */
      .service-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        z-index: 10000;
      }

      .service-modal-content {
        background: rgba(9, 55, 144, 0.95);
        padding: 30px;
        border-radius: 10px;
        text-align: left;
        color: white;
        max-width: 400px;
        width: 90%;
        animation: fadeIn 0.3s ease-in-out;
      }

      .service-modal-content h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
      }

      .service-modal-content ul {
        list-style: none;
        padding: 0;
        margin-bottom: 20px;
      }

      .service-modal-content ul li {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .service-modal-content input[type="checkbox"] {
        transform: scale(1.2);
      }

      .buy-now-btn {
        display: block;
        width: 100%;
        padding: 10px;
        font-size: 1em;
        font-weight: bold;
        color: white;
        background: #2ea2cc;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
      }

      .buy-now-btn:hover {
        background: #1f6bb5;
      }

      /* Close Button */
      .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 1.5em;
        cursor: pointer;
        color: white;
      }

      /* Responsive Adjustments */
      @media (max-width: 768px) {
        .services-grid {
          grid-template-columns: repeat(2, 1fr);
          /* Switch to 2 columns */
        }
      }

      @media (max-width: 480px) {
        .services-grid {
          grid-template-columns: 1fr;
          /* Single column on small devices */
        }
      }

      /* Services Section Styling */
      .services-section {
        text-align: center;
        padding: 40px 20px;
        font-family: 'Roboto', sans-serif;
        background: rgba(9, 55, 144, 0.1);
      }

      .services-section h2 {
        font-size: 2.5em;
        margin-bottom: 20px;
        color: white;
      }

      /* Services Grid */
      .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 20px;
      }

      /* Service Card */
      .service-card {
        text-align: center;
        background: rgba(9, 55, 144, 0.3);
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
      }

      /* Service Card Image */
      .service-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-bottom: 2px solid #2ea2cc;
      }

      /* Service Card Text */
      .service-card p {
        margin: 10px 0;
        font-size: 1.1em;
        font-weight: bold;
        color: white;
      }

      /* Hover Animation */
      .service-card:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
      }

      /* Add a subtle background glow */
      .service-card:hover::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 10px;
        box-shadow: 0 0 15px #2ea2cc;
        z-index: -1;
        animation: glow 1.5s infinite alternate;
      }

      /* Glow Animation Keyframes */
      @keyframes glow {
        from {
          box-shadow: 0 0 10px #2ea2cc;
        }

        to {
          box-shadow: 0 0 25px #2ea2cc;
        }
      }

      .service-card {
        display: block;
        text-decoration: none;
        /* Remove default link underline */
        color: inherit;
        /* Inherit text color */
      }

      /* Preloader Animation */
      #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #093790;
        /* Change to your theme color */
        z-index: 9999;
        display: none;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
      }

      /* Fade-in Animation for Pages */
      body {
        animation: fadeIn 0.8s ease-in-out;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      /* Diary Section Styling */
      .diary-section {
        text-align: center;
        padding: 40px 20px;
        background: rgba(9, 55, 144, 0.2);
        /* Transparent Blue Background */
        border-radius: 8px;
        margin: 20px auto;
        max-width: 900px;
      }

      /* Diary Title */
      .diary-section h2 {
        font-size: 1.8em;
        color: white;
        margin-bottom: 20px;
      }

      /* Each Diary Row */
      .diary-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      /* Individual Diary Item */
      .diary-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.1);
        /* Slight transparency */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        transition: transform 0.2s ease-in-out;
      }

      .diary-item:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.15);
        /* Slight hover effect */
      }

      /* Left-Aligned Difficulty */
      .difficulty {
        font-weight: bold;
        font-size: 1em;
        color: #ffffff;
        text-align: left;
        flex: 1;
      }

      /* Center-Aligned Prices */
      .prices {
        font-size: 0.9em;
        color: #d0e6ff;
        text-align: center;
        flex: 1;
      }

      /* Right-Aligned Checkbox */
      .diary-item input[type="checkbox"] {
        transform: scale(1.2);
        cursor: pointer;
      }

      /* Buy Button */
      .submit-btn {
        margin-top: 20px;
        padding: 10px 20px;
        font-size: 1em;
        font-weight: bold;
        cursor: pointer;
        border: none;
        border-radius: 5px;
        background: #2ea2cc;
        color: white;
        transition: background 0.3s;
      }

      .submit-btn:hover {
        background: #1f6bb5;
      }

      /* Responsive Adjustments */
      @media (max-width: 768px) {
        .diary-container {
          grid-template-columns: 1fr;
          /* One column on smaller screens */
        }
      }

      /* General Diaries Section Styling */
      .diaries-section {
        padding: 40px 20px;
        background: rgba(9, 55, 144, 0.2);
        border-radius: 10px;
        margin: 50px auto;
        max-width: 1200px;
        color: white;
        text-align: center;
      }

      /* Quests Section */
      .quests-section {
        padding: 40px 20px;
        background: rgba(9, 55, 144, 0.2);
        border-radius: 10px;
        margin: 50px auto;
        max-width: 800px;
        text-align: center;
        color: white;
      }

      /* Search Bar */
      .quest-search {
        margin-bottom: 20px;
      }

      .quest-search input {
        width: 100%;
        max-width: 400px;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        font-size: 1em;
        text-align: center;
      }

      /* Quest Container */
      .quests-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Two columns for quests */
        gap: 15px;
        margin-top: 20px;
      }

      /* Individual Quest Item */
      .quest-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(9, 55, 144, 0.4);
        padding: 10px 15px;
        border-radius: 5px;
        transition: background 0.3s ease;
      }

      /* Hover Effect */
      .quest-item:hover {
        background: rgba(9, 55, 144, 0.6);
      }

      /* Quest Name */
      .quest-item .quest-name {
        font-size: 1em;
        font-weight: bold;
        flex: 1;
        text-align: left;
      }

      /* Quest Price */
      .quest-item .quest-price {
        font-size: 1em;
        text-align: center;
        flex: 1;
      }

      /* Checkbox Styling */
      .quest-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #2ea2cc;
      }

      .submit-btn:hover {
        background: #1f6bb5;
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .quests-container {
          grid-template-columns: 1fr;
          /* Switch to one column on mobile */
        }

        .quest-item {
          flex-direction: column;
          text-align: center;
          gap: 5px;
        }

        .quest-item .quest-name,
        .quest-item .quest-price {
          text-align: center;
        }
      }
    </style>
    <script>
      async function fetchGoldPrice() {
        try {
          const response = await fetch('https://raw.githubusercontent.com/GeneralBacuum/test/refs/heads/main/prices.json');
          const data = await response.json();
          const sellPrice = parseFloat(data.sell_price);
          document.querySelectorAll('.diary-item .prices').forEach(priceSpan => {
            const gpPrice = parseFloat(priceSpan.dataset.gp);
            const priceInUSD = (gpPrice * sellPrice).toFixed(2);
            priceSpan.textContent = `${gpPrice}M / $${priceInUSD}`;
          });
        } catch (error) {
          console.error('Error fetching gold price:', error);
        }
      }

      function buyDiary() {
        const selectedTasks = [];
        document.querySelectorAll('.diary-item input[type="checkbox"]:checked').forEach(checkbox => {
          const taskText = checkbox.parentElement.querySelector('.difficulty').textContent.trim();
          const price = checkbox.parentElement.querySelector('.prices').textContent.trim();
          selectedTasks.push(`${taskText} - ${price}`);
        });
        if (selectedTasks.length > 0) {
          const message = `I would like to purchase the following Karamja Diary tasks:\n- ${selectedTasks.join('\n- ')}`;
          alert(message);
          window.open('https://discord.com', '_blank');
        } else {
          alert('Please select at least one task before proceeding.');
        }
      }
      // Fetch dynamic pricing on page load
      fetchGoldPrice();
    </script>
    <div id="preloader"></div>
    <script>
      document.addEventListener('DOMContentLoaded', () => {
        const preloader = document.getElementById('preloader');
        // Smooth Page Exit
        document.querySelectorAll('a.smooth-link').forEach(link => {
          link.addEventListener('click', function(e) {
            e.preventDefault();
            const href = this.getAttribute('href');
            preloader.style.display = 'block';
            setTimeout(() => {
              window.location.href = href;
            }, 500); // Matches transition time
          });
        });
        // Smooth Page Load
        window.addEventListener('pageshow', () => {
          preloader.style.opacity = '0';
          setTimeout(() => {
            preloader.style.display = 'none';
          }, 500);
        });
      });
    </script>
    <script>
      function toggleMenu() {
        const menu = document.querySelector('.navbar ul');
        const toggle = document.querySelector('.menu-toggle');
        menu.classList.toggle('active');
        toggle.classList.toggle('active');
      }

      function toggleDropdown(event) {
        if (event.target.closest('li').classList.contains('has-dropdown')) {
          event.target.closest('li').classList.toggle('show');
        }
      }
    </script>
  </head>
  <body>
    <nav class="navbar">
      <div class="logo">
        <a href="./index.html">
          <img src="website_logo_transparent.png" alt="OSRS Services Logo">
        </a>
      </div>
      <div class="menu-toggle" onclick="toggleMenu()">☰</div>
      <ul onclick="toggleDropdown(event)">
        <li>
          <a href="./gold-items.html">OSRS Gold</a>
        </li>
        <li>
          <a href="./accounts.html">Accounts</a>
        </li>
        <li>
          <a href="./infernal-cape.html">Infernal Cape</a>
        </li>
        <li>
          <a href="./megascales.html">Megascales</a>
        </li>
        <li>
          <a href="./services.html">Services</a>
        </li>
      </ul>
      <ul>
        <li class="discord">
          <a href="https://discord.com/invite/osrspvmer" target="_blank">
            <img src="Discord.png" alt="Discord">
          </a>
        </li>
      </ul>
    </nav>
    <!-- Quests Section -->
    <section class="quests-section">
      <center>
        <a href="quests.html" class="service-card">
          <img src="quests.png" alt="quests">
          <p>Quests</p>
        </a>
      </center>
      <br>
      <br>
      <br>
      <div class="quest-search">
        <input type="text" id="quest-search-input" placeholder="Search quests...">
      </div>
      <button class="submit-btn" onclick="buyQuests()">Buy Now</button>
      <br>
      <br>
      <br>
      <div class="quest-item" data-name="A Kingdom Divided">
        <span class="quest-name">A Kingdom Divided</span>
        <span class="quest-price">16M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="A Night at the Theatre">
        <span class="quest-name">A Night at the Theatre</span>
        <span class="quest-price">13M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="A Porcine of Interest">
        <span class="quest-name">A Porcine of Interest</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="A Soul's Bane">
        <span class="quest-name">A Soul's Bane</span>
        <span class="quest-price">11M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="A Tail of Two Cats">
        <span class="quest-name">A Tail of Two Cats</span>
        <span class="quest-price">13M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Alfred Grimhand's Barcrawl">
        <span class="quest-name">Alfred Grimhand's Barcrawl</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Animal Magnetism">
        <span class="quest-name">Animal Magnetism</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Another Slice of H.A.M.">
        <span class="quest-name">Another Slice of H.A.M.</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Architectural Alliance">
        <span class="quest-name">Architectural Alliance</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Ascent of Arceuus">
        <span class="quest-name">The Ascent of Arceuus</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="B gloves main / iron">
        <span class="quest-name">B gloves main / iron</span>
        <span class="quest-price">360M / 1100M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Beneath Cursed Sands">
        <span class="quest-name">Beneath Cursed Sands</span>
        <span class="quest-price">15M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Between a Rock...">
        <span class="quest-name">Between a Rock...</span>
        <span class="quest-price">13M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Big Chompy Bird Hunting">
        <span class="quest-name">Big Chompy Bird Hunting</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Biohazard">
        <span class="quest-name">Biohazard</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Black Knights' Fortress">
        <span class="quest-name">Black Knights' Fortress</span>
        <span class="quest-price">4M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Bone Voyage">
        <span class="quest-name">Bone Voyage</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Cabin Fever">
        <span class="quest-name">Cabin Fever</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Client of Kourend">
        <span class="quest-name">Client of Kourend</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Clock Tower">
        <span class="quest-name">Clock Tower</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Contact!">
        <span class="quest-name">Contact!</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Cook's Assistant">
        <span class="quest-name">Cook's Assistant</span>
        <span class="quest-price">3M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Creature of Fenkenstrain">
        <span class="quest-name">Creature of Fenkenstrain</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Curse of the Empty Lord">
        <span class="quest-name">Curse of the Empty Lord</span>
        <span class="quest-price">15M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Daddy's Home">
        <span class="quest-name">Daddy's Home</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Darkness of Hallowvale">
        <span class="quest-name">Darkness of Hallowvale</span>
        <span class="quest-price">15M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Death Plateau">
        <span class="quest-name">Death Plateau</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Death to the Dorgeshuun">
        <span class="quest-name">Death to the Dorgeshuun</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Depths of Despair">
        <span class="quest-name">The Depths of Despair</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Demon Slayer">
        <span class="quest-name">Demon Slayer</span>
        <span class="quest-price">5M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Desert Treasure I">
        <span class="quest-name">Desert Treasure I</span>
        <span class="quest-price">40M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Desert Treasure II">
        <span class="quest-name">Desert Treasure II</span>
        <span class="quest-price">80M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Devious Minds">
        <span class="quest-name">Devious Minds</span>
        <span class="quest-price">10M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Dig Site">
        <span class="quest-name">The Dig Site</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Doric's Quest">
        <span class="quest-name">Doric's Quest</span>
        <span class="quest-price">3M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Dragon Slayer I">
        <span class="quest-name">Dragon Slayer I</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Dragon Slayer II">
        <span class="quest-name">Dragon Slayer II</span>
        <span class="quest-price">45M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Dream Mentor">
        <span class="quest-name">Dream Mentor</span>
        <span class="quest-price">12M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Druidic Ritual">
        <span class="quest-name">Druidic Ritual</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Dwarf Cannon">
        <span class="quest-name">Dwarf Cannon</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Eadgar's Ruse">
        <span class="quest-name">Eadgar's Ruse</span>
        <span class="quest-price">10M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Eagles' Peak">
        <span class="quest-name">Eagles' Peak</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Enchanted Key">
        <span class="quest-name">The Enchanted Key</span>
        <span class="quest-price">11M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Enakhra's Lament">
        <span class="quest-name">Enakhra's Lament</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Enlightened Journey">
        <span class="quest-name">Enlightened Journey</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Ernest the Chicken">
        <span class="quest-name">Ernest the Chicken</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Eyes of Glouphrie">
        <span class="quest-name">The Eyes of Glouphrie</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Fairytale I">
        <span class="quest-name">Fairytale I</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Fairytale II">
        <span class="quest-name">Fairytale II</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Family Crest">
        <span class="quest-name">Family Crest</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Family Pest">
        <span class="quest-name">Family Pest</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Feud">
        <span class="quest-name">The Feud</span>
        <span class="quest-price">10M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Fight Arena">
        <span class="quest-name">Fight Arena</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Fishing Contest">
        <span class="quest-name">Fishing Contest</span>
        <span class="quest-price">4M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Forgettable Tale...">
        <span class="quest-name">Forgettable Tale...</span>
        <span class="quest-price">11M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Forsaken Tower">
        <span class="quest-name">The Forsaken Tower</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Fremennik Exiles">
        <span class="quest-name">The Fremennik Exiles</span>
        <span class="quest-price">12M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Fremennik Isles">
        <span class="quest-name">The Fremennik Isles</span>
        <span class="quest-price">10M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Fremennik Trials">
        <span class="quest-name">The Fremennik Trials</span>
        <span class="quest-price">12M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Frozen Door">
        <span class="quest-name">The Frozen Door</span>
        <span class="quest-price">25M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Garden of Death">
        <span class="quest-name">The Garden of Death</span>
        <span class="quest-price">12M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Garden of Tranquillity">
        <span class="quest-name">Garden of Tranquillity</span>
        <span class="quest-price">12M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Gertrude's Cat">
        <span class="quest-name">Gertrude's Cat</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Getting Ahead">
        <span class="quest-name">Getting Ahead</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Ghosts Ahoy">
        <span class="quest-name">Ghosts Ahoy</span>
        <span class="quest-price">9M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Giant Dwarf">
        <span class="quest-name">The Giant Dwarf</span>
        <span class="quest-price">9M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Golem">
        <span class="quest-name">The Golem</span>
        <span class="quest-price">9M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Grand Tree">
        <span class="quest-name">The Grand Tree</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Great Brain Robbery">
        <span class="quest-name">The Great Brain Robbery</span>
        <span class="quest-price">9M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Grim Tales">
        <span class="quest-name">Grim Tales</span>
        <span class="quest-price">10M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="The Hand in the Sand">
        <span class="quest-name">The Hand in the Sand</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Haunted Mine">
        <span class="quest-name">Haunted Mine</span>
        <span class="quest-price">7M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Hazeel Cult">
        <span class="quest-name">Hazeel Cult</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Heroes' Quest">
        <span class="quest-name">Heroes' Quest</span>
        <span class="quest-price">10M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="His Faithful Servants">
        <span class="quest-name">His Faithful Servants</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Holy Grail">
        <span class="quest-name">Holy Grail</span>
        <span class="quest-price">8M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Hopespear's Will">
        <span class="quest-name">Hopespear's Will</span>
        <span class="quest-price">9M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Horror from the Deep">
        <span class="quest-name">Horror from the Deep</span>
        <span class="quest-price">6M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Icthlarin's Little Helper">
        <span class="quest-name">Icthlarin's Little Helper</span>
        <span class="quest-price">9M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Imp Catcher">
        <span class="quest-name">Imp Catcher</span>
        <span class="quest-price">3M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="In Aid of the Myreque">
        <span class="quest-name">In Aid of the Myreque</span>
        <span class="quest-price">13M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="In Search of Knowledge">
        <span class="quest-name">In Search of Knowledge</span>
        <span class="quest-price">25M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="In Search of the Myreque">
        <span class="quest-name">In Search of the Myreque</span>
        <span class="quest-price">10M</span>
        <input type="checkbox">
      </div>
      <div class="quest-item" data-name="Into the Tombs">undefined<span class="quest-name">Into the Tombs</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Jungle Potion">undefined<span class="quest-name">Jungle Potion</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="King's Ransom">undefined<span class="quest-name">King's Ransom</span>undefined<span class="quest-price">9M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Land of the Goblins">undefined<span class="quest-name">Land of the Goblins</span>undefined<span class="quest-price">15M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Legends' Quest">undefined<span class="quest-name">Legends' Quest</span>undefined<span class="quest-price">16M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Lost City">undefined<span class="quest-name">Lost City</span>undefined<span class="quest-price">17M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="The Lost Tribe">undefined<span class="quest-name">The Lost Tribe</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Lunar Diplomacy">undefined<span class="quest-name">Lunar Diplomacy</span>undefined<span class="quest-price">16M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Mage Arena II">undefined<span class="quest-name">Mage Arena II</span>undefined<span class="quest-price">25M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Making Friends with My Arm">undefined<span class="quest-name">Making Friends with My Arm</span>undefined<span class="quest-price">8M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Making History">undefined<span class="quest-name">Making History</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Merlin's Crystal">undefined<span class="quest-name">Merlin's Crystal</span>undefined<span class="quest-price">6M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Misthalin Mystery">undefined<span class="quest-name">Misthalin Mystery</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Monk's Friend">undefined<span class="quest-name">Monk's Friend</span>undefined<span class="quest-price">6M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Monkey Madness I">undefined<span class="quest-name">Monkey Madness I</span>undefined<span class="quest-price">40M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Monkey Madness II">undefined<span class="quest-name">Monkey Madness II</span>undefined<span class="quest-price">50M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Mountain Daughter">undefined<span class="quest-name">Mountain Daughter</span>undefined<span class="quest-price">8M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Mourning's End Part I">undefined<span class="quest-name">Mourning's End Part I</span>undefined<span class="quest-price">10M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Mourning's End Part II">undefined<span class="quest-name">Mourning's End Part II</span>undefined<span class="quest-price">36M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Murder Mystery">undefined<span class="quest-name">Murder Mystery</span>undefined<span class="quest-price">6M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="My Arm's Big Adventure">undefined<span class="quest-name">My Arm's Big Adventure</span>undefined<span class="quest-price">9M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Nature Spirit">undefined<span class="quest-name">Nature Spirit</span>undefined<span class="quest-price">6M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Observatory Quest">undefined<span class="quest-name">Observatory Quest</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Olaf's Quest">undefined<span class="quest-name">Olaf's Quest</span>undefined<span class="quest-price">8M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="One Small Favour">undefined<span class="quest-name">One Small Favour</span>undefined<span class="quest-price">13M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="The Path of Glouphrie">undefined<span class="quest-name">The Path of Glouphrie</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Pirate's Treasure">undefined<span class="quest-name">Pirate's Treasure</span>undefined<span class="quest-price">5M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Plague City">undefined<span class="quest-name">Plague City</span>undefined<span class="quest-price">6M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Priest in Peril">undefined<span class="quest-name">Priest in Peril</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Prince Ali Rescue">undefined<span class="quest-name">Prince Ali Rescue</span>undefined<span class="quest-price">6M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="The Queen of Thieves">undefined<span class="quest-name">The Queen of Thieves</span>undefined<span class="quest-price">7M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Rag and Bone Man I">undefined<span class="quest-name">Rag and Bone Man I</span>undefined<span class="quest-price">9M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Rag and Bone Man II">undefined<span class="quest-name">Rag and Bone Man II</span>undefined<span class="quest-price">32M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Ratcatchers">undefined<span class="quest-name">Ratcatchers</span>undefined<span class="quest-price">26M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="Recipe for Disaster">undefined<span class="quest-name">Recipe for Disaster</span>undefined<span class="quest-price">29M</span>undefined<input type="checkbox">undefined</div>undefined<div class="quest-item" data-name="WGS">undefined<span class="quest-name">WGS</span>undefined<span class="quest-price">60M</span>undefined<input type="checkbox">undefined</div>undefined<button class="submit-btn" onclick="buyQuests()">Buy Now</button>undefined
    </section>undefined<script>
      // ✅ Quest Search Functionality
      document.getElementById('quest-search-input').addEventListener('input', function() {
        const query = this.value.toLowerCase();
        const quests = document.querySelectorAll('.quest-item');
        quests.forEach(quest => {
          const name = quest.dataset.name.toLowerCase();
          if (name.includes(query)) {
            quest.style.display = 'flex';
          } else {
            quest.style.display = 'none';
          }
        });
      });
      // ✅ Buy Quests Functionality with Live Chat Integration and Total Price
      function buyQuests() {
        const selectedQuests = {};
        let totalPrice = 0; // Initialize total price
        document.querySelectorAll('.quest-item input[type="checkbox"]:checked').forEach(checkbox => {
          const questItem = checkbox.closest('.quest-item');
          const questName = questItem.querySelector('.quest-name').textContent.trim();
          const questPriceText = questItem.querySelector('.quest-price').textContent.trim();
          const questPrice = parseFloat(questPriceText.replace('M', ''));
          if (!selectedQuests[questName]) {
            selectedQuests[questName] = `${questPrice}M`;
            totalPrice += questPrice; // Add price to total
          }
        });
        // ✅ Build the final message
        if (Object.keys(selectedQuests).length > 0) {
          let message = `I would like to purchase the following quests:\n\n`;
          for (const [quest, price] of Object.entries(selectedQuests)) {
            message += `${quest}: ${price}\n`;
          }
          message += `\nTotal Price: ${totalPrice.toFixed(2)}M`;
          // ✅ Send Message via Smartsupp Live Chat
          if (window.smartsupp) {
            smartsupp('chat:open');
            smartsupp('chat:message', message);
            console.log('✅ Message sent to Live Chat:', message);
          } else {
            console.error('❌ Smartsupp not initialized.');
            alert('LiveChat is not ready. Please try again later.');
          }
        } else {
          alert('Please select at least one quest before proceeding.');
        }
      }
    </script>undefined<br>undefined<br>undefined<br>undefined<footer class="footer">undefined<div class="footer-container">undefined
        <!-- Left Section: Logo and Description -->undefined<div class="footer-section footer-left">undefined<img src="website_logo_transparent.png" alt="OSRS Services Logo">undefined<p> Providing efficient and affordable OSRS Services, we have completed over $250,000 in orders across numerous sites. Speak to Live Chat if you need any support. </p>undefined</div>undefined
        <!-- Middle Section: Help and Links -->undefined<div class="footer-section footer-middle">undefined<h3>Quick Links</h3>undefined<ul>undefined<li>undefined<a href="./contact.html"></a>undefined</li>undefined<li>undefined<a href="./blog.html"></a>undefined</li>undefined<li>undefined<a href="./privacy.html"></a>undefined</li>undefined<li>undefined<a href="https://discord.com/invite/osrspvmer">Discord</a>undefined</li>undefined<li>undefined<a href="https://www.eldorado.gg/users/OSRSServicesPvM?tab=Feedback">Eldorado</a>undefined</li>undefined<li>undefined<a href="https://www.sythe.org/threads/osrs-services-vouch-thread/#post-11617726">Sythe</a>undefined</li>undefined<li>undefined<a href="https://uk.trustpilot.com/review/osrs-pvm.com">Trustpilot</a>undefined</li>undefined</ul>undefined</div>undefined<div class="footer-section footer-right">undefined<h3>Our Commitment</h3>undefined<p> Dedicated to offering secure and efficient OSRS services. Our team operates with professionalism and transparency, ensuring customer satisfaction. </p>undefined<h4>Join our Discord undefined<a href="https://discord.com/invite/osrspvmer">undefined<img src="Discord.png" alt="Discord">undefined</a>undefined</h4>undefined</div>undefined
      </div>undefined<div class="footer-bottom">undefined<p>© 2025 OSRS Services. All rights reserved.</p>undefined</div>undefined</footer>undefined<script src="chat.js"></script>undefined<script src="script.js"></script>undefined
  </body>undefined
</html>