body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffe0f0; /* Soft pink background */
    color: #333;
}
.header {
    background-color: #ff8096; /* Deeper love color */
    color: white;
    text-align: center;
    padding: 20px 0;
}
.nav-bar {
    display: flex;
    justify-content: center;
    background-color: #ffccd1; /* Lighter shade for navigation */
    padding: 10px 0;

}
.nav-link {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 18px;
}
.nav-link:hover {
    color: #ff8096;
}
.timer {
    font-family: 'Cursive', sans-serif;
    color: #6a1b9a;
    font-size: 24px;
    font-weight: bold;
    margin: 0; /* Removes default margin */
}
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10%;
}
.milestone {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}
.milestone-image {
    width: 300px; /* Fixed size, adjust as needed */
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}
.milestone-image:hover {
    transform: scale(1.6);
}
.milestone-text {
    flex: 1;
    font-family: 'Cursive', sans-serif;
    color: #ff8096;
    margin-bottom: 10px;
    font-size: 15px;
}

.timer-title {
    font-family: 'Cursive', sans-serif;
    color: #ff8096;
    margin-bottom: 10px;
    font-size: 28px;
}

.timer-container {
    background-color: #fff; /* Or any color that matches your theme */
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    padding: 25px;
    text-align: center;
    margin: 20px auto;
    width: fit-content;
    padding-bottom: 30px;
}

.gallery-container {
    text-align: center;
    max-width: 600px;
    margin: auto;
}

.simple-carousel {
    position: relative;
    margin: auto;
    overflow: hidden;
    width: 100%; /* Adjust as needed */
}

.carousel-slides {
    display: flex;
    width: 100%;
    flex-direction: row; /* Ensure slides are in a row */
    transition: transform 0.5s ease; /* Add transition for smooth sliding */
}

.slide {
    flex: 0 0 100%; /* Each slide takes up 100% of the carousel width */
    max-width: 100%;
    display: flex; /* Use flexbox to align image inside slide */
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background-color: white; /* White background */
    color: black; /* Black arrow color for contrast */
    border: 1px solid #ddd; /* Light border for definition */
    border-radius: 50%; /* Circular buttons */
    font-size: 30px;
    width: 50px; /* Fixed width */
    height: 50px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7; /* Slightly transparent */
    transition: opacity 0.3s;
}

.slide-image {
    max-width: 100%; /* Ensures image does not exceed the slide width */
    height: auto; /* Maintains the image aspect ratio */
    max-height: 600px;
}

.carousel-control:hover {
    opacity: 1; /* Fully opaque on hover */
}

.carousel-control.left {
    left: 10px;
    z-index: 1000;
}

.carousel-control.right {
    right: 10px;
}

.gallery-title {
    font-family: 'Cursive', sans-serif; /* Or any font that you are using on your index page */
    color: #ff8096; /* A color that matches your theme */
    margin-bottom: 10px;
    font-size: 28px; /* Adjust the size as needed */
    background-color: #fff; /* Or any color that matches your theme */
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    padding: 25px;
    text-align: center;

}

.love-second {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    padding: 25px;
    text-align: center;
    margin: 20px auto;
    width: fit-content;
    padding-bottom: 30px;
    font-family: 'Cursive', sans-serif;
    color: #ff8096;
    margin-bottom: 35px;
    font-size: 30px;
}


.envelope-container {
    text-align: center;
    margin: 20px;
}

#envelope {
    cursor: pointer;
    width: 200px; /* adjust as needed */
}

#open-text {
    cursor: pointer;
    color: #ff8096;
    font-size: 18px;

}

/* Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.envelope-container {
    text-align: center;
    margin: 20px;
}

#envelope {
    cursor: pointer;
    width: 600px; /* adjust as needed */
}

#open-text {
    cursor: pointer;
    color: #ff8096;
    font-size: 24px;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50px; /* reduced padding */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%; /* adjusted width */
    max-height: 80vh; /* maximum height */
    object-fit: contain; /* maintain aspect ratio */
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 45%; /* adjusted vertical position */
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .modal-content {
        max-width: 100%;
        max-height: 70vh;
    }
}

@media screen and (max-height: 500px) {
    .modal-content {
        max-height: 60vh;
    }
}


/* ---- password gate ---- */
/* The .gated class is added by an inline script in <head>, so if JavaScript
   is off the page simply shows instead of staying blank forever. */
html.gated body > *:not(#gate) { display: none !important; }

#gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #ffe3ec 0%, #fff6f9 100%);
    z-index: 9999;
}
.gate-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(214, 51, 108, 0.18);
}
.gate-title { margin: 0 0 18px; font-size: 1.5rem; color: #d6336c; }
.gate-question { display: block; margin-bottom: 16px; font-size: 1rem; color: #444; line-height: 1.45; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 1rem;
    border: 2px solid #f1c7d5;
    border-radius: 10px;
}
.gate-input:focus { outline: none; border-color: #d6336c; }
.gate-button {
    padding: 12px 16px;
    font-size: 1rem;
    color: #fff;
    background: #d6336c;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.gate-button:hover { background: #b02a57; }
.gate-error { min-height: 1.2em; margin: 12px 0 0; color: #c92a48; font-size: 0.95rem; }
