@import url('https://fonts.googleapis.com/css2?family=Fleur+De+Leah&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Style+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Niconne&family=Style+Script&display=swap');

body {
    margin: 0;
    font-family: 'Style Script', cursive;
	overflow-x: hidden; 
}

.page {
    width: 100vw;
	/* Fallback for older browsers */
    height: 100vh;

    /* Primary unit: ensures content fits within the visible (small) viewport area */
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Ensures no extra space on mobile */
}

.background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive Start Button */
.start-btn {
    padding: 55px 50px; /* Default size for desktop */
    font-size: 60px;
    font-family: 'Fleur De Leah', cursive;
    border-radius: 50%;
    background-color: transparent;
    border: 3px solid white!important;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
	
	/* Text shadow */
    text-shadow: 4px 4px 8px rgba(255, 255, 255, 0.8);

    /* Border shadow */
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.7);
}

/* 📱 Bigger button for mobile devices */
@media screen and (max-width: 768px) {
    .start-btn {
        font-size: 80px !important;
        padding: 70px 65px !important;
        border: 4px solid white!important;
    }
}

@media screen and (max-width: 480px) {
    .start-btn {
        font-size: 60px !important;
        padding: 90px 85px !important;
        border: 5px solid white!important;
    }
}

/* Responsive Text Boxes */
.text-box-1 {
    padding: 10px;
    margin: 10px;
    font-size: 25px;
    color: white;
	text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.text-box-2 {
    padding: 10px;
    margin: 10px;
    font-size: 40px;
	color: white;
	text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.text-box-3 {
    padding: 10px;
    margin: 10px;
    font-size: 20px;
    color: white;
	text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

/* Media Queries for Mobile Screens */
@media screen and (max-width: 768px) {
    .start-btn {
        font-size: 40px;
        padding: 40px 35px;
        border: 2px solid white;
    }
    
    .text-box {
        font-size: 40px;
    }
}

@media screen and (max-width: 480px) {
    .start-btn {
        font-size: 30px;
        padding: 30px 25px;
        border: 2px solid white;
    }
    
    .text-box {
        font-size: 30px;
    }
}

.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: fall 5s linear infinite;
    opacity: 0.5!important;
	z-index: 9999;
}

@keyframes fall {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 1; }
}

.swipe-btn {
    font-size: 24px;
    font-family: "Style Script", cursive;
    color: white;
    border: none;
    background: none;
    display: flex;
    justify-content: flex-end; /* Pushes button to the right */
    align-items: center;
    text-align: right;
    width: 100%; /* Ensures button takes full width for alignment */
    margin-right: 20px; /* Adds space from the edge */
    cursor: pointer;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.swipe-btn::after {
    content: " ➜"; /* Adds an arrow to the right */
    font-size: 24px;
    margin-left: 10px;
}

.page#page3 .background {
    align-items: flex-start;
    padding-left: 20px; /* Adds spacing from the left */
}

.page#page3 .text-box-1 {
    text-align: left;
}

.page#page3 .background {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    padding-left: 20px;
}

/* FIXED: Page 2 text boxes - removed width: 100% and added mobile responsiveness */
.page#page2 .text-box-2, .page#page2 .text-box-3, .page#page2 .text-box-1 {
    align-self: center; /* Keeps content centered */
    text-align: center;
    max-width: 90%; /* Prevents full width on mobile */
    margin: 10px auto; /* Centers with auto margins */
    padding: 10px 20px; /* Adds internal spacing */
    box-sizing: border-box; /* Includes padding in width calculation */
}

/* Mobile-specific adjustments for page 2 text boxes */
@media screen and (max-width: 768px) {
    .page#page2 .text-box-2, .page#page2 .text-box-3, .page#page2 .text-box-1 {
        max-width: 85%; /* More space on sides for tablets */
        margin: 8px auto;
        padding: 8px 15px;
    }
    
    .page#page2 .text-box-2 {
        font-size: 35px; /* Slightly smaller for mobile */
    }
    
    .page#page2 .text-box-1 {
        font-size: 22px;
    }
    
    .page#page2 .text-box-3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .page#page2 .text-box-2, .page#page2 .text-box-3, .page#page2 .text-box-1 {
        max-width: 95%; /* Even more space on sides for phones */
        margin: 5px auto;
        padding: 5px 10px;
    }
    
    .page#page2 .text-box-2 {
        font-size: 46px; /* Smaller for small screens */
    }
    
    .page#page2 .text-box-1 {
        font-size: 24px;
    }
    
    .page#page2 .text-box-3 {
        font-size: 20px;
    }
}

.map-btn {
    font-size: 20px;
    font-family: 'Fleur De Leah', cursive;
    color: white;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    width: 80%; /* Makes button wider on smaller screens */
    max-width: 300px; /* Ensures it doesn't stretch too much */
    padding: 10px; /* Adds spacing inside the button */
}


.map-btn::before {
    content: "📍"; /* Location emoji */
    font-size: 20px;
    margin-right: 10px;
}

#page4 .text-box {
    font-size: 60px;
    color: white;
    font-family: 'Style Script', cursive; /* Matches Page 3 */
}

/* RSVP Form Styling */
#google-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2); /* Subtle transparency */
    border-radius: 15px;
    backdrop-filter: blur(5px); /* Soft blur effect */
    max-width: 90%; /* Prevents form from taking full width */
    margin: 0 auto; /* Centers the form */
}

/* Input fields */
#google-form input, #google-form select {
    font-size: 20px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px; /* Limits input width */
    box-sizing: border-box;
}

/* RSVP Submit Button */
.rsvp-btn {
    font-size: 24px;
    font-family: 'Style Script', cursive;
    color: white;
    border: 3px solid white;
    background: transparent;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.rsvp-btn:hover {
    transform: scale(1.1); /* Hover effect */
}

.add-name-btn {
    font-size: 24px;
    font-family: 'Style Script', cursive;
    color: white;
    border: 3px solid white;
    background: transparent;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    margin-bottom: 15px; /* Adds spacing below */
}

/* Hover effect for a smooth interaction */
.add-name-btn:hover {
    transform: scale(1.1);
}

/* Additional mobile responsiveness for RSVP form */
@media screen and (max-width: 480px) {
    #google-form {
        max-width: 95%;
        padding: 15px;
    }
    
    #google-form input, #google-form select {
        font-size: 18px;
        padding: 8px;
        max-width: 280px;
    }
    
    .rsvp-btn {
        font-size: 20px;
        padding: 8px 16px;
    }
}

#name-fields {
    display: flex;
    flex-direction: column;
    align-items: center; /* Keeps all inputs centered */
    width: 100%;
}

.rsvp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2); /* Matches original form */
    border-radius: 15px;
    backdrop-filter: blur(5px);
    width: 85%;
    max-width: 600px;
}

#success-message{
	font-size: 24px;
    font-family: 'Style Script', cursive;
		padding: 10px;
    margin: 10px;
	text-align:center;
    color: white;
	text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}