/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    background: #000;
    scroll-behavior: smooth;
}


body {
    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    background: #000;

    overflow-x: hidden;
}


/* =====================================================
   MAIN CONTAINER
===================================================== */

.wedding-container {
    width: 100%;
    background: #000;
}


/* =====================================================
   VIDEO SECTION
===================================================== */

.video-section {
    position: relative;

    width: 100vw;
    height: 100vh;
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #000;
}


/* =====================================================
   9:16 VIDEO
===================================================== */

.wedding-video {
    display: block;

    width: min(100vw, 56.25vh);

    height: min(177.7778vw, 100vh);

    aspect-ratio: 9 / 16;

    object-fit: cover;

    background: #000;
}


/* =====================================================
   PC
===================================================== */

@media (min-width: 769px) {

    .wedding-video {

        width: auto;

        height: 100vh;

        aspect-ratio: 9 / 16;

        object-fit: cover;
    }

}


/* =====================================================
   PLAY BUTTON
===================================================== */

.play-button {

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 72px;
    height: 72px;

    border-radius: 50%;

    border: 2px solid #fff;

    background:
        rgba(0, 0, 0, 0.40);

    color: #fff;

    font-size: 27px;

    cursor: pointer;

    z-index: 50;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        opacity 0.3s ease;
}


.play-button.hide {

    opacity: 0;

    pointer-events: none;
}


/* =====================================================
   VIDEO 03
===================================================== */

.video03-section {
    position: relative;
}


/* =====================================================
   SAVE DATE
===================================================== */

.save-date-content {

    position: absolute;

    top: 35%;
    left: 50%;

    transform:
        translateX(-50%);

    width: 100%;

    text-align: center;

    z-index: 20;

    pointer-events: none;
}


/* =====================================================
   SAVE THE DATE TITLE
===================================================== */

.save-date-title {

    margin: 0;

    color: #536b5b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(23px, 3.6vw, 40px);

    font-weight: 500;

    letter-spacing: 3px;

    line-height: 1.1;

    white-space: nowrap;
}


/* =====================================================
   SCRATCH CARD
===================================================== */

.date-scratch-card {

    position: relative;

    width: 64%;

    max-width: 370px;

    height: 120px;

    margin:
        22px auto 0;

    overflow: hidden;

    border-radius: 15px;

    background: #9eaf95;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.18);

    pointer-events: auto;
}


.date-scratch-card::before {

    content: "";

    position: absolute;

    inset: 7px;

    border:
        1px solid
        rgba(255, 255, 255, 0.70);

    border-radius: 10px;

    z-index: 10;

    pointer-events: none;
}


/* =====================================================
   REVEALED DATE
===================================================== */

.revealed-date {

    position: absolute;

    inset: 0;

    z-index: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    color: #536b5b;

    background:
        linear-gradient(
            135deg,
            #fffdf7,
            #f4eee1,
            #fffdf8
        );
}


.date-small {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 1px;

    line-height: 1.1;

    margin-bottom: 4px;
}


.date-main {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 28px;

    font-weight: 600;

    letter-spacing: 1px;

    line-height: 1.1;

    white-space: nowrap;
}


.date-day {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    font-weight: 600;

    letter-spacing: 1px;

    line-height: 1.1;

    margin-top: 4px;
}


/* =====================================================
   SCRATCH CANVAS
===================================================== */

#scratchCanvas {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    z-index: 5;

    cursor: grab;

    touch-action: none;

    user-select: none;

    -webkit-user-select: none;

    transition:
        opacity 0.8s ease;
}


#scratchCanvas.revealed {

    opacity: 0;

    pointer-events: none;
}


/* =====================================================
   COUNTDOWN
===================================================== */

.countdown-area {

    opacity: 0;

    transform:
        translateY(12px);

    pointer-events: none;

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

    margin-top: 22px;
}


.countdown-area.show {

    opacity: 1;

    transform:
        translateY(0);

    pointer-events: auto;
}


.countdown-title {

    color: #536b5b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(20px, 3.2vw, 36px);

    font-weight: 500;

    letter-spacing: 3px;

    line-height: 1.1;
}


.countdown-container {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin-top: 11px;
}


.count-box {

    width: 55px;

    height: 59px;

    border-radius: 6px;

    background: #9eaf95;

    border:
        1px solid
        rgba(70, 90, 75, 0.35);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    color: #fff;
}


.count-number {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;

    font-weight: 600;

    line-height: 1;
}


.count-label {

    margin-top: 4px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 6px;

    font-weight: 600;
}


/* =====================================================
   HOTEL MAP
===================================================== */

.hotel-map-section {
    position: relative;
}


.hotel-map-overlay {

    position: absolute;

    left: 50%;

    bottom: 50%;

    transform:
        translate(-50%, 50%);

    width: 380px;

    padding:
        18px 15px;

    text-align: center;

    background:
        rgba(255, 253, 247, 0.94);

    border-radius: 18px;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.25);

    z-index: 20;
}


.hotel-map-title {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    color: #536b5b;

    letter-spacing: 2px;

    font-weight: 600;
}


