/*-----------------------------------------------------------------------
  General
-----------------------------------------------------------------------*/

#bunny-hunt-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  top: auto;
  background: #f1f0ea;
  border-radius: 10px;
  padding: 20px;
  z-index: 2000002;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
}

#bunny-hunt-container:hover {
  transform: scale(1.05);
}

.button.button-black {
  background: black !important;
  border-color: black !important;
}

.bunny-hunt-hidden {
  display: none !important;
}

/*-----------------------------------------------------------------------
  Popup Modal
-----------------------------------------------------------------------*/

#bunny-hunt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000003;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bunny-hunt-modal-content {
  background: #e8e5db;
  padding: 50px;
  border-radius: 15px;
  max-width: 600px;
  width: 80%;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
  position: relative;
  animation: modalAppear 0.4s ease-out;
}

.bunny-hunt-modal-content .button-group {
  margin-top: 20px !important;
}

.bunny-hunt-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  transition: color 0.25s ease;
}

/* Reward */

#bunny-hunt-reward-container {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

#bunny-hunt-reward {
  display: block;
  margin: 0 0 20px;
}

.bunny-hunt-reward-code {
  font-size: 28px;
  position: relative;
  font-weight: bold;
  color: #fff;
  background: #ffb5d1;
  padding: 15px;
  border-radius: 8px;
  margin: 0 0 20px;
  font-weight: 800;
  text-align: center;
}

.bunny-hunt-reward-locked {
  background-color: #dfe6e9;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  border: 2px dashed #b2bec3;
  color: #636e72;
  font-weight: bold;
  margin: 20px 0;
}

.bunny-hunt-reward-options {
  text-align: left;
  margin-top: 20px;
}

.bunny-hunt-reward-options ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.bunny-hunt-reward-options li {
  padding: 4px 0 4px 25px;
  position: relative;
}

.bunny-hunt-reward-options li:before {
  content: '🌸';
  position: absolute;
  left: 0;
  top: 4px;
  line-height: 1.5;
}

.bunny-hunt-reward-note {
  font-style: italic;
  color: #636e72;
  margin-top: 15px;
  font-size: 0.9em;
}

/* Animations */

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

@keyframes modalAppear {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Resonsive */

@media screen and (max-width: 550px) {
  .bunny-hunt-modal-content {
    padding: 25px;
    width: 90%;
  }

  .bunny-hunt-close {
    top: 10px;
    right: 10px;
  }

  #bunny-hunt-reward-container {
    padding: 10px;
  }
}

/*-----------------------------------------------------------------------
  Tracker
-----------------------------------------------------------------------*/

.bunny-hunt-stats {
  position: fixed;
  bottom: 20px;
  right: 20px;
  top: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #f1f0ea;
  z-index: 2000002;
  text-align: center;
}

.bunny-hunt-counter p,
.bunny-hunt-counter p * {
  font-size: 13px !important;
}

/* Timer */

.bunny-hunt-timer {
  margin-bottom: 10px !important;
  transition: color 0.25s ease;
}

.bunny-hunt-timer.bunny-hunt-time-low .h2 {
  color: #eb4d4b;
  animation: pulse 1s infinite;
}

/*-----------------------------------------------------------------------
  Bunnies
-----------------------------------------------------------------------*/

.bunny-hunt-bunny {
  opacity: 0;
  visibility: hidden; /* Hide completely during load */
  position: absolute;
  width: 25px;
  height: auto;
  cursor: pointer;
  z-index: 20000 !important;
  transition: all 0.25s ease;
}

.bunny-hunt-bunny.bunny-ready {
  opacity: 1;
  visibility: visible;
}

.bunny-hunt-bunny:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.bunny-hunt-bunny.bunny-hunt-bottom {
  position: fixed;
  bottom: 20px;
  width: 60px;
  height: auto;
  z-index: 2000001;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.bunny-hunt-bunny.bunny-hunt-bottom[data-bunny-id='bottom-1'] {
  left: 10%;
}

.bunny-hunt-bunny.bunny-hunt-bottom[data-bunny-id='bottom-2'] {
  left: 30%;
}

.bunny-hunt-bunny.bunny-hunt-bottom[data-bunny-id='bottom-3'] {
  right: 30%;
}

.bunny-hunt-bunny.bunny-hunt-bottom[data-bunny-id='bottom-4'] {
  right: 10%;
}

.bunny-hunt-bunny.bunny-hunt-bottom:hover {
  transform: scale(1.2) translateY(-5px);
}
