/**
 * From example on https://medialoot.com/blog/how-to-create-a-responsive-navigation-menu-using-only-css/
 * Author     : Peter J.J. Bakker <peter@antenna.nl>
 */
/*
 * 23-01-2018 ()
 * 24-01-2018 ()
 * 25-01-2018 ()
 * 26-01-2018 ()
 * 27-01-2018 ()
 * 01-02-2018 ()
 * 02-02-2018 (changed to mobile first)
 * 03-02-2018 ()
 * 04-02-2018 ()
 * 31-03-2018 (added #footer and .active)
 * 04-04-2018 ()
 * 05-04-2018 ()
 * 06-04-2018 ()
 * 10-04-2018 ()
 * 13-04-2018 ()
 * 20-04-2018 ()
 * 28-04-2018 ()
 * 29-04-2018 ()
 * 27-03-2018 ()
 * 28-06-2018 ()
 * 03-07-2018 ()
 * 04-07-2018 ()
 * 06-07-2018 ()
 * 07-07-2018 ()
 * 08-07-2018 ()
 * 10-07-2018 ()
 * 11-07-2018 ()
 * 12-07-2018 ()
 * 13-07-2018 ()
 * 31-07-2018 (added style for forms)
 * 01-08-2018 ()
 *
 * ToDo Is nav with heigth-value necessary?
 * ToDo Clean up this style-sheet
 * ToDo add class .mainMenu (beside #topMenu)
 */

body {
  color:            black;
  background-color: white;
  font-family:      Arial, Helvetica, sans-serif;
/*  font-size: 1.0rem;
  line-height: 1.3rem;*/
  /*font-size: 13px;*/
  /*line-height: 20px;*/
}

header {
  color:            #FFF;
  background-color: #257C6E;
  margin:           auto;
  border:           0.1px solid;
}

/*header h1 {*/
header {
  font-weight: bold;
}
header h2 {
  font-weight: bold;
}
header h3 {
  font-weight: bold;
}

header a {
  text-decoration: none;
  color: inherit;
}

#topNav a {
  color: black;
}

/*Basic layout of all menu-item links*/
/*#topNav li a {*/
.mainMenuItem, 
.subMenuItem {
  display:block;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 10px;
}

.subMenuItem {
  font-style: italic;
  background-color: white;
}

/*.mainMenuItem:hover,*/
.subMenuItem:hover {
  color: #827A23; /* military green */
  /*background: #19c589;*/
}

/* active menu-item */
.active {
  /*background-color: lightgrey;*/
  font-weight: bold;
}
  
footer {
  height:     20px;
  font-size:  0.8rem;
  text-align: right;
  padding:    10px 0px 0px 0px;
  color:      black;
}

/* Style for forms */
textarea {
  /*float:   right;*/
}


/***** Responsive Style for Mobiles *****/
@media screen and (max-width : 900px) {
/*@media screen and (max-width : 1600px) {*/
  
  header {
    text-align: left;
    line-height: 5px;
    border-bottom: 1px solid #ddd;
  }
  /*header h1 {*/
  header {
    font-size: 2rem;
/*    text-align: center;*/
    padding-left: 10px;
  }
  header h2 {
    font-size: 1rem;
  }
  header h3 {
    font-size: 0.8rem;
  }

  nav {
  /*    heigth: 0px;*/
  }

  /*Hide checkbox*/
  /*input[type=checkbox] {*/
  #showMenu {
    display: none;
  }
  /*Show menu when invisible checkbox is checked*/
  /*input[type=checkbox]:checked ~ #menu {*/
  /*#showMenu:checked ~ #menu {*/
  #showMenu:checked ~ #topMenu {
    display: block;
  }

  /*Style 'show menu' label button*/
  .showMenu {
    /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
    text-decoration: none;
    font-size: 2rem;
    /*color: #fff;*/
    /*background: #827A23;*/
    text-align: right;
    /*padding: 0px 10px 20px 0px;*/
    padding: 0px 10px;
    display: block;
  }
  
  #topNav {
