
@font-face {
    font-family: 'SF Pro Rounded';
    src: url('fonts/SF-Pro-Rounded-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Global Styles */
body {
    font-family: 'SF Pro Rounded', Arial, sans-serif;
    line-height: 1.6;
    background-size: contain;
    background-repeat: repeat-y;
    background-position: left;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.title {
    font-size: 24px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 6px;
    text-align: center;
}

.mempelai {
    font-family: "Dorsa", sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 42.28px;
    letter-spacing: 4px;
    text-align: center;
    color: #9D3921;
    margin: 0px;
}

#name-display {
    font-weight: bold;
}

/* Container to Center Content */
.container {
    width: 100%;
    max-width: 450px; /* Maximum width for mobile display */
    margin: 0 auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Section Styles */
section {
    margin-bottom: 20px;
    margin-top: 3em;
}

/* Countdown Timer Styles */
#countdown {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, select, textarea {
    font-family: 'SF Pro Rounded', Arial, sans-serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 30px;
    background-color: #9D3921;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #9D3921;
}

/* Guest Wishes Styles */
#guest-wishes {
    margin-top: 20px;
    max-height: 420px;
    overflow-y: auto;
    border-radius: 4px;
    text-align: left;
    margin-left: -5px;
}


#countdown {margin-top: 5em;}

#countdown-timer {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 30px;
    font-weight: normal;
    margin-top: 30px;
    margin-bottom: 50px;
}

#countdown-timer span {
   display: grid;
   font-size: 30px;
   color: #9D3921;
}

#countdown-timer span small {
    color: #333;
    font-size: 18px;
}

.tag {
    margin-top: 10px;
    padding: 6px 16px 6px 16px;
    border-radius: 30px;
    background: #9D3921;
    font-size: 12px;
    width: fit-content;
    text-align: center;
    display: inline-block;
}

.tag a {
    color: #fff;
    text-decoration: none;
}

#wedding-details {
    margin-top: 10em
}

/* Container for the entire message */
.message-container {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
    max-width: 400px;
}

/* Avatar styling */
.avatar {
    width: 30px;
    height: 30px;
    background-color: #00AEEF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    margin-right: 10px;
    margin-top: 5px;
}

/* Styling for the text inside the avatar */
.avatar-text {
    font-weight: bold;
}

/* Container for the message content */
.message-content {
    flex: 1;
}

/* Styling for the message bubble */
.message-bubble {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 0px 10px 10px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 230px;
}

/* Styling for the sender's name */
.sender-name {
    color: #00AEEF;
    font-weight: bold;
    margin: 0;
}

/* Styling for the message text */
.message-text {
    color: #555555;
    font-size: 14px;
    margin: 5px 0;
}

/* Styling for the timestamp */
.message-time {
    color: #999999;
    font-size: 12px;
    text-align: right;
    margin-top: 10px;
}


.invitation-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invitation-content {
    text-align: center;
    color: white;
    padding: 70px;
}

.invitation-header {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.bride-name, .groom-name {
    font-size: 24px;
    margin: 10px 0;
}

.initials {
    font-size: 72px;
    margin: 20px 0;
}

.initial {
    font-family: 'Serif', sans-serif;
    display: inline-block;
}

.date {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.open-invitation-btn {
    padding: 10px 20px;
    background-color: #d56242;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 35px;
}

.open-invitation-btn:hover {
    background-color: #b54a2f;
}

/* Default state (hidden with opacity 0) */
.fade-in-element {
    opacity: 0;
    transform: translateY(50px); /* Optional: slight slide effect */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

/* State when the element is visible on the viewport */
.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-in, transform 0.8s ease-in; 
}

/* Default state */
#first {
    opacity: 1;
    transition: opacity 1s ease; /* Durasi transisi 1 detik */
}

/* Fade-out effect */
.fade-out {
    opacity: 0 !important;
}

.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #9D3921;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    z-index: 1000;
}

.floating-button:checked {
    background-color: #9D3921
}

 .note {
    position: absolute;
    bottom: 100%;
    font-size: 24px;
}
