html, body {
  font-family: arial, sans-serif-light, sans-serif;
  height: 100%;
  box-sizing: border-box;
  margin: 0px;
}

h4 {
  margin: 0;
}

#mapid {
  height: 630px;
}

html body #mapid div.leaflet-control-container div.leaflet-top.leaflet-left {
  right: 10px;
  left: auto;
}

.mapContainer {
  font-size: 11px;
  height: 680px;
  position: relative;
}

.mapContainer .observations {
  background-color: rgba(255, 255, 255, .3);
  z-index: 1000;
  position: absolute;
  top: 55px;
  padding: 0 10px;
  height: 630px;
  box-sizing: border-box;
  width: 34.5%;
  min-width: 330px;
}

.mapContainer .observations.collapsed {
  min-width: 0px;
  width: 9px;
  padding: 0;
}

.mapContainer .observations .observationComps {
  overflow-x: hidden;
  height: 100%;
}

.mapContainer .observations .observationComps.collapsed {
  display: none;
}

.banner h4 {
  background-color: #bbb;
  padding: 4px;
  text-align: center;
  font-size: 2.5em;
  color: #555;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.notactive h4 {
  font-size: 1.5em;
  padding: 1.15em 0 1em 0;
}

.banner .tsunamiActive {
  animation: colorchange 2s infinite;
  color: #FFF;
  background-color: #DD0000;
  margin: 0;
  text-align: center;
}

/*h4.tsunamiActive::before, h4.tsunamiActive::after {content: '\26A0'; margin-left:20px; margin-right:20px;font-weight: normal;font-size:0.75em;}*/

@keyframes colorchange {
  0%, 100% {
    background-color: #DD0000;
  }
  50% {
    background-color: #AA0000;
  }
}

.mapContainer .observations div.ctnr {
  background-color: rgba(255, 255, 255, 1);
  margin-top: 4px;
}

.mapContainer .observations div.warning {
  padding-bottom: 3px;
  position: relative;
}

.mapContainer .observations div.warning table.table.collapsed {
  display: block;
  height: 4px;
  overflow: hidden;
}

.mapContainer .observations div.warning svg {
  position: absolute;
}

.mapContainer .observations div.warning svg.wave {
  background-image: url("icons/wave.png"); background-size: 100%;
}

.mapContainer .observations div.warning h4 {
  padding-left: 15px;
  background-color: lightgrey;
}

.mapContainer .observations div.warning.earthquake h4 {
  background-color: rgba(255, 0, 0, .3);
  color: #AF0000;
}

.mapContainer .observations div.warning.observation h4 {
  background-color: rgba(106, 90, 205, .3);
  color: #800080;
}

.mapContainer .observations div.warning .countries {

  display: flex;
  flex-wrap: wrap;
  padding-bottom: 2px;
  color: white;

  /*
  display: grid;
  display: -ms-grid;
  -ms-grid-columns: 29% 22% 29% auto;
  grid-template-columns: 29% 22% 29% auto;
  grid-auto-flow: row;
  padding-bottom: 2px;
  color: white;
  Does not work in IE unfortunately.
  */
}

.mapContainer .observations div.warning .countries .country {
  padding: 5px;
  border: 1px solid white;
  width: 20.99%;

  max-height: 30px;
  font-size: 10px;
}

.mapContainer .observations div.warning .countries .country:hover {
  border: 1px solid black;
  color: black;
  cursor: pointer;
  text-shadow: none !important;
}

.mapContainer #root {
  height: 100%;
}

.mapContainer #root .App {
  height: 100%;
}

.mapContainer #root .observations .caretPanel {
  width: 23px;
  height: 48px;
  position: absolute;
  right: -23px;
  top: 5px;
  background-color: rgba(255, 255, 255, .6);
  cursor: pointer;
}

.mapContainer #root .observations .caretPanel .caretLeft {
  border-bottom: 7px solid transparent;
  border-top: 7px solid transparent;
  border-right: 7px solid;
  display: inline-block;
  height: 0;
  opacity: 0.4;
  vertical-align: middle;
  width: 0;
  position: absolute;
  top: 17px;
  left: 6px;
}

.mapContainer #root .observations .caretPanel .caretLeft.collapsed {
  border-right: 0;
  border-left: 7px solid;
  left: 9px;
}

.leaflet-control-layers{
  margin-right:50px !important;
}

.warning .legend {
  padding-top: 2px;
}

.warning .legend div.l {
  border: 0px;
  font-weight: bold;
  color: grey;
}

.warning .legend div {
  display: inline-block;
  padding: 2px;
  border: 1px solid lightgrey;
  color: white;
  font-size: 0.95em;

}

div.footer {
  margin-top: 2px;
}

div.footer h4 {
  padding: 3px 0 0 0;
  margin: 0;
  background-color: lightgrey;
  color: black;
}

div.footer div div.center {
  display: inline-block;
  padding: 2px;
}

