/* Global Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*Normal font*/
@font-face {
	font-family: 'Marcellus';
	src: url('Marcellus-Regular.ttf');
}

/*Title font*/
@font-face {
	font-family: 'RougeScript';
	src: url('RougeScript-Regular.ttf');
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    background-color: #f9f9f9; /* Soft white background */
    color: #555; /* Gentle dark gray text for readability */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #A91B60; /* Soft lavender for headings */
    font-size: 200%;
    font-family: 'RougeScript', serif;
    margin-bottom: 0.5em;
}

p {
    font-family: 'Marcellus', serif;
    color: #666; /* Subtle gray for paragraphs */
}

a {
    color: #7b68ee; /* Soft purple for links */
    text-decoration: none;
}

a:hover {
    color: #483d8b; /* Slightly darker purple on hover */
    text-decoration: underline;
}

button, .btn {
    background-color: #d8bfd8; /* Lavender buttons */
    color: #fff; /* White text on buttons */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #c9a1c9; /* Slightly deeper lavender on hover */
}

input, textarea {
    background-color: #ffffff; /* White background for inputs */
    color: #555; /* Subtle gray text for readability */
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    border-color: #A91B60; /* Lavender border on focus */
    outline: none;
}

/* Divider line styles */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #A91B60, transparent);
    margin: 40px 0;
}

.left-align {
	text-align: left;
}

.right-align {
	text-align: right;
}

.address-size {
	font-size: 13px;
}

.name-title {
    font-family: 'RougeScript', cursive;
    font-size: 5em;
    color: #A91B60;
    margin-bottom: 20px;
}

.header {
    position: relative;
    aspect-ratio: 1920 / 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 2.5rem;
    overflow: hidden;
	--bg-image-before: url('images/header_1.jpg'); /* Initial image */
    --bg-image-after: url('images/header_2.jpg');
    --before-opacity: 1;
    --after-opacity: 0;
}

.header::before,
.header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Default for desktop */
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 2s linear;
    z-index: -1;
}

.header::before {
    background-image: var(--bg-image-before);
    opacity: var(--before-opacity);
    animation: fadeIn 12s ease-in-out infinite;
}

.header::after {
    background-image: var(--bg-image-after);
    opacity: var(--after-opacity);
    animation: fadeIn 12s ease-in-out infinite;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive logo scaling */
.logo-content {
    position: relative;
    z-index: 1;
    height: 100%; /* full height of header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Make the logo scale with header height */
.logo-content img {
    width: auto;
    object-fit: contain;
    max-height: 100%;
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {

    .header::before,
    .header::after {
        background-size: contain; /* Show full image on mobile */
        background-position: top center;
    }

    .language-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        flex-direction: row;
    }
}

.header h1 {
    font-family: 'Brush Script MT', cursive;
    font-size: 3.5rem;
    color: #A91B60; /* Lavender color for the header */
}

.wedding-date {
    font-size: 1.2rem;
    color: #ffd700; /* Brighter gold for more contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Stronger shadow for better visibility */
    margin-top: 10px;
    font-weight: bold; /* Make text stand out more */
}

.header-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
}

.section {
    padding: 60px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 1s ease;
    background-color: #f4f4f8; /* Soft pastel gray for sections */
    color: #555;
}

.container {
	overflow: hidden;
    max-width: 600px;
    margin: auto;
	width: 100%;
}

.container-90 {
	overflow: hidden;
	margin: auto;
	float: left;
	width: 90%;
}

.container-75 {
	overflow: hidden;
	margin: auto;
	float: left;
	width: 75%;
}

.container-50 {
	overflow: hidden;
	margin: auto;
	float: left;
	width: 50%;
}

.container-33 {
	overflow: hidden;
	margin: auto;
	float: left;
	width: 33%;
}

.container-25 {
	overflow: hidden;
	margin: auto;
	float: left;
	width: 25%;
}

.container-10 {
	overflow: hidden;
	margin: auto;
	float: left;
	width: 10%;
}

.footer {
    background-color: #eae8f1; /* Light lavender-gray */
    padding: 20px;
    text-align: center;
    font-family: 'Brush Script MT', cursive;
    font-size: 1.5rem;
    color: #A91B60;
}

.footer p {
    font-size: 1.5rem;
}

.fade-in.visible, .slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.header .header-image,
.section .section-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
}

.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

/* Upload Button */
#upload-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #faf3e8;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Loading Icon (Spinner) */
.loading-icon {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    padding: 40px;
    background-color: #f4f4f8; /* Soft pastel gray background */
    color: #A91B60; /* Lavender text */
}

.countdown-title {
    font-family: 'RougeScript', cursive;
    font-size: 2.5em;
    color: #A91B60;
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: 'Marcellus', serif;
}

.time-unit {
    text-align: center;
    font-family: 'Marcellus', serif;
}

.number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4b3d5a;
    display: block;
}

.label {
    font-size: 1em;
    color: #A91B60;
}

.image {
	width: 100%;
}

.image50 {
	width: 50%;
}

.image25 {
	width: 25%;
}

/* Grey shade for unselected flags */
.image-grayscale {
	-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
	filter: grayscale(100%);
}

/* Celebration Message Style */
.celebration-message p {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d88a7d;
    font-family: 'Brush Script MT', cursive;
    animation: pulse 1.5s infinite;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px auto;
    width: fit-content;
}

/* Pulsing Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* RSVP Section */
.rsvp-section {
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.rsvp-section h2 {
    margin-bottom: 10px;
}

#rsvp-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

#rsvp-form input,
#rsvp-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#rsvp-form button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #A91B60;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#rsvp-form button:hover {
    background-color: #7b68ee;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .section {
        padding: 40px 15px;
    }
}

#lang-toggle-fin, #lang-toggle-eng, #lang-toggle-mex {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 1);
}

/* Timeline */
.timeline {
    position: relative;
    width: 80%;
    max-width: 600px;
    margin: 50px auto;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 18px;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #FFD4E3;
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    left: 18px;
    top: 0;
    width: 4px;
    height: 0;
    background-color: #A91B60; /* Lavender */
    border-radius: 2px;
    transition: height 0.3s ease-out;
}

.timeline-circle {
    position: absolute;
    left: 13px; /* Center it on the line */
    width: 14px;
    height: 14px;
    background: #A91B60;
    border-radius: 50%;
    transition: top 0.3s ease-out;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 50px 0;
    position: relative;
    transition: background-color 0.5s ease-in-out; /* Smooth fade effect */
    /*box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);*/
}

.timeline-item .time {
    font-size: 1.2em;
    font-weight: bold;
    color: #A91B60;
    /*width: 60px;*/
    text-align: right;
	margin-left: 15px;
}

.timeline-item .event {
    font-size: 1em;
    color: #555;
    padding: 10px 15px;
    border-radius: 5px;
    margin-left: 15px;
    flex: 1;
}

.timeline-item.active {
    background-color: rgba(255, 212, 227, 0.2); /* Light lavender highlight */
}

