* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body, html {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: slideshow 25s infinite; /* Apply animation to the body */
    background-size: cover;
    background-position: center center;
    transition: background-image 1s ease-in-out; /* Smooth transition for background image */
}

@keyframes slideshow {
    0% { background-image: url('images/image1.png'); }
    20% { background-image: url('images/image1.png'); } /* 5 seconds */
    25% { background-image: url('images/image2.png'); }
    45% { background-image: url('images/image2.png'); } /* 5 seconds */
    50% { background-image: url('images/image3.png'); }
    70% { background-image: url('images/image3.png'); } /* 5 seconds */
    75% { background-image: url('images/image4.png'); }
    95% { background-image: url('images/image4.png'); } /* 5 seconds */
    100% { background-image: url('images/image5.png'); }
    100% { background-image: url('images/image5.png'); } /* 5 seconds */
    100% { background-image: url('images/image1.png'); } /* Loop back to the first image */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    color: white;
    text-align: center;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

p {
    font-size: 18px;
    margin-bottom: 10px;
}

.farewell-message {
    font-style: italic;
    margin-top: 20px;
    font-size: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 15px;
}

.button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #555a6f; /* Muted dark blue/gray tone */
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #3f4459; /* Darker tone for hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    p, .farewell-message {
        font-size: 16px;
    }
    
    .button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    p, .farewell-message {
        font-size: 14px;
    }
    
    .button {
        font-size: 14px;
    }
}
