html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}

.layout-wrapper {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.layout-topnav {
  overflow: hidden;
  background-color: #333;

  a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;

    &:hover {
      background-color: #ddd;
      color: black;
    }

    &.active {
      background-color: #4caf50;
      color: white;
    }
  }
}

.layout-content {
  flex: 1;
  height: 100%;
  margin: 0;
}

#map {
  height: 100%;
  width: 100%;
}

.level-marker .info {
  border: 1px solid black;
  padding: 0.1em;
  font-size: 1em;
  display: inline-block;
}

/** Limits **/

.limit-lowlow {
  background-color: white;
}

.limit-low {
  background-color: gray;
}

.limit-medium {
  background-color: #0c0;
}

.limit-high {
  background-color: orange;
}

.limit-highhigh {
  background-color: red;
}

.limit-box {
  display: inline-flex;
  padding: 0 0.2em;
  text-align: center;
  color: black;
  border: 1px solid black;
  justify-content: center;
  align-items: center;
  height: 1.5em;
  margin-left: 3px;

  .limit-box-txt {
    text-align: center;
  }
}

.limits-table-cell {
  vertical-align: text-top;
  padding-left: 0.3em;
}

/* About page */

.page-about p {
  max-width: 800px;
}

.page {
  margin: 1em;
}

.page-status {
  /* Status page */
  h1 {
    text-align: center;
  }

  table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    margin: auto;
  }

  table td, table th {
    border: 1px solid #ddd;
    padding: 8px;
  }

  table tr:nth-child(even) {
    background-color: #f2f2f2;
  }

  table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #333;
    color: #f2f2f2;
  }
}

/* popups */
.popup-text {
  margin-top: 3px;
  border-top: 1px solid #ccc;
}

.popup-label {
  font-weight: bold;
}

.popup-header {
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
}

.river-text {
  margin-top: 1em;
  max-width: 500px;
}

.value-with-unit {
  white-space: nowrap;
}

.gauge-icon {
  font-size: 20px;
  white-space: nowrap;
  text-align: center;
  font-weight: bold; /* Makes the text bold */
  color: white; /* Sets the text color to white */
  text-shadow:
    1px 1px 0 black,
    /* Shadow to the right and down */ -1px -1px 0 black,
    /* Shadow to the left and up */ 1px -1px 0 black,
    /* Shadow to the right and up */ -1px 1px 0
    black; /* Shadow to the left and down */
}
