html,
body {
  height: 100%;
}

p {
  font-size: 0.875rem;
}

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
  padding: 0;
}

h1 {
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  line-height: 26.4px;
}

h3 {
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  line-height: 15.4px;
}

a {
  text-decoration: none;
  padding: 2px;
  color: #333;
  font-size: 0.875rem;
}

a:hover {
  background-color: rgba(60, 64, 67, 0.04);
}

blockquote {
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 21px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 30px;
}

pre {
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 18.5667px;
}

#map {
  height: 100%;
  z-index: 1;
}

.my-labels {
  margin-top: 15px;
  font-size: .8em;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 500;
}

#legend {
  position: fixed;
  z-index: 2;
  right: 20px;
  top: 20px;
  width: 300px;
  bottom: 20px;
  background: #FFF;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

#metofficeForecast[href=""], #walkHighlands[href=""], #mountainForeecast[href=""] {
  display: none;
}

#munro footer a {
  display: block;
  background-repeat: no-repeat;
  background-position: 7px center;
  background-size: 16px;
  padding: 7px 10px 7px 30px;
}

#metofficeForecast {
  background-image: url(img/metoffice.png);
}

#walkHighlands {
  background-image: url(img/walkhighlands.ico);
}

#mountainForecast {
  background-image: url(img/mountain-forecast.ico);
}

#munro-list a {
  display: block;
  padding: 5px 0 5px 14px;
}

.selected {
  font-weight: bold;
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

#close {
  background: center center url(close.svg) no-repeat;
  background-size: 30%;
  position: absolute;
  display: block;
  width: 40px;
  height: 40px;
  text-indent: -9999px;
  top: 4px;
  right: 0px;
}

#close:hover {
  filter: invert(62%) sepia(78%) saturate(2171%) hue-rotate(2deg) brightness(107%) contrast(103%);
}

#munro h1 {
  margin-top: 0;
}

#munro img {
  height: 200px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.leaflet-marker-icon[src="img/weather/partially-cloudy.svg"] {
  margin-top: -60px;
  margin-left: -35px;
}

/*.leaflet-marker-icon[src="mountain.svg"] {
  opacity: .5;
}*/

.leaflet-marker-icon[src="train-icon.svg"] {
  width: 12px !important;
  height: 12px !important;
}

#meaning {
  color: #888;
}

#details p, #munro-name {
  margin-bottom: 8px;
}

#home {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;;
}

#home article {
  height: calc(100vh - 215px);
  overflow: scroll;
}

#munro-container {
  height: 100%;
}

#home section {
  padding: .8em;
}

#search {
  border-width: 0 0 1px 0;
  padding: .8em;
  font-size: 1em;
  margin: 2px 2px 0 2px;
  width: calc(100% - 4px);
}

#weather-forecast {
  display: flex;
  justify-content: space-between;
}

.weather-item {
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 5px;
  border: 1px solid transparent;
}

.weather-item:hover {
  background: #DDD;
}

.weather-item.selected {
  border: 1px solid #999;
}

#weather-forecast span {
  width: 2em;
  height: 2em;
  background: #EEEEEE90;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#weather-labels {
  display: flex;
  justify-content: space-between;
}
#weather-labels div {
  font-size: small;
}
#forecast-start {
  color: #888;
  text-align: left;
}
#forecast-end {
  color: #888;
  text-align: right;
}
#forecast-selected {
  font-weight: bold;
}

#forecast {
  width: 100%;
}
.weather-icon {
  padding: 5px;
  border-radius: 50px;
  margin: 10px 10px;
  border: 1px solid #999;
}

.red { background-color: red; }
.orange { background-color: orange; }
.yellow { background-color: yellow; }
.green { background-color: lightgreen; }
.white { background-color: white }

#completed {
  background-color: rgba(60, 64, 67, 0.04);
  font-size: small;
}

.bagged {
  color: #AAA;
}

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

  #home article {
    height: calc(100vh - 185px);
  }

  body:not(.searching) #panel {
    display: none;
  }

  body.searching #legend {
    bottom: 5px;
  }

  #legend {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: unset;
    width: unset;
    overflow:visible;
  }
}
