@font-face {
    font-family: "songti-regular";
    src: url("fonts/songti-regular.ttf");
}

@font-face {
    font-family: "songti-black";
    src: url("fonts/songti-black.ttf");
}

@font-face {
    font-family: "songti-bold";
    src: url("fonts/songti-bold.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "songti-regular";
}

body {
    background-color: #f8f9fa;
    color: #6a2d00;
}

img {
    max-width: 100%;
    height: auto;
}

.invitation-card {
    max-width: 575px;
    margin: 0 auto;
    position: relative;
    background: #fff7ef;
    padding-bottom: 2rem;
}

.welcome-section {
    position: relative;
}

.we-got-married {
    width: 70%;
    margin: 0 auto;
    position: absolute;
    top: 5rem;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
}

.long-time-no-see {
    font-size: 1.5rem;
}

.letter-space-narrow-plus {
    letter-spacing: 0.25rem;
}

.letter-space-narrow {
    letter-spacing: 0.4rem;
}

.letter-space-1 {
    letter-spacing: 1rem;
}

.logo {
    width: 40%;
    margin: 0 auto;
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.section-icon {
    width: 2.5rem;
    margin: 3rem auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-icon.bright {
    width: 2.5rem;
    background-color: #fff7ef;
}

.mb-6 {
    margin-bottom: 6rem;
}

.mb-7 {
    margin-bottom: 8rem;
}

.couple-name {
    margin: 0;
    font-family: "songti-bold";
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

.wedding-messages {
    margin: 0;
    text-align: center;
    line-height: 1;
}

.wedding-messages:first-child {
    margin-bottom: 1rem;
}

.line {
    width: 80%;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #b20d18;
    transform: translate(-50%, -50%);
}

.date-venue-wrapper {
    margin: 5rem 0;
}

.date-venue {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: normal;
    text-align: center;
    line-height: 1;
}

.date-venue.date {
    font-family: "songti-bold";
    font-size: 1.25rem;
    font-weight: bold;
}

.groom-bride {
    margin-bottom: 7rem;
    position: relative;
}

.groom-name {
    margin-top: -4rem;
}

.bride-name {
    margin-top: 1rem;
}

.short-line {
    width: 2rem;
    height: 1px;
    background-color: #6a2d00;
}

.us-wrapper {
    position: absolute;
    right: 4rem;
    bottom: -8rem;
}

.us-wrapper .us {
    font-size: 4rem;
    letter-spacing: 1rem;
}

.text-vertical {
    writing-mode: vertical-rl;
}

.text-vertical:first-child {
    margin-top: -2rem;
}

.text-vertical:last-child {
    margin-top: -4rem;
}

.countdown-section {
    position: relative;
}

.countdown-calendar {
    width: 100%;
    position: absolute;
    top: 2rem;
}

.countdown h1 {
    font-size: 3.5rem;
}

.calendar {
    width: 70%;
    margin: 0 auto;
    text-align: center;
}

.d-date h1 {
    margin-bottom: 1.5rem;
    font-family: "songti-black";
    font-size: 2.5rem;
}

.d-date h1 span {
    font-size: 1.5rem;
}

.calendar-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    font-size: 1rem;
    position: relative;
}

.day-date {
    position: relative;
    color: #fff;
    z-index: 1;
}

.heart {
    width: 15px;
    height: 15px;
    display: inline-block;
    position: absolute;
    top: 31%;
    left: 64%;
    background-color: #ff0000;
    animation: pulse 1s ease infinite;
}

.heart:before, .heart:after {
    content: "";
    width: 15px;
    height: 15px;
    position: absolute;
    background-color: #ff0000;
    border-radius: 50%;
}

.heart:before {
    top: -7px;
    left: 0;
}

.heart:after {
    left: 7px;
    top: 0;
}

@keyframes pulse {
    0% {
        transform: rotate(-45deg) translate(-50%, -50%) scale(1);
    }
    50% {
        transform: rotate(-45deg) translate(-50%, -50%) scale(1.3);
    }
    100% {
        transform: rotate(-45deg) translate(-50%, -50%) scale(1);
    }
}

.pill {
    background-color: #fff0d8;
    border-radius: 0.75rem;
    font-family: "songti-bold";
    font-size: 1.5rem;
    padding: 1rem;
}

.timeline-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #fffdfc;
    border-radius: 0.75rem;
    padding: 2rem;
}

.timeline {
    display: flex;
    position: relative;
}

.timeline .time {
    width: 45%;
    display: flex;
    justify-content: flex-end;
    font-size: 1.25rem;
    padding-right: 1.5rem;
}

.timeline .time span {
    margin-top: -10px;
}

.timeline .info {
    width: 55%;
    position: relative;
    border-left: 2px solid #b57748;
    padding-left: 2rem;
    padding-bottom: 3rem;
}

.timeline .info.highlight {
    color: #ff0000;
}

.timeline .info::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    position: absolute;
    left: -6px;
    background-color: #b57748;
    border-radius: 50%;
}

.timeline:last-child .info {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline .info p:first-child{
    margin-top: -1.5rem;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
}

.final-message {
    font-size: 1.25rem;
}

.final-message.bold {
    font-family: "songti-black";
}

#audio {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.audio {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    overflow: hidden;
}

.mrotate {
    animation: mrotate 5s linear infinite;
}

@keyframes mrotate {
    to {
        transform: rotate(1turn);
    }
}

.audio.stop .icon-cancel {
    display: flex;
}

.icon-cancel {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    position: absolute;
}

.icon-cancel .icon-h {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: rotate(45deg);
}

@media screen and (max-width: 767px) {
    .us-wrapper .us {
        font-size: 2rem;
    }

    .countdown h1 {
        font-size: 2rem;
    }

    .d-date h1 {
        font-size: 1.5rem;
    }

    .calendar-header {
        font-size: 1rem;
    }

    .pill {
        font-size: 1rem;
    }

    .final-message {
        font-size: 1rem;
    }

    .timeline .info p:first-child {
        font-size: 1rem;
    }

    .groom-name {
        margin-top: -2rem;
    }

    .timeline .time {
        font-size: 1rem;
    }
}