#digits {
  text-align: center;
}

#digits * {
  display: inline;
}

@media(max-width: 400px) {
  #digits * {
    width: 20px;
  }
}

/**
* Autoencoder diagram
**/

#auto-dashboard {
  text-align: center;
}

#auto-dashboard * {
  display: inline-block;
}

#auto-dashboard #train-button {
  float: left;
}

#auto-dashboard #new-sample-button {
  display: none;
}

#auto-stats {
  text-align: center;
  margin-top: 10px;
}

span#auto-epochs,
span#auto-loss {
  color: #1f77b4;
  font-weight: 800;
  font-family: courier;
}

.center-text {
  margin-bottom: 5px;
}

.center-text button {
  display: inline-block;
  margin: 0 1px;
  background: #1f77b4;
}

/**
* Autoencoder diagram
**/

#auto-container {
  position: relative;
}

#auto-diagram {
  padding: 0px 15% 20px;
  position: relative;
}

#auto-diagram svg {
  width: 100%;
}

#auto-input,
#auto-output {
  width: 20%;
  position: absolute;
  top: 25%;
  text-align: center;
}

#auto-input {
  left: 0;
}

#auto-output {
  right: 0;
}

@media (max-width: 400px) {
  #auto-input,
  #auto-output {
    font-size: 12px;
    line-height: 12px;
  }
}

/**
* MNIST
**/

#mnist-target,
#sampling-target {
  height: 410px;
  width: 100%;
  z-index: 1;
  background: #f5f5f5;
  position: relative;
}

#layout-buttons {
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.layout-button {
  display: inline-block;
  padding: 7px 12px;
  background: #d53a26;
  color: #fff;
  margin: 10px 3px;
  border-radius: 3px;
  font-family: courier;
  box-shadow: 0px 0px 3px rgba(0,0,0,0.4);
  opacity: 0.4;
  cursor: pointer;
  z-index: 10;
}

.layout-button.active {
  opacity: 1;
}

/**
* Sampling
**/

#sampling-buttons {
  text-align: center;
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
}

#sampling-buttons img {
  display: inline-block;
  width: 22px;
  margin: 4px;
  padding: 7px;
  border: 3px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  background: #fff;
}

#sampling-buttons img.active {
  border: 3px solid #d53a26;
}

#sampling-target svg {
  height: 112px;
  width: 112px;
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  background: #ddd;
}

/**
* Loader
**/

.loader {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  top: 50%;
  color: #aaa;
  -webkit-animation: text 1s infinite ease-in-out alternate;
  animation: text 1s infinite ease-in-out alternate;
  font-family: courier;
}

@keyframes text {
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/**
* Celeba sampler
**/

div#celeba-scene {
  height: 400px;
  position: relative;
}

/**
* Mobile warning
**/

.mobile-warning {
  display: none;
}

@media(max-width: 400px) {
  .mobile-warning {
    display: block;
    color: #aaa;
    margin: 15px 0;
    line-height: 17px;
    font-size: 13px;
  }
}
