@font-face {font-family: "reklame-script-w00";
     /*url("/fonts/reklame-script-w00_medium.eot") IE9 compatibility - don't include this unless you have to*/
    src: url("/fonts/reklame-script-w00_medium.woff2") format("woff2"), /* most recent chrome firefox */
    url("/fonts/reklame-script-w00_medium.woff") format("woff"), /* all chrome firefox */
    url("/fonts/reklame-script-w00_medium.ttf") format("truetype"), /* chrome firefox opera Safari, Android, iOS 4.2+*/
    url("/fonts/reklame-script-w00_medium.svg") format("svg"), /* legacy iOS 4.1- */
	url("/fonts/reklame-script-w00_medium.otf") format("open type font"); /* most recent browsers */
}


/* *******From HTML5 Boilerplate main.css, with site-specific changes******* */
/* ! Note that this online map page is branded to match https://www.gloucestershirenature.org.uk */
/* This is styles for the main website, menus etc.; for specific Leaflet map styles see ncmap.css */


/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  font-family: "Open Sans", Verdana, sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better-looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Override/customise some of the W3CSS settings
   Note that some are 'important' and need careful overriding;
   remove these where possible
   ========================================================================== */


h1, h2, h3, h4, h5, h6 {
       font-family: "Open Sans", Verdana, sans-serif;
       font-weight: 400;
       margin: 10px 0;
}

/*Custom W3CSS colour for GLNP branding on buttons etc. */
.w3-glnp, .w3-hover-glnp:hover {
	color: #fff !important;
	background-color: #41baae !important;
}

.w3-dark, .w3-hover-dark:hover {
	color: #fff !important;
	background-color: #333 !important;
}

.w3-white,.w3-hover-white:hover{color:#333!important;background-color:#fff!important}
.w3-overlay{position:fixed;display:none;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(3,3,3,0.5);z-index:3}

/* Accordion buttons on modal & elsewhere */
.plainborder, .plainborder:focus, .plainborder:active {
  margin: 5px;
  border: 1px #ccc solid;
  border-radius: 5px;
}

.plainborder:hover {
  color: #fff !important;
  background: #333 !important;
}

/* get rid of the default 'shadow background' of the W3css modal & use an extended box shadow instead */
.w3-modal-shadow {
	padding: 0px;
	overflow: auto;
	top: 5%;
	left: 15%;
	right: 15%;
	z-index: 10;
	box-shadow: 12px 30px 200px 100px rgba(12, 12, 12, 0.80);	/* older browsers */
	box-shadow: 1rem 1rem 15rem 10rem rgba(12, 30, 12, 0.80);   /* responsive box shadow; this one is tinted green */
}

#helpModal.w3-modal-shadow {
  display:none;
  left: 25%;
  right: 25%;
}

.w3-modal-nobackground {
	display: none; /*override this for individual modals that open by default */
	padding: 0px;
	overflow: auto;
	top: 5%;
	left: 15%;
	right: 15%;
	z-index: 10;
}

/* experiment with navbar button styles;
   min-width keeps stacked buttons an even length */
.w3-bar .w3-bar-item {
    padding: 8px 16px;
    float: left;
    min-width: 200px;
    display: block;
    outline: 0;
    border: 1px solid #ccc;
}

/* ==========================================================================
   General/whole site (default for small screen/mobile size)
   ========================================================================== */

html, body {
  height: 100%;
  padding: 0;
  margin: 0;
  display: block;
}
body {
  background-color: #ffffff;
}

/* Font shortcuts */

.smallfont {
	font-size: 0.8rem;
}

.white {
	color: #ffffff;
}

.red {
  color: #ff0000;
}

.glnp-colour {
  color: #41baae;
}

/* ==========================================================================
   Main links and hovers
   ========================================================================== */
a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}

a:focus, a:hover, a:active {
	color: #41baae;
	text-decoration: none;
}

a.glnplink {
	color: #41baae;
}

a.glnplink:hover {
  color:#fff;
}

.linkpic:hover {
    background: none;
    padding: 0px;
    color: #ddff70;
}

