/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #1e1e1e, #2b2b2b);
    color: #f0f0f0;
    min-height: 100vh;
    line-height: 1.6;
  }
  
  section {
    padding: 3rem 2rem;
    text-align: center;
  }

  section:not(:last-child) {
  border-bottom: 1px solid #333;
}

  
  h1, h2, h3 {
    font-weight: 700;
  }
  
  p {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* Header */
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 20px 5px 5px 5px;
    text-decoration: none; /* Removes underline */
    color: inherit; /* Keeps the existing text color */
  }

  .logo span {
    color: #d94141;
  }

nav {
  display: none;
}

  nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
  }
  
  nav a:hover {
    color: #ffffff;
  }
  
  /* Hero Section */
  .hero {
    padding: 5rem 2rem;
    background: url('/tools/media/house-background-4k.jpg') no-repeat center center/cover;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 1rem auto;
  }
  
  .hero p strong {
    color: #ffffff;
  }
  
  /* Buttons */
  .btn {
    background-color: #d94141;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    width: auto;
    text-align: center;
  }
  
  .btn:hover {
    background-color: #b92f2f;
  }
  
  /* Section Backgrounds */
  .intro, .donate {
    background-color: #2b2b2b;
  }
  
  .intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .intro-img {
    max-width: 100%;
    height: auto;
    border-radius: 40px;
  }
  
  .intro-text {
    text-align: center;
  }
  
  .cta {
    background-image: url('/tools/media/background-4k.jpg');
    background-size: cover;
    background-position: left;
    min-height: 500px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
  }
  
  .cta-text-box {
    background-color: rgba(40, 40, 40, 0.75); /* semi-transparent dark gray */
    padding: 2rem;
    border-radius: 12px;
    max-width: 700px;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .cta-text-box h2,
  .cta-text-box p {
    color: white;
  }
      
  /* Page Headers */
  .page-header {
    background-color: #202020;
    padding: 3rem 2rem;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  /* Modpack List */
  .modpack-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }
  
  .modpack {
    background-color: #333;
    padding: 2rem;
    border-radius: 8px;
  }
  
  .modpack h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
  }
  
  /* Community Section */
  .community a {
    color: #d94141;
    text-decoration: underline;
  }
  
  .donate {
    background-color: #2b2b2b;
    text-align: center;
    padding: 4rem 2rem;
  }

  .donate img {
    height: 200px;
    width: auto;
    border-radius: 20px;
  }
  
  .donate-wrapper {
    max-width: 700px;
    margin: 0 auto;
  }
  
  .donate-icon {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
  }
  
  .donate h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
  }
  
  .donate p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  .donate .btn {
    width: auto;
  }
    
  /* Footer */
  footer {
    background-color: #111;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #2b2b2b;
  }
  
  footer .social-icons {
    margin-bottom: 1rem;
  }
  
  footer .social-icons a {
    margin: 0 10px;
    color: inherit;
    text-decoration: none;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
  }
  
  footer .social-icons a:hover {
        transform: scale(1.2);
  }
  
  footer p {
        font-size: 0.9rem;
        color: #888;
  }
  
  /* Tablet and up */
  @media (min-width: 768px) and (max-width: 1023px) {
    header {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .logo {
      font-size: 2rem;
      margin: 20px 0;
    }

    nav {
      display: none !important;
    }
  
    .hero h1 {
        font-size: 2.5rem;
    }
  
    .btn {
        width: auto;
    }
  }
  
  /* Desktop and up */
    @media (min-width: 1024px) {
    header {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      padding: 0 2rem; /* Add some horizontal spacing */
    }

    .logo {
      margin: 20px;
      font-size: 2rem;
      text-align: left;
    }

    nav {
      display: flex;
      flex-direction: row;
      gap: 1.5rem;
      margin: 20px;
    }

    section {
        padding: 6rem 5rem;
    }

    nav a {
        font-size: 1rem;
    }

    p {
        font-size: 1.2rem;
    }

    .btn {
        transition: all 0.3s ease;
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .btn:hover {
        background-color: #b92f2f;
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(217, 65, 65, 0.4);
    }
  
    .hero {
        padding: 7rem 5rem;
    }

    .intro-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .intro-img {
        max-width: 33%;
        height: auto;
    }
    
    .intro-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100%;
    }
    
    .intro-text p {
        margin-bottom: 1.5rem;
    }

    .cta {
        padding: 6rem 3rem;
    }

    .cta-text-box {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .donate {
        padding: 6rem 3rem;
    }
    
    .donate img {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}
  
/* --- Ad Placeholders Styling --- */
.ad-container .ad-left,
.ad-container .ad-right {
  display: none;
}

.ad-container .ad-bottom {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 9999;
}

/* Ad box inner styling (safe from blockers) */
.ad-box {
  background: #333;
  color: white;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 100px;
  font-size: 14px;
}

/* Adjust taller banners */
.ad-left .ad-box,
.ad-right .ad-box {
  height: 600px;
  line-height: 600px;
}

/* Desktop ONLY: Show side ads at 1200px and above */
@media (min-width: 1200px) {
  .ad-container .ad-left,
  .ad-container .ad-right {
    display: block !important;
    position: fixed;
    top: 100px;
    width: 160px;
    height: 600px;
    z-index: 9999;
  }

  body {
    margin-left: 190px;
    margin-right: 190px;
  }

  .ad-container .ad-left {
    left: 10px;
  }

  .ad-container .ad-right {
    right: 10px;
  }

  .ad-container .ad-bottom {
    display: none;
  }
}


/* Extra bottom padding for mobile to not hide content */
body {
  padding-bottom: 70px;
}
