body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", sans-serif;
  padding-top: 60px;
  margin-top: 50px;
  color: white;
  overflow-x: hidden;
  /* prevent sideways scroll only */
  overflow-y: auto;
  /* allow vertical scroll */
}


.code-section {
  margin-bottom: 30px;
}

.code-section h3 {
  text-align: right;
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 10px;
}

pre code {
  display: block;
  background-color: #1e1e1e;
  color: #dcdcdc;
  padding: 1rem;
  margin: 0;
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  /* allows wrapping on smaller screens */
  word-break: break-word;
}

/* Ensure full gradient coverage even on long pages */
.gradient-background {
  min-height: 100vh;
  background: radial-gradient(circle at center, rgb(24, 88, 142), black);
  color: #f8f9fa;
  padding-bottom: 4rem;
  /* Give space after last section */
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

section,
form,
h1,
h2,
div {
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 3em;
  letter-spacing: -2px;
  margin-bottom: 30px;
  text-align: center;
}

h2 {
  font-size: 1.7em;
  letter-spacing: -1px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: normal;
  color: #999;
}

#logo {
  float: right;
  margin-right: 10px;
  font-size: 1.7em;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1;
  color: #fff;
}

#logo:hover {
  color: #fff;
  text-decoration: none;
}

#allclick {
  direction: rtl;
  font-size: 1.7em;
  text-align: center;
  font-weight: bold;
  line-height: 1.5em;
}

.extra_options {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  direction: rtl;
  gap: 10px;
}

/* Unified styles for all inputs and selects - kept basic for general elements */
input[type="text"],
select {
  height: 60px;
  line-height: 60px;
  font-size: 30px;
  padding: 0 12px;
  /* Basic padding for all inputs/selects */
  vertical-align: middle;
  appearance: auto;
  /* Allow other selects to have native arrows */
  -webkit-appearance: auto;
  -moz-appearance: auto;
  box-sizing: border-box;
}

/* Specific widths for layout */
.bigbox-wide {
  width: 50%;
}

.bigbox-narrow {
  width: 8%;
}

/* --- */
/* Custom Select Box Styling */
/* --- */

/* Style for the wrapper around the select */
.select-wrapper {
  position: relative;
  display: inline-block;
  width: 26%;
  /* This controls the visible width of your custom select box */
  height: 60px;
  /* Match the height of the select box */
  overflow: hidden;
  /* Ensures the arrow doesn't spill out if positioned too far */

  /* Visual styling for the select box itself (border, background, etc.) */
  border: 1px solid #333;
  /* Example border, adjust as needed */
  border-radius: 4px;
  /* Example rounded corners */
  /* Removed background-color here, as .bigger-select will handle it directly now */
}

/* Styles for the select element *inside* the wrapper */
.bigger-select {
  width: 100%;
  /* Make the select element fill its wrapper */
  height: 100%;
  /* Make the select element fill its wrapper */
  color: black;
  /* Text color */
  font-size: 30px;
  /* Explicitly set font-size for this select */
  line-height: 60px;
  /* Ensure line-height matches height for vertical centering */

  /* Make space for the custom arrow on the LEFT, keep original right padding for general spacing */
  padding: 0 12px 0 40px;
  /* 0px top, 12px right, 0px bottom, 40px left (for arrow space) */

  /* CRITICAL: Hide all native appearance features for full control */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  /* Remove default blue/orange focus outline */
  caret-color: transparent;
  /* Hides the blinking text cursor */

  /* --- IMPORTANT FIX HERE: Make the select box itself white --- */
  background-color: #fff;
  /* Directly set background to white */

  cursor: pointer;
  /* Makes it feel like a clickable element */
}

/* Custom arrow using a pseudo-element on the wrapper */
.select-wrapper::after {
  content: '\25BC';
  /* Unicode for a downward-pointing triangle (▼) */
  position: absolute;
  top: 50%;
  /* Vertically center the arrow */
  left: 15px;
  /* Position arrow 15px from the LEFT edge of the wrapper */
  transform: translateY(-50%);
  /* Fine-tune vertical centering of the arrow */
  pointer-events: none;
  /* Allows clicks on the arrow to pass through to the select box */
  color: #555;
  /* Color of your custom arrow */
  font-size: 18px;
  /* Size of your custom arrow */
  line-height: 1;
  /* Prevents additional vertical spacing for the arrow */
}

/* Optional: Style the arrow and wrapper on focus or hover */
.select-wrapper:focus-within {
  /* :focus-within allows styling when children are focused */
  border-color: #80bdff;
  /* Example: Bootstrap-like blue border on focus */
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
  /* Example: Bootstrap-like shadow on focus */
}

.select-wrapper:focus-within::after {
  color: #007bff;
  /* Example: Change arrow color when the select is focused */
}

