/* This is default master for all css style template */
/* @import url('master-splash.css'); */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.3/font/bootstrap-icons.css");

:root {
    --width-container: 410px;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.no-scroll {
    overflow-y: hidden;
}

/* WRAPPER */
.splash-wrapper {
    /* position: fixed; */
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 9999;
}

/* BACKGROUND KIRI KANAN */
.splash-left,
.splash-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transition: transform 1.4s cubic-bezier(.77, 0, .18, 1);
    z-index: 2;
}

.splash-left {
    left: 0;
}

.splash-right {
    right: 0;
}

/* CONTENT */
.splash {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    text-align: center;
}

.splash-content {
    position: relative;
    z-index: 5;
}

.splash-content .splash-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.splash-content .splash-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.splash-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.splash-content p {
    margin-bottom: 2rem;
    opacity: .8;
}

.splash-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.splash-subtitle {
    margin-bottom: 2rem;
}

.splash-date {
    color: white;
    display: inline-block;
    padding: 6px 1rem;
    margin-bottom: 1rem;
}

/* BUTTON */
.splash-btn {
    position: absolute;
    bottom: 3rem;
    overflow: hidden;

    padding: .6rem 2rem;
    border: none;
    border-radius: 999px;

    background: var(--color-primary);
    color: white;

    font-size: .9rem;
    font-weight: bold;
    font-family: var(--font-inter) !important;
    cursor: pointer;

    transition: transform .3s ease;
    margin-top: 1rem !important;
}

/* efek hover */
.splash-btn:hover {
    color: #eeeeee;
    transform: scale(1.08);
}

/* efek glow */
.splash-btn::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -100%;
    width: 80%;
    height: 200px;

    background: rgba(255, 255, 255, .5);
    border-radius: 1rem;
    transform: rotate(25deg);

    transition: .6s;
}

.splash-btn:hover::before {
    left: 130%;
}

/* ANIMASI BUKA */
.splash-wrapper.opened .splash-left {
    transform: translateX(-100%);
}

.splash-wrapper.opened .splash-right {
    transform: translateX(100%);
}

/* content fade out */
.splash-wrapper.opened .splash-content {
    opacity: 0;
    transform: scale(.9);
    transition: all .5s ease;
}

/* optional hilang total */
.splash-wrapper.hide {
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s ease;
}

/* Navigation */
.nav-wrapper {
    position: fixed;
    display: block;
    bottom: 0px;
    left: 0;
    margin: auto;
    width: 100%;
    height: 50px;
    z-index: 30;
}

.nav-list {
    background: var(--color-secondary);
    background-size: 100px;
    border-radius: 30px 30px 0 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: var(--width-container);
    height: 100%;
    margin: 0 auto;
    padding: 0;
}

