:root {
    --blue-color: #83abd7;
    --pink-color: #ed9ca3;
    --text-shadow: 2px 2px 0px #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "botanica-sans", sans-serif;
    background-color: #fceef6;
    background: linear-gradient(180deg, #e6f0fa 0%, #fceef6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center vertically */
    height: 100vh;
    /* Fixed height */
    overflow: hidden;
    /* No scroll */
    padding: 20px;
    color: #d4957d;
}

.invite-container {
    background-color: #fff;
    max-width: 600px;
    width: 95vw;
    height: 92vh;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(131, 171, 215, 0.2);
    overflow: hidden;
    position: relative;
    text-align: center;
    padding-bottom: 20px;
}

.visuals {
    width: 100%;
    position: relative;
    flex-shrink: 1;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.visuals::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.content {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.content>* {
    pointer-events: auto;
}

.main-title {
    font-family: "botanica-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
    /* Increased size significantly */
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #fff;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.main-title .blue {
    color: var(--blue-color);
}

.main-title .brown {
    color: var(--brown-color);
}

.main-title .connector {
    font-family: "botanica-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.5rem;
    /* Adjusted for hierarchy */
    color: var(--brown-color);
    vertical-align: middle;
}

.main-title .pink {
    color: var(--pink-color);
}

.intro-text {
    font-family: "botanica-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    /* Forced normal */
    font-size: 0.9rem;
    /* Reduced */
    line-height: 1.3;
    max-width: 400px;
    margin: 0 auto 10px;
    text-transform: uppercase;
    color: var(--brown-color);
    /* Updated to brown */
}

.sub-title {
    font-family: "botanica-sans", sans-serif;
    font-weight: 400;
    /* Changed from 800 to match available font weight */
    font-style: normal;
    font-size: 1rem;
    margin-bottom: 15px;
    /* Reduced */
    text-transform: uppercase;
    color: var(--brown-color);
    /* Updated to brown */
}

.details {
    margin-bottom: 15px;
    /* Reduced */
    font-family: "botanica-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    /* Reduced */
    color: var(--brown-color);
    /* Updated to brown */
}

.date {
    font-weight: 400;
    /* Ensure no synthetic bold */
    margin-bottom: 5px;
}

.location-name {
    font-size: 1rem;
}


.map-btn,
.calendar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue-color);
    color: white;
    padding: 12px 25px;
    /* Slightly reduced padding to fit both */
    border-radius: 50px;
    text-decoration: none;
    font-family: "botanica-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    box-shadow: 0 4px 15px rgba(131, 171, 215, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin: 5px;
    /* Spacing between buttons */
    width: 80%;
    /* Ensure reasonable width on mobile */
    max-width: 300px;
}

.calendar-btn {
    background-color: var(--pink-color);
    /* Use pink for calendar to differentiate */
    box-shadow: 0 4px 15px rgba(212, 149, 125, 0.4);
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 171, 215, 0.6);
    background-color: #6a9ac9;
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 149, 125, 0.6);
    background-color: #c07a60;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-image {
    animation: fadeIn 1.5s ease-out;
}

.content {
    animation: slideUp 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(-40px);
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .invite-container {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }

    body {
        padding: 0;
        background: #fff;
    }

    .content {
        top: 40%;
        bottom: 40%;
        transform: translate(-40%, -40%);
    }

    .main-title {
        font-size: 4rem;
        max-width: 90%;
    }

    .intro-text {
        font-size: 1rem;
        max-width: 90%;
    }

    .sub-title {
        font-size: 1.2rem;
        max-width: 90%;
    }

    .details {
        font-size: 1.2rem;
        max-width: 90%;
    }

    .map-btn,
    .calendar-btn {
        font-size: 1.2rem;
        padding: 10px 20px;
        width: 90%;
        max-width: none;
    }
}