div.buttons {
  text-align: center;
}

button {
  margin: 10px;
}

div.question {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tipsy {
  -webkit-transform: scale(1);
  font-size: 32px;
}

#right-container {
  width: 100px;
}

.towerblock {
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
}

.towerblock-placeholder {
  border-radius: 10px;
  border: 2px ridge #225a7c;
}

.towerblock.transparent {
  opacity: 0;
}

.hidden {
  display: none;
}

#star-rating-dialog-wrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

#star-rating-dialog {
  width: 400px;
  margin: auto;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #a38b09;
  box-shadow: 8px 8px 16px 0px rgba(0, 0, 0, 0.55);
  color: white;

  animation-duration: 0.5s;
  -webkit-animation-duration: 0.5s;
}

.congrats {
  text-align: center;
}

.star-bar {
  font-size: 70px;
  margin: 44px 0px;
  text-align: center;
}

.star-bar > span:nth-child(2) {
  margin-right: 20px;
  margin-left: 20px;
}

.star-bar > span:nth-child(1) {
  animation-delay: 0.4s;
  -webkit-animation-delay: 0.4s;
}

.star-bar > span:nth-child(2) {
  animation-delay: 0.6s;
  -webkit-animation-delay: 0.6s;
}

.star-bar > span:nth-child(3) {
  animation-delay: 0.8s;
  -webkit-animation-delay: 0.8s;
}

#btn-try-again {
  margin: 0 auto;
  display: block;
}

#partitioner path {
  stroke-width: 8;
  fill: transparent;
}

@media only screen and (max-width: 700px), only screen and (max-height: 600px) {
  html #star-rating-dialog {
    max-width: 90%;
    box-sizing: border-box;
  }

  html div.towerblock {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 25px;
  }

  html div.numeric-input {
    font-size: 40px;
    min-width: 40px;
  }

  html div.numeric-value {
    font-size: 40px;
  }

  html div.numeric-value.narrow {
    min-width: 40px;
    font-size: 40px;
  }

  html span.key {
    font-size: 25px;
    width: 35px;
    height: 35px;
    line-height: 40px;
  }

  html span.key.clear-key {
    font-size: 25px;
  }

  html #right-container {
    width: 75px;
  }

  html
    .numeric-partitioner-top-row
    .numeric-value {
    margin-bottom: 20px;
  }
  html .numeric-partitioner > svg {
    top: 80px;
  }
}

@media only screen and (max-width: 600px), only screen and (max-height: 500px) {
  html div.towerblock {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 20px;
  }

  html div.numeric-input {
    font-size: 32px;
    min-width: 32px;
  }

  html div.numeric-value {
    font-size: 32px;
  }

  html div.numeric-value.narrow {
    min-width: 32px;
    font-size: 32px;
  }

  html span.key {
    font-size: 20px;
    width: 30px;
    height: 30px;
    line-height: 32px;
  }

  html span.key.clear-key {
    font-size: 20px;
  }

  html #right-container {
    width: 75px;
  }

  html
    .numeric-partitioner-top-row
    .numeric-value {
    margin-bottom: 10px;
  }
  html .numeric-partitioner > svg {
    top: 70px;
  }
}

@media only screen and (max-width: 400px), only screen and (max-height: 400px) {
  html .buttons button {
    font-size: 12px;
  }

  html div.towerblock {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 18px;
  }
}

#loginbutton {
  margin-top: 17px;
}
