/* General body styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff; /* Clean white background */
    color: #333; /* Dark text for readability */
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #e60012; /* Nintendo Red */
    padding: 20px 0;
    border-bottom: 4px solid #ffffff; /* White border for contrast */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar .dropdown {
    position: relative;
    margin: 0 20px;
}

/* Navigation link styling */
.nav-link {
    text-decoration: none;
    color: #ffffff; /* Nintendo red */
    font-size: 1.4em;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: #3304bd; /* Hover effect with red text */
    transform: scale(1.1); /* Slightly enlarge the text */
}

/* Dropdown menu styling */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333333; /* Dark grey dropdown */
    min-width: 180px;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 8px;
}

/* Dropdown item styling */
.dropdown-content a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #E60012; /* Red on hover */
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(10px); /* Smooth downward effect */
}

/* Search Bar Styling (Nintendo Style) */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px; /* Adds spacing between navbar and search bar */
}

.search-bar {
    padding: 10px;
    font-size: 1.2em;
    border: 2px solid #e60012; /* Nintendo Red Border */
    border-radius: 20px; /* Rounded corners for a more modern look */
    width: 250px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    background-color: #f7f7f7; /* Light gray background */
}

/* Focus effect */
.search-bar:focus {
    border-color: #00bfff; /* Blue focus border */
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.5); /* Soft blue glow */
}

/* Button Styling (Nintendo Red) */
.search-button {
    padding: 10px 20px;
    background-color: #e60012; /* Nintendo Red */
    color: white;
    border: none;
    border-radius: 20px; /* Matching rounded corners */
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #d4000f; /* Slightly darker red on hover */
}

.search-button:active {
    background-color: #c3000a; /* Even darker red when clicked */
}

/* Carousel Styling */
.carousel {
    position: relative;
    width: 80%; /* Adjust this as needed */
    max-width: 1000px;
    margin: 175px auto;
    overflow: hidden;
    border-radius: 10px;
}

/* Flex container for images */
.carousel-images {
    display: flex;
    gap: 10px; /* Space between images */
    transition: transform 1s ease-in-out;
}

/* Carousel images */
.carousel-images a {
    flex: 1 0 calc(25% - 20px); /* Ensures 4 images fit and respects the gap */
    text-align: center;
}

/* Ensuring uniform image size */
.carousel-images img {
    width: 100%; /* Makes images fill their container */
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensures that the images cover the area without distortion */
    border-radius: 10px; /* Rounded corners */
    background-color: #f0f0f0; /* Background color for empty areas */
}

/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

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

/* Footer Styling */
.footer {
    text-align: center;
    font-size: 0.9em;
    padding: 20px;
    background-color: #ff0000; /* Dark footer */
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

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

    .navbar-item {
        margin-bottom: 15px;
    }

    .carousel {
        height: 300px; /* Adjust carousel height for smaller screens */
        width: 90%; /* Adjust carousel width for mobile */
    }

    .carousel-images img {
        width: 45%; /* Ensure images take up more space for mobile */
    }

    .nav-link {
        font-size: 1.2em;
        padding: 8px 18px;
    }
}

/* Mods Page Styles */
.mods-container {
    max-width: 1200px;
    margin: 100px auto 150px;
    padding: 20px;
}

.section-title {
    color: #e60012;
    text-align: center;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.mod-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid #e60012;
}

.mod-card:hover {
    transform: translateY(-5px);
}

.mod-image {
    width: 100%;
    height: 200px;
    object-fit: contain;  /* Ensures the entire image is visible */
    border-bottom: 3px solid #e60012;
    background-color: #fff;  /* Optional: fills extra space if aspect ratio doesn't match */
}


.mod-info {
    padding: 15px;
    background: #f8f8f8;
}

.mod-info h3 {
    color: #e60012;
    margin: 0 0 10px;
}

.mod-info p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    min-height: 60px;
}

.download-button {
    background: #e60012;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    transition: background 0.3s ease;
}

.download-button:hover {
    background: #ff0015;
    box-shadow: 0 2px 4px rgba(230,0,18,0.3);
}


.mod-card:hover::after {
    opacity: 1;
}
