.modalDialogCustom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 1.75rem auto !important;
  min-height: calc(100% - 3.5rem);
  padding: 0.4rem !important;
}

.modalDialogCustom :global(.modal-content) {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  outline: 0;
}

@media only screen and (max-width: 767px) {
  .modalDialogCustom {
    /* margin: 0 !important; */
    max-width: 100% !important;
    width: 100% !important;
    /* height: 50vh !important;
    max-height: 50vh !important; */
  }
}

.modalHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
  background-color: transparent;
  color: #000;
}

/* Apply modal-header class globally */
:global(.modal-header) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}

@media (max-width: 768px) {
  .modalHeader {
    padding: 0.75rem !important;
  }
}

@media only screen and (max-width: 767px) {
  .modalHeader {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
  }
  
  .modalDialogCustom :global(.modal-content) {
    border-radius: .5rem !important;
  }
}

.modalTitle {
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .modalTitle {
    font-size: 1rem !important;
  }
}

.modalBody {
  background-color: var(--bg-body);
  color: var(--text-body);
  padding: 10px;
  max-height: calc(98vh - 50px);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  flex: 1 1 auto;
}

@media only screen and (max-width: 767px) {
  .modalBody {
    max-height: calc(50vh - 60px);
    /* height: calc(50vh - 60px); */
    padding: 1rem;
    overflow-y: auto;
  }
}

.modalRoundId {
  font-size: 14px !important;
}

.modalMatchTime {
  font-size: 14px !important;
}

@media (max-width: 768px) {
  .modalRoundId {
    font-size: 12px !important;
  }
  .modalMatchTime {
    font-size: 12px !important;
  }
}