div.footer div.centers {
  position: relative;
  margin-bottom: 2px;
}

div.footer div.centers div.countries.collapsed {
  height: 4px;
  overflow: hidden;
}

div.collButton {
  position: relative;
  background-color: rgba(255, 255, 255, .3);
  text-align: center;
  cursor: pointer;
}

div.collButton .caret {
  border-top: 0px solid transparent;
  border-bottom: 5px solid black;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  height: 0;
  opacity: 0.4;
  vertical-align: middle;
  width: 0;
  padding-left: 48%;
  padding: 0;
  display: inline-block;
}

div.collButton .caret.collapsed {
  border-top: 5px solid black;
  border-bottom: 2px solid transparent;
}

.notes {
  margin-top: 4px;
  display: flex;
}

.notes .note {
  border: 1px solid white;
  min-width: 25%;
  padding: 3px;
  margin-right: 2px;
  background-color: rgba(255, 255, 255, 0.3);
}

.notes .note.tsp {
  display: flex;
}

.notes .note:last-child {
  margin-right: 0px;
  width: 100%
}

.note span.jsbutton {
  user-select: none;
  text-align: right;
}

.note:hover {
  background-color: rgba(250, 250, 250, 1);
}

.note span.jsbutton::after {
  content: '\29C9';
  color: #555555;
  padding-left: 3px;
}

/*Core CSS */

#pagewrap #columns>#breadcrumb {
  margin: 0px 20px 5px;
}

h1, h2 {
  margin: 0 20px 5px;
}

h1 {
  font-size: 1.2em;
  color: #006699;
}

/* bootstrap 4 */

table {
  border-collapse: collapse;
  background-color: transparent;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #eceeef;
}

.table tbody tr {
  cursor: pointer;
}

.table td, .table th {
  padding: .40rem;
  vertical-align: top;
  border-top: 1px solid #eceeef;
}

table tbody tr:hover, table tbody tr.selected {
  background-color: #F5F5F5;
}

/* leaflet */

.leaflet-popup-content span {
  font-size: 10px;
}

/* css tooltip */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  min-width: 67px;
  background-color: lightgrey;
  color: black;
  text-align: center;
  border-radius: 6px;
  padding: 2px;
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 0%;
  border: 1px solid black;
}

.tooltip .tooltiptext::after {
  /*content: "";*/
  position: absolute;
  top: 20%;
  right: 101%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.notes-top {
  text-align: center;
  cursor: pointer;
}

.notes-top div span {
  line-height: 2em;
}

.popupContainer[data-active=active] {
  position: absolute;
  bottom: 45px;
  left: 350px;
  height: 570px;
  width: 600px;
  z-index: 1200;
}

.popupbox::before {
  content: "";
  height: 0px;
  width: 0px;
  position: absolute;
  border-top: 21px solid rgba(0, 0, 0, 0);
  border-bottom: 21px solid rgba(0, 0, 0, 0);
  border-right: 21px solid lightgrey;
  left: -21px;
  top: -3px;
  transform: rotateX(50deg);
}

.popupbox::after {
  content: "";
  height: 0px;
  width: 0px;
  position: absolute;
  border-top: 20px solid rgba(0, 0, 0, 0);
  border-bottom: 20px solid rgba(0, 0, 0, 0);
  border-right: 20px solid white;
  left: -19px;
  top: -2px;
  transform: rotateX(50deg);
}

.popupContainer[data-active=inactive] {
  display: none;
}

.popupbox {
  background-color: white;
  border: 1px solid lightgrey;
  height: 90%;
  padding-left: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.popupboxPadding {
  display: block;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.closeIcon {
  cursor: pointer;
  position: absolute;
  top: 0px;
  right: 0px;
}

.closeIcon span {
  font-weight: bold;
  text-align: center;
  line-height: 19px;
  font-size: 2em;
  color: Grey;
  display: block;
  height: 20px;
  width: 20px;
  user-select: none;
}

.closeIcon span:hover {
  background-color: #CCCCCC;
  color: white;
}

.closeIcon::before {
  cursor: default;
  content: "";
  height: 685px;
  width: 1003px;
  background-color: black;
  opacity: 0.5;
  position: absolute;
  bottom: -595px;
  left: -930px;
  z-index: -10;
}

.aboutcontent {
  font-size: 1.2em;
}

.aboutContentLink {
  position: absolute;
  bottom: -9px;
  left: 0px;
  background-color: white;
  padding: 3px;
  border: 1px solid lightgrey;
}

.aboutContentLink a {
  color: black;
  text-decoration: none;
  vertical-align: middle;
}

.aboutContentLink a:hover {
  color: gray;
}

.doc {
  left: 73px;
}

.aboutcontent .heading {
  font-weight: bold;
  font-size: 1.3em;
  text-decoration: underline;
}

.aboutcontent .listheading {
  text-decoration: underline;
}

#pagewrap #columns h1 span {margin-left: 54px; }
