/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* =========================
   COVER
========================= */

.cover {
    position: relative;
    width: 100%;
    height: 100vh;

    background-image: url('../assets/img/cover.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   OVERLAY
========================= */

.overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.55));
}

/* =========================
   FLORAL DECORATION
========================= */

.floral-left {

    position: absolute;

    left: -40px;

    bottom: -20px;

    width: 42vw;

    max-width: 260px;

    z-index: 3;

    pointer-events: none;

    opacity: 0;

    animation:
        floralEntrance 1.8s ease forwards,
        floralFloat 5s ease-in-out infinite 2s;
}

/* =========================
   BUTTERFLY TOP RIGHT
========================= */

.butterfly-right {

    position: absolute;

    top: -10px;

    right: -10px;

    width: 38vw;

    max-width: 240px;

    z-index: 4;

    pointer-events: none;

    opacity: 0;

    filter:
        drop-shadow(0 0 15px rgba(255, 255, 255, .25));

    animation:
        butterflyEntrance 2s ease forwards,
        butterflyFloat 6s ease-in-out infinite 2s;
}

/* =========================
   FAIRY STARS
========================= */

.stars {

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 1;
}

.stars span {

    position: absolute;

    color: white;

    font-size: 18px;

    text-shadow:
        0 0 10px rgba(255, 255, 255, .8),
        0 0 20px rgba(255, 255, 255, .8),
        0 0 30px rgba(255, 255, 255, .6);

    animation:
        sparkle 3s infinite ease-in-out;
}

.stars span:nth-child(1) {
    top: 10%;
    left: 15%;
}

.stars span:nth-child(2) {
    top: 18%;
    right: 20%;
}

.stars span:nth-child(3) {
    top: 28%;
    left: 8%;
}

.stars span:nth-child(4) {
    top: 35%;
    right: 12%;
}

.stars span:nth-child(5) {
    top: 48%;
    left: 20%;
}

.stars span:nth-child(6) {
    top: 58%;
    right: 18%;
}

.stars span:nth-child(7) {
    top: 70%;
    left: 12%;
}

.stars span:nth-child(8) {
    top: 78%;
    right: 8%;
}

.stars span:nth-child(9) {
    top: 88%;
    left: 25%;
}

.stars span:nth-child(10) {
    top: 92%;
    right: 25%;
}

@keyframes sparkle {

    0% {

        opacity: .3;

        transform:
            scale(.8);
    }

    50% {

        opacity: 1;

        transform:
            scale(1.3);
    }

    100% {

        opacity: .3;

        transform:
            scale(.8);
    }
}

/* =========================
   MOON GLOW
========================= */

.moon-glow {

    position: absolute;

    top: 60px;
    right: 30px;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .18);

    filter: blur(45px);

    animation: glow 4s ease-in-out infinite;
}

@keyframes glow {

    0% {
        opacity: .4;
        transform: scale(1);
    }

    50% {
        opacity: .8;
        transform: scale(1.08);
    }

    100% {
        opacity: .4;
        transform: scale(1);
    }

}

/* =========================
   CONTENT
========================= */

.content {

    position: relative;
    z-index: 10;

    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    text-align: center;

    padding-top: 70px;
}

/* =========================
   INVITED YOU
========================= */

.invite-text {

    font-family: 'Cormorant Garamond', serif;

    color: white;

    font-size: 20px;

    font-weight: 600;

    letter-spacing: 1px;

    margin-bottom: 15px;

    opacity: 0;

    animation:
        fadeUp 1s ease forwards;
}

.astrid {

    font-family: 'Qwigley', cursive;

    color: #fff;

    font-size: 120px;

    font-weight: 400;

    line-height: .8;

    margin-bottom: -15px;

    text-shadow:
        0 3px 15px rgba(0, 0, 0, .35);

    animation:
        fadeUp 1.2s ease forwards;
    text-shadow:
        0 0 10px rgba(255, 255, 255, .7),
        0 0 20px rgba(255, 255, 255, .5),
        0 0 40px rgba(255, 255, 255, .3);
}


.birthday {

    font-family: 'Qwigley', cursive;

    color: #fff;

    font-size: 95px;

    font-weight: 400;

    line-height: .9;

    margin-bottom: -5px;

    text-shadow:
        0 3px 15px rgba(0, 0, 0, .35);

    opacity: 0;

    animation:
        fadeUp 1.2s ease forwards;

    animation-delay: .4s;
    text-shadow:
        0 0 8px rgba(255, 255, 255, .6),
        0 0 18px rgba(255, 255, 255, .4);
}

.sweet {

    font-family: 'Qwigley', cursive;

    color: #f3dfd2;

    font-size: 65px;

    margin-bottom: 120px;

    text-shadow:
        0 3px 15px rgba(0, 0, 0, .35);

    opacity: 0;

    animation:
        fadeUp 1.2s ease forwards;

    animation-delay: .8s;
    text-shadow:
        0 0 8px rgba(255, 220, 180, .8),
        0 0 20px rgba(255, 220, 180, .4);
}

.open-btn {

    display: inline-block;

    padding: 14px 32px;

    background: #d89c88;

    color: white;

    text-decoration: none;

    border-radius: 40px;

    font-size: 15px;

    font-weight: 500;

    transition: .3s;
    opacity: 0;

    animation:
        fadeUp 1.2s ease forwards;

    animation-delay: 1.2s;
}

.open-btn:hover {

    transform: translateY(-3px);

    background: #e2a793;
}

/* =========================
   MOBILE
========================= */

@media (max-width:480px) {

    .title {

        font-size: 38px;

        margin-bottom: 320px;
    }

    .invite-text {

        font-size: 12px;
    }

    .moon-glow {

        width: 120px;
        height: 120px;
    }

    .butterfly-right {

        width: 45vw;

        max-width: none;

        top: -5px;

        right: -15px;
    }

}

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
            translateY(40px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes floralEntrance {

    from {

        opacity: 0;

        transform:
            translateY(100px) scale(.8);
    }

    to {

        opacity: 1;

        transform:
            translateY(0) scale(1);
    }
}

@keyframes floralFloat {

    0% {

        transform:
            translateY(0) rotate(0deg);
    }

    50% {

        transform:
            translateY(-10px) rotate(-2deg);
    }

    100% {

        transform:
            translateY(0) rotate(0deg);
    }
}

@keyframes butterflyEntrance {

    from {

        opacity: 0;

        transform:
            translateX(100px) translateY(-80px) scale(.8);
    }

    to {

        opacity: 1;

        transform:
            translateX(0) translateY(0) scale(1);
    }
}

@keyframes butterflyFloat {

    0% {

        transform:
            translateY(0) rotate(0deg);
    }

    25% {

        transform:
            translateY(-8px) rotate(1deg);
    }

    50% {

        transform:
            translateY(-15px) rotate(-1deg);
    }

    75% {

        transform:
            translateY(-8px) rotate(1deg);
    }

    100% {

        transform:
            translateY(0) rotate(0deg);
    }
}