.hotel-map-address {

    margin-top: 5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    color: #666;
}


.map-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 13px;

    min-width: 170px;

    padding:
        10px 18px;

    border-radius: 30px;

    background: #9eaf95;

    color: #fff;

    text-decoration: none;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 12px;

    letter-spacing: 1px;
}


/* =====================================================
   RSVP SECTION
===================================================== */

.rsvp-section {
    position: relative;
}


/* =====================================================
   RSVP CARD
   FIXED DESIGN SIZE
===================================================== */

.rsvp-card {

    position: absolute;

    top: 50%;
    left: 50%;

    width: 440px;
    height: 280px;

    transform:
        translate(-50%, -50%);

    padding:
        20px 14px;

    background:
        rgba(180, 177, 171, 0.92);

    border-radius: 12px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.25);

    z-index: 30;

    text-align: center;

    overflow: hidden;

    transform-origin: center center;
}


/* =====================================================
   RSVP TITLE
===================================================== */

.rsvp-title {

    margin: 0;

    color: #fff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;

    line-height: 1;

    font-weight: 700;

    text-shadow:
        0 2px 3px
        rgba(0, 0, 0, 0.25);
}


/* =====================================================
   RSVP SUBTITLE
===================================================== */

.rsvp-subtitle {

    margin:
        5px 0 13px;

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 0.8px;
}


/* =====================================================
   RSVP FORM
===================================================== */

#rsvpForm {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


/* =====================================================
   RSVP INPUT
===================================================== */

#rsvpForm input {

    width: 100%;

    height: 34px;

    border: none;

    outline: none;

    border-radius: 6px;

    padding:
        0 12px;

    background: #fff;

    color: #555;

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    flex-shrink: 0;
}


#rsvpForm input::placeholder {

    color: #555;

    opacity: 1;
}


#rsvpForm input:focus {

    box-shadow:
        0 0 0 2px
        rgba(255, 255, 255, 0.6);
}


/* =====================================================
   RSVP BUTTON
===================================================== */

.rsvp-button {

    width: 100%;

    height: 34px;

    margin-top: 1px;

    border: none;

    border-radius: 20px;

    background: #fff;

    color: #333;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 0.7px;

    cursor: pointer;

    flex-shrink: 0;
}


.rsvp-button:active {

    transform:
        scale(0.98);
}


/* =====================================================
   RSVP MESSAGE
===================================================== */

.rsvp-message {

    margin-top: 13px;

    color: #fff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 10px;

    font-weight: 600;

    font-style: italic;

    text-shadow:
        0 1px 2px
        rgba(0, 0, 0, 0.2);
}


/* =====================================================
   MOBILE
   RSVP SAME PROPORTION
===================================================== */

@media (max-width: 768px) {

    .video-section {

        height: 100svh;

        min-height: 100svh;
    }


    .wedding-video {

        width: 100vw;

        height: 100svh;

        aspect-ratio: 9 / 16;

        object-fit: cover;
    }


    /* SAVE DATE */

    .save-date-content {

        top: 35%;
    }


    .save-date-title {

        font-size: 24px;

        letter-spacing: 2.5px;
    }


    .date-scratch-card {

        width: 64%;

        height: 115px;

        margin-top: 20px;
    }


    .date-main {

        font-size: 28px;
    }


    .date-day {

        font-size: 20px;
    }


    .countdown-area {

        margin-top: 19px;
    }


    .countdown-title {

        font-size: 22px;

        letter-spacing: 2.5px;
    }


    .countdown-container {

        gap: 5px;
    }


    .count-box {

        width: 53px;

        height: 57px;
    }


    /* HOTEL */

    .hotel-map-overlay {

        width: 380px;

        transform:
            translate(-50%, 50%)
            scale(
                min(
                    calc(100vw / 480),
                    calc(100svh / 320)
                )
            );

        transform-origin:
            center center;
    }


    /* =========================================
       RSVP
       DESIGN ALWAYS 440 x 280
       ONLY SCALE CHANGES
    ========================================== */

    .rsvp-card {

        width: 440px;

        height: 280px;

        transform:
            translate(-50%, -50%)
            scale(
                min(
                    calc(100vw / 480),
                    calc(100svh / 320)
                )
            );

        transform-origin:
            center center;
    }

}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 380px) {

    .save-date-content {

        top: 33%;
    }


    .save-date-title {

        font-size: 21px;

        letter-spacing: 2px;
    }


    .date-scratch-card {

        width: 66%;

        height: 108px;
    }


    .date-main {

        font-size: 26px;
    }


    .date-day {

        font-size: 20px;
    }


    .countdown-title {

        font-size: 20px;
    }


    .count-box {

        width: 50px;

        height: 54px;
    }


    /* HOTEL */

    .hotel-map-overlay {

        width: 380px;

        transform:
            translate(-50%, 50%)
            scale(
                calc(100vw / 480)
            );
    }


    /* RSVP */

    .rsvp-card {

        width: 440px;

        height: 280px;

        transform:
            translate(-50%, -50%)
            scale(
                calc(100vw / 480)
            );
    }

}