//* General Styles */
html, body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;

}

body {
  display: flex;
  flex-direction: column;
  background-color: #F5F5DC;
  color: #708090;
  font-family: 'Vazir', sans-serif;
  margin: 0;
  padding-top: 46px;
}

/* Banner Styles */
.banner {
  background-image: url("../images/ezgif.com-animated-gif-maker.gif");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 1050;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
}

.banner h1 {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  text-shadow: 2px 2px 4px #333333, -2px -2px 8px #333333;
  font-family: 'B Titr Bold', sans-serif;
  font-size: 72px;
  text-align: center;
  width: 100%;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to left, #333333 5%, #333333 15%, #008080 25%, #008080 100%);
  min-height: 70px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%; /* Position below navbar */
    left: 0;
    right: 0;
    background: linear-gradient(
      to left,
      #333333 5%,
      #333333 15%,
      #008080 25%,
      #008080 100%
    );
    backdrop-filter: blur(5px);
    z-index: 1059; /* Just below navbar */
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* When navbar becomes sticky */
  .navbar.sticky-active .navbar-collapse {
    position: fixed;
    top: 70px; /* Height of navbar */
    animation: slideDown 0.3s ease;
    left: 15px;
  }
  .navbar-nav {
    text-align: center;
  }

  .nav-item {
    margin: 10px 0;
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
  }

  .nav-link:hover,
  .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* Ensure the brand and authentication links have white text */
.navbar-brand,
.auth-links a,
.auth-links button {
  color: #FFFFFF !important;
  font-weight: bold;
}

/* Space between the auth-links */
.auth-links {
  display: flex;
  align-items: center;
  margin-right: 30px;
  gap: 10px;
}

.navbar-nav {
  margin-left: 23%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-item:before {
  content: "";
  position: relative;
  left: -10px;
}


/* Footer Styles */
footer {
  background-color: #333333;
  color: #FFFFFF;
  margin-top: auto;
  padding: 20px 0;
}

footer a {
  color: #008080;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #FFFFFF;
}

h1, h2, h3, h4, h5 {
  color: #008080;
}

/* Gallery Styles */
.gallery-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  overflow: hidden;
  margin-top: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.gallery-slides {
  padding-top: 40px;
  padding-bottom: 0;
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: calc(100% - 40px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.description {
  position: absolute;
  bottom: -40px;
  width: 100%;
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: 'B Titr Bold', sans-serif;
  font-size: 24px;
  text-align: center;
}

.toolbar-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
}

.player-btns {
  display: flex;
  gap: 15px;
  align-items: center;
}

.toolbar-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 4px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.toolbar-btn img {
  width: 12px;
  height: 12px;
  display: block;
}

.player-bullets {
  width: 100%;
}

.bullet-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.bullet-nav li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bullet-nav li.active {
  background: #008080;
  transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 567px) {
  .toolbar-container {
    top: 10px;
  }
  
  .toolbar-btn img {
    width: 12px;
    height: 12px;
  }

  .bullet-nav li {
    width: 8px;
    height: 8px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 15px;
  }

  .description {
    font-size: 18px;
    padding: 10px;
  }
  .gallery-container {
    height: calc(100vh - 120px);
  }
}

@font-face {
  font-family: 'B Titr Bold';
  src: url('/static/fonts/B Titr Bold_0.ttf') format('truetype');
}

@font-face {
  font-family: 'BNazanin';
  src: url('/static/fonts/BNazanin.ttf') format('truetype');
}

@font-face {
  font-family: 'BNaznnBd';
  src: url('/static/fonts/BNaznnBd.ttf') format('truetype');
}

/* General Form Styles */
/* Custom Header Style */
.custom-header {
  background-color: #008080 !important;  /* Card header background color */
  color: black !important;               
  text-shadow: none !important;           
}

/* Fix header text color */
.card-header.custom-header h4 {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ensure form controls have dark text */
.form-control {
  background-color: #ffffff;  
  border: 1px solid #008080;  
  color: black !important;     
  font-size: 1rem;
  padding: 10px;
  font-family: 'Vazir', sans-serif;
}

.form-control:focus {
  border-color: #008080;
  box-shadow: 0 0 5px #008080;
}

.btn-primary {
  background-color: #008080;
  border-color: #008080;
  color: white;
  transition: transform 0.3s ease; /* Only transition the transform property */
}

.btn-primary:hover {
  transform: scale(1.05); /* Increase size by 5% */
  background-color: #008080;
  border-color: #008080;
}

.mb-3 {
  margin-bottom: 20px;
}

/* Adjust for RTL Layout */
[dir="rtl"] .form-control {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .form-label {
  text-align: right;
}