html {
  scroll-behavior: smooth;
}

.header-section {
  direction: rtl;
  text-align: right;
  font-family: 'Segoe UI', sans-serif;
  background-color: transparent ;
  padding: 2em;
  border-radius: 8px;
  max-width: 800px;
  margin: auto;
}

.header-section h3 {
  /* color: #2c3e50; */
  font-size: 2em;
  margin-bottom: 0.5em;
}

.header-section .lead {
  font-size: 1.1em;
  /* color: #34495e; */
  margin-bottom: 1em;
}

.package-list {
  list-style: none;
  padding: 0;
}

.package-list li {
  background-color: #ecf0f1;
  margin: 0.5em 0;
  padding: 0.75em;
  border-radius: 5px;
}

.call-to-action {
  font-weight: 400;
  color: #828282;
  margin-top: 1.5em;
}

.card-title{
    font-size: 1.75rem;
}
.list-unstyled{
    font-size: 1rem;
}

.storebuttons{
    margin: 1rem 0 5rem 0;
}

.peckdiv{
  margin-top: 2.5rem;
}

#carouselimg{
    padding: 0 10% 5rem;
}

.formbtn{
  width: 50%;
}

@media (max-width: 767px) {
  #carouselimg{
      padding: 0;
  }

  .storebuttons{
      margin: 4rem 0 5rem 0;
  }

  .storebuttons a{ 
      display: flex;
      align-items: center;
      justify-content: center;
      width: 80%;    
  }

  .peckdiv{
    width: 80%; 
  }

  .formbtn{
    width: auto;
  }

}

.modal {
  display: none; /* stays hidden on page load */
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex; /* shows when modal is activated */
}

.modal-content {
  background-color: #fff;
  padding: 25px 30px;
  width: 90%;
  max-width: 420px; 
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-dialog {
  overflow-y: initial !important;
}

.modal-body {
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.2s ease;
}
.close:hover {
  color: #00538b;
}

#li_url{
  font-size: small;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (prefers-color-scheme: dark) {
  .formclass {
    background-color: #212529;  /* Equivalent to Bootstrap bg-dark */
    color: #f8f9fa;             /* text-light */
  }
  .formdiv{
    background-color: #212529;  /* Equivalent to Bootstrap bg-dark */
    color: #f8f9fa;             /* text-light */
  }
  .darkcarddiv{
    border-color: #555555;
  }
  .darkcarddiv .card-header{
    background-color: transparent !important;
  }
}

@media (prefers-color-scheme: light) {
  .formclass {
    background-color: #f8f9fa;  /* bg-light */
    color: #212529;             /* text-dark */
  }
  .formdiv{
    background-color: #f8f9fa;  /* bg-light */
    color: #212529;             /* text-dark */
  }
  .darkcarddiv{
    border-color: #222222;
  }
}
