/** @format */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #eeeeee;
}

.container {
  width: 100%;
  /* height: 100vh; */
  /* padding: 100px; */
}

.main_container {
  width: 809px;
  height: auto;
  margin: auto;
  background-color: #ffffff;
  border-radius: 15px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team_a,
.team_b {
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  /* Add gray border bottom */
}

.team_a:last-child,
.team_b:last-child {
  border-bottom: none;
  /* Remove border bottom from last record */
}

.date {
  width: 809px;
  margin: auto;
  padding: 5px;
  font-size: 13px;
}

.box_3 {
  /* background-color: #092036; */
  padding: 7px 16px 7px 16px;
  border-radius: 5px;
  color: white;
  font-size: 1.5em;
  font-weight: bolder;
}

.team_a_box {
  display: flex;
  width: 200px;
  align-items: center;
}

.box_1 {
  width: 110px;
  display: flex;
  justify-content: flex-end;
}

.box_2 {
  width: 90px;
  display: flex;
  justify-content: flex-end;
}

.box_4 {
  width: 90px;
}

.box_5 {
  width: 110px;
}

.box_4 img {
  width: 50px;
  height: 50px;
}

.box_2 img {
  width: 50px;
  height: 50px;
}

.box_1 h5,
.box_5 h5 {
  font-size: 14px;
  font-family: DM Sans, sans-serif;
  font-weight: 500;
}

.match_link {
  text-decoration: none;
  /* Remove underline */
  color: inherit;
  /* Inherit text color */
  display: block;
  /* Make it behave like a block element */
}

.team_container:not(:last-child) {
  border-bottom: 1px solid #cccccc;
}

@media only screen and (max-width: 1054px) {
  .main_container {
    width: 809px;
  }

  .team_a_box {
    width: 200px;
  }
  .first_modal-content {
    width: 85% !important;
  }
  .modal-content {
    width: 85% !important;
  }
}

@media only screen and (max-width: 818px) {
  .main_container {
    width: 95%;
  }

  .date {
    width: 95%;
  }

  .team_one_box {
    width: 150px;
    display: flex;
    flex-direction: column-reverse;
  }
  .box_1,
  .box_2,
  .box_4,
  .box_5 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .team_two_box {
    width: 150px;
    display: flex;
    flex-direction: column;
  }
  .first_modal-content {
    width: 85% !important;
  }
}

@media only screen and (max-width: 660px) {
  .main_container {
    width: 95%;
  }
  .date {
    width: 95%;
  }
  .team_one_box {
    width: 100px;
  }
  .team_one_box {
    width: 100px;
  }
  .team_a,
  .team_b {
    display: flex;
    gap: 0;
  }
  .team_one_box {
    width: 65px;
  }
  .team_two_box {
    width: 64px;
  }
  .box_1 h5,
  .box_5 h5 {
    font-size: 11px;
  }
  .box_4 img,
  .box_2 img {
    width: 40px;
    height: 40px;
  }
  .input_team_a input[type="text"],
  .input_team_b input[type="text"] {
    width: 40px;
    height: 40px;
  }
  .input_team_a,
  .input_team_b {
    display: flex;
    align-items: center;
  }
  .winner,
  .looser {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .box_3 {
    width: 300px;
    display: flex;
    justify-content: center;
  }
}
@media only screen and (max-width: 414px) {
  .box_1 h5,
  .box_5 h5 {
    font-size: 10px;
  }
  .first_confirmation {
    display: flex;
    flex-direction: column;
  }
  .first_confirmation h2 {
    font-size: 1.5rem;
  }
  .first_confirmation_note p {
    font-size: 0.9rem;
  }
  .first_confirmation_note {
    padding: 10px 0 10px 0 !important;
  }
  #first_cancelBtn {
    padding: 8px 52px;
    margin: 10px 9px;
  }
  #cancelBtn {
    padding: 8px 25px !important;
    margin: 10px 9px;
  }
  #confirmBtn {
    padding: 8px 25px !important;
  }

  /* .first_modal-content {
    width: 85% !important;
  } */
}
@media only screen and (max-width: 375px) {
  .main_container {
    width: 95%;
  }
  .date {
    width: 95%;
  }
  .box_1 h5,
  .box_5 h5 {
    /* font-size: 10px; */
    display: none;
  }
  .box_1,
  .box_2,
  .box_4,
  .box_5 {
    width: 50px;
  }
  .btn_all {
    padding: 0;
  }
}

/* -------new CSS----- */

.teams_vs img {
  width: 50px;
  height: 50px;
}

.box_3 {
  display: flex;
  align-items: center;
}

.box_3-team_a {
  display: flex;
}

.box_3-team_b {
  display: flex;
}
input:disabled {
  color: #000000;
}
input[type="text"] {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 28px;
  font-weight: bolder;
  font-family: Times New Roman;
  border-radius: 10px;
  border: 3px solid black;
}

.input_group_team_a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 10px;
}

.input_group_team_b {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
}
.btn_inc {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  overflow: hidden;
  height: 24px;
  color: black;
}

.btn_dec {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 43px;
  cursor: pointer;
  overflow: hidden;
  height: 24px;
  color: black;
}

/* Hide the increment and decrement arrows for number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Buttons styles start */
.btn_all {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.btn_all button {
  margin: 10px;

  display: inline-block;
  outline: 0;
  cursor: pointer;
  border: none;
  padding: 0 56px;
  height: 45px;
  line-height: 45px;
  border-radius: 7px;
  background-color: #0070f3;
  color: white;
  font-weight: 400;
  font-size: 16px;
  box-shadow: 0 4px 14px 0 rgb(0 118 255 / 39%);
  /* transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; */
}

.btn_all button:hover {
  background: rgba(0, 118, 255, 0.9);
  box-shadow: 0 6px 20px rgb(0 118 255 / 23%);
}

/* Button styles end */
.winner,
.looser {
  width: 50px;
  height: 50px;
  text-align: center;
  font-weight: bolder;
  font-family: Times New Roman;
  border-radius: 10px;
  background-color: #eeeeee;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 3px solid black;
  font-size: 17px;
}

/* ---Terms and  Conditions ------- */

/* ----------  end ------------------ */
