/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all content horizontally */
    justify-content: center;
    background-color: white;
    color: #d32f2f; /* Text color remains red */
    text-align: center; /* Center text alignment */
}

.container {
    width: 90%; /* Flexible width to adjust to screen size */
    max-width: 1200px; /* Max width for larger screens */
    margin: auto;
}

/* Header Section */
header {
    background-color: #d32f2f; /* Red */
    width: 100%; /* Full-width header */
    padding: 20px 0;
    color: white;
}

header h1 {
    font-size: 2.5em;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center; /* Center navigation */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
}

/* Intro Section */
#intro {
    background-color: #d32f2f; /* Red */
    padding: 50px 0;
    width: 100%;
    color: white;
}

#intro h2 {
    font-size: 2.5em;
}

/* Slideshow Container */
.slideshow-container {
    max-width: 600px;  /* Set a max width for the slideshow */
    position: relative;
    margin: 30px auto;
    border: 1px solid #ccc; /* Optional border for styling */
    border-radius: 10px; /* Rounded corners for better aesthetics */
    overflow: hidden; /* Prevents overflow of images */
}

/* Slideshow Images */
.slideshow-container img {
    width: 100%;  /* Set to 100% to fill the container */
    height: auto;  /* Maintain aspect ratio */
    object-fit: cover;  /* Ensures the image covers the space while maintaining proportions */
    border-radius: 10px; /* Ensures the image has rounded corners */
}

/* Slideshow Dots */
.dots-container {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot {
    background-color: #717171;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slideshow-container {
        max-width: 90%;  /* Allow more flexibility on smaller screens */
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        max-width: 100%;  /* Full width for mobile */
    }
}

/* Fade Effect for Slides */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4} 
    to {opacity: 1}
}

/* Info Sections */
.info-section {
    padding: 50px 0;
    width: 100%;
    background-color: white;
}

.info-section h2 {
    color: #d32f2f; /* Red */
    font-size: 2.2em;
    margin-bottom: 20px;
}

.info-section p {
    font-size: 1.2em;
    color: #333;
}

/* Features Table */
.features-table {
    display: flex; /* Use flexbox to align children in a row */
    justify-content: space-between; /* Space out the feature containers evenly */
    margin-top: 20px; /* Top margin for spacing */
}

/* Feature Container */
.feature-container {
    width: 30%; /* Set a specific width for each feature container */
}

/* Feature Box */
.feature-box {
    padding: 20px; /* Padding inside the box */
    background-color: #f1f1f1; /* Background color */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    transition: transform 0.3s ease; /* Smooth scaling on hover */
}

/* Feature Box Hover Effect */
.feature-box:hover {
    transform: scale(1.05); /* Slightly grow on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-table {
        flex-direction: column; /* Stack the boxes vertically on smaller screens */
    }
    
    .feature-container {
        width: 100%; /* Full width on smaller screens */
        margin-bottom: 20px; /* Spacing between stacked boxes */
    }
}

.feature-box h3 {
    color: #d32f2f; /* Change blue to red */
    margin-bottom: 15px;
}

/* Download Button */
.btn-download {
    background-color: #d32f2f; /* Red */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    display: inline-block;
    margin-top: 20px;
}

/* Footer Section */
footer {
    background-color: #d32f2f; /* Red */
    color: white;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    #intro h2 {
        font-size: 2em;
    }

    .info-section h2 {
        font-size: 1.8em;
    }

    nav ul {
        flex-direction: column; /* Stack navigation items vertically on smaller screens */
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin: 10px 0;
    }

    #intro h2 {
        font-size: 1.5em;
    }

    .info-section h2 {
        font-size: 1.5em;
    }

    .features-table {
        grid-template-columns: 1fr; /* Single column layout for small screens */
    }
}
