﻿@import url("https://fonts.googleapis.com/css?family=Lilita+One");

body {
  margin: 0;
  padding: 10px 20px 10px 10px;
  background: #eee;
  font-family: "Lilita One", cursive;
  font-size: 2rem;
}

@media (orientation: landscape) {
  .container {
    max-width: 600px;
  }
}

.status {
  margin-bottom: 1vh;
}

button {
  font-family: "Lilita One", cursive;
  font-size: 2rem;
  border-radius: 0.5em;
  border: 2px solid black;
  box-shadow: 2px 2px 5px #666;
  height: 20vh;
}

  button.btn-1 {
    background: #9FC5F8;
  }

  button.btn-2 {
    background: #D5A6BD;
  }

  button.btn-3 {
    background: #B4A7D6;
  }

  button.btn-hold {
    background: #F6B26B;
  }

  button.disabled {
    background: gray !important;
  }

  button.held {
    color: white;
    background: #009e0f !important;
  }

  button.pending {
    background: orangered;
  }

  button:hover {
    filter: brightness(85%);
  }

  button:active {
    filter: invert(100%);
    transform: translateY(0.5rem);
    box-shadow: initial !important;
  }

.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
}

  .buttons .full-row {
    grid-column: 1/span 2;
  }

.modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

#hold-modal {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 1rem;
  padding: 2rem;
  touch-action: none;
}

  #hold-modal button {
    height: 20vw;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: rgba(0, 0, 0, 0.75) 0rem 0.5rem;
  }

    #hold-modal button.cancel {
      background: rgba(207, 42, 39, 0.85);
      color: white;
    }

#pin-modal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
  justify-items: center;
  padding: 2rem;
  touch-action: none;
}

  #pin-modal button {
    border-radius: 15vh;
    height: 15vh;
    width: 15vh;
    max-width: 20vw;
    max-height: 20vw;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: rgba(0, 0, 0, 0.75) 0rem 0.5rem;
    font-size: 1.5rem;
  }

    #pin-modal button.zero {
      grid-column: 2/2;
    }

  #pin-modal .full-row {
    grid-column: 1/span 3;
  }

  #pin-modal h1 {
    padding: 0;
    margin: 0;
    color: white;
  }

    #pin-modal h1.pin-input {
      font-size: 2rem;
      letter-spacing: 2rem;
      margin-right: -2rem;
    }

      #pin-modal h1.pin-input.invalid-pin {
        animation-name: shake;
        animation-duration: 0.5s;
        animation-fill-mode: both;
        color: red;
      }

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }

  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }

  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}
