body {
  margin: 0;
  font-family: Arial;
}
#gameContainer {
  /* Maximize space that the canvas uses on the screen */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66.67vw;
  width: 100vw;
  max-width: 150vh;
  max-height: 100vh;
  margin: auto;
  overflow: hidden;
}

#display {
  width: 100%;
  height: 100%;
  
  /*background-color: cornflowerblue;*/
  background-image: url('images/background.png');
  
  background-size: 100%;
  
  cursor: none;
}

#images {
  display: none;
}

#dieBox {
  width: 20%;
  height: 8%;
  z-index: 470;
  padding-top: 7px;
  padding-bottom: 7px;
}

#gravestone {
  display: none;
  position: absolute;
  width: 10vmax;
  height: 10vmax;
  max-width: 13%;
  max-height: 21%;
  background-image: url('images/gravestone.png');
  background-repeat: no-repeat;
  background-size: 100%;
  right: 0;
  bottom: 0;
  text-align: center;
  box-sizing: border-box;
  padding-top: 2%;
  padding-right: 3%;
  padding-left: 3%;
  word-wrap: break-word;
  font-family: serif;
  letter-spacing: 0.15rem;
  font-size: 0.6rem;
}
#gravestone #deadMonster {
  padding-top: 5%;
  display: block;
  height: 73%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#aboutBox, #healthBox, #dieBox, #browserAlert {
  position: absolute;
  display: none;
  margin: auto;
  width: 50%;
  height: auto;
  text-align: center;
  font-size: 1.3rem;
  background-color: #CA8187;
  opacity: 1;
  border-radius: 8px;
  box-shadow: 0 0 2px 5px #333;
  padding-left: 10px;
  padding-right: 10px;
}

#healthBox {
  border-radius: 0px;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

#health::-webkit-progress-value {
  background-color: red;
}
#health::-moz-progress-bar {
  background-color: red;
}

#aboutBox h3 {
  font-variant: small-caps;
}

#aboutClose {
  position: absolute;
  right: 1em;
  top: 0.5em;
  color: black;
  text-decoration: none;
}

.ui {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  cursor: default;
  position: relative;
}

#stats {
  position: absolute;
  right: 0;
  top: 0;
  display: block;
  width: 10%;
  height: 30%;
  background-color: #CA8187;
  font-size: 0.85rem;
}

#name .editIcon {
  display: none;
  position: absolute;
  top: 4px;
  left: 4px;
}

#name:hover .editIcon {
  display: inline-block;
}
#name:hover #nameBox, #nameBox:focus {
  text-decoration: underline dotted;
}

#nameBox {
  left: 0;
  width: 100%;
  background-color: #FF99FF;
  box-sizing: border-box;
  border: 0;
  text-align: center;
  margin-bottom: 4%;
}

progress {
  /* Reset the default appearance */
  -webkit-appearance: none;

  width: 100%;
  height: 20px;
  
  /* Reset firefox's styling of progress bars */
  border-width: 0;
  display: block;
  
  /* Firefox applies styling on the prgoress bar directly */
  background-color: transparent;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

progress::-webkit-progress-bar {
  /* However Chrome requires you to use this pseudo-element */
  background-color: transparent;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

#food::-webkit-progress-value {
    background-color: orange;
  border-radius: 4px;
}
#food::-moz-progress-bar {
  background-color: orange;
  border-radius: 4px;
}

#water::-webkit-progress-value {
    background-color: cornflowerblue;
  border-radius: 4px;
}

#water::-moz-progress-bar {
  background-color: cornflowerblue;
  border-radius: 4px;
}

#foodLabel, #waterLabel {
  position: absolute;
  left: 0;
  line-height: 20px;
}

#food {
  margin-bottom: 0.4em;
}

#healthLabel {
  position: absolute;
  left: 45%;
}

/* always have the same color for links. They are few & far between enough that
   it shouldn't be too confusing. */
a, a:hover, a:visited, a:focus {
  text-decoration: underline;
  color: #2319CF;
  border: none;
}

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: black;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
   color: black;
   opacity: 1;
}