/* General styles for the whole page */
body {
    font-family: Arial, sans-serif;
    background-color: lightpink;
    padding: 20px;
    background-image: url('images/bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    margin: auto;
    width: 98%;
    max-width: 1100px; /* Ensure it's not too wide */
}

/* Global box sizing */
* {
    box-sizing: border-box;
}

/* Header Styling */
header {
    background-image: url(images/background.jpg); /* Updated background image */
    height: 100px; /* Set a fixed height */
    color: lightpink;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

/* Center the page on screen */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

/* Navigation Styling */
nav {
    text-align: center;
    padding: 10px;
    background-color: purple;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0; /* Remove margin from last item */
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

nav ul li a:hover {
    background-color: hotpink;
    border-radius: 5px;
}

/* Section Styling */
section {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 20px;
    background-color: #ffffff;
    margin: 20px 0;
}

/* About Section Styling */
#about h2 {
    margin-bottom: 20px;
    color: purple;
}

#about p {
    line-height: 1.6;
    color: #555;
    padding: 10px 0;
}

/* Image Gallery Styling */
#figureContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

figure {
    width: 320px; /* Default size for larger screens */
    margin: 5px;
    padding: 10px;
    display: block;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure figcaption {
    font-size: 16px;
    margin-top: 10px;
}

/* Footer Styling */
footer {
    background-color: purple;
    color: white;
    text-align: center;
    padding: 15px;
    position: relative;
    width: 100%;
    margin-top: 20px;
}

/* Sticky footer alternative */
footer.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Blockquote Styles for Enlarged First Letter */
blockquote {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 4px solid #ccc;
}

blockquote::first-letter {
    font-size: 3em;
    font-weight: bold;
    color: #3498db;
    float: left;
    margin-right: 10px;
}

/* Media Queries for Mobile-First Responsiveness */

/* For small to medium screens (phone/tablet) */
@media only screen and (max-width: 720px) {
    header h1 {
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    .container {
        width: 90%;
        padding: 10px;
    }

    footer {
        padding: 10px;
    }

    #about, #contact {
        padding: 20px;
    }

    figure {
        width: 100%; /* Make images stack */
        margin: 10px 0;
    }

    nav li {
        display: block;
        text-align: center;
    }
}

/* For medium screens (tablet) */
@media only screen and (min-width: 720px) and (max-width: 999px) {
    body {
        max-width: 1000px;
    }

    figure {
        width: 480px; /* Adjust figure size for tablets */
    }
}

/* For larger screens (desktop) */
@media only screen and (min-width: 1000px) {
    figure {
        width: 320px; /* Three images per row */
    }
}

/* Table and additional styles from new code */
h2 {
    text-align: center;
}

table {
    width: 70%;
    margin: 0 auto;
    border: 2px solid #003399;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: #003399;
    color: white;
    text-align: center;
}

td {
    border: 1px solid #003399;
}

.required {
    color: red;
    font-weight: bold;
}

/* Instagram Feed Styling */
section iframe {
    max-width: 100%;
    margin: 20px auto;
    display: block;
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

/* Hide all images by default */
.mySlides {
    display: none;
}

/* Style for the images */
.slideshow-container img {
    width: 100%;
    border-radius: 8px;
}