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

/* 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);
}

/* 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;
    display: flex;
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
}

.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;
    text-align: left; /* Ensure the text aligns left */
}

/* 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 */
}

/* ROM Detail Section */
.rom-detail {
    margin-top: 30px;
    background-color: #ffffff;
    padding: 20px;
    border: 2px solid #cccccc;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.left-side {
    width: 45%;
    text-align: center;
}

.right-side {
    width: 45%;
}

.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    max-width: 100%;
}

.rom-image {
    max-width: 100%; /* Allow image to scale up to 100% of the container width */
    max-height: 250px; /* Limit the height to 250px */
    object-fit: contain; /* Make sure the image fits without being cropped */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


.rom-image:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.rom-name {
    font-size: 1.8rem;
    color: #333;
    margin-top: 15px;
    font-weight: 600;
}

.download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #ff6b6b; /* Smooth red */
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    border-radius: 50px; /* Rounded button */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-btn span {
    font-weight: bold;
}

.download-btn:hover {
    background-color: #e60012; /* Darker red */
    transform: translateY(-4px); /* Slight upward effect */
}

.download-btn:active {
    transform: translateY(2px); /* Active button press effect */
}

/* Right-side Description Styles */
h2, h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}


.rom-description {
    font-size: 1.1rem;
    color: #666;
    margin: 20px 0;
}

.feature-list {
    list-style-type: disc;
    margin-left: 20px;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}



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


@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;
    }
}
