/* ============================================================
   🐄 Ropin' Ranch Modal Template
   For consistent pop-up windows across all game pages
   ============================================================ */

/* --- Base Bootstrap modal structure --- */
.RRModal .modal-dialog {
  max-width: 800px;
}

.RRModalContent {
  background-color: #cbe0d2;         /* soft minty green */
  border: 3px solid #3b4a41;         /* olive border */
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-family: "Helvetica", sans-serif;
  color: #1e1e1b;
  position: relative;
  z-index: 1051;
  padding-top: 1.5rem;
}

/* --- Close Button (✕) --- */
.RRModalClose {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: #1d1d1b;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.RRModalClose:hover {
  transform: scale(1.1);
  color: #000;
}

/* --- Modal Title --- */
.RRModalTitle {
  font-family: "IntroHeadR-Base", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1c1c1a;
}

/* --- Text Body --- */
.RRModalContent p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* --- Action Button --- */
.RRModalButton {
  background-color: #9bb5a2;
  color: #1d1d1b;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.5rem 1.25rem;
}

.RRModalButton:hover {
  background-color: #869d8b;
  transform: translateY(-2px);
}

/* --- Alert / Warning Box --- */
.RRAlert {
  background-color: #f5e1b9;
  border: 2px solid #b99c61;
  color: #3d2b1f;
  border-radius: 15px;
  padding: 1rem;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

/* --- Layering Fix (ensures modal appears above other UI) --- */
.modal-backdrop.show {
  z-index: 1050 !important;
}

.RRModal {
  z-index: 1051 !important;
}

/* 🐴 Horse Loading Overlay (over button only) */
#LoadingButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;             /* hidden until clicked */
  z-index: 2;                /* above the button */
  pointer-events: none;      /* don't block close button */
}
