body {
    background: linear-gradient(to right, #ffafbd, #ffc3a0);
    font-family: 'Poppins', sans-serif;
    color: #fff;
    text-align: center;
    padding-top: 50px;
    margin: 0;
}

.container {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    display: inline-block;
    border-radius: 15px;
    max-width: 90%;
	margin-bottom: 40px;
}
.heart-photo {
    width: 400px;
    height: 400px;
    margin: 0 auto -60px auto;
	cursor: pointer; /* Change cursor to pointer to indicate clickability */
}

.heart-photo svg {
    width: 100%;
    height: 100%;
}

/* Heading Styles */
h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    margin-bottom: 10px;
    color: #ffd1dc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.2; /* Increased line-height */
    overflow: visible; /* Ensure overflow is visible */
}

h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #ffccd5;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2; /* Increased line-height */
    overflow: visible; /* Ensure overflow is visible */
}

h1 i, h2 i {
    margin: 0 10px;
}

/* Countdown Timer Styles */
#countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.time-section {
    margin: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    width: 80px;
}

.time-section span {
    font-size: 36px;
    display: block;
    color: #fff;
}

.time-section p {
    font-size: 18px;
    margin-top: 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-section p i {
    margin-right: 5px;
    overflow: visible; /* Ensure overflow is visible */
}

.message {
    font-size: 26px;
    color: #ffd1dc;
    overflow: visible; /* Ensure overflow is visible */
}

.message i {
    font-size: 32px;
    margin: 0 5px;
    overflow: visible; /* Ensure overflow is visible */
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 46px;
    color: #ffd1dc;
    margin-top: 20px;
}
/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background: rgba(0, 0, 0, 0.6); /* Darker semi-transparent background */
}

.modal-content {
    background: linear-gradient(to right, #ffafbd, #ffc3a0); /* Match page background */
    margin: 10% auto; /* Center vertically with some top margin */
    padding: 20px;
    border: 2px solid #ffd1dc; /* Pink border to match theme */
    border-radius: 15px; /* Rounded corners */
    width: 80%;
    max-width: 500px; /* Responsive max width */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Subtle shadow for depth */
    position: relative;
    color: #fff; /* White text for contrast */
    font-family: 'Poppins', sans-serif; /* Consistent font */
    text-align: center;
}

.close {
    color: #ffd1dc;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

#modalMessage {
    font-size: 20px;
    margin-top: 20px;
    line-height: 1.5;
}

/* Pulse Animation for Modal Icons */
#modalMessage i {
    margin: 0 10px;
    color: #ffd1dc; /* Match icon color with the theme */
    font-size: 24px; /* Adjust icon size as needed */
    vertical-align: middle;
    animation: pulse 2s infinite; /* Added pulse animation */
}


/* Adjust Icon Sizes in Messages */
.message i, h1 i, h2 i {
    font-size: 20px; /* Adjust as needed */
    color: #ffd1dc; /* Ensure color consistency */
}
/* Heartbeat and Bouncing Icons */
.fa-heart, .fa-kiss-wink-heart {
    color: #ffd1dc;
    animation: heartbeat 1.5s infinite;
}

.bouncing-icon {
    animation: bounce 2s infinite;
}



@keyframes heartbeat {
    0% { transform: scale(0.9); }
    25% { transform: scale(1); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1); }
    100% { transform: scale(0.9); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 24px;
    }
    .time-section {
        width: 70px;
        padding: 10px;
    }
    .time-section span {
        font-size: 28px;
    }
    .time-section p {
        font-size: 16px;
    }
    .message {
        font-size: 20px;
    }
    .message i{
        font-size: 24px;
    }
    .signature {
        font-size: 36px;
    }
    .heart-photo {
		width: 360px;
		height: 360px;
		margin: 0 auto -60px auto;
    }
}

@media (max-width: 480px) {
    h1, h2 {
        font-size: 28px;
        display: block;
    }
    h1 i, h2 i {
        display: block;
        margin: 10px auto;
    }
    .time-section {
        width: 58px;
        padding: 5px;
    }
    .time-section span {
        font-size: 24px;
    }
    .time-section p {
        font-size: 14px;
    }
    .message {
        font-size: 16px;
        padding: 0 10px;
    }
    .message i {
        font-size: 20px;
        padding: 0 10px;
    }
    .signature {
        font-size: 32px;
    }
    .heart-photo {
		width: 320px;
		height: 320px;
		margin: 0 auto -50px auto;
    }
}

@media (max-width: 360px) {
    h1, h2 {
        font-size: 26px;
    }
    h1 i, h2 i {
        margin: 8px auto;
    }
    .time-section {
        width: 54px;
        padding: 4px;
    }
    .time-section span {
        font-size: 22px;
    }
    .time-section p {
        font-size: 11px;
    }
    .message {
        font-size: 13px;
        padding: 0 10px;
    }
    .message i {
        font-size: 16px;
        padding: 0 10px;
    }
    .signature {
        font-size: 28px;
    }
    .heart-photo {
    width: 250px;
    height: 250px;
    margin: 0 auto -30px auto;
    }
    /* Optionally hide icons on very small screens */
    h1 i, h2 i, .message i {
        display: none;
    }
}
