/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: "New Century Schoolbook", "Century Schoolbook", serif;
    font-style: italic;
    background-color: #fff9fc;
    height: 100%; /* Ensures full-height layout */
    overflow-x: auto; /* Horizontal scroll for the body */
}

body {
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Content Section (Header and Navigation) */
.content {
    margin: 30px; /* Adjust outer spacing */
}

/* Header */
h1 {
    font-size: 30px;
    margin: 0 0 10px; /* Space below header */
    color: rgb(83, 0, 160)
}

h2 {
    font-size: 20px;
    color: rgb(6, 0, 125);
    font-style: normal;    
}


p {
    margin: 0;
    font-style:normal;   
}

.text-lg {
    font-size: 24px;
}

.text-sm {
    font-size:18px;
}

.text-box {
    width: 400px;
    height: 400px;
    font-size: 18px;
    color:rgb(37, 159, 177);
    text-align: left; 
}

/* Navigation */
.nav {
    margin-top: 10px;
}

.nav ul {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
    display: flex; /* Horizontal alignment for links */
    flex-direction: column;
    gap: 5px; /* Space between links */
}

.nav a {
    text-decoration: none; /* Remove underline */
    font-size: 24px;
    color: rgb(37, 159, 177);
    transition: color 0.3s;
}

.nav a:hover {
    color: rgb(80, 0, 160); /* Hover effect */
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    color: rgb(37, 159, 177)
}

.nowrap {
    white-space: nowrap; 
    font-family: "New Century Schoolbook", "Century Schoolbook", serif;
    font-style: italic;
}

.gallery-container {
    background-color: #fff9fc; /* Gallery background */
    padding-left: 30px;
    width: max-content;
}

/* Horizontal Scrolling Gallery */
.gallery-row {
    display: flex; /* Wrap the gallery */
    justify-content: flex-start; /* Align the gallery to the left */
    padding: 0; /* No padding here */
}

.gallery {
    display: flex; /* Enables horizontal stacking */
    gap: 30px; /* Space between gallery items */
    padding: 20px 30px; /* Equal padding on left and right */
    scroll-snap-type: x mandatory; /* Smooth scrolling snaps */
    height: auto; /* Adjust height as needed */
}

.gallery img {
    flex: 0 0 auto; /* Prevents shrinking or growing */
    max-height: 600px; /* Adjust size of images */
    width: auto; /* Maintain aspect ratio */
    scroll-snap-align: start; /* Align items during scroll */
}



@media (max-width: 768px) {
    .content {
        margin-left: 30px; /* Push content to the right so it doesn’t overlap the nav */
    }

    .nav {
        min-width: 120px; /* Prevents shrinking */
        flex-shrink: 0; /* Ensures it stays in place */
    }

    .nav a {
        font-size: 20px; /* Reduce navigation link size */
    }

    .gallery-container {
        display: flex;
        flex-direction: row; /* Keep nav on the left */
        align-items: flex-start; /* Ensure nav aligns at the top */
        padding-left: 10px; /* Reduce padding */
        width: 100%; /* Ensure it fits smaller screens */
        overflow-x: auto; /* Allow scrolling */
    }

    .gallery-row {
        flex-grow: 1; /* Allow gallery to take up remaining space */
    }

    .gallery {
        gap: 10px; /* Reduce space between images */
        padding: 10px; /* Adjust padding */
    }

    .gallery img {
        max-height: 400px; /* Reduce image size */
    }

    .flex-row {
        flex-direction: row; /* Ensure it stays in a row layout */
        gap: 10px;
    }

    .text-box {
        max-width: 90%;
    }

}

@media (max-width: 480px) {
    .content {
        margin-left: 30px; /* Adjust for even smaller screens */
    }

    .nav {
        min-width: 100px; /* Reduce width for mobile */
    }

    .nav a {
        font-size: 18px; /* Further reduce font size */
    }

    h1 {
        font-size: 24px; /* Adjust heading size */
    }

    .text-lg {
        font-size: 20px;
    }

    .gallery img {
        max-height: 300px; /* Reduce image size for small screens */
    }

    .text-box {
        max-width: 70%;
    }

}
