<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>شروحات</title>
    <style>
        /* Reset and global styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background-color: #2c3e50;
            color: #333;
            line-height: 1.6;
        }

        /* Header */
        header {
            background-color: #2c3e50;
            color: #fff;
            text-align: center;
            padding: 30px 0;
        }

        header h1 {
            font-size: 3em;
            margin-bottom: 10px;
        }

        header p {
            font-size: 1.2em;
        }

        /* Main Content */
        .content {
            position: relative;
            margin: 50px auto;
            max-width: 300px;
            width: 100%;
            background-color: #fff;
            padding: 20px 30px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .content p {
            font-size: 1.2em;
            color: #7f8c8d;
            margin-bottom: 15px;
        }

        a {
            color: #27ae60;
            font-size: 1.2em;
            text-decoration: underline;
            cursor: pointer;
        }

        /* Footer */
        footer {
            background-color: #2c3e50;
            color: #fff;
            text-align: center;
            padding: 15px;
        }

        footer p {
            font-size: 1.1em;
        }

        /* Password Modal */
        .password-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            text-align: center;
            width: 400px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        input[type="password"] {
            width: 80%;
            padding: 10px;
            font-size: 16px;
            border: 2px solid #ccc;
            border-radius: 5px;
            margin-bottom: 15px;
        }

        button {
            padding: 10px 20px;
            background-color: #27ae60;
            color: #fff;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #2ecc71;
        }

        .error-message {
            color: red;
            margin-top: 10px;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
            cursor: pointer;
        }

        .contact-us {
            margin-top: 20px;
            text-align: center;
        }

        .contact-us h3 {
            font-size: 1.5em;
            color: #333;
            margin-bottom: 15px;
            text-align: center;
        }

        .contact-us button {
            display: block;
            width: 100%;
            padding: 10px;
            background-color: #27ae60;
            color: #fff;
            font-size: 1em;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .contact-us button:hover {
            background-color: #2ecc71;
        }
    </style>
</head>
<body>

<header>
    <h1>الصف الرابع الابتدائي</h1>
    <p>الاختبار النهائي، شروحات، تمارين</p>
</header>



<div class="content">
    <p>اكتشف المزيد</p>
    <a onclick="showPasswordModal()">اشترك معنا</a>

    <!-- قسم تواصل معنا -->
    <div class="contact-us">
        <h3>تواصل معنا</h3>
        <!-- زر تواصل عبر واتساب مع رسالة ترحيبية -->
        <button onclick="window.open('https://wa.me/966591438889?text=مرحبًا%20بك!%20كيف%20يمكننا%20مساعدتك؟', '_blank')">
            تواصل عبر واتساب
        </button>
    </div>
</div>



<footer>
    <p>&copy; 2025 All Rights Reserved.</p>
</footer>

<div class="password-modal" id="passwordModal">
    <div class="modal-content">
        <span class="close-btn" onclick="closePasswordModal()">&times;</span>
        <h2>Enter Password</h2>
        <input type="password" id="passwordInput" placeholder="Enter password">
        <button onclick="checkPassword()">Submit</button>
        <p class="error-message" id="error-message"></p>
    </div>
</div>



<script>
    function showPasswordModal() {
        document.getElementById('passwordModal').style.display = 'flex';
    }

    function closePasswordModal() {
        document.getElementById('passwordModal').style.display = 'none';
    }

    function checkPassword() {
        const password = document.getElementById('passwordInput').value;
        const correctPassword = "s123321";
        const errorMessage = document.getElementById('error-message');

        if (password === correctPassword) {
            window.location.href = 'test.html';
        } else {
            errorMessage.textContent = "كلمة المرور غير صحيحة. حاول مرة أخرى.";
        }
    }
</script>




</body>
</html>
