/* Define custom fonts */
@font-face {
  font-family: 'American-Typewriter';
  src: url('./assets/font/American Typewriter Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Ecuyer';
  src: url('./assets/font/Ecuyer.ttf') format('truetype');
}


@font-face {
  font-family: 'Aphrodite-Slim';
  src: url('./assets/font/Aphrodite Slim Pro.ttf') format('truetype');
}

/* Apply background image to the body */
body {
  margin: 0;
  font-family: 'Crimson Pro', serif;
  text-align: center;
  background: url('./assets/BWC.jpg') no-repeat center center fixed; /* Set the couple image as the background */
  background-size: cover; /* Ensures the image covers the entire viewport */
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.header-image {
  width: 100%;
  max-width: 100%;
  height: auto; /* Dynamically adjust height based on screen size */
  position: absolute; /* Keeps the flower image fixed at the top */
  top: 0;
  left: 0;
  z-index: 1; /* Ensures it stays above other content */
}

/* Full-screen overlay container */
.container {
  position: fixed; /* Makes the container cover the entire screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Covers the full viewport */
  display: flex; /* Enables flexbox for centering */
  flex-direction: column; /* Stacks elements vertically */
  align-items: center; /* Centers elements horizontally */
  justify-content: center; /* Centers elements vertically */
  background: rgba(0, 0, 0, 0.75); /* Semi-transparent black background */
  color: white; /* Sets text color to white */
  z-index: 999; /* Ensures the overlay appears above all other elements */
  padding: 20px; /* Adds padding for spacing */
  box-sizing: border-box; /* Ensures padding doesn't affect width/height */
}

.sub-container{
  max-width: 800px;
}

/* Glowing effect for names */
/* Glowing effect for names */
.names {
  font-family: 'Aphrodite-Slim', cursive;
  font-size: clamp(46px, 8vw, 60px); /* Increased font size for names */
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 2;
  }
/* Sharp border for countdown */
.countdown {
  margin-top: 20px;
  font-size: clamp(14px, 3vw, 18px); /* Improved font size for countdown */
  font-weight: bold;/* Sharp black border */
  padding: 10px;
}

.date {
  font-size: 2rem; /* Improved font size for date */
  font-family: 'American-Typewriter', cursive;
  margin-bottom: 20px;
}

.location {
  font-size: clamp(18px, 4vw, 24px);
  margin-top: 10px;
  cursor: pointer;
}
.location a{
  color: #fff;
}

.story-text {
  margin: 0 auto;
  padding: 0 20px 10px;
  font-size: 1.0625rem;/* Improved font size for story text */
  line-height: 1.8; /* Slightly increased line height for better readability */
  margin-top: 1rem;
}
/* Styling for Couple Image */
.couple-image {
  position: relative; /* Enables positioning of overlay text */
  margin: 20px auto;
  text-align: center;
}

.couple-photo {
  width: 100%;
  max-width: 600px; /* Ensures the image doesn't exceed a reasonable size */
  height: auto;
  border-radius: 10px; /* Adds rounded corners for a softer look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow for depth */
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Covers the full image */
  display: flex; /* Enables flexbox for centering */
  align-items: center; /* Centers text vertically */
  justify-content: center; /* Centers text horizontally */
  color: white;
  font-size: 24px;
  font-family: 'Ecuyer', cursive;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background covering full image */
  border-radius: 10px; /* Matches the image's rounded corners */
  text-align: center;
}

.footer {
  position: fixed;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.footer a {
  color: rgba(255, 255, 255, 0.2);
}

.heart {
  display: inline-block;
  transform-origin: center;
  font-size: 70px;
}
.heart img {
  width: 70px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  vertical-align: middle; /* Aligns the image with text */
  animation: heartbeat 1s infinite; /* Apply heartbeat animation */
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9); /* Increase size */
  }
}