/* make every element (and form controls) use border-box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ensure our inputs and textarea never overflow */
#lovenote-form input,
#lovenote-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: inherit;  /* inherit the border-box */
}



body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: url('../images/iStock-1496130767.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* soft glass overlay for cohesion with other pages */
.container::before{
  content: "";
  position: absolute;
  inset: -28px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}

.container > *{
  position: relative;
  z-index: 1;
}
header {
  position: relative;
  background-color: #ffe4e1;
  height: 40px;          /* Fixed height that fits the back button */
  border-bottom: 1px solid #ddd;
  /* Remove extra padding so there's no extra thickness */
  padding: 0;            
}    

/* Back button now as an image with bubble text */
/* Default (Desktop) */
.back-button {
position: absolute;
left: 20px;
top: 50%;               /* Center vertically */
transform: translateY(-50%);  /* Shift upwards by 50% of its own height */
cursor: pointer;
width: 80px;            /* Adjust if you want it smaller/bigger */
}
/* Container for article and ad */
.container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  padding: 28px;
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
  align-items: start;
}
/* Article container styling similar to gossip homepage */
.article-container {
  background: #ffe4e1;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.subtitle {
  font-size: 0.9em;
  color: #333;
  margin-top: -10px;
  margin-bottom: 20px;
  font-style: italic;
}    
.article-container h1 {
  margin-bottom: 20px;
  font-family: 'Press Start 2P', sans-serif;
  font-size: 1.3rem;
  color: #ff69b4;
}
/* Each section of the article with a title */
.article-section {
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #ff69b4;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.section-title.no-caps{
  text-transform: none;
}
article p {
  margin: 0;
}
/* Inline images styling */
article img.article-photo {
  display: block;
  max-width: 100%;
  margin: 20px 0;


  border: 1px solid #ccc;
}
article p {
  margin: 10px 0;
  font-size: 1.1rem;    /* Beefed up for desktop */
  line-height: 1.8;     /* Increased line height for readability */
  color: #333;
  font-family: 'Syne', Arial, sans-serif;
}   

.ad-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

.ad-box {
  background-color: #e951b0;
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
} 

.survey-ad {
  text-align: center;
  font-family: 'Syne', Arial, sans-serif;
  margin-top: 10px;
}

.survey-ad p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}    

.y2k-survey-box {
  background-color: #fff0f4;
  padding: 10px;
  border: 2px dotted #ff69b4;
  position: relative;
}

.y2k-survey-box img.y2k-top,
.y2k-survey-box img.y2k-bottom {
  display: block;
  width: 100%;
  max-height: 40px;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
  }
  
  /* Use grid for the ad wrapper to force two columns */
  .ad-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
  
  /* The ad-box now takes the full width of its grid cell */
  .ad-box {
    width: 100%;
    box-sizing: border-box;
  }
 
    .back-button {
      left: 10px;
      top: 15px;   /* adjust as needed */
      width: 80px;
    }
    
article p {
font-size: 0.9rem;   /* Slightly smaller for mobile */
line-height: 1.6;    /* A bit tighter on mobile */
}
}
  

