/* ====== Home.css ====== */

/* Background + Layout */
body {
  margin: 0;
  font-family: sans-serif;
  background-image: url(https://img1.wsimg.com/isteam/stock/111882);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  overflow: hidden;
}

/* Navigation Bar */
.TopNavBackground {
  background-color: #333;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.TopNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px;
}

.TopNav a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 24px;
  padding: 6px 8px;
}

.TopNav a:hover {
  background-color: #ddd;
  color: #000;
}

.TopNav a.active {
  background-color: rgb(154, 0, 0);
  color: #fff;
}

.left-nav a {
  margin-right: 30px;
}

/* Main Content Area */
.content {
  margin-top: 120px; /* Leave space for nav */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #f2f2f2;
}

/* Title */
.main-title {
  font-size: 60px;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* Slogan */
.slogan {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* Ad Section */
.home-ad {
  margin: 30px 0;
}

/* Social Icons */
.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.social-link img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.social-link img:hover {
  transform: scale(1.2);
}

/* Fade Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-1,
.fade-in-2,
.fade-in-3,
.fade-in-4,
.fade-in-5,
.fade-in-6,
.fade-in-7 {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-1 { animation-delay: 0s; }
.fade-in-2 { animation-delay: 0.3s; }
.fade-in-3 { animation-delay: 0.6s; }
.fade-in-4 { animation-delay: 0.9s; }
.fade-in-5 { animation-delay: 1.2s; }
.fade-in-6 { animation-delay: 1.5s; }
.fade-in-7 { animation-delay: 1.8s; }

/* Modal Overlays (Signup/Login etc.) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  color: #000;
  padding: 20px;
  width: 300px;
  border-radius: 8px;
  position: relative;
  max-width: 80%;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

.forgot-links {
  margin-top: 10px;
  font-size: 0.9em;
}

.link {
  color: #0066cc;
  cursor: pointer;
  text-decoration: underline;
}
.link:hover {
  text-decoration: none;
}

/* Username Dropdown */
.username-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 10px;
}

.username-display {
  padding: 6px 8px;
  font-size: 18px;
  color: #f2f2f2;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #444;
  border-radius: 4px;
  padding: 10px;
  top: 40px;
  min-width: 120px;
}

.dropdown-content a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: 5px 0;
}

.dropdown-content a:hover {
  text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .TopNav a {
    font-size: 20px;
  }

  .social-link img {
    width: 40px;
    height: 40px;
  }

  .main-title {
    font-size: 40px;
  }

  .slogan {
    font-size: 24px;
  }
}

/* ====== Side Ads ====== */
.side-ad {
  position: fixed;
  top: 140px; /* So it's below the nav bar */
  width: 160px;
  height: 600px;
  z-index: 900;
  display: none; /* Default hide */
}

/* Show only on large screens */
@media (min-width: 1200px) {
  .side-ad {
    display: block;
  }

  .left-side-ad {
    left: calc((100% - 1400px) / 2 - 180px); /* Left of content */
  }

  .right-side-ad {
    right: calc((100% - 1400px) / 2 - 180px); /* Right of content */
  }
}

body, html {
  height: auto;
  overflow-y: auto;
}

.social-media-section {
  margin-top: 70px;
  text-align: center;
}

.social-media-section h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 0px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icons img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
}

.footer-links {
  margin-top: 10px;
  text-align: center;
}

.footer-links a {
  color: blue;
  text-decoration: underline;
  margin: 0 0px;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ddd;
  text-decoration: none;
}