/*    padding-bottom: 30px;
    margin-bottom: 30px;*/
  }

  /* Make dropdown links appear inline */
  /*ul {*/
  /*#topNav ul {*/
  /*#topNav > ul {*/
  .mainMenu {
    list-style-type:none;
    margin:0;
    padding:0;
    position: static;
    display: none;
  }
  /*Create vertical spacing*/
  /*#topNav ul li {*/
  .mainMenu > li {
    margin-bottom: 1px;
  }
  /*Make all menu links full width*/
/*  #topNav ul li, 
  #topNav li a {*/
  .mainMenu li, .subMenuItem {
    width: 100%;
    font-size: 0.8rem;
  }
  /*Display 'show menu' link*/
  #topNav .showMenu {
    display:block;
  }

  /*@media screen and (max-width : 1600px) {*/

  /*Create a horizontal list with spacing*/
  /*#topNav ul li {*/
  .mainMenu li {
    display:inline-block;
    float: left;
    margin-right: 1px;
    /*background: #2f3036;*/
    /*background: #EAE9CA;*/
    border-bottom: 1px solid #ddd; /* light grey */
  }
  /*Style for menu links*/
  /*#topNav ul li a {*/
  .mainMenuItem, .subMenuItem {
    height: 50px;
    line-height: 50px;
  }
  /*Style for dropdown links*/
  /*#topNav li:hover ul a {*/
  .subMenuItem:hover {
      background: #f3f3f3; /* very light grey */
/*      color: #2f3036;   black */
/*    height: 40px;
    line-height: 40px;*/
  }
  
  /*Hide sub-menu dropdown until they are needed*/
  /*#topNav li ul {*/
  .subMenu {
    display: none;
  }
  /*Make dropdown links vertical*/
  /*li ul li {*/
  .subMenu li {
    display: block;
    float: none;
  }
  /*Prevent text wrapping*/
  /*#topNav li ul li a {*/
  .subMenuItem {  /* not tested*/
/*      width: auto;
      min-width: 100px;
      padding: 0 20px;*/
  }
  /* Display the submenu by hover over the main menu-item or over the submenu itself */
  .mainMenuItem:hover + .subMenu,
  .subMenu:hover {
    display: block;
  }

  footer {
    width:      100%;
    margin:     0;
    /*text-align: right;*/
  }

}



/***** Responsive Style for Computers *****/
@media screen and (min-width : 900px) {
/*@media screen and (min-width : 1600px) {*/

  /*Hide 'show menu' link*/
  .showMenu, #showMenu {
      display: none;
  }
  
  header {
    text-align: center;
  }
  /*header h1 {*/
  header {
    font-size: 3rem;
  }
  header h2 {
    font-size: 2rem;
  }
  header h3 {
    font-size: 1.5rem;
  }

  #topNav {
    height: 40px;
    margin: 0;
    width: 70%;
    margin: auto;
    border-bottom: 1px solid #ddd;
  }
  
  /*Strip the ul of padding and list styling*/
  /*#topNav ul {*/ 
  .mainMenu, .subMenu {
  /*#topMenu {*/
    list-style-type:none;
    margin:0;
    padding:0;
    position: absolute;
    width: inherit;
  }
  /*Create a horizontal list with spacing*/
  /*#topNav ul li {*/
  .mainMenu > li {
    display:inline-block;
    float: left;
    margin-right: 1px;
  }
  /*Style for menu links*/
  /*#topNav ul li a {*/
  .mainMenuItem, .subMenuItem {
  /*#topMenuItem {*/
    height: 30px;  /* perhaps not needed */
    line-height: 30px;
  }
  /*Make dropdown links vertical*/
  /*#topNav ul li ul li {*/
  .subMenu > li {
    display: block;
    float: none;
  }
  .subMenu {
    display: none;
  }
  /*Display the dropdown on hove*/
  .mainMenuItem:hover + .subMenu,
  .subMenu:hover {
    display: block;
    border-style:none solid solid solid;
    border-width: 0.1px;
    border-color: #999999; /* grey */
  }
  
  article {
    width: 70%;
    margin: auto;
    padding-top: 2%;
  }
  
  footer {
    width: 70%;
    margin: auto;
    /*text-align: right;*/
  }
}
