@font-face {
  font-family: 'Droid Arabic Naskh';
  src: url("../fonts/DroidNaskh-Regular.woff2") format("woff2"),
       url("../fonts/DroidNaskh-Regular.woff") format("woff"),
       url("../fonts/DroidNaskh-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Droid Arabic Naskh';
  src: url('../fonts/DroidNaskh-Bold.woff2') format('woff2'),
       url('../fonts/DroidNaskh-Bold.woff') format('woff'),
       url('../fonts/DroidNaskh-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: bold;
    }

@font-face {
  font-family: 'Droid Arabic Kufi';
  src: url('../fonts/DroidKufi-Bold.woff2') format('woff2'),
       url('../fonts/DroidKufi-Bold.woff') format('woff'),
       url('../fonts/DroidKufi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: bold;
}
  
@font-face {
  font-family: 'Droid Arabic Kufi';
  src: url('../fonts/DroidKufi-Regular.woff2') format('woff2'),
       url('../fonts/DroidKufi-Regular.woff') format('woff'),
       url('../fonts/DroidKufi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}



/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

/* Body Styling */
body {    
	font-family: 'Droid Arabic Naskh';	
    background-color: #f9f9f9; /* Very light grey background */
    color: #333333; /* Dark grey text for contrast */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.basmala {
    display: flex;
    justify-content: center; /* Centers the image horizontally */
    max-width: 350px;
    width: 100%;
    margin: 0 auto; /* Adds space below the image */
}

/* Container Styling */
.container {
    max-width: 800px;
    width: 100%;
    background: #ffffff; /* White container background */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 5px auto 20px auto;
	position: relative; /* This allows absolute positioning inside */
}
.language-switcher {	
    position: absolute;
    top: 10px;
    right: 10px;
}

.lang-link {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: #0056b3;
}


/* Header Styling */
.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
	font-family: 'Droid Arabic Kufi';	
    font-size: 1.5rem;
    color: #333333; 
    margin-bottom: 10px;
    text-align: center;
}

h2 {
  font-family: 'Droid Arabic Kufi';
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333333; 
}

.pricing h2 {  
  margin-top: 30px;  
}

.header .subtitle {
	
    font-size: 1rem;
    color: #666666; 
}

p {
  font-size: 1rem;
  line-height:1.9rem;
  margin-bottom: 20px;
  color: #333333; 
}

ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

ul li {
  margin-bottom: 5px;
  color: #333333; /* Dark grey text for contrast */
}

a {
  color: #1abc9c; /* Vibrant link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #16a085; /* Darker shade on hover */
}

/* Form Styling */
.form-label {
	font-family: 'Droid Arabic Kufi';
	font-weight: 700;
    display: block;
    font-size: 1.2rem;    
    margin-bottom: 10px;
    color: #333333; 
	text-align: right;	
}

input {
	font-family: 'Droid Arabic Naskh';
	line-height:1.5rem;
    width: 100%;    
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    transition: border-color 0.3s ease;
    direction: rtl; /* Ensure RTL support for Arabic text */
    background-color: #ffffff; /* White background for textarea */
    color: #333333; /* Dark grey text for contrast */
}

textarea {
	font-family: 'Droid Arabic Naskh';
	line-height:1.5rem;
    width: 100%;
    padding: 15px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    transition: border-color 0.3s ease;
    direction: rtl; /* Ensure RTL support for Arabic text */
    background-color: #ffffff; /* White background for textarea */
    color: #333333; /* Dark grey text for contrast */
}

textarea:focus {
    border-color: #3498db;
    outline: none;
}

.cta-button {
	font-family: 'Droid Arabic Kufi';
    background-color: #13506a; /* Darker, professional blue-green tone */
    color: #ffffff; /* White text for contrast */
    display: inline-block;
    padding: 5px 20px;
    font-size: 1rem;
    width: 100%;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-left: auto; /* Aligns to the right */
    margin-right: 0; /* Removes any margin on the right */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn.cta-button {
	font-family: 'Droid Arabic Kufi';
    margin-top: 6px;
    width: 40%; /* Keeps the width 50% */
    margin-right: auto; /* Centers the button horizontally */
    display: block; /* Makes it a block-level element to allow margin auto centering */
}

.cta-button:hover {
  background-color: #0f3f54; /* Slightly darker shade on hover */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

/* Output Container Styling */
.output-container {
    margin-top: 0px;
}

.output-title {
    font-size: 1.2rem;
    color: #333333; /* Dark grey text for contrast */
    margin-bottom: 5px;
}

.output-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between; /* Align buttons evenly */
}

.output-actions .btn {
	font-family: 'Droid Arabic Kufi';
    flex: 1; /* Make buttons take equal width */
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
/* Encoding Selection Styling */
.encoding-selection {
    margin-top: 20px;
}

.encoding-selection .form-label {
    font-size: 1rem;
    font-weight: 500;
    color: #333333; /* Dark grey text for contrast */
    margin-bottom: 10px;
}

.form-select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff; /* White background for select */
    color: #333333; /* Dark grey text for contrast */
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    border-color: #3498db;
    outline: none;
}

/* Side-by-Side Layout for Encoding Selection and Convert Button */
.encoding-selection-wrapper {
    display: flex;
    gap: 10px; /* Space between the dropdown and button */
    align-items: flex-end; /* Align items at the bottom */
    margin-top: 20px;
}

.encoding-selection-wrapper .encoding-selection {
    flex: 1; /* Take remaining space */
}

.encoding-selection-wrapper #newConvertBtn {
    flex: 0 0 auto; /* Do not grow, do not shrink */
    width: auto; /* Allow button to size based on content */
    padding: 5px 20px; /* Adjust padding for better proportions */
    margin-top: 0; /* Remove top margin to align properly */
}
/* Notification Styling */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: #fff; /* White text */
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 500;
    z-index: 1000; /* Ensure it appears above other elements */
    animation: fadeInOut 0.3s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.pricing {
  background-color: #f0f0f0; /* Light grey background for emphasis */
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;  
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Bulk Conversion CTA Section */
.bulk-conversion-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f0f0f0; /* Light grey background */
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 8px;
    text-align: center;
}

.bulk-conversion-cta h2 {
	font-family: 'Droid Arabic Kufi';
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333333; /* Dark grey text for contrast */
}

.bulk-conversion-cta p {
    font-size: 1rem;
    color: #666666; /* Medium grey for subtitles */
    margin-bottom: 1.5rem;
}

.bulk-conversion-cta .btn {
	font-family: 'Droid Arabic Kufi';
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #28a745; /* Green button (unchanged) */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.bulk-conversion-cta .btn:hover {
    background-color: #218838; /* Darker green on hover (unchanged) */
}

.left-btn.btn {
	font-family: 'Droid Arabic Kufi';
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #28a745; /* Green button (unchanged) */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.left-btn.btn:hover {
    background-color: #218838; /* Darker green on hover (unchanged) */
}
/* Useful Links Section */
.useful-links {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: right;
}

.useful-links h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 0;
  font-weight: 600;
}

.useful-links p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.useful-links ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.useful-links ul li {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.useful-links ul li a {
  font-family:"Droid Arabic Kufi";
  font-weight: 500;
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.useful-links ul li a:hover {
  color: #2980b9;
}

/* Contact Form Styling */
.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333333; /* Dark grey text for contrast */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff; /* White background for inputs */
    color: #333333; /* Dark grey text for contrast */
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

/* Contact Information Styling */
.contact-info {
    margin-top: 40px;
    padding: 20px;    
    border-radius: 8px;
    background-color: #f0f0f0; /* Light grey background */
}

.contact-info h2 {
	font-family: 'Droid Arabic Kufi';
    font-size: 1.3rem;
    color: #333333; /* Dark grey text for contrast */
    margin-bottom: 15px;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #666666; /* Medium grey for text */
}

.contact-info ul li strong {
    color: #333333; /* Dark grey for strong text */
}

.contact-info ul li a {
    color: #1abc9c; /* Vibrant link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info ul li a:hover {
    color: #16a085; /* Darker shade on hover */
}

.first--name {
  display: none;
  visibility: hidden;
}

* Sample Images Section Styling */
.sample-image {
  margin-bottom: 30px;
  text-align: center;
}

.sample-image h3 {
  font-family:"Droid Arabic Kufi";
  font-style:bold;
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 10px;
}

.sample-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.sample-image p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}
/* Image Comparison Section */
.image-comparison {
  margin-top: 40px;
  text-align: center;
}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customization-image {
  width: 350px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.image-label {
  margin-top: 5px; /* Small top margin for spacing between image and label */
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
  padding: 0; /* Ensure no padding */
  margin-bottom: 0; /* Ensure no bottom margin */
}

.arrow {
  font-size: 40px;
  font-weight: bold;
  color: #333;
}

@media (max-width: 580px) {
    body {
        padding: 0px;
    }
	.basmala {    
    width: 80%;
    margin: 0 auto;
	padding: 10px;
}

    .container {
        padding: 15px;
        margin: 0px;
    }
h1 {font-size:1.4rem;}
h2 {font-size:1.2rem;}
    textarea {
        font-size: 0.9rem;
    }
	.language-switcher {	    
    top: 1px;    
	}
	.sample-image h3  {
	font-size: 1.2rem;  
	}
    .btn.cta-button {
    width: 100%;     
	}

    .output-actions {
        flex-direction: column; /* Stack buttons vertically on small screens */
        gap: 10px;
    }

    .output-actions .btn {
        flex: unset; /* Remove equal width constraint */
        width: 100%; /* Full width buttons */
    }
    .bulk-conversion-cta {
        padding: .5rem;
    }
		.image-container {
    flex-direction: column;
    gap: 10px;
  }

  .arrow {
    transform: rotate(-90deg);
  }
}