/* --- Global Styles --- */
* {
  box-sizing: border-box;
}

body {
  padding: 15px;
  margin: 0;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  background-color: whitesmoke;
}

h1 {
  color: #333;
  font-size: clamp(30px, 5vw, 50px);
}

h2 {
  color: #333;
  font-size: clamp(24px, 4vw, 35px);
}

/* --- Navigation --- */
.navbar {
  display: flex;
  flex-wrap: wrap;
  font-size: 20px;
  border-radius: 10px;
  justify-content: flex-start;
  align-items: center;
}

.navbar a {
  color: #333;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

.navbar a:hover {
  background-color: #ddd;
  border-radius: 10px;
}


.main-section, 
.altcontent {
  display: flex;
  flex-direction: row; 
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
}

.altcontent {
  background: linear-gradient(to right, #393939, #0e0e0e 70%);
  color: white;
}

.altcontent h1, .altcontent p {
  color: white;
}

/* Children of sections */
.content, .alt-text {
  flex: 1.5; /* Gives text slightly more room than the image */
}

/* --- Images --- */
.CoverPage, 
.incenseimg {
  flex: 1;
  max-width: 60%; /* Image takes up half the width on desktop */
  height: auto;
  border-radius: 10px;
}



.incenseimg {
  mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* --- THE RESPONSIVE MAGIC --- */
@media (max-width: 768px) {
  .main-section, 
  .altcontent {
    flex-direction: column; /* Stacks image under text */
    text-align: center;
    padding: 20px;
  }

  .CoverPage, 
  .incenseimg {
    max-width: 100%; /* Image takes full width on mobile */
  }

  .altcontent h1, 
  .altcontent p {
    padding-left: 0;
  }

  .incenseimg {
    mask-image: none;
    -webkit-mask-image: none;
  }
}