@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@800,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
body {
  background-color: #4caf50;
}
footer {
  background-color: #333333;
  text-align: center;
  padding: 10px 0;
}
footer a {
  color: #fff;
  text-decoration: none;
}
main {
  height: 100vh;
}

#coins {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  height: 70px;
  border-bottom: 2px solid #256c28;
}
.coin {
  background-image: url(coin.png);
  background-size: cover;
  background-position: center;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-weight: 800;
}
#coins .coin {
  margin: 0 5px;
}

#balance {
  height: calc(100vh - 120px);
  width: calc(100vh - 120px);
  margin: 25px auto;
  background-image: url(balance.png);
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
  position: relative;
}

#bar {
  z-index: -1;
  background-image: url(bar.png);
  width: calc(0.73046875 * (100vh - 120px));
  height: calc(0.08203125 * (100vh - 120px));
  background-size: cover;
  position: absolute;
  bottom: calc(0.445 * (100vh - 120px));
  left: calc(0.134765625 * (100vh - 120px));
  transform: rotate(0deg);
  transition: 0.5s transform ease-in-out;
}
.plate {
  background-image: url(plate.png);
  width: calc(0.302734375 * (100vh - 120px));
  min-height: calc(0.07421875 * (100vh - 120px));
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  position: absolute;
  bottom: calc(0.51 * (100vh - 120px));
  transition: 0.5s bottom ease-in-out, 0.5s left ease-in-out, 0.5s right ease-in-out;
}
.plate .coin {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 0.8em;
  transform: rotate(180deg);
}
.plate#left{
  left: 0;
}
.plate#right{
  right: 0;
}
.plate .bucket{
    width: 100%;
    height: 100%;
    padding-top: calc(0.07421875 * (100vh - 120px));
    transform: rotate(180deg);
    text-align: center;
}

.hide {
  display: none;
}

#measure, #reveal{
    position: absolute;
    top: 70px;
    font-size: 24px;
    text-transform: uppercase;
    width: 200px;
    padding: 10px;
    left: calc(50vw - 100px);
    background: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    letter-spacing: 4px;
    z-index: 9;
}
#reveal{
    top: unset;
    bottom: 0;
    left: 0;
    font-size: 12px;
    color: black;
    width: 150px;
}

#history{
    position: fixed;
    right: 0;
    top: 70px;
    width: 300px;
    height: calc(100vh - 70px);
    overflow-y: scroll;
}
#history canvas{
    width: 275px!important;
    height: 275px!important;
    margin: 5px auto;
    display: block;
    border-radius: 20px;
}
#history h2{
    text-align: center;
    color: #fff;
    margin: 10px 0;
}