/*==== Animations ====*/
@keyframes fadeIn {
  0% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@keyframes slideDown {
  0% {
    margin-top: -50%; }
  100% {
    margin-top: -5%; } }
@keyframes pointRight {
  0% {
    margin-right: 100px;
    opacity: 0; }
  100% {
    margin-right: 10px;
    opacity: 1; } }
@keyframes pointLeft {
  0% {
    margin-left: 100px;
    opacity: 0; }
  100% {
    margin-left: 10px;
    opacity: 1; } }
/*==== Global styles ====*/
* {
  margin: 0;
  padding: 0; }

article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block; }

body {
  background-color: #ddd;
  background-image: radial-gradient(#eee 20%, #ccc 90%);
  background-repeat: no-repeat;
  font-family: 'Lato', sans-serif;
  color: #333; }

@-ms-viewport {
  width: device-width; }
button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #f2f2f2;
  font-family: "Chau Philomene One", sans-serif;
  font-weight: 700;
  text-transform: uppercase; }

/*==== Main Header ====*/
.header {
  padding: 0 0.5rem;
  text-align: center; }

.header__title {
  color: #fdd04a;
  font-size: 5rem;
  font-family: "Chau Philomene One", sans-serif;
  margin: 1rem auto -2rem;
  position: relative;
  text-shadow: -1px -1px 0 #7a5c01, 1px -1px 0 #7a5c01, -1px 1px 0 #7a5c01, 1px 1px 0 #7a5c01, -1px 2px 0 #7a5c01, 1px 2px 0 #7a5c01, -1px 3px 0 #7a5c01, 1px 3px 0 #7a5c01, -1px 4px 0 #7a5c01, 1px 4px 0 #7a5c01, -1px 5px 0 #7a5c01, 1px 5px 0 #7a5c01, -1px 6px 0 #7a5c01, 1px 6px 0 #7a5c01, 0 8px 5px #9b7502;
  z-index: 1; }

.header__display {
  background: #fafafa;
  box-shadow: 0 1px 0 1px #999, 0 2px 0 #999, 0 3px 0 #999, 0 4px 0 #999, 0 5px 0 #999, 0 5px 8px 1px #999;
  border-radius: 30px;
  font-size: 1.2rem;
  margin: 0 auto 3rem;
  max-width: 600px;
  padding: 0.8rem;
  position: relative; }

.header__display:before,
.header__display:after {
  content: '';
  display: block;
  border-style: solid;
  border-width: 26px 26px 0;
  border-color: #999 transparent;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -26px; }

.header__display:after {
  border-color: #fafafa transparent;
  border-width: 20px 20px 0;
  margin-left: -20px; }

.header__instruction {
  border-radius: 18px;
  border: 3px solid #eadfc9;
  box-shadow: 2px 2px 1px 0 #dcc9a4 inset, 2px 2px 1px #dcc9a4;
  margin: 0;
  padding: 1rem; }

.header__instruction--note {
  font-style: italic;
  font-size: 1.1rem;
  color: #777;
  margin: 0.8rem 0 0; }

/*==== Counter Styles ====*/
.counter {
  text-align: center; }

.animal-counter {
  background-color: #eadfc9;
  border-radius: 12px;
  border: 4px solid #f2f2f2;
  box-shadow: 1px 1px 2px 1px #bf9e5b inset, 0 2px 0 1px #bf9e5b, 0 1px 6px #6f592b;
  margin: 0 auto 4rem;
  text-align: center;
  display: inline-block;
  padding: 0.5rem; }

.animal-counter__group {
  display: inline-block;
  margin: 0 0.3rem;
  vertical-align: bottom; }

.animal-counter__title {
  font-family: "Chau Philomene One", sans-serif;
  color: #f2f2f2;
  margin: 0 auto 0.4rem;
  text-transform: uppercase;
  text-shadow: -1px -1px 0 #6f592b, 1px -1px 0 #6f592b, -1px 1px 0 #6f592b, 1px 1px 0 #6f592b, -1px 2px 0 #6f592b, 1px 2px 0 #6f592b, -1px 3px 0 #6f592b, 1px 3px 0 #6f592b; }

.animal-counter__item {
  display: inline-block;
  vertical-align: bottom; }

.animal-counter__number {
  display: inline-block;
  font-weight: 700;
  height: 1.5rem;
  vertical-align: middle;
  width: 1rem; }

/*==== Stage Styles ====*/
.animal-stage {
  background: url("corral-bg.png") center no-repeat;
  border: 1px solid transparent;
  margin: 0 auto 5rem;
  min-height: 136px;
  min-width: 170px;
  max-width: 408px;
  position: relative; }

.animal-stage:after {
  background: url("front-fence.png") center bottom no-repeat;
  bottom: 23px;
  content: '';
  display: block;
  height: 64px;
  position: absolute;
  width: 100%; }

.animal-stage__group {
  padding: 0;
  margin: -9% auto 0;
  max-width: 250px; }

.animal-stage__item {
  display: inline-block;
  list-style: none;
  margin: 0 -8% -31% 0;
  width: 20%; }

.animal-stage__image {
  display: block;
  margin: auto;
  max-width: 44px;
  width: 100%; }

.animal-stage__image[alt="rabbit"] {
  margin: -70% 0 0; }

.animal-stage__prompt {
  animation-name: fadeIn;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  margin: 0.2rem auto;
  position: absolute;
  text-align: center;
  top: 100%;
  width: 100%; }

.animal-stage__prompt-notice {
  background-color: #e2aa00;
  box-shadow: 0 1px 0 1px #af8300, 0 2px 6px #af8300;
  border-radius: 6px;
  display: inline-block;
  color: #f2f2f2;
  padding: 0.4rem 0.8rem;
  position: relative; }

.animal-stage__prompt-notice:before {
  border-color: transparent transparent #e2aa00;
  border-style: solid;
  border-width: 0 10px 10px;
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -10px; }

.animal-stage__prompt-icon {
  border: 2px solid #f2f2f2;
  display: inline-block;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1.5rem;
  margin: 0 0.4rem 0 0;
  width: 1.5rem; }

.animal-stage__prompt-message {
  display: inline-block;
  padding: 0.4rem;
  margin: 0; }

/*==== Control Styles ===*/
.controls {
  margin: 0 auto 2rem;
  padding: 0 0.25rem;
  text-align: center; }

.controls__header {
  text-align: center; }

.controls__title {
  border-radius: 8px;
  color: #f2f2f2;
  font-size: 2rem;
  font-family: "Chau Philomene One", sans-serif;
  margin: 0 auto 0.5rem;
  position: relative;
  text-transform: uppercase;
  text-shadow: -1px -1px 0 #6f592b, 1px -1px 0 #6f592b, -1px 1px 0 #6f592b, 1px 1px 0 #6f592b, -1px 2px 0 #6f592b, 1px 2px 0 #6f592b, -1px 3px 0 #6f592b, 1px 3px 0 #6f592b, -1px 4px 0 #6f592b, 1px 4px 0 #6f592b;
  vertical-align: bottom; }

.animal-controls__display {
  border: 6px solid #f2f2f2;
  box-shadow: 1px 1px 2px 1px #bf9e5b inset, 0 2px 0 1px #bf9e5b, 0 2px 8px #6f592b;
  display: inline-block;
  background-color: #eadfc9;
  border-radius: 16px;
  margin: 0 auto 2rem;
  padding: 0.5rem; }

.animal-controls__group {
  display: inline-block;
  margin: 0 1rem 1rem;
  vertical-align: bottom; }

.animal-controls__item {
  display: inline-block;
  vertical-align: bottom;
  margin: 0 0.25rem; }

.animal-controls__button {
  background: #aaa;
  display: block;
  font-size: 1.5rem;
  line-height: 1rem;
  margin: 0;
  padding: 0.75rem;
  transition: all .2s;
  text-shadow: 0 -1px 0 #333;
  width: 2.75rem; }

.animal-controls__button[disabled] {
  cursor: not-allowed; }

.animal-controls__button--top {
  border-radius: 3px 3px 0 0;
  border-style: solid;
  border-color: #1e7e34;
  border-width: 3px 1px 1px;
  border-bottom-color: transparent;
  background-color: #28a745;
  background-image: linear-gradient(#28a745, #1e7e34); }

.animal-controls__button--top:active {
  border-width: 1px 0 3px;
  background-image: linear-gradient(#28a745 -30%, #1e7e34 70%); }

.animal-controls__button--bottom {
  border-radius: 0 0 3px 3px;
  border-style: solid;
  border-color: #a31c29;
  border-width: 1px 1px 3px;
  border-top-color: transparent;
  background-color: #dc3545;
  background-image: linear-gradient(#a71d2a -20%, #dc3545); }

.animal-controls__button--bottom:active {
  border-width: 3px 0 1px;
  background-image: linear-gradient(#a71d2a 10%, #dc3545 130%); }

.submit-control {
  margin: 0 auto 2rem;
  text-align: center; }

.submit-control__group {
  display: inline-block;
  position: relative; }

.submit-control__button {
  border-color: #19692c;
  border-style: solid;
  border-width: 1px 1px 6px;
  border-radius: 6px;
  background-image: linear-gradient(#208637 -80%, #28a745 70%);
  box-shadow: 0 1px 7px #1e7e34;
  color: #eee;
  font-size: 1.75rem;
  transition: all .25s;
  padding: 0.75rem 1.25rem;
  text-shadow: 0 -1px 0 #333; }

.submit-control__button:active {
  margin-top: 4px;
  border-bottom-width: 2px; }

.submit-control__button[disabled] {
  cursor: not-allowed; }

.submit-control__group--action:before,
.submit-control__group--action:after {
  animation-duration: 1s;
  animation-name: pointRight;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  content: "\000BB";
  color: #e2aa00;
  font-family: "Chau Philomene One", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 3rem;
  position: absolute;
  text-shadow: 0 1px 0 #7c5d00, 0 2px 1px #af8300;
  top: 0.5rem;
  right: 100%; }

.submit-control__group--action:after {
  animation-name: pointLeft;
  content: "\000AB";
  left: 100%;
  right: auto; }

/*==== Modal Styles ====*/
.modal-parent {
  overflow: hidden;
  padding-right: 17px !important; }

.modal {
  animation-name: fadeIn;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  background-color: rgba(0, 0, 0, 0.3);
  bottom: 0;
  left: 0;
  overflow: auto;
  position: fixed;
  padding: 0 0.75rem;
  right: 0;
  top: 0;
  z-index: 10; }

.modal__back {
  background: #444;
  opacity: 0.6;
  top: 0;
  left: 0;
  position: fixed;
  bottom: 0;
  right: 0; }

.modal__group {
  animation-name: slideDown;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  margin: -5% auto 10%;
  max-width: 500px;
  position: relative;
  top: 50%; }

.modal__content {
  background: #f2f2f2;
  box-shadow: 2px 3px 14px 1px #444;
  border-radius: 6px;
  font-size: 1.2rem;
  text-align: center; }

.modal__content--failure {
  border: 1px solid #dc3545;
  background-color: #fae3e5; }

.modal__content--success {
  border: 1px solid #28a745;
  background-color: #edfbf0; }

.modal__content-header {
  background-color: #aaa;
  border-radius: 6px 6px 0 0;
  color: #f2f2f2;
  font-weight: 700;
  padding: 0.5rem;
  text-transform: uppercase; }

.modal__content-header--failure {
  background-color: #dc3545; }

.modal__content-header--success {
  background-color: #28a745; }

.modal__content-body {
  padding: 2rem; }

.modal__close-button {
  font-size: 2rem;
  font-weight: 300;
  line-height: 2rem;
  position: absolute;
  right: 0;
  bottom: 100%; }

.modal__icon {
  border: 4px solid #f2f2f2;
  border-radius: 50%;
  display: inline-block;
  font-weight: 700;
  height: 1rem;
  line-height: 1rem;
  margin: 0 0.4rem 0 0;
  padding: 0.5rem;
  text-align: center;
  width: 1rem; }

.modal__icon--success {
  border-color: #28a745;
  color: #28a745; }

.modal__icon--failure {
  border-color: #dc3545;
  color: #dc3545; }

/*# sourceMappingURL=style.css.map */
