/* #################Navigation#################### */
nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: left;
    /* justify-content: center; */
    /* min-height: 30px; */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    }
/*Strip the ul of padding and list styling*/
.topnav ul {
    list-style-type:none;
    margin:0;
    padding:0;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-around; */
    width: 100%;
}
/*Create a horizontal list with spacing*/
.topnav li {
    /* display:inline-block; */
    /* float: left; */
    flex-flow: row wrap;
    margin-right: 1px;
  flex-grow: 1;
  max-width: 300px;
}
/*Style for menu links*/
.topnav li a {
    display:block;
    /* min-width:140px; */
    min-width:60px;
    padding: 0 5px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    color: #FFD038;
    background: black;
    text-decoration: none;
}
/*Hover state for top level links*/
.topnav li:hover a {
    /* background: #6d6a6a; */
    color: white;
}
/*Style for dropdown links*/
.topnav li:hover ul a {
    background: #FFD038;
    color: #2f3036;
    height: 40px;
    line-height: 40px;
}
/*Hover state for dropdown links*/
.topnav li:hover ul a:hover {
    background: black;
    color: #FFD038;
}
/*Hide dropdown links until they are needed*/
.topnav li ul {
    display: none;
}
/*Make dropdown links vertical*/
.topnav li ul li {
    display: block;
    float: none;
}
/*Prevent text wrapping*/
.topnav li ul li a {
    width: auto;
    min-width: 100px;
    padding: 0 20px;
}
/*Display the dropdown on hover*/
.topnav ul li a:hover + .hidden, .hidden:hover {
    display: block;
}
.topnav li.active a {
background: #FFD038;
color: black;
}
/*Style 'show menu' label button and hide it by default*/
.show-menu {
    text-decoration: none;
    color: #FFD038;
    background: black;
    text-align: center;
    padding: 10px 0;
    display: none;
}
/*Hide checkbox*/
.topnav input[type=checkbox]{
    display: none;
}
/*Show menu when invisible checkbox is checked*/
.topnav input[type=checkbox]:checked ~ #menu{
    display: block;
}


/*Responsive Styles*/
@media screen and (max-width : 899px){
    /*Make dropdown links appear inline*/
    .topnav ul {
        position: static;
        display: none;
    }
    /*Create vertical spacing*/
    .topnav li {
        margin-bottom: 1px;
                /* background-image: url("https://caledonianpipers.ch/fileadmin/user_upload/leu_ZCPB.gif"); */
    }
    /*Make all menu links full width*/
    .topnav ul li, li a {
        width: 100%;
    }
    /*Display 'show menu' link*/
    .show-menu {
        display:block;
    }

    label.show-menu {
       display: block;
       width: 55px; height: 40px;
       position: relative;
       border-radius: 4px;
      /* margin-left: auto;  */
      /* margin-right: auto; */
    }

    input#show-menu {display:none}

    .line {
       position: absolute;
       left:7px;
       height: 4px;
       width: 40px;
       background: #FFCA66; border-radius: 2px;
       display: block;
       transition: 0.5s;
       transform-origin: center;
    }

    .line:nth-child(1) { top: 8px; }
    .line:nth-child(2) { top: 18px; }
    .line:nth-child(3) { top: 28px; }

}
