.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link .subheader{
    text-decoration: none;
    padding: 10px;
    display: block;
    color: black;
    transition: background-color 0.3s, color 0.3s; 
}
.subheader{
    background-color: rgba(0, 0, 0, 0.1);
    height:80px;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0..4); /* Slightly transparent hover effect */
    color: #000; /* Ensures the text remains black */
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9); /* Transparent white background */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 160px;
    transition: opacity 0.3s ease-in-out; /* Smooth transition for showing the menu */
    opacity: 0; /* Start with the menu hidden */
}

.dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s; /* Smooth transition for hover effects */
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent hover effect */
}

.nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1; /* Show the menu on hover */
}

/* public/css/styles.css */
.background {
    background-image: url('../image/world.jpg');
    /* background-color: lightgrey; */
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.2); 
    background-repeat: no-repeat;
    
}
.main{
    height: 420px;
}

div{
    background: transparent;
    border: 0;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}
.navbar {
    background-color: rgba(0, 0, 0, 0); 
}
.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.5); 
}
.dropdown-menu a {
    color: white; 
}
.demo{
    height: 620px;
    padding-top:20px;
}
.div{
    /*background-color: rgba(0, 0, 0, 0.3);*/
    width:60%;
    height:450px;
    padding-top:20px;
    margin-top:20px;
}
