/* ===================== */
/* Global                */
/* ===================== */
html, body {
  scroll-behavior: auto !important;
}

a {
  overflow-wrap: break-word;
}

/* ===================== */
/* Background            */
/* ===================== */
.background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fcf8cc 0%, #a8d5ba 100%);
  opacity: .5
}

/* ===================== */
/* Ticket Modal          */
/* ===================== */
.ticket-modal__img-wrapper {
  overflow: hidden;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.ticket-modal__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 180px;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  z-index: 0;
  opacity: 0.75;
}

.ticket-modal__img {
  max-height: 200px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* ===================== */
/* Scratch Table Sticky  */
/* ===================== */
.scratch-table th:first-child,
.scratch-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

/* ===================== */
/* Post Titles            */
/* ===================== */
.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
  font-size: 1.25rem;
}

/* ===================== */
/* Venue                 */
/* ===================== */
.venue-title {
  --venue-title-font-size: 1rem;
  margin-bottom: 0;
  font-size: var(--venue-title-font-size);
}

.venue-title a {
  color: #000;
  text-decoration: none;
}

/* ===================== */
/* Lottery Card          */
/* ===================== */
.lottery-card {
  --lottery-card-padding-x: 0.5rem;
  --lottery-card-padding-y: 1rem;
  --lottery-card-name-font-size: 0.8rem;
  --lottery-card-number-font-size: 2rem;
  --lottery-card-year-font-size: 0.65rem;
  --lottery-card-year-bottom: 0.5rem;

  flex-grow: 1;
  flex-basis: calc(33% - 0.25rem);
  position: relative;
  min-width: unset;
  padding: calc(var(--lottery-card-padding-y) - var(--lottery-card-year-bottom) * 0.5)
           var(--lottery-card-padding-x)
           var(--lottery-card-padding-y)
           var(--lottery-card-padding-x);
  text-align: center;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 0.375rem;
  overflow: hidden;
}

.lottery-card-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lottery-card-name {
  margin-bottom: 0.25rem;
  color: #bbb;
  font-size: var(--lottery-card-name-font-size);
  font-weight: normal;
  line-height: 1;
}

.lottery-card-number {
  margin-bottom: 0.5rem;
  color: #bbb;
  font-size: var(--lottery-card-number-font-size);
  line-height: 1;
}

.lottery-card-year {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--bs-danger);
  color: var(--bs-white);
  font-size: var(--lottery-card-year-font-size);
  text-align: center;
}

/* ===================== */
/* Star Rating           */
/* ===================== */
.star-rating {
  color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity));
}

.star-rating i {
  color: #fbc02d;
  margin-right: 1px;
}

/* ===================== */
/* Text Ellipsis         */
/* ===================== */
.ellipsis-single {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== */
/* Responsive            */
/* ===================== */
@media (min-width: 576px) {
  .venue-title {
    font-size: calc(var(--venue-title-font-size) * 1.25);
  }

  .lottery-card {
    --lottery-card-padding-y: 1.1rem;
  }

  .lottery-card-name {
    font-size: calc(var(--lottery-card-name-font-size) * 1.25);
  }

  .lottery-card-number {
    font-size: calc(var(--lottery-card-number-font-size) * 1.25);
  }

  .lottery-card-year {
    font-size: calc(var(--lottery-card-year-font-size) * 1.25);
  }
}

@media (min-width: 1200px) {
  .venue-title {
    font-size: calc(var(--venue-title-font-size) * 1.25);
  }

  .lottery-card {
    --lottery-card-padding-y: 1.3rem;
  }

  .lottery-card-name {
    font-size: calc(var(--lottery-card-name-font-size) * 1.5);
  }

  .lottery-card-number {
    font-size: calc(var(--lottery-card-number-font-size) * 1.5);
  }

  .lottery-card-year {
    font-size: calc(var(--lottery-card-year-font-size) * 1.5);
  }
}
