/* Importing the 'Inter' font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* General Styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F6F9FC;
    color: #2E3A59;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: center;
}

header {
    background-color: #1A1E22;
    color: #FFFFFF;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

/* Navigation Styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #1A1E22;
    padding: 0.6rem 1rem;

}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    transition: background-color 0.3s ease;
    border-radius: 4px;

}

nav ul li a:hover {
    background-color: #00FFCC;
}

/* Slideshow Container Styling */
.slideshow-container {
    position: relative;
    width: 70%; /* Set width to 70% of the page */
    max-width: 1200px; /* Add a max-width for larger screens */
    min-height: 500px; /* Adjust this height to match your images */
    margin: 0 auto; /* Center the container on the page */
    overflow: hidden; /* Prevents elements from spilling out */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slideshow-container img {
    display: block;
    width: 100%;
    height: auto; /* Maintains aspect ratio */
}

.slide {
    display: none;
    position: relative;
}

.slide img {
    max-height: 100%;
    object-fit: cover; /* Ensures images are cropped evenly */
}

/* Navigation Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Fade Effect */
.fade {
    animation: fadeEffect 1.5s ease;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Footer Styling */
footer {
    position: relative; /* Ensures footer stays below the content */
    width: 100%;
    padding: 1rem;
    background-color: #1A1E22;
    color: #FFFFFF;
    text-align: center;
}

/* Add margin to separate slideshow from footer */
.slideshow-container {
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .slideshow-container {
        width: 90%; /* Use more screen width on smaller devices */
        min-height: 300px; /* Reduce slideshow height for smaller screens */
    }

    header h1 {
        font-size: 1.5rem;
    }
}
