html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Makes sure the body is as tall as the viewport */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevents horizontal scroll globally */
}

/* Main Container: Flexible Height for Sections */
.main-container,
.profile-container,
.login-container {
    display: flex;
    flex-direction: column;
    flex: 1; /* Takes remaining space */
    width: 100%;
    background-image: url('/pics/logo black.png'); /* PNG watermark */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(246, 244, 244, 0.97); /* Soft white overlay */
    background-blend-mode: overlay;
}

/* 📱 Mobile/Tablet Tweaks */
@media (max-width: 768px) {
    .main-container {
        padding: 0 10px; /* Side padding for smaller screens */
        background-size: cover; /* Scale background for better fit */
    }
}


@media (orientation: landscape) and (max-width: 1024px) {
    .hood nav ul {
      flex-direction: row;
      justify-content: space-around;
    }
  
    .main-section1,
    .main-section2,
    .main-section3,
    .main-section4 {
      flex-direction: row !important;
      justify-content: center;
    }
  }
  
  
  .fade {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}
