* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* General Styles */
body {
  background-color: #f8f8f8;
  color: #333;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* CSS smooth scrolling */
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
header {
  background: linear-gradient(135deg, #ff2a6eb3, #f6ecf2, #ff2a6eb3);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  display: flex;
  justify-content: center;
}
.nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #7b5252;
  font-size: 18px;
}

.nav a::after {
  display: block;
  content: "";
  margin-top: 5px;
  border-bottom: solid 1.5px #dab88d;
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
  transform-origin: 0% 50%;
}

.nav a:hover:after {
  transform: scaleX(1);
}

/* Hero Section */

.hero {
  text-align: center;
  background-image: url("./main-images/DSC_5893.jpeg");
  background-size: cover;
  background-repeat:no-repeat;
  background-position: center 40%;
  height: 530px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.hero h1 {
  font-size: 28px;
  font-family: "Great Vibes", cursive;
  margin: 0;
  color: #f0f0f0; /* Gold color for visibility and warmth */
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8),
    -2px -2px 10px rgba(0, 0, 0, 0.5);
}
.hero p {
  font-size: 15px;
  color: #f0f0f0;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}
.countdown-ck, .countdown-vk {
  margin: 15px 0;
  font-size: 18px;
  color: #e8b4b8;
}
.rsvp-btn {
  background-color: #e8b4b8;
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  color: #ffffff;
  
}
/* Base Flex Grid */
.flex-row {
    display: flex;
    flex-wrap: wrap; /* Ensure columns wrap */
    margin-left: -2%; /* Adjust for gap */
    margin-right: -2%;
}

.flex-column {
    padding-left: 2%; /* Match the gap size */
    padding-right: 2%;
    flex: 1 1 0%; /* Default flexible columns */
}

/* Percentage-based Gaps */
.gap-0 .flex-column {
    padding-left: 0;
    padding-right: 0;
}

.gap-1 .flex-column {
    padding-left: 1%;
    padding-right: 1%;
}

.gap-2 .flex-column {
    padding-left: 2%;
    padding-right: 2%;
}

.gap-3 .flex-column {
    padding-left: 3%;
    padding-right: 3%;
}

.gap-4 .flex-column {
    padding-left: 4%;
    padding-right: 4%;
}

.gap-5 .flex-column {
    padding-left: 5%;
    padding-right: 5%;
}

/* Responsive Fluid Columns */
.flex-column-1 { flex: 0 0 8.33%; max-width: 8.33%; }
.flex-column-2 { flex: 0 0 16.66%; max-width: 16.66%; }
.flex-column-3 { flex: 0 0 25%; max-width: 25%; }
.flex-column-4 { flex: 0 0 33.33%; max-width: 33.33%; }
.flex-column-5 { flex: 0 0 41.66%; max-width: 41.66%; }
.flex-column-6 { flex: 0 0 50%; max-width: 50%; }
.flex-column-7 { flex: 0 0 58.33%; max-width: 58.33%; }
.flex-column-8 { flex: 0 0 66.66%; max-width: 66.66%; }
.flex-column-9 { flex: 0 0 75%; max-width: 75%; }
.flex-column-10 { flex: 0 0 83.33%; max-width: 83.33%; }
.flex-column-11 { flex: 0 0 91.66%; max-width: 91.66%; }
.flex-column-12 { flex: 0 0 100%; max-width: 100%; }

/* Fixed Columns */
.flex-fixed-sm { flex: 0 0 150px; max-width: 150px; }
.flex-fixed-md { flex: 0 0 250px; max-width: 250px; }
.flex-fixed-lg { flex: 0 0 350px; max-width: 350px; }

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .flex-column, .flex-column-6, .flex-fixed-sm, .flex-fixed-md, .flex-fixed-lg {
        flex: 0 0 100%; /* Stack columns on smaller screens */
        max-width: 100%;
        margin-bottom: 3%;
    }
    header {
      display: none;
    }
    
}

@media (min-width: 769px) and (max-width: 1200px) {
    .flex-fixed-md { flex: 0 0 200px; max-width: 200px; } /* Adjust fixed widths for tablets */
    .flex-fixed-lg { flex: 0 0 300px; max-width: 300px; }
    .wedding-container {
      padding: 3% 10%;
    }
}
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 24px;
  }
  .wedding-container {
    padding: 3% 10%;
  }
}
@media (min-width: 1201px) {
    .bcsc {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}




/* Section Styles */
section {
  text-align: center;
  padding: 40px 20px;
  margin: 0; /* Remove margin */
  border-radius: 0; /* Remove rounded corners */
}
.section-title {
  font-size: 32px;
  color: #555;
  margin-bottom: 15px;
}
.section-content {
  font-size: 18px;
  color: #666;
}
#story {
  background: linear-gradient(135deg, #f0f4f8, #dbe4f3);
}

#gallery {
  background: linear-gradient(135deg, #e6ebf5, #f2d5e3);
  overflow: hidden;
}

#contact {
  background: linear-gradient(135deg, #f2d5e3, #f9e2dd);
}
.greeting-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #eb5b87; /* Background color for the toggle */
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000; /* Ensure it's above other elements */
}

.greeting-container {
  position: fixed;
  bottom: 70px; /* Above the toggle button */
  right: 20px;
  max-width: 600px;
  width: 300px; /* Set a width for the container */
  padding: 20px;
  background-color: #eb5b87; /* Light color */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
  display: none; /* Initially hidden */
  transition: all 0.3s ease; /* Smooth transition */
}

.greeting-containe h1 {
  text-align: center;
  margin-bottom: 20px;
}

.greeting-history {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 5px;
}

#greetingHistoryClone {
  max-height: 400px;
}

.greeting-container .ms-line {
  font-size: 14px;
}

