
ship {
  color: white;
  background: rgba(30,30,30,0.9);
  flex-direction: column;
  transition: top 0.2s ease-in-out;
  position: fixed;
  height: 100%;
  width: 100%;
  top: -100%;
  z-index: 9;
}

ship.expanded {
  top: 0px;
}

ship img {
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}

ship.expanded img {
  opacity: 1;
}

ship .expander {
  position: fixed;
  right: 0;
  top: 0;
}

ship .collapser {
  display: none;
  position: fixed;
  right: 0px;
  top: 0px;
}

ship.expanded .collapser {
  display: flex;
}

ship.expanded .expander {
  display: none; 
}

ship block {
  position: relative;
  width: 640px;
  align-self: center;
}

ship img {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

ship item-slot {
  position: absolute;
  top: 0px;
}

ending, intro {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

ending message {
  font-size: 26px;
  position: absolute;
  justify-content: center;
  top: 10px;
  width: 100%;
  color: white;
  left: 0px;
}

ending > button, intro > button {
  position: absolute;
  z-index: 1001;
}

ending block, intro block {
  height: 100%;
  width: 100%;
  background-color: #232330;
  margin-left: auto;
  margin-right: auto;
}

ending img, intro img {
  height: 100%;
}

intro {
  transition: opacity 0.5 ease-out;
  opacity: 0;
  pointer-events: none;
}

intro img {
  opacity: 0;
  transition-delay: 1s;
  transition: opacity 1s 0.5s linear;
}

body.intro intro {
  opacity: 1;
  pointer-events: all;
}

intro.start img {
  opacity: 1;
}

dialog {
  border: none;
  width: 400px;
  max-width: 90%;
  display: none;
  position: absolute;
  left: 0; right: 0;
  bottom: 50px;
  margin: 50px auto;
  z-index: 9999;
  background: white;
  background: rgba(0,0,0,0.8);
  padding: 20px;
  color: white;
}

dialog.show {
  display: block;
}

dialog button {
  margin-top: 10px;
  float: right;
  border: 1px solid dimgray;
  transition: background 0.2s linear, border-color 0.2s linear;
}

dialog button:hover {
  background: rgba(255,255,255,0.1); 
  border-color: white;
}

dialog button:disabled {
  display: none;
}
