body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* General reusable styles */
.techfont {
  font-family: 'Russo One', sans-serif !important;
  font-size: 1.5em !important;
  margin-bottom: 10px !important;
}

.centerstage {
  margin-left: auto !important;
  margin-right: auto !important;
}

.posttitle {
  font-family: 'Russo One', sans-serif !important;
  font-size: 3em !important;
  margin-bottom: 10px !important;
  text-align: center !important;
}
.btn-xs {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.750rem !important;
}

.section-background {
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.section-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/img/bg.jpg');
  background-size: cover;
  background-position: center;
  animation: zoomColorChange 15s ease-in-out infinite;  
  will-change: transform, filter;
}

/* Login content styling */
.login-content {
  position: relative !important;
  z-index: 1 !important;
  padding: 20px !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
}

/* Translucent card background with adjusted size */
.card {
  background-color: rgba(255, 255, 255, 0.4) !important; /* 50% opacity white background */
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important; /* Blur effect for translucency */
  border-radius: 6px !important; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important; /* Subtle shadow for depth */
  padding: 5px !important; /* Inner spacing */
  max-width: 500px !important; /* Adjust card width for large screens */
  margin: 10px auto !important; /* Center the card */
}

/* Navbar logo styling */
.navbar-logo-ppa {  
  width:75px;
}

/* Navbar logo styling */
.navbar-logo-wapcos {  
  width:200px;
}

/* General navbar alignment */
.navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  /*padding: 15px 10px !important;*/
  padding: 5px 10px !important;
}

.navbar-center-title {
  pointer-events: none; /* Let clicks pass through if needed */
  z-index: 2;
}

/* Navbar styling */
.navbar {
  background: #ffffff70 !important; /* Transparent navbar background */
}

/* Section background styling */
.section-background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: scroll;
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ) !important; /* Semi-transparent background */
  z-index: -1; /* Place it below the navbar */
}
/* CSS moved from base.html */

.text-primary {
  color: #2e3192 !important;
}
.border-radius-50{
  border-radius: 50%;
  line-height: 120%;
  background: rgba(255,255,255,0.25);
}

.section-background::before { 
  /*ADD CSS*/  
  animation: zoomInOut 15s ease-in-out infinite !important;      
}

/* Add spacing between headings */
.project-title + .state-title {
  margin-top: 10px !important;
}

.state-title + .mis-title {
  margin-top: 8px !important;
}

/* Styling for restored links */
.form-label-description a {
  color: #007bff !important; /* Link color */
  text-decoration: none !important;
  font-size: 0.9rem !important;
}

.form-label-description a:hover {
  text-decoration: underline !important;
}

.text-center a.link-primary {
  color: #007bff !important;
  font-size: 1rem !important;
  text-decoration: none !important;
}

.text-center a.link-primary:hover {
  text-decoration: underline !important;
}

.footer-attribution {
  position: fixed;
  bottom: 12px;
  right: 20px;
  font-size: 0.8rem;
  color: #333;
  background-color: rgba(255, 255, 255, 0.65);
  padding: 6px 14px;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  z-index: 10;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  max-width: 90%;
  text-align: center;
  line-height: 1.4;
}

img.captcha {  
  border-radius: 4px;
  margin-right: 10px;
  height: 36px;
  border: 1px solid #999999;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }  
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 15px !important;
  }
  .navbar .nav-link {
    font-size: 0.9rem !important;
  }
}

/* Adjust heading size for smaller screens */
@media (max-width: 768px) {
  .project-title {
    font-size: 1.5rem !important;
  }
  .state-title {
    font-size: 1.25rem !important;
  }
  .mis-title {
    font-size: 1rem !important;
  }
  .card {
    padding: 15px !important; /* Adjust padding for smaller screens */
  }
}

/* Keyframe animations for background */
@keyframes zoomColorChange {
  0% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.1);
    filter: hue-rotate(180deg);
  }
  100% {
    transform: scale(1);
    filter: hue-rotate(360deg);
  }
}

/* Media Query: Responsive adjustment for tablets and mobile */
@media (max-width: 768px) {
  .footer-attribution {
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 8px;
  }
  .logo-ppa h1.d-inline-block.align-middle {
    display: none !important;
  } 
}

@media (max-width: 480px) {
  .footer-attribution {
    font-size: 0.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;    
  }  
}

