html, body, div, ul, li{
margin:0;
padding:0;
border:0;
}

html {height:100%;}

body {
height:100%;
font-family:Arial;
font-size:100%;
margin:0.625em;
background-color:WhiteSmoke;
}

#headerContainer {
  position: relative;
  margin: 0.625em auto;
  padding: 0;
  border-radius: 1em;
  max-width: 30em;
  overflow: hidden;
  display: flex;
}

#headerContainer img {
  width: 30em;
}

/* Rules for the Hamburger Menu */

#hamburger {
  position: absolute;
  top: 1.5em;
  right: 1.5em;
  color: white;
  border: 0;
  background-color: transparent;
  font-size: 1em;
  cursor: pointer;
  white-space: nowrap;
}

#hamburger:hover {
  color:orangered;
}

#hamburgerMenu {
  visibility: hidden;
}

#hamburgerMenu div {
  position: fixed;
  width: 100%;
  background-color: #e6e6e6;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 50%;
  cursor: default;
}

#hamburgerMenu ul {
  position: absolute;
  right: 2em;
  top: 3.25em;
  width: 8em;
}

#hamburgerMenu ul li {
  width: 100%;
  height: 1em;
  float: left;
  background-color: gainsboro;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  border: 0.125em solid black;
  border-radius: 0.5em;
  box-shadow: 0.125em 0.125em 0.1875em #aaaaaa;
  margin: 0.125em;
  font-weight: bold;
}

#hamburgerMenu ul li a {
  text-decoration: none;
  display: block;
}

/* END - Rules for the Hamburger Menu */

img.star0, img.star1, img.star2, img.star3 {
height:1.5625rem;
background:url(/stars.png);
background-size:cover;
vertical-align:middle;
}

img.star0 {width:0.0625rem;}
img.star1 {width:1.5625rem;}
img.star2 {width:3.1875rem;}
img.star3 {width:4.8125rem;}

#bigMap, #bigMapContainer {
width:100%;
height:100%;
top:0px;
left:0px;
z-index:100;
visibility:hidden;
}

#bigMapContainer {
position:fixed;
}

#bigMapDismiss {
position:fixed;
width:4em;
height:4em;
top:0px;
right:0px;
opacity:0.7;
background-color:#000000;
color:#FFFFFF;
visibility:hidden;
z-index:101;
}

#bigMapDismiss span {margin:0 0.3em;font-size:350%;}

#key {
position:fixed;
min-width:6.5em;
top:5.5em;
right:2em;
background-color:#FFFFFF;
color:#000000;
visibility:hidden;
z-index:102;
border:0.125em solid black;
border-radius:0.5em;
padding:0.0625em;
}

#key div {
position:absolute;
width:1.5em;
height:0.6em;
top:0;
right:0;
color:#BBBBBB;
}

#keyDismiss {margin:0;font-size:170%;}

#key table {font-size:120%;}

#river_info {
padding:0.3125em;
margin:0;
border:0.125em solid black;
border-radius:0.5em;
min-height:22em;
background-color:White;
}

#map_box {
width:20em;
height:21em;
float:right;
clear:right;
padding:0.3125em;
margin:0.1875em;
border:0.125em solid black;
border-radius:0.5em;
position:relative;
}

#googleMap {
width:20em;
height:20em;
border:0;
overflow:hidden;
margin:0;
}

#map_box  > div:last-of-type {
position:absolute;
right:0;
bottom:0;
height:1.25em;
width:2em;
}

#info_list {margin-right:21em;}

li {
list-style:none;
display:block;
text-align:left;
padding:0.1875em;
margin:0.125em;
}

section p:first-of-type {clear:both;}

.bold{font-weight:bold;}

img.center {
display:block;
margin:0 auto;
}

figcaption {
text-align:center;
font-size:80%;
}

a {outline:none;}
a:link {color:#000000;}
a:visited {color:#312C63;}
a:hover, a:active, #bigMapTrigger:hover, #keyTrigger:hover, #keyDismiss:hover, #bigMapDismiss:hover {color:orangered;}
a.mail {text-decoration:none;}
a.mail:hover, a.mail:active {color:#000000;font-weight:bold;}

h1, h2, h3, .center {text-align:center;}

/* Styling for the Tooltips/Infowindow text for river sections in GoogleMaps */
h3 {
  padding: 0em;
  line-height: 0em;
  font-size: 90%;
  margin-right: 0.5em;
}

div.licence {
border: 0.0625em solid black;
margin:0px auto;
padding:0.25em;
text-align:center;
max-width:48em;
background-color:White;
}

div.licence img {border-width:0;}

#validator {
height:34px;
width:92px;
border:0 none;
vertical-align:middle;
}

/* Large desktops and laptops */
@media (min-width: 1200px) {
body {font-size:125%;}
#map_box, #googleMap {width:25em;}
#info_list {margin-right:26em;}
}

/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
body {font-size:110%;}
#map_box, #googleMap {width:22em;}
#info_list {margin-right:23em;}
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
body {font-size:100%;}
#map_box, #googleMap {width:20em;}
#info_list {margin-right:21em;}
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
body {font-size:85%;}
#map_box, #googleMap {width:18em;}
#info_list {margin-right:19em;}
figure{margin:0;}
figure img {font-size:80%;}
}

/* Portrait phones and smaller */
@media (max-width: 480px) {
body {
font-size:95%;
margin:0.25em;
}

#river_info {
padding:0;
border:0;
width:100%;
}

#map_box {
width:100%;
height:21.5em;
float:none;
clear:both;
padding:0;
margin:0;
border:0;
}

#googleMap {
width:100%;
height:20em;
}

#info_list {
width:100%;
float:none;
clear:both;
padding:0;
margin:0;
border-style: solid none;
border-width: 0.0625em;
background-color:#F0F0F0;
}

figure img {font-size:60%;}

}