.ms-line {
  text-align: left;
  border-bottom: 0.5px solid #dddddd;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.ms {
  margin: 0.5rem 0;
}

.greeting-history span {
  font-size: 0.7em;
  display: block;
  text-align: right;
  color: #d1d1d1;
}

.input-container {
  display: flex;
  justify-content: space-between;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
}

button {
  background-color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 10px;
  line-height: 0;
}

button svg {
  width: 20px;
  height: 20px;
}

.wedding-container {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.box {
  background-color: #f7bbc817;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 45px 10px;
}
.image-box {
    justify-content: center;
    width: 90%; /* Full width */
    max-width: 90%; /* Limit maximum width */
    background-size: cover; /* Cover the box without distortion */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent repeat */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin: 10px auto 30px auto; /* Center the box */

    /* Maintain 2:3 aspect ratio (751 / 500 = 1.502) */
    position: relative;
    padding-bottom: 90%; /* 150.2% of the width for a 2:3 ratio */
    height: 0; /* Set height to 0 for aspect ratio to work */
}
.box h2 {
  color: #ba4a4a;
  margin-bottom: 10px;
}
.date-info {
  background-color: #db1f5bbf;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin: 20px auto auto;
  max-width: max-content;
}

.calendar-links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}
.calendar-links a {
  color: #aa6f39;
  text-decoration: none;
  margin: 5px 0;
}

/* Popup background overlay */
.calendar-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
/* Popup content */
.calendar-links {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}
.calendar-links h3 {
  color: #5f3921;
  margin-bottom: 15px;
  font-size: 18px;
}
.calendar-links a {
  display: block;
  color: #aa6f39;
  text-decoration: none;
  margin: 10px 0;
  font-size: 16px;
}
.calendar-links a:hover {
  text-decoration: underline;
}
.add-to-calendar, .map {
    padding: .8rem;
    border: 1px solid #555;
    border-radius: 5px;
    margin-top: 14px;
    cursor: pointer;
}
.map a {
  text-decoration: none;
  color: inherit;
}
.add-to-calendar:hover, .map:hover {
    color: white;
    background-color: #db1f5bbf;
    border-color: #db1f5bbf;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.popup.active {
    display: flex;
}

.popup-content {
    position: relative;
    max-width: 80%;
    text-align: center;
}

.popup-content img {
    max-width: 100%;
    border-radius: 5px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.thumbnail {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    overflow-x: auto;
    max-width: 100%;
}

.thumbnail img {
    width: 80px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.thumbnail img.active {
    opacity: 1;
    transform: scale(1.1);
    border: 2px solid #fff;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
}

.arrow-left {
  left: 0
}

.arrow-right {
  right: 0;
}

.popup.active {
    display: flex;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.popup-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.section-headline {
  margin-bottom: 30px;
}

footer {
  background-color: #e8e1d4;
  text-align: center;
  padding: 20px 0;
  letter-spacing: 0.5px;
}

footer p {
  margin: 0;
  padding: 0;
  color: #705437;
  font-size: 18px;
}

#story .section-title 
{
  color: #db1f5bbf;
}

.timeline {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #f979a0;
  top: 0;
  bottom: 0;
}
.dot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #f979a0;
  border-radius: 50%;
}
.section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 60px 0;
  position: relative;
}
.section:nth-child(even) {
  flex-direction: row-reverse;
}
.section .content {
  width: 48%;
  position: relative;
}
.section .content h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #db1f5bbf;
}
.section .content p {
  font-size: 16px;
  line-height: 1.6;
}
.section .image {
  width: 48%;
}
.section .image img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}
.section .image img:hover {
  transform: scale(1.05);
}
.section:nth-child(1) .dot {
  top: 0;
}
.section:nth-child(2) .dot {
  top: 0;
}
.section:nth-child(3) .dot {
  top: 40%;
}
.section:nth-child(4) .dot {
  top: 60%;
}
.section:nth-child(5) .dot {
  top: 80%;
}
@media (max-width: 768px) {
  .section {
      flex-direction: column;
      text-align: center;
  }
  .section:nth-child(even) {
      flex-direction: column;
  }
  .section .content,
  .section .image {
      width: 100%;
  }
  .section .image {
      margin-bottom: 20px;
  }
  .line, .dot {
      display: none;
  }
}
.close-greeting {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  position: absolute;
  top: 0;
  right: 2px;
  cursor: pointer;
  line-height: 1;
}
/* Overlay */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.greeting-container-clone {
  margin: 30px auto auto auto;
}
.greeting-container-clone  > p {
  margin-bottom: 15px;
}
.greeting-container-clone .input-container {
  background: #fbaec1;
  padding: 10px;
  border-radius: 4px;
}
.greeting-container-clone .greeting-history {
  background: #fbaec1;
  color: white;
  padding: 20px;
  margin-bottom: 0;
}
.greeting-container-clone .greeting-history span {
  color: white;
}
@media (min-width: 768px) {
  .greeting-container-clone {
    max-width: 80%;
  }
  .hero {
    justify-content: flex-end;
  }
}
@keyframes jump-shaking {
  0% { transform: translateX(0) rotate(0)}
  35% { transform: translateY(0) rotate(0)}
  85% { transform: translateY(0) rotate(0) }
  89% { transform: translateY(-2px) rotate(-17deg) }
  93% { transform: translateY(-3px) rotate(17deg) }
  98% { transform: translateY(-4px) rotate(-17deg) }
  100% { transform: translateY(0) rotate(0) }
}
.greeting-toggle {
  animation: jump-shaking 1.83s infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}
.playerIcon {
  position: fixed;
  top: 30%;
  left: 20px;
  background-color: #eb5b87;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 50%;
  opacity: 0.5;
}
.playerIcon span {
  margin-top: 7px;
  margin-left: 7px;
}