.referee-section {
  margin-top: 65px;
}

@media (min-width: 300px) {
  .referee-container {
    padding: 0 25px;
    padding-top: 55px;
  }
}

@media (min-width: 992px) {
  .referee-container {
    padding: 0;
    padding-top: 85px;
  }
}

.referee-info-h h5 {
  font-size: 17px;
  margin: 0;
}

.referee-info-details-h {
  font-size: 14px;
  line-height: 1.3em;
  width: -webkit-fill-available;
  max-width: max-content;
  margin: 0;
  margin-right: 10px;
}

.referee-info-details {
  font-size: 14px;
  margin: 0;
  line-height: 1.3em;
}

@media (min-width: 300px) {
  .referee-select-drop {
    margin: 0 0 0 10px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border-width: 1px;
    border-style: none;
  }
}

.referee-select-drop-menu {
  display: block;
  opacity: 0;
  top: 50px !important;
  height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow-y: scroll;
  width: 100%;
  z-index: 1111;
}

.referee-select-drop-menu.show {
  box-shadow: 0px 1px 5px 0px var(--bs-green);
  border: 1px solid var(--bs-green);
  border-top: none;
  height: 218px;
  opacity: 1;
  top: 50px !important;
  transform: none !important;
  transition: all 0.15s linear;
  transition-delay: 0.1s;
  z-index: 1111;
}

@media (min-width: 300px) {
  .referee-p-img {
    min-width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 1px solid #777777;
  }
}

@media (min-width: 992px) {
  .referee-p-img {
    min-width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0;
  }
}

.referee-p-name p {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  line-height: 1.5em;
}

.referee-select-drop-toggle::after {
  position: absolute;
  right: 15px;
  top: 13px;
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  transform: rotate(225deg);
  border-top: 2px solid;
  border-bottom: 2px solid transparent;
  border-left: 2px solid;
  border-right: 2px solid transparent;
  transition: 0.3s;
}

.btn.referee-select-drop-toggle {
  width: 100%;
  height: 100%;
  padding-right: 40px;
  border-radius: 10px;
  border: 1px solid #222222;
  z-index: 1111;
}

.btn.referee-select-drop-toggle:hover {
  border: 1px solid #222222;
  box-shadow: 0px 0px 5px 0px #777777;
  transition: 0.2s ease;
}

.btn.referee-select-drop-toggle.show {
  border: 1px solid var(--bs-green);
  border-radius: 10px 10px 0px 0px;
  box-shadow: 0px 0px 5px 0px var(--bs-green);
}

.referee-select-drop-toggle.show.referee-select-drop-toggle::after {
  transform: rotate(45deg);
  margin-top: 7px;
}

.btn.referee-select-drop-toggle.show:hover {
  box-shadow: 0px 0px 5px 0px var(--bs-green);
}

.referee-results-btn {
  margin: 0;
  width: 100%;
  height: 50px;
  padding: 0px 15px;
  font-size: 14px;
  color: #ffffff;
  background-color: var(--bs-primary);
  transition: 0.3s;
}

.referee-results-btn:hover {
  color: #ffffff;
  background-color: var(--bs-success);
}

.referee-no-results {
  display: none;
  opacity: 0;
  transition: all 0.3s;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100%;
  color: #800;
  background-color: #9000000b;
  border: 1px solid #800;
  border-radius: 5px;
  font-size: 20px;
}

@media (min-width: 300px) {
  .referee-loading-overlay {
    display: none;
    opacity: 0;
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    transition: all 0.5s;
  }
}

@media (min-width: 576px) {
  .referee-loading-overlay {
    top: 75%;
  }
}

@media (min-width: 768px) {
  .referee-loading-overlay {
    top: 70%;
  }
}

@media (min-width: 992px) {
  .referee-loading-overlay {
    top: 85%;
  }
}

.referee-loading-spinner {
  border: 15px solid rgba(0, 0, 0, 0.1);
  border-top: 15px solid var(--bs-primary);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 0.5s linear infinite;
  margin: 0 auto;
}

.referee-select-cont {
  opacity: 0;
  display: none;
  transition: all 0.5s;
}

.referee-select-match-head span {
  font-size: 15px;
}

@media (min-width: 300px) {
  .referee-select-match-head {
    display: none;
    height: 40px;
  }
}

@media (min-width: 992px) {
  .referee-select-match-head {
    display: flex;
    height: 40px;
  }
}

@media (min-width: 300px) {
  .referee-select-match-head-h {
    font-size: 14px;
    line-height: 1.3rem;
    margin: 0;
    margin-right: 5px;
    width: -webkit-fill-available;
    max-width: max-content;
  }
}

@media (min-width: 992px) {
  .referee-select-match-head-h {
    display: none;
  }
}

.referee-select-match-row span {
  font-size: 14px;
  line-height: 1.3rem;
}

.referee-select-match-row.even {
  background-color: #e3ffe0;
}

.referee-select-match-row.odd {
  background-color: #ffffff;
}

@media (min-width: 300px) {
  .referee-select-match-row {
    min-height: 175px;
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 5px;
  }
}

