/*for the top navigation*/
.topnav {
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    font-size: large;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/*links inside the navbar*/
.topnav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 18px 24px;
    text-decoration: none;
    font-size: 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* an active class to highlight the current page */
.active {
    background-color: green;
    color: white;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*hiding the link that opens the navabr on smaller screens*/
.topnav .icon {
    display: none;
}

/*dropdown container - to position the dropdown content*/
.dropdwn {
    float: left;
    overflow: hidden;
    border-radius: 25px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


/* for the button style to fit inside the topnav*/
.dropdwn .dropbtn {
    font-size: 15px;
    border: none;
    outline: none;
    color: white;
    padding: 18px 24px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    border-radius: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/*style the dropdown content (hidden by default)*/
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(239, 215, 80);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px
    rgba(0, 0,0,0.2);
    z-index: 1;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

/*style the  links inside the dropdown*/
.dropdown-content a {
    float: none;
    color: whitesmoke;
    padding: 18px 24px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 25px;
    z-index: 9999;
}

.topnav a:hover, .dropdwn:hover .dropbtn {
    background-color: #20d03b;
    color: white;
    border-radius: 25px;
}

.dropdown-content a:hover {
    background-color: #20d03b;
    color: black;
    border-radius: 25px;
}

.dropdwn:hover .dropdown-content {
    display: block;
    border-radius: 25px;
}

/*when screen is less than 600 pixels wide, hide all links except for Home*/
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child),
    .dropdwn .dropbtn {
        display: none;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .topnav a.icon {
        float: right;
        display: block;
        background-color: green;
    }
}

/*The 'responsive' class makes the topnav look good on small screens */
@media screen and  (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .topnav.responsive .dropdwn {float:none;}
    .topnav.responsive .dropdown-content {position: relative;}
    .topnav.responsive .dropdwn .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}


