/* General body styling to center the content */
body {
    background-color: #111827; /* Dark background */
    display: flex;
    align-items: center;
    justify-content: center;
 /*   height: 100vh; /* Full viewport height */
    margin: 1em 0 0 0 ;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
}
a:link, a:visited, a:hover, a:active {
  color: #fff;
}

#wrapper {
    width: 70vw; /* Wider for text */
    max-width: 1000px;
}

/* The parent container for the heart */
.parent-container {
    width: 70vw; /* Wider for text */
    max-width: 1000px;
  /*  min-height: 50vh; */
    display: flex;
    flex-direction: column; /* Stack content and button vertically */
    /* justify-content: space-between; /* Push content to top, button to bottom */
    background-color: #1f2937; /* Slightly lighter dark background */
    border-radius: 0.75rem; /* Rounded corners */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Shadow effect */
    padding: 1rem;
    box-sizing: border-box;
}

.remainder-container {
    width: 70vw; /* Wider for text */
    max-width: 1000px;
  /*  min-height: 50vh; */
    display: flex;
    flex-direction: column; /* Stack content and button vertically */
  /*  justify-content: space-between; /* Push content to top, button to bottom */
    padding: 2rem;
    box-sizing: border-box;
    color: #fff;
}

/* Keyframes for heartbeat animation */
@keyframes heartbeat {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 20, 20, 0.6)); }
    10% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(255, 20, 20, 0.8)); }
    20% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 20, 20, 0.6)); }
    30% { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(255, 20, 20, 1)); }
    50% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 20, 20, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 20, 20, 0.6)); }
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Wrapper for the main content (heart and text) */
.content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.heart-container {
    width: 25%;
    flex-shrink: 0;
    animation: heartbeat 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 20, 20, 0.6));
}

.heart-svg {
    width: 100%;
    height: auto;
}

.text-container {
    width: 75%;
    padding-left: 3rem;
    color: white;
    font-size: 5.0vmin;
    font-weight: bold;
    line-height: 1.6;
    /* This ensures spaces are rendered correctly */
    white-space: pre-wrap;
}

.text-container span {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Footer section to hold all buttons */
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
    opacity: 0; /* Initially invisible */
    animation: fadeIn 0.6s ease-out forwards; /* Apply the same fade-in animation */
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.share-button:hover {
    transform: scale(1.15);
    opacity: 0.9;
}
.share-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.action-button {
    display: inline-block;
    background-color: #ef4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.action-button:hover {
    background-color: #f87171;
    transform: translateY(-2px);
}