* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  overflow-x: hidden; /* لمنع التمرير الأفقي */
}
html, body {
  height: 100%;
  overflow-y: hidden;
}


#background-container {
  position: absolute;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#background {
  position: relative;
  margin: 0;
  height: 50vh;
  max-width: none;
  transform: translate(0, 0) scale(1);
  transition: transform 0.1s ease;
}

/* Control Box Styling */
#controls {
  position: fixed;
  bottom: -150px; /* Hidden by default, positioned outside the screen */
  left: 50%;
  transform: translateX(-50%); /* To center the control box horizontally */
  width: 100%; /* Adjust the width */
  background: rgba(0, 0, 0, 0.7);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: bottom 0.3s ease;
  text-align: center; /* Centering the text inside the control box */
}

#controls button {
  background: #444;
  color: white;
  border: none;
  padding: 10px;
  margin: 10px;
  border-radius: 50%;
  width: 50px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#controls button:hover {
  background: #666;
}

#controls button i {
  margin: 0;
}

#controls .subscription-section {
  margin-top: 20px;
  text-align: center;
}

#controls .subscription-section h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

#controls .subscription-section p {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
}

#controls .subscription-section button {
  padding: 10px 20px;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#controls .subscription-section button:hover {
  background: #e65c00;
}

/* Hover effect to show controls */
body:hover #controls {
  bottom: 0; /* Show the control box when the user hovers over the body */
}



#subscription-section {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  text-align: center;
}

#subscription-section h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

#subscription-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

#subscription-section button {
  padding: 10px 20px;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#subscription-section button:hover {
  background: #e65c00;
}



/* Pop-up Styles */
.popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Dark background with opacity */
  padding: 20px;
}

.popup-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 60%; /* Adjust width as needed */
  max-width: 700px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

#closePopup {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #aaa;
  cursor: pointer;
}

#closePopup:hover {
  color: #000;
}

h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Form Fields Styling */
form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

label {
  margin-top: 10px;
  font-size: 16px;
  color: #555;
}

input[type="file"] {
  margin-top: 5px;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  max-width: 300px;
}

input[type="file"]:hover {
  border-color: #4CAF50;
}

/* Submit Button */
button[type="submit"] {
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #4CAF50;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}





/* Pop-up Styles */
/* Pop-up Styles */
.popup {
  display: none; 
  position: fixed;
  z-index: 50; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.popup-content {
  background-color: #fff;
  margin: 10% auto;
  margin-top: 10% !important;
  padding: 10px; 
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 30%; 
  max-width: 400px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.3s ease;
  height: auto; 
  max-height: 450px;
  overflow-y: auto; 
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

#closePopup {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
}

#closePopup:hover {
  color: #000;
}

h2 {
  color: #333;
  font-size: 18px; 
  margin-bottom: 10px; 
}

/* Form Fields Styling */
form {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

label {
  margin-top: 8px;
  font-size: 12px; 
  color: #555;
}

input[type="file"] {
  margin-top: 5px;
  padding: 5px; 
  font-size: 12px; 
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  max-width: 250px; 
}

input[type="file"]:hover {
  border-color: #4CAF50;
}

/* Submit Button */
button[type="submit"] {
  margin-top: 10px;
  padding: 8px 15px; /* Reduced padding */
  background-color: #ff6700;
  color: white;
  font-size: 14px; /* Smaller font size */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #ff6700;
}


.main-nav {
  background-color: #000 !important;  
}


.main-nav .inner-nav ul li a {
  color: #fff !important; 
}


.main-nav .inner-nav ul li a:hover {
  color: #ff9900 !important;  
}

#background-container {
  position: relative; 
  width: 100%;
  height: 100vh; 
}

#background {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

.subscribe-section {
  position: absolute; 
  top: 15%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  text-align: center; 
  z-index: 10; 
}

#subscribeButton {
  font-size: 15px;
  padding: 12px 35px 14px;
  background-color: white;
  color: #111111  ;
  border: none;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10; 
}

#subscribeButton:hover {
  background-color: grey;
}




#subscribeButton {
  font-size: 15px;
  padding: 12px 35px 14px;
  background-color: white;
  color: #111111  ;
  border: none;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10; 
}

#subscribeButton:hover {
  background-color: grey;
}





/* Media Query for responsiveness */
@media (max-width: 768px) {
  .subscribe-section {
      margin-top: 50px;
  }

  #subscribeButton {
      width: 100%;
      font-size: 16px;
  }

  #popup .popup-content {
      width: 90%;
      padding: 15px;
  }

  #popup h2 {
      font-size: 20px;
  }

  #popup form button {
      font-size: 14px;
  }
}
  
/* Media Query for responsiveness */
@media (max-width: 768px) {
  .subscribe-section {
      margin-top: 50px;
  }

  #subscribeButton {
      width: 100%;
      font-size: 16px;
  }

  #popup .popup-content {
      width: 90%;
      padding: 15px;
  }

  #popup h2 {
      font-size: 20px;
  }

  #popup form button {
      font-size: 14px;
  }
}


body {
  padding-bottom: 50px; /* تأكد من وجود مساحة أسفل الصفحة للفوتر */
}
#footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background-color: #222;
  color: white;
  text-align: center;
}