.linkbutton {
	border: none;
  border-radius: 10px;
	display: inline-block;
	padding: 2px 10px;
  margin: 5px 0px;
  width: 300px;
	vertical-align: middle;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background-color: #41baae;
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
}

.linkbutton:hover {
	color: #fff;
	background-color: #000;
}

/* for white fa icons and close buttons*/
.whiteclose {
	color: #fff;
	border: 1px solid #333;
	border-radius: 5px;
	padding: 2px;
	margin: 4px;
  font-size: 20px;
}

.whiteclose:hover {
	color: #333;
	border: 1px solid #333;
	border-radius: 5px;
	padding: 2px;
	margin: 4px;
	line-height: normal;
}

/* ==========================================================================
   Images
   ========================================================================== */
.w3-quarter img{margin-bottom: -6px; cursor: pointer}
.w3-quarter img:hover{opacity: 0.6; transition: 0.3s}


/* ==========================================================================
   Grid structure
   ========================================================================== */

/* ==========================================================================
   Header branding & menu
   ========================================================================== */
.mainheader {
	border: #222 solid 1px;
	background-color: #333;
	line-height: 1;
	padding-left: 5px;
	height: 60px; /*keep an eye on the main main container height vs. the header so they don't overlap */
	z-index: 3; /*failing that, make it fairly prominent with a higher z-index*/
}

.brand {
	position: relative;
	top: 5px;
	display: inline-block;
	font-weight: normal;
	font-size: 1.8rem;
	font-family: reklame-script-w00;
	color: #41baae;
	padding: 0px 5px 0px 5px;
	margin-right: 30px;
}

#header-logo {
	max-width: 50px;
	display: inline-block;
	margin: 2px;
}

#header-logo:hover {
	border: #fff solid 2px;
}

/* Change default colour of main menu/tools button */
.iconlink {
	color: #41baae;
	font-size: 1.4rem;
	display: inline-block;
	padding: 5px;
}

.closelink-bottom {
	position:absolute;
	background-color: #333;
	color: #fff;
	bottom: 20px;
}

.closelink-bottom:hover {
	background-color: #ccc !important;
	color: #000;
	bottom: 20px;
}

/* ==========================================================================
   Sidebar styles
   ========================================================================== */

/* Tools sidebar on the left needs to be above all the other layers,
   below the top menu; keep the top links fairly low as some mobile browsers cut off the top slightly
   and will block the close button if not given enough space*/

#menuSidebar {
	z-index: 4;
	background: #333;
	color: #fff;
	width: 200px;
	display: none;
	left: 0px;
	top: 60px;
	height:100%;
	height: 93vh;
	padding-top:10px;
}

.closelink-left {
	color: #fff;
}
.closelink-left:hover {
	color: #000;
}

.chevron-left {
	float: right;
}

/* ==========================================================================
   Modal popups
   ========================================================================== */
/*Note: change position to absolute to enable the dragging function; otherwise use fixed*/

.show-modal {
	display: block; /*Show the modal by default when the website opens; resist the temptation to animate it */
	max-height: calc(100vh - 60px);
	overflow-y: auto;
}

#mainModal {
	position: fixed;
	width: 1200px;
  max-width: 70%;
  max-height: 85vh;
}

#helpModal {
	position: fixed;
  width: 450px;
	max-width: 80vw;
  max-height: 80vh;
  overflow-y: auto;
}

.help-img {
  max-width: 400px;
}

.helplist {
  font-size: 90%;
}


/*hide this modal by default  */
#legendModal {
  position:absolute;
  z-index: 10;
  width:500px;
  max-width: 75vw;
  margin: 0px;
  left: 20%;
  right: 20%;
  top: 10px;
  display:none;
  max-height: 75vh;
  overflow-y: auto;
  resize:both;
}

.modalcontent, .helpcontent {
	border: solid 1px #ccc;
	margin: 0px;
}

.modalcontent {
	width: 1200px;
  max-width: 100%;
}

.helpcontent {
	width: 100%;
}

#legendModalcontent {
  width: 900px;
  max-width: 100%;
	background-color: #ffffff;
	border-radius: 5px;
}

.modalheader {
	color: #41baae;
	background-color: #333;
	border: solid 1px #333;
}

