/* CSS Document */

@charset "utf-8";

/* --- 1. RESET & GLOBALS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { 
  background: url("../images/spring_bg2-2000x2000.jpg") no-repeat center center fixed;
  background-size: cover;
}

body {
  margin: 0 auto;
  width: 100%;
  max-width: 768px;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.4;
  color: #333;
}

a {
  text-decoration: none;
}

/* --- 2. RESPONSIVE MEDIA & IMAGES --- */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fluid responsive YouTube videos */
iframe {
  width: 100%;
  max-width: 690px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
  margin: 10px auto;
}

/* --- 3. TYPOGRAPHY --- */
h1 {
  font-size: 1.8rem; 
  font-family: 'Merienda', cursive;
  text-align: center;
  color: rgba(52, 96, 1, 1);
  margin: 15px 0;
}

h2 {
  font-size: 1.4rem; 
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  margin: 15px 0 10px;
}

h3 {
  font-size: 1.25rem; 
  font-family: 'Playfair Display', serif; 
}

h4 {
  font-size: 1.15rem; 
  font-family: 'Merienda', cursive;
  line-height: 1.5;
  margin: 10px 0;
}

h5 {
  font-size: 1.3rem; 
  font-family: 'Merienda', cursive; 
  text-align: center;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* --- 4. LAYOUT & CONTAINERS --- */
section {
  border: 5px solid rgba(107, 38, 181, 1);
  margin: 0 auto;
  width: 100%;
  max-width: 768px;
  background: #ffffff; 
}

header {
  width: 100%;
  aspect-ratio: 750 / 117; /* Matches the exact proportions of your header image */
  background: url("../images/DreamHouse-Summer-750x117.jpg") no-repeat center center;
  background-size: contain; /* Ensures the whole image stays visible without cropping */
  border-bottom: 6px solid rgba(107, 38, 181, 1);
}

.main_container, 
.temp_container {
  border: 4px solid rgba(65, 135, 2, 1);
  border-radius: 5px;
  width: 92%;
  margin: 15px auto;
  background: #ffffff;
  padding: 15px;
}

.temp_container {
  border-color: rgba(152, 108, 167, 1);
}

/* --- FEATURED EVENT BANNER --- */
.featured_event_container {
  position: relative;
  border: 4px solid rgba(107, 38, 181, 1); /* Matching purple accent */
  border-radius: 8px;
  width: 98%;
  margin: 20px auto;
  background: #fcf9ff; /* Soft tint to set it apart from standard white boxes */
  padding: 25px 20px 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(107, 38, 181, 0.15);
}

/* Eye-catching badge overlay at the top */
.event_tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(107, 38, 181, 1);
  color: #ffffff;
  font-family: 'Merienda', cursive;
  font-size: 0.85rem;
  padding: 4px 26px;
  border-radius: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap; /* Prevents text from awkwardly wrapping to two lines */
}

.featured_event_container h1 {
  color: rgba(107, 38, 181, 1);
  margin-top: 5px;
  margin-bottom: 12px;
}

.featured_event_container p {
  max-width: 650px;
  margin: 0 auto 15px;
  font-size: 1.05rem;
  color: #444;
}

/* Fluid Responsive Video Container */
.event_video_wrapper {
  width: 100%;
  max-width: 650px;
  margin: 15px auto;
}

.event_video_wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 4px solid rgba(65, 135, 2, 1);
  border-radius: 6px;
}

/* --- 5. SOCIAL MEDIA & FOOTER LINKS --- */
#top_links, 
footer .social-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
}

.facebook, .instagram, .youtube {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: border 0.2s ease-in-out;
}

.facebook { background-image: url(../images/facebook.jpg); }
.instagram { background-image: url(../images/instagram.jpg); }
.youtube { background-image: url(../images/youtube.jpg); }

.facebook:hover, 
.instagram:hover, 
.youtube:hover {
  border: 4px solid rgba(253, 220, 123, 1);
}

footer {
  width: 100%;
  padding: 20px 0;
  border-top: 4px solid rgba(152, 108, 167, 1);
  text-align: center;
}

footer h1 {
  margin: 5px 0;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  padding: 5px 0; 
  font-size: 1.5rem;
  font-family: 'Kaushan Script', cursive;
  color: white;
  background: black;
}

/* --- 6. BUTTONS & INTERACTIVE ELEMENTS --- */
#newsletter_link, #sponsor_link, #apply, #home_link, #tickets {
  display: block;
  margin: 15px auto;
  font-family: 'Merienda', cursive;
  color: white;
  text-align: center;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.2s ease-in-out;
}