.nav-list li {
    width: 100%;
    text-align: center;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

/* Label Navigation */
.label-alt {
    font-size: 13px;
    color: white;
    margin: 0 auto;
}

@media(max-width: 480px) {
    .nav-list {
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .nav-list {
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .splash-btn {
        bottom: 10%;
    }
}

.nav-list li a {
    color: #777;
    text-decoration: none;
    padding: 10px;
}

.nav-list li a.active {
    opacity: 1;
    color: rgb(37, 109, 160);
}

.nav-list li a.active .ico-alt {
    opacity: 1;
}

/* Intro Wrapper */
.intro-wrapper {
    background: white;
    height: 100vh;
    position: relative;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    min-height: 100vh;
}

.intro-photo {
    width: 100%;
    height: 100vh;
    display: inline-block;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3.3rem;
    color: white;
    display: block;
    z-index: 5;
    position: relative;
}

.intro-name {
    font-size: 3.2rem;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    z-index: 5;
    position: relative;
}

.intro-text {
    margin-top: 2rem;
    position: relative;
    padding-inline: 1.4rem;
}

.intro-wrapper::before {
    content: '';
    background: linear-gradient(to top, transparent 1%, white 90%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 2;
}

.intro-wrapper::after {
    content: '';
    background: linear-gradient(to bottom, transparent 1%, white 90%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
}

/* Intro Words */
.intro-words {
    background: white;
    padding-top: 140px;
    padding-inline: 6rem;
    position: relative;
    text-align: center;
}

.intro-words .text {
    display: inline-block;
    margin-bottom: 180px;
}

.intro-words::after {
    content: '';
    background: linear-gradient(to bottom, transparent, white) !important;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 160px;
}

/* Timer */
.timer {
    background: white;
    border: 1px solid black;
    color: grey;
    font-size: 27px;
    text-align: center;
    margin: 10px 0;
    border-radius: 4px;
    display: inline-block;
}

.plain-text {
    font-size: 20px;
    color: white;
}

.credit-text {
    color: white;
}

sub.days {
    font-size: 14px;
    color: #fff;
    display: block;
    margin: 0;
    padding: 0;
}

/* Button Reminder */
.btn-reminder {
    background: black;
    border: 1px solid black;
    font-size: 15px;
    color: white;
    padding: 0.5rem 1.5rem !important;
}

.btn-reminder:hover {
    color: white;
}

.btn-reminder-top {
    position: fixed;
    top: 1rem;
    right: 0.6rem;
    display: flex;
    align-items: center;
    text-align: center;
    width: 130px;
}

.btn-reminder-top a {
    background: gray;
    box-shadow: 0 1px 3px white;
    border-radius: 1rem;
    color: white;
    padding: 6px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.btn-reminder-top a:hover {
    background: white;
}

.btn-reminder-top span {
    line-height: 12px;
    font-size: 12px;
    margin: 0 6px;
}
/* Reminder */

/* Button Location */
.btn-location {
    background: white;
    border: white;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    color: white;
    padding: 0.5rem 1.5rem;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.btn-location:hover {
    background: grey;
    color: white;
}

/* Identity Master */
.title {
    font-size: 20px;
    color: white;
    margin: 0;
    padding: 0;
}

.user-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.user-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 15px;
    color: white;
    margin: 0;
    padding: 0;
}

.user-parent {
    display: block;
    margin: 10px 0;
}

.user-address {
    font-size: 13px;
    color: white;
    margin: 0;
    padding: 0;
}

/* Gallery */
.g-items {
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    box-shadow:
        0 4px 12px rgba(0,0,0,.06),
        0 1px 3px rgba(0,0,0,.08);
}

.g-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 220px;
}

.g-item.large {
    grid-column: span 2;
    height: 320px;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}

/* Hover Effect */
.g-item:hover img {
    transform: scale(1.08);
}

/* Overlay */
.g-item::after {
    content: '+';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255,255,255,.95);
    background: rgba(0,0,0,.15);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.g-item:hover::after {
    opacity: 1;
}

/* Tablet */
@media (max-width: 768px) {
    .g-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .g-item {
        height: 180px;
    }

    .g-item.large {
        grid-column: span 2;
        height: 260px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .g-item {
        height: 160px;
    }

    .g-item.large {
        height: 220px;
    }
}
/* Gallery */

/* Card */
.card-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 5px #ddd;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
}

/* Form RSVP */
.form-rsvp {
    border-radius: 5px;
    margin: 6px 0;
    padding: 10px !important;
    font-size: 15px !important;
}

/* List Message */
.wish-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    margin-bottom: 1.5rem;

    font-size: .95rem;
    opacity: .85;
}

.wish-header i {
    color: var(--color-primary);
}

.rsvp-overflow {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 4px;
}

.rsvp-overflow::-webkit-scrollbar {
    width: 5px;
}

.rsvp-overflow::-webkit-scrollbar-thumb {
    background: rgba(122, 103, 160, .2);
    border-radius: 20px;
}

.wish-card {
    display: flex;
    gap: 12px;

    padding: 1rem;
    margin-bottom: .75rem;

    border-radius: 14px;

    background: rgba(122, 103, 160, .04);
    border: 1px solid rgba(122, 103, 160, .08);

    transition: all .25s ease;
}

.wish-card:hover {
    transform: translateY(-2px);
}

.wish-avatar {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-weight: 600;

    background: rgba(122, 103, 160, .08);
    border: 1px solid rgba(122, 103, 160, .12);

    color: var(--color-primary);
}

.wish-content {
    flex: 1;
    min-width: 0;
}

.wish-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;

    margin-bottom: .5rem;
}

.wish-name {
    font-weight: 600;
    font-size: .95rem;
}

.wish-message {
    margin-bottom: .75rem;
    line-height: 1.7;
    word-break: break-word;
}

.wish-date {
    font-size: .75rem;
    opacity: .6;
}

.wish-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .3rem .7rem;

    border-radius: 999px;

    font-size: .72rem;
    font-weight: 500;

    white-space: nowrap;
}

.wish-badge.hadir {
    color: #198754;
    background: rgba(25, 135, 84, .08);
}

.wish-badge.tidak-hadir {
    color: #dc3545;
    background: rgba(220, 53, 69, .08);
}

.empty-wish {
    text-align: center;
    padding: 3rem 1rem;
    opacity: .7;
}

.empty-wish i {
    font-size: 2rem;
    display: block;
    margin-bottom: .75rem;
}

@media (max-width: 576px) {
    .wish-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .wish-badge {
        margin-top: .25rem;
    }
}
/* Form RSVP */

/* Music Player */
.music-player {
    background: rgba(255, 255, 255, .5);
    border-radius: 40px;
    box-shadow: 1px 2px 5px #999;
    display: -webkit-box;
    position: fixed;
    right: 80px;
    bottom: 80px;
    font-size: 12px;
    color: black;
    padding: 5px;
    width: max-content;
    z-index: 99;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 720px) {
    .music-player {
        position: fixed;
        bottom: 120px;
        right: 16px;
    }
}

.btn-player {
    background: var(--color-primary);
    border: 1px solid var(--color-primary) !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
}

.btn-player:hover {
    background: var(--color-primary);
}
/* Music Player */

/* Field Copy */
.field-copy {
    background: transparent;
    opacity: 0;
    position: fixed;
}

/* Sparkles */
.sparkle-top-right {
    position: absolute;
    top: 250px;
    right: 10px;
    z-index: 5;
}

.sparkle-top-left {
    position: absolute;
    top: 150px;
    left: 0px;
    z-index: 5;
}
/* Sparkles */

/* Footer */
.footer {
    background-size: cover;
    text-align: center;
    font-size: 11px;
}

.footer a {
    color: white;
}

.social-list {
    color: white;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    z-index: -1;
}

.social-list li {
    border-radius: 50%;
    font-size: 1.2rem;
    display: inline-block;
    padding: 5px;
    margin: auto 1px;
    text-align: center;
    justify-content: center;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.social-list li:hover {
    opacity: 0.8;
}

.social-list li a {
    color: white;
}
/* Footer */

/* Badge Demo */
.is-demo {
    background: linear-gradient(45deg, #c989d5 40%, #8e6bdd 100%) !important;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    z-index: 10000;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    border-radius: 0 0 6px 6px;
    width: 100%;
}

.is-demo a {
    color: white;
    font-weight: bold;
    text-decoration: underline;
}
