* {
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: #222222;
  color: #EEEEEE;
  font-family: "Arima Madurai", sans-serif;
}

.hidden {
  visibility: hidden;
}

#arcade {
  display: flex;
  flex-direction: column;
}

#screen {
  background-color: #333333;
  border: 10px solid #444444;
  position: relative;
}

#game {
}

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;

  transition: opacity 0.5s ease;
}

#won-overlay {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: rgba(150, 255, 150, 0.5);
  color: #FFFFFF;
  font-size: 6em;
  font-weight: bold;
}

#play-button {
  cursor: pointer;
  background: #282828;
  text-align: center;
  border: 1px solid #444444;
  margin-top: 10px;
  padding: 10px 20px;
}

#play-button.disabled {
  cursor: default;
  color: #888888;
}

#score {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-evenly;
}

.shard {
  width: 10px;
  height: 10px;
}

.shard.obtained {
  background-color: #f7d65d;
  border: 1px solid #444444;
}

.shard.remaining {
  border: 1px dotted #444444;
}

#main-title {
  text-align: center;
  font-size: 2.3em;
  font-weight: bold;
}

#credits {
  width: 350px;

  background-color: #282828;
  text-align: center;

  border: 1px solid #444444;
  border-bottom: none;

  position: absolute;
  bottom: 0;
  right: 30px;
}

#credits-title {
  font-size: 1em;
  font-weight: normal;
}

#credits-content {
  display: none;
  text-align: left;
  padding: 10px;
  border-top: 1px dotted #444444;
  box-sizing: border-box;
}

#credits:hover > #credits-content {
  display: block;
}

#credits-content a {
  color: inherit;
}
