.topnav{
    text-align: center;
    cursor: default;
    background-color: #39cc00;
    background-image: -moz-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5)), url("images/bg01.png");
    background-image: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5)), url("images/bg01.png");
    background-image: -ms-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5)), url("images/bg01.png");
    background-image: linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5)), url("images/bg01.png");
    padding: 0;
    margin-left: 0;
}

    .topnav:after {
        content: '';
        display: block;
        width: 100%;
        height: 0.75em;
        background-color: #f8cc00;
        background-image: url("images/bg01.png");
    }

    /* hamburger icon */
    .topnav > a {
      display: none;
      color: #f0f0f0;
      text-align: center;
      text-decoration: none;
      padding: 0.5em 0.5em 0.5em 0.5em;
    }
    .topnav > ul {
        margin: 0;
        padding-left:0;
    }

      .topnav > ul > li {
        position: relative;
        display: inline-block;
        margin-left: 0em;
        }
            .topnav > ul > li a {
                text-align: left;
                font-size: 140%;
                color: #f0f0f0;
                text-decoration: none;
                border: 0;
                display: block;
                padding: 0.5em 0.5em 0.5em 0.5em;
            }

            .topnav > ul > li:first-child {
                margin-left: 0;
            }

            .topnav > ul > li:hover > a {
                color: white;
            }

            .topnav > ul > li.current {
                font-weight: 600;
            }

/*              yellow square indicating current page */
            .topnav > ul > li.current:before {
                -moz-transform: rotateZ(45deg);
                -webkit-transform: rotateZ(45deg);
                -ms-transform: rotateZ(45deg);
                transform: rotateZ(45deg);
                width: 0.75em;
                height: 0.75em;
                content: '';
                display: block;
                position: absolute;
                bottom: -0.5em;
                left: 50%;
                margin-left: -0.375em;
                background-color: #f8cc00;
                background-image: url("images/bg01.png");
            }

            .topnav > ul > li.current > a {
                color: #fff;
            }

            .topnav > ul > li.active > a {
                color: #fff;
            }

            .topnav > ul > li.active.current:before {
                opacity: 0;
            }

/* Dropdown */
/* Dropdown container - needed to position the dropdown content */
.dropdown .dropbtn {
    font-size: 140%;
    border: none;
    outline: none;
    color: #f0f0f0;
}

.dropdown-content {
    background-image: -moz-linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0)), url("images/bg01.png");
    background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0)), url("images/bg01.png");
    background-image: -ms-linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0)), url("images/bg01.png");
    background-image: linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0)), url("images/bg01.png");
    /* display: none; */
    position: absolute;
    background-color: #3a3a3a;
    /* min-width: 10em; */
    box-shadow: 0 1em 1em 0 rgba(0, 0, 0, 0.5);
    z-index: 1;
    list-style: none;
    /* text-align: center; */
    border-radius: 0 0 5px 5px;
    font-size: 90%;
    padding-top: 0;
    padding-left: 0;
    font-weight: 300;
}

    .dropdown-content > li {
      line-height: 0.5em;
      padding-left: 0;
    }

        .dropdown-content > li > a {
            color: #c0c0c0;
            text-decoration: none;
            border: 0;
        }

        .dropdown-content > li.active > a, .dropdown-content > li:hover > a {
            color: #fff;
        }

        /* Show the dropdown menu when the user moves the mouse over the dropdown button */
        /* .dropdown:hover > .dropdown-content {
            display: block;
        } */

/* Fix details/summary dropdown in non-responsive mode */
details.dropdown {
    position: relative;
    display: inline-block;
}

details.dropdown summary.dropbtn {
    font-size: 140%;
    border: none;
    outline: none;
    color: #f0f0f0;
    background: none;
    cursor: pointer;
    list-style: none;
    padding: 0.5em 0.5em 0.5em 0.5em;
}

details.dropdown summary.dropbtn::-webkit-details-marker,
details.dropdown summary.dropbtn::marker {
    display: none;
}

details.dropdown:hover summary.dropbtn {
    color: white;
}

details.dropdown[open] summary.dropbtn {
    color: white;
}

details.dropdown[open] > .dropdown-content {
    display: block;
}

details.dropdown > .dropdown-content {
    display: none;
}

@media screen and (max-width: 840px) {
    /* #nav {
        display: none;
    } */
  .topnav > ul > li {
      line-height: 0.0em;
  }
    .topnav > ul > li, .dropdown .dropbtn {
      display: none;
    }

    /* remove yellow bar */
    .topnav:after { display: none; }

    .topnav > a.icon {
        outline: 0;
        border:0;
        font-size:150%;
      display: block;
      float: right;
      position: relative;
      right: 0;
      top: 0.5em;
      color: #f0f0f0;
      z-index: 1;
    }
  }

  /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
  @media screen and (max-width: 840px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive > a.icon {
      position: absolute;
      right: 0;
      top: 0.5em;
      color: #f0f0f0;
      z-index: 1;
    }
    .topnav.responsive > ul > li {
      display: block;
      padding: 0.25em 0em 0.25em 0em;
      text-align: left;
    }
    .topnav.responsive > ul > li.current:before {display: none;}
    .topnav.responsive .dropdown {
      /* float: none; */
      margin-bottom: 0.5em;
    }
    .topnav.responsive .dropdown-content {
      position: relative;
      top:0.5em;
      padding-left: 0.5em;
      margin-bottom: 0;
   }
    .topnav.responsive .dropdown .dropbtn {
      display: block;
      width: 100%;
      text-align: left;
    }
  }

/* --- Fix details/summary dropdown in responsive mode --- */
@media screen and (max-width: 840px) {
  .topnav.responsive details.dropdown {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
  }
  .topnav.responsive details.dropdown summary.dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 140%;
    color: #f0f0f0;
    background: none;
    border: none;
    outline: none;
    padding: 0.5em 0.5em 0.5em 0.5em;
    cursor: pointer;
    list-style: none;
  }
  .topnav.responsive details.dropdown summary.dropbtn::-webkit-details-marker,
  .topnav.responsive details.dropdown summary.dropbtn::marker {
    display: none;
  }
  .topnav.responsive details.dropdown[open] summary.dropbtn {
    color: #fff;
    font-weight: 600;
  }
  .topnav.responsive details.dropdown[open] > .dropdown-content {
    display: block;
    position: relative;
    background: #3a3a3a;
    box-shadow: none;
    border-radius: 0 0 5px 5px;
    margin: 0;
    padding: 0.25em 0 0.25em 0.5em;
    z-index: 2;
  }
  .topnav.responsive details.dropdown > .dropdown-content {
    display: none;
  }
}
