body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1,
h2,
h3 {
    color: #2c3e50;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.75em;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #2980b9;
}

p {
    margin: 10px 0;
    line-height: 1.6;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.toggle-button {
    float: left;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    display: none;
    /* initially hide the button */
}

.toggle-button:hover {
    background-color: #3498db;
}

.toggle-button:first-child {
    display: block;
    /* display English button initially */
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.25em;
    }
}

/* Right-to-left for Arabic */
html[lang="ar"] .arabic-content {
    direction: rtl;
    text-align: right;
}

/* Left-to-right for English */
html[lang="en"] .english-content {
    direction: ltr;
    text-align: left;
}

/* Align Arabic button to right */
.toggle-container {
    text-align: right;
}