.btn-yellow {
  background-color: #d7df25ff;
  color: #0d3c61;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-yellow:hover {
  background-color: #ffca2c;
  color: black;
}


/* --- */
/* Other Component Styles */
/* --- */

/* Radio buttons stacked vertically */
.ma2a_option {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 60px;
}

.ma2a_option>div {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.ma2a_option label {
  margin-right: 5px;
  font-size: 1.3rem;
}

.center {
  text-align: center;
}

footer {
  margin-top: 70px;
  padding-top: 5px;
  border-top: 1px solid #eaeaea;
  color: #999;
  direction: rtl;
  position: relative;
  z-index: 2;
}




.navbar-nav .nav-link.nav-custom {
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  color: white;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 6px;
}

.navbar-nav .nav-link.nav-custom:hover,
.navbar-nav .nav-link.nav-custom.active {
  background-color: #d7df25ff;
  color: black;
  font-weight: bold;
}

@media (max-width: 991px) {
  .navbar-nav {
    align-items: flex-start;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
  }
}

body a:not(.nav-link) {
  color: #d7df25ff;
  /* Or the exact yellow you prefer */
  text-decoration: none;
}

body a:not(.nav-link):hover {
  color: #fff200;
  /* A brighter yellow on hover */
  text-decoration: underline;
}

/* .page-top {
  margin-top: 80px;
} */

.custom-footer i {
  font-size: 1.5rem;
  color: #d7df25ff;
  /* matching the yellow in your logo */
  transition: color 0.3s;
}

.custom-footer i:hover {
  color: white;
}

@media (max-width: 576px) {
  .footer-social {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.cta-api-button {
  font-size: 1.4rem;
  color: #0d3c61 !important;
  text-decoration: none !important;
  font-weight: bold;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  background-color: #d7df25ff;
  /* Bootstrap's warning color */
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cta-api-button:hover {
  background-color: #ffca2c;
  /* slightly lighter yellow on hover */
  color: #000 !important;
  text-decoration: none;
}

.banner-wrapper {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

.hostinger-banner {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.copy-success {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  text-align: center;
  color: #28a745;
  font-weight: bold;
  margin-top: 10px;
}

.copy-success.show {
  opacity: 1;
  max-height: 50px;
}

#snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #d7df25ff;
  /* logo yellow color */
  color: black;
  text-align: center;
  border-radius: 8px;
  padding: 14px 20px;
  position: fixed;
  z-index: 9999;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

#snackbar.show {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.input-wrapper {
  position: relative;
  width: 50%;
  /* Match your bigbox-wide width */
  display: inline-block;
  /* Add this to prevent full width */
}

.clearable-input {
  width: 100%;
  /* Make input fill the wrapper */
  padding-right: 40px;
  /* Space for clear button */
}

.clear-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.clear-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.clear-btn:hover {
  color: #333;
}



@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    /* Menu appears under the hamburger (in RTL, it's on the left) */
    width: auto;
    min-width: fit-content;
    background-color: #343a40;
    /* Dark grey tone like your navbar top */
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;

  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav .nav-link {
    padding: 0.4rem 1rem;
    white-space: nowrap;
  }
}

.rtl-pricing-list {
  list-style: disc;
  padding-right: 1.5em;
  direction: rtl;
  text-align: right;
  font-size: 1.1rem;
}

.rtl-pricing-list .note {
  color: #ccc;
  font-size: 0.95rem;
}

@media (max-width: 768px) {

    .extra_options {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  /* Apply 100% width to the select-wrapper on mobile */
  .select-wrapper,
  input[type="text"] {
    /* Keep input[type="text"] here */
    width: 100% !important;
  }

  /* The .bigger-select inside will automatically fill its wrapper */

  /* Ensure the font-size is adjusted on mobile for inputs and the select inside the wrapper */
  input[type="text"],
  .bigger-select {
    /* Apply font-size to the actual select element */
    font-size: 28px;
  }

  .bigbox-wide,
  .bigbox-narrow {
    width: 100% !important;
  }

  .ma2a_option {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: auto;
    gap: 15px;
  }

  .ma2a_option>div {
    margin-bottom: 0;
  }

  .ma2a_option label {
    font-size: 1.2rem;
  }

  #input_prefix,
  #input_postfix {
    text-align: right;
  }

  .btn {
    width: 100%;
    font-size: 1.2rem;
  }

  #allclick {
    font-size: 1.4rem;
    padding: 10px;
  }

  footer {
    position: relative;
    z-index: 10;
  }
  
  body.homepage h1.title {
    font-size: 1.8em;
    /* line-height: 1.3em; */
    /* margin-top: 2px; */
    margin-bottom: 20px;
  }

  

  .input-wrapper {
    width: 100% !important;
  }
}