/* General Styles */
body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
    padding-left: 20px;
    padding-right: 20px;
}

header {
    text-align: center;
    background: #333;
    color: #fff;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin: 10px 0 0;
}

/* Navigation */
nav {
    position: absolute;
    top: 10px;
    left: 10px;
}

.nav-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
}

.nav-button:hover {
    background-color: #575757;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    left: 10px;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1;
}

.nav-dropdown a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}

.nav-dropdown a:hover {
    background-color: #575757;
}

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;  
    height: 700px;     
    overflow: hidden;   
    margin: auto;
    border-radius: 10px;
}

/* Carousel Section Title (Featured LEGO Sets) */
.carousel-container h2 {
    text-align: center;  
    margin-bottom: 20px; 
    font-size: 2rem;    
    font-weight: bold;   
    color: #333;       
}

/* Image Wrapper (Tracks the movement of the images) */
.carousel-track {
    display: flex;
    width: 100%; 
    height: 100%;
    transition: transform 1s ease-in-out;
}

/* Each Slide (Image container) */
.carousel-slide {
    min-width: 100%; 
    height: 100%;  
    display: flex;
    justify-content: center;  
    align-items: center;     
}

/* Image Styling - Ensure image fits perfectly within the container */
.carousel-slide img {
    width: 100%;           
    height: 100%;           
    object-fit: cover;      
}

/* Carousel Navigation Buttons */
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10; /* Ensure buttons appear above images */
}

.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

/* Content Section Styling */
section {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    color: #333;
    margin-bottom: 10px;
}

p, ul {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

ul {
    padding-left: 20px;
}

ul li {
    list-style-type: none;
    margin: 5px 0;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Content Box Styling */
.content-box {
    padding: 20px;
    margin-top: 10px;
    background-color: #fafafa;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search Section */
.search-container {
    text-align: center;
    margin: 20px 0;
}

.search-container input {
    padding: 10px;
    font-size: 1rem;
    width: 60%;
}

.search-container button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

#search-results {
    margin-top: 10px;
    color: #333;
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    background: #333;
    color: white;
    padding: 20px;
}

.newsletter input {
    padding: 10px;
    font-size: 1rem;
    width: 60%;
    margin-bottom: 10px;
}

.newsletter button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: white;
    color: #333;
    border: none;
    cursor: pointer;
}

/* Ensure responsiveness for smaller screens */
@media (max-width: 768px) {
    .carousel {
        max-width: 100%;  
        height: 400px;  
    }
}