@media (min-width: 992px) {
  .referee-select-match-row {
    min-height: 50px;
    margin-bottom: 0;
    padding: 0;
  }
}

@media (min-width: 300px) {
  .referee-select-match-club1-name {
    font-size: 14px;
    line-height: 1.3rem;
    margin: 0;
  }
}

@media (min-width: 992px) {
  .referee-select-match-club1-name {
    font-size: 15px;
    line-height: 1.3rem;
    margin: 0;
  }
}

.referee-select-match-club1 a {
  text-decoration: none;
  color: #222222;
  transition: 0.2s;
}

.referee-select-match-club1 a:hover {
  color: var(--bs-primary);
}

.referee-select-match-club1-img {
  width: 24px;
  height: 24px;
  margin-left: 5px;
  transition: 0.2s;
}

.referee-select-match-club1-img:hover {
  filter: brightness(70%);
}

@media (min-width: 300px) {
  .referee-select-match-clubs .referee-select-match-score {
    font-size: 15px;
    line-height: 1.3rem;
    text-align: center;
    margin: 0 5px;
    min-width: 15%;
    width: -webkit-fill-available;
    max-width: min-content;
  }
}

@media (min-width: 992px) {
  .referee-select-match-clubs .referee-select-match-score {
    font-size: 15px;
    line-height: 1.3rem;
    text-align: center;
    margin: 0 5px;
    min-width: 10%;
    width: -webkit-fill-available;
    max-width: min-content;
  }
}

.referee-select-match-clubs .referee-select-match-score {
  text-decoration: none;
  color: #222222;
  transition: 0.2s;
}

.referee-select-match-clubs .referee-select-match-score:hover {
  color: var(--bs-primary);
}

@media (min-width: 300px) {
  .referee-select-match-clubs {
    height: 40px;
  }
}

@media (min-width: 992px) {
  .referee-select-match-clubs {
    border-right: 1px solid #555555;
    height: 40px;
  }
}

.referee-select-match-club2-img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
  transition: 0.2s;
}

.referee-select-match-club2-img:hover {
  filter: brightness(70%);
}

@media (min-width: 300px) {
  .referee-select-match-club2-name {
    font-size: 14px;
    line-height: 1.3rem;
    margin: 0;
  }
}

@media (min-width: 992px) {
  .referee-select-match-club2-name {
    font-size: 15px;
    line-height: 1.3rem;
    margin: 0;
  }
}

.referee-select-match-club2 a {
  text-decoration: none;
  color: #222222;
  transition: 0.2s;
}

.referee-select-match-club2 a:hover {
  color: var(--bs-primary);
}

@media (min-width: 300px) {
  .referee-info-h {
    display: none;
  }
}

@media (min-width: 992px) {
  .referee-info-h {
    display: flex;
  }
}

.referee-info-h-sm h5 {
  font-size: 15px;
  margin: 0;
}

@media (min-width: 992px) {
  .referee-info-h-sm {
    display: none;
  }
}

@media (min-width: 300px) {
  .referee-p-name {
    display: none;
  }
}

@media (min-width: 992px) {
  .referee-p-name {
    display: flex;
  }
}

.referee-p-name-sm p {
  font-size: 18px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 992px) {
  .referee-p-name-sm {
    display: none;
  }
}

@media (min-width: 992px) {
  .referee-p-name-sm-d {
    display: none;
  }
}

@media (min-width: 300px) {
  .referee-select-cont-rows {
    height: 830px;
    overflow-y: scroll;
  }
}

@media (min-width: 992px) {
  .referee-select-cont-rows {
    height: 475px;
    overflow-y: scroll;
  }
}

.referee-loading-bg {
  height: 100vh;
}

@media (min-width: 300px) {
  .ref-ann-engage-btn {
    width: -webkit-fill-available;
    max-width: max-content;
    margin: 0;
    padding: 5px 10px;
    font-size: 14px;
    color: #ffffff;
    border: none;
    background-color: var(--bs-secondary-color);
    transition: 0.2s;
  }
}

@media (min-width: 300px) {
  .ref-edit-btn {
    width: -webkit-fill-available;
    max-width: max-content;
    position: absolute;
    top: -35px;
    margin: 0;
    padding: 5px 10px;
    font-size: 14px;
    color: #ffffff;
    border: none;
    background-color: var(--bs-primary);
    transition: 0.2s;
  }
}

@media (min-width: 300px) {
  .ref-engage-btn {
    width: -webkit-fill-available;
    max-width: max-content;
    margin: 0;
    padding: 5px 10px;
    font-size: 14px;
    color: #ffffff;
    border: none;
    background-color: var(--bs-secondary-color);
    transition: 0.2s;
  }
}

.ref-ann-engage-btn:hover {
  background-color: darkred;
  color: #ffffff;
}

.ref-edit-btn:hover {
  background-color: var(--bs-success);
  color: #ffffff;
}

.ref-engage-btn:hover {
  background-color: var(--bs-primary);
  color: #ffffff;
}