#newsletter_link {
  width: 240px;
  min-height: 50px;
  font-size: 16px; 
  background: #284192;
  border: 3px solid #ffffff;
}
#newsletter_link:hover { background: #4C74E3; }

#sponsor_link {
  width: 260px;
  min-height: 60px;
  font-size: 18px; 
  border: 3px solid rgba(152, 108, 167, 1);
  background: rgba(73, 100, 129, 1);
}
#sponsor_link:hover {
  background: rgba(152, 108, 167, 1);
  border-color: rgba(73, 100, 129, 1);
}

#apply {
  width: 220px;
  min-height: 65px;
  font-size: 16px; 
  border: 3px solid rgba(152, 108, 167, 1);
  background: rgba(73, 100, 129, 1);
}
#apply:hover {
  background: rgba(152, 108, 167, 1);
  border-color: rgba(73, 100, 129, 1);
}

/* --- NEWSLETTER SECTION --- */
#links {
  width: 92%;
  margin: 20px auto;
  background: rgba(243, 220, 248, 1);
  border: 4px solid rgba(65, 135, 2, 1);
  border-radius: 5px;
  padding: 20px 15px;
  text-align: center;
}

.year-group {
  margin-top: 25px;
  border-top: 2px dashed rgba(152, 108, 167, 0.4);
  padding-top: 15px;
}

/* Style for the Year Heading */
.year-group h3 {
  font-family: 'Merienda', cursive;
  font-size: 1.3rem;
  color: #284192;
  margin-bottom: 10px;
}

/* Flexbox container that wraps buttons cleanly on all screen sizes */
.newsletter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.links {
  color: white;
  width: 125px;
  height: 42px;
  border-radius: 25px;
  font-size: 14px;
  font-family: 'Merienda', cursive;
  background: #4C74E3;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.links:hover {
  background: #284192;
}

/* --- DONATE BUTTON --- */

#form_header {
  margin: 10px auto;
  text-align: center;
  display: block;
  clear: both;
  width: 50%;
  max-width: 50%;
  padding: 0 5px; /* Small padding buffer to prevent touching screen edges */
}

/* --- DONATE BUTTON HOVER ANIMATION --- */

/* Target the PayPal image inputs in both header and bottom section */
#form_header input[type="image"],
.form input[type="image"] {
  transition: transform 0.25s ease;
  cursor: pointer;
  display: inline-block;
}

/* Hover & Focus state */
#form_header input[type="image"]:hover,
.form input[type="image"]:hover {
  transform: scale(1.08); /* Scales up by 8% (use 1.2 if you prefer 20%) */
  
}

/* Optional: Gentle click effect when pressed */
#form_header input[type="image"]:active,
.form input[type="image"]:active {
  transform: scale(1.03);
}

/* --- 8. MISC CONTENT --- */
#shanthony {
  width: 100%;
  max-width: 300px;
  height: 180px;
  background: url("../images/shanthony-4-(300x186).jpg") no-repeat center/cover;
  border: 5px solid rgba(107, 38, 181, 1);
  border-radius: 5px;
  margin: 15px auto;
}

#benevity img {
  display: block;
  margin: 20px auto;
}

.form, #form_header {
  margin: 15px auto;
  text-align: center;
}

.form:hover {
	
}

/* --- 9. DESKTOP ENHANCEMENTS (>= 769px) --- */
@media (min-width: 769px) {
  #shanthony {
    float: right;
    margin: 0 0 15px 15px;
  }
  
  .facebook, .instagram, .youtube {
    width: 75px;
    height: 75px;
  }
}

/* ---SPONSOR PAGE STYLES --- */
.sponsor h2 {
	text-align: center;
	align-content: center;
}

.sponsor img {
	display: block;
	margin:25px auto;
	border-bottom: 1px solid rgba(103,103,103,1.00);
}

.sponsor a:hover {
	opacity: 50%;
}

#home_link {
	width: 200px;
	height: 55px;
	border-radius: 30px;
	margin: 10px auto;
	display: block;
	font-size:30px;	
	font-family: 'Merienda', cursive;
	color: white;
	border: 3px solid rgba(152,108,167,1.00);
	background: rgba(73,100,129,1.00);
}

#home_link:hover {
	background: rgba(152,108,167,1.00);
	border:3px solid rgba(73,100,129,1.00);
}
