/* General Styles */
body {
    font-family: 'Georgia', 'Arial';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: lavenderblush;
}

/* Apply italics only to headings as an example */
h1, h2, h3 {
    font-style: italic;
}

@font-face {
    font-family: 'Palace Script MT Regular';
    font-style: normal;
    font-weight: normal;
    src: url('fonts/PalaceScriptMT.woff') format('woff');
    }

html {
    scroll-behavior: smooth;
}

/* TEXT FORMATTING */

/* Body text */
p{
    font-style: normal;
    color: #666;
    margin: 2rem auto;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    padding: 0;
    text-align: center; 
    text-justify: inter-word;
    white-space: normal; /* Makes sure text wraps properly */
    word-break: break-word; /* Helps with very long words/URLs */
}
.story p{
    max-width: 45%;
}
.speech p{
    max-width: 40%;
}

/* Header 1 */
h1{
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: #333;
    
}
/* .home h1 is intentionally much larger for homepage emphasis */
.home h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-family: 'Palace Script MT Regular' ;
}

/* Header 2 */
h2{
    font-size: clamp(1.3rem, 2vw, 2rem);
    color: #333;
}

/* Slideshow styling */
.slideshow {
    aspect-ratio: 16 / 9;
    width: 100%; /* or set a specific width */
    height: auto;
    max-height: 50vh;
    max-width: 1500px;
    position: relative;
    margin: 0 auto; /* Center the slideshow */
    overflow: hidden;
}
.slideshow img {
    position:absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slideshow img.active {
    opacity: 1;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 10px 0;
    z-index: 1000;
}
.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.navbar ul li {
    display: inline;
    margin: 0 15px;
}
.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 15px;
    transition: background-color 0.3s;
}
.navbar ul li a:hover {
    background-color: black;
    border-radius: 5px;
}
/* Hamburger icon (initially hidden) */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1100;
}

/* Sections Styling */
.section {
    padding: 2%; /* Padding (distance) between sections */
    text-align: center;
}

/* Flex container */
.flex-container{
    display: flex;
    flex-wrap: wrap;  /* Allow items to wrap when needed */
    width: 100%;
    height: 100%;
    justify-content: center;  /* Distribute space between items */
    align-items: stretch;
}

/* Image */
img{
    width: 100%;
    height: auto;  /* Maintain aspect ratio */
    border-radius: 2%;
    display: block;
    margin:0 auto;
    margin-bottom: 1%;
}

/* Button */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: bold;
    color: black;
    background-color: #E6E6FA; 
    text-decoration: none;
    border-radius: 10%;
    transition: background-color 0.3s ease;
}
.button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background-color: #c7c7e7;
}

/* location */
.location .flex-container{
    flex-wrap: nowrap;
}
.location .left img {
    width: 50vw;  /* Make sure the image takes full width of the container */
    height: auto;  /* Maintain aspect ratio */
    border-radius: 8px;
}
.location .right iframe {
    width: 100%;
    height: 100%; /* Ensure the map fills the container and matches the height of the image */
    border-radius: 8px;
}
.location p{
    max-width: 80%;
}

/* info Section */
.info .flex-container{
    gap: 1.5%;
}
.info-block{
    max-width: 32%;
}

/* Speech Section */
.speech .flex-container{
    gap: 1%;
}
.toastmaster-block{
    width: 20%;
}

/* RSVP Section */
.rsvp img{
    width: 70vw; /* Responsive width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 40%;
}
/* Story Section */
.story{
    background-color: rgb(211, 211, 236);
}




@media (max-width: 1000px) {
    .info-block{
        max-width: 100%;
    }
    
    .navbar ul {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 50px;
        right: 10px;
        width: 180px;
        border-radius: 6px;
        padding: 10px 0;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
    .navbar ul.show {
        display: flex;
    }
    .navbar ul li {
        display: block;
        margin: 8px 0;
        text-align: left;
        padding-left: 15px;
    }
    .menu-toggle {
        display: block;
    }
    .speech p{
        max-width: 100%;
    }
    .story p{
        max-width: 100%;
    }
    .speech .flex-container{
        gap: 10%;
        width: 100%;
    }
    .speech img{
        min-width: 25vw;
    }
}