/*	draggable modal header. cursor: move = make the cursor change to the arrows type when hovering over the draggable bit*/
#legendModalheader {
  cursor: move;
  background-color: #333;
  color: white;
}

.modaltitle {
	font-family: reklame-script-w00;
	font-size: 1.4rem;
}

.modalfooter {
	border: solid 1px #fff;
}

.modalheader, #legendModalheader {
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.modalclose {
	background: #fff;
	color: #000;
}
.modalclose:hover {
	background: #333;
	color: #fff;
}

#mainModal, #legendModal, #helpModal, #helpcontent, .modalcontent, .modalfooter, .modalclose {
	border-radius: 5px;
}

/* Style the various modal tab buttons */
.verticaltabs {
  float: left;
  width: 30%;
  height: 100%;
  font-size:0.8rem;
}

.verticaltabs button, .modaltabs button {
    display: block;
    background-color: inherit;
    padding: 12px 12px;
    width: 100%;
    border: 1px solid #ccc;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}

.verticaltabs button {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.modaltabs button {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin-top: 2px;
  border: 1px solid #ccc;
}

/* Change background color of buttons on hover */
.verticaltabs button:hover, .modaltabs button:hover {
  background-color: #333;
  color: #ffffff;
}

/* Create an active/current "tab button" class */
.verticaltabs button.active, .modaltabs button.active {
  background-color: #41baae;
  color: #ffffff;
}

.verticalcontent {
	float: left;
	width: 70%;
	border-left: none;
	height: 100%;
  font-size:0.8rem;
}

/*Customise some of the modal tab content*/

#about {
  background: #fff;
  background-image: url('/img/matson.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

.helplist li {
  padding-bottom: 10px;
}

.textbox-overlay {
	margin-bottom: 30px;
	margin-top: 30px;
	padding: 10px 15px;
	background: #fff;
	background: rgba(255,255,255,0.9);
  border-radius: 5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
	position: fixed;
	height: 30px;
	width: 100%;
	bottom: 0;
	background-color: #333;
	color: #41baae;
	z-index: 1; /*the footer tidies up the map by filling in any browser inconsistencies with the map height*/
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* Extra rules for smallest devices (phones & tablets under 600px) */

@media screen and (max-width: 600px) {

.brand {
	display:none;
}

/* .modalheader {
	display:none;
} */

/* for white fa icons and close buttons*/
.whiteclose {
	margin: 2px;
  font-size: 14px;
}

#legendModal {
	position: absolute;
	z-index: 10;
	margin: 0px;
	left: 10%;
	right: 10%;
	top: 10px;
	display: none;
	max-height: 70%;
}

#helpModal.w3-modal-shadow {
  display:none;
  left: 5%;
  right: 0%;
  overflow-y: auto;
}

.verticaltabs button {
	display: block;
	background-color: inherit;
	padding: 5px 5px;
	width: 100%;
	border: 1px solid #ccc;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 15px;
	outline: none;
  font-size: 12px;
	text-align: left;
	cursor: pointer;
	transition: 0.3s;
}
#about {
  background:none;
  width: 100%;
}

.help-img {
  max-width: 300px;
}

}

/* Extra rules for small devices (landscape phones, 601px and up) */
@media (min-width: 601px) {

.url-break {
    word-break: break-all;
    word-break: break-word;
    -webkit-hyphens: auto;
      hyphens: auto;
  }
  .dropdown-menu a i{
    color: #FFFFFF;
  }

  .brand {
	position: relative;
	top: 5px;
	display: inline-block;
	font-weight: normal;
	font-size: 1.4rem;
	font-family: reklame-script-w00, cursive;
	color: #41baae;
	padding: 0px 5px 0px 5px;
	margin-right: 20px;
}

.help-img {
  max-width: 340px;
}

}

/* Extra rules for middle-sized devices (ipads, small laptops) and up */
@media (min-width: 768px){
  .brand {
	font-size: 1.8rem;
}

.help-img {
  max-width: 360px;
}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}


/* ======================Print Handling==================================== */

@media print {
  .navbar {
    display: none !important;
  }
  .leaflet-control-container {
    display: none !important;
  }
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
