@import url('variables.css');
body {
    display: grid;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    grid-template-areas: 
            "nav"
            "slideshow"
            "story"
            "footer";
    grid-template-rows: 130px 900px auto auto; /* Adjust rows to fit their content */
    grid-template-columns: 1fr;
}

/* Container for the slideshow */
.slideshow-container {
    overflow: hidden;
    white-space: nowrap;  /* Prevent images from wrapping */
    grid-area: slideshow;
    height: 100%;
    background-color: var(--main-color);
}

/* Wrapper for the sliding images */
.sliding-images {
    display: inline-block;
    animation: 20s slide infinite linear;  /* Slide the images every 10 seconds */
    height: 100%;
}

/* Styling for each image */
.sliding-images img {
    width: AUTO; 
    height: 100%;
}

/* Keyframes for the sliding animation */
@keyframes slide {
    from {
        transform: translateX(0);  /* Start at the left */
    }
    to {
        transform: translateX(-100%); /* Move the images out of view and start over */
    }
}

footer {
    grid-area: footer;
    display: flex;
    justify-content: center;
    align-items: center;
    :first-child {
        margin-bottom: 50px;
    }
}
nav{
    grid-area: nav;
}
nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.story {
    padding: 20px;
    text-align: center;
    grid-area: story;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    width: 70%;
}