.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0,0,0,0.4);
  }

  .modal-content {
    background-color: #fefefe;
    border: var(--primaryColor) 3px solid;
    border-radius: 30px;
    margin: 10% auto;
    padding: 20px;
    width: 70%;
    overflow-y: auto;
    min-height: 100px;
    max-height: 70%;
    height: auto;
  }

  .modal-content > .title{
    font-size: 28px;
    color: var(--primaryColor);
    font-weight: bold;
    letter-spacing: -0.05rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .modal-content .inputLink {
    font-size: 15px;
    width: 100%;
    padding: 10px 15px;
    display: flex;
  }
  .modal-content .inputLink input{
    width: 85%;
    border: var(--primaryColor) 2px solid;
    background-color: white;
    font-size: 15px;
    color: var(--primaryColor);
    
    line-height: 35px;
    padding: 5px;
  }
  .modal-content .inputLink .appendButton{
    width: 15%;
    border: none;
    background: var(--primaryColor);
    font-size: 15px;
    color: white;
    line-height: 35px;
    padding: 5px;
  }
  .modal-content .acceptLinkBlock {
    font-size: 15px;
    width: 100%;
    padding: 10px 15px;
  }
  .modal-content .acceptLinkBlock > span{
    font-size: 15px;
    width: 100%;
    padding: 10px 15px;
    display: block;
    background-color: #f4efff;
    color: var(--primaryColor);
    font-weight: bold;
  }
  .modal-content .acceptLinkBlock ul {
    line-height: 35px;
    padding: 5px;
    opacity: 0.8;
  }
  .modal-content .acceptLinkBlock ul li:nth-child(odd) {
    background-color: #f2f2f2; 
    padding:0 5px;
  }
  
  .modal-content .acceptLinkBlock ul li:nth-child(even) {
    background-color: #cccccc; 
    padding:0 5px;
  }
  .modal-content .acceptLinkBlock ul li a{
    color: var(--primaryColor);
    text-decoration: none;
  }


  .closeButton {
    background: var(--primaryColor);
    color: white;
    float: right;
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
  }

  .closeButton:hover,
  .closeButton:focus {
    background: var(--primaryColor);
    color: white;
    text-decoration: none;
    cursor: pointer;
  }
  .openButton{
    border: 2px solid var(--primaryColor);
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    line-height: 35px;
  }
  .openButton span{
    display: inline-block;
    height: 36px;
    line-height: 34px;
    padding: 0 12px 0 10px;
    cursor: pointer;
    box-shadow: 2px 2px 5px #d9d9d9;
    -webkit-box-shadow: 2px 2px 5px #d9d9d9;
    -moz-box-shadow: 2px 2px 5px #d9d9d9;
  }


  .cutsomizedBlock{
    color: var(--primaryColor);
    cursor: pointer;
    margin:  0 auto;
    display: block;
    width: 100%;
    padding: 10px 5px;
    text-align: center;
  }
  .cutsomizedBlock span{
    padding: 5px 10px;
    border-radius: 10px;
    width: auto;
    font-size: 2rem;
    border: var(--primaryColor) 2px solid;
  }


  .modalByBoardList {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }

  .modalByBoardList .modal-content {
    background-color: #fefefe;
    border: var(--primaryColor) 3px solid;
    border-radius: 30px;
    margin: 15% auto;
    padding: 20px;
    width: 30%;
    min-height: 100px;
  }

  .modalByBoardList .modal-content > .title{
    font-size: 28px;
    color: var(--primaryColor);
    font-weight: bold;
    letter-spacing: -0.05rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .modalByBoardList .modal-content > .text{
    line-height: 1.3;
    text-align: center;
    color: #888;
    margin-top: 5px;
    font-size: 16px;
  }
  .modalByBoardList .modal-content > .text span {
    color: #333;
    text-decoration: underline;
  }
  .modalByBoardList .modal-content .tabs {
    margin: 10px 0;
    width: 100%;
  }
  .modalByBoardList .modal-content .tabs span {
    display: inline-block;
    width: 50%;
    height: 40px;
    line-height: 38px;
    border: 1px solid #e8e9eb;
    color: #666;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
  }
  .modalByBoardList .modal-content .tabs span.active {
    background: var(--primaryColor);
    color: #fff;
    border: 1px solid var(--primaryColor);
  }
  .modalByBoardList .modal-content .tabs span:first-child {
    border-radius: 10px 0 0 10px;
  }
  .modalByBoardList .modal-content .tabs span:last-child {
    border-radius: 0 10px 10px 0;
  }

  .signed_table {
    border: var(--primaryColor) 1px solid;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
  }
  .signed_table .thead {
    padding: 1rem;
    background: transparent;
    display: flex;
    background: var(--primaryColor);
    color: #fff;
    border-radius: 0.5rem 0.5rem 0 0;
  }
  .signed_table .thead .td,
  .signed_table .tbody .td {
    flex: 3;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: center;
  }
  .signed_table .thead .td:first-child,
  .signed_table .tbody .td:first-child {
    flex: 1;
  }
  .signed_table .thead .td:nth-of-type(4),
  .signed_table .tbody .td:nth-of-type(4) {
    flex: 10;
  }
  .signed_table .tbody {
    border: none;
  }
  .signed_table .ranking_icon {
    margin-right: 0;
  }
  .item_list {
    display: flex;
    padding: 1rem;
    border-bottom: var(--border);
  }
  .item_list:last-child {
    border: none;
  }
  .signed_table .tbody .item_list:nth-child(-n+3) > .td:first-child {
    color: var(--primaryColor);
    font-weight: bold;
  }
   
  .no-data {
    font-size: 2em;
    color: var(--primaryColor);
    text-align: center;
    font-weight: bold;
    padding: 15px;
  }

  .bo_list .list_table tbody tr td a img,.bo_list .list_table tbody tr td span img{
    width: 30px;
    cursor: pointer;
    margin: 0 0.8rem;
  }
  .competitionContent input.input_normal {
    flex: 1;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 0.65rem;
  }
  .competitionContent .select_normal {
    flex: 0 55px;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .competitionContent span {
    font-weight: bold;
    margin-right: 0.65rem;
  }
  .competitionContent input.input_normal.input_height {
    padding: 0.55rem 1rem;
    height: 33px;
  }
  .competition_btn {
    font-size: 14px;
    padding: 0.65rem 1.5rem;
    height: 35px;
    border: 1px solid var(--primaryColor);
    background: #f4efff;
    color: var(--primaryColor);
  }
  .competitionTableBody > .row .col-3 revision{
    color: #000;
    font-weight: bold;
  }
  .competitionTableHead > .col-3.orange_text {
    color: #ff931f;
  }
  .competitionTableBody > .row .col-3.yellow_result {
    color: #ffc906;
  }
  .competitionTableBody > .row .col-3.red_result {
    color: #dd3736;
  }
  .write_option .chk_box input[type="checkbox"] + label {
    display: flex;
    align-items: center;
    margin-left: 0;
  }
  .chk_box input[type="checkbox"] + label span {
    margin-right: 5px;
  }
  .write_input_wrap {
    display: flex;
  }
  .write_text {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
  }
  .write_text p {
    font-weight: bold;
}
  .write_subject,
  .write_select {
    flex: 7;
  }
  .write_option > .tipster_infoo_wrap {
    display: flex;
    align-items: center;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    background: #f4efff;
    border-radius: 5px;
  }
  .write_option > .tipster_infoo_wrap  .fa-triangle-exclamation {
    font-size: 2.65rem;
    margin-right: 1rem;
    color: #581a89;
    opacity: .3;
  }
  .write_option > .tipster_infoo_wrap > p {
    font-size: 14px;
    color: #581a89;
  }
  .write_other_input > .input_group {
    gap: 12px;
  }
  .write_select.wr_4 {
    display: flex;
    gap: 12px;
  }
  .write_select.wr_4 > input {
    width: 40%;
    padding-right: 1.5rem;
  }
  .write_select.wr_4 .info_wrap {
    width: 60%;
    display: flex;
    align-items: center;
  }
  .write_select.wr_4 .info_wrap > p,
  .write_other_input > .game_status > p {
    color: var(--primaryColor);
    font-size: 14px;
  }
  .write_select.wr_4 .info_wrap > .fa-circle-info,
  .write_other_input > .game_status > .fa-circle-info {
    color: #581a89;
    font-size: 16px;
    margin-right: 0.55rem;
  }
  .write_other_input > .game_status {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.65rem 0;
    color: var(--primaryColor);
    font-size: 14px;
  }

  /* Match Info */
  .matchInfo {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    text-align: center;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 1.5rem;
  }

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

  .teamContainer {
    position: relative;
    width: 30%; /* Adjust as needed */
    text-align: center;
  }

  .teamContainer::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 100%;
    /* background-image: var(--bg-image, url('/static/basketball/thailand.png')); */
    background-size: cover;
    background-repeat: no-repeat; /* Added no-repeat here */
    background-position: center; /* Ensures the image is centered */
    opacity: 0.2;
    z-index: 1;
  }

  .teamContainer.homeTeamArea {
    justify-content: flex-end;
  }

  .teamContainer.awayTeamArea {
    justify-content: flex-start;
  }

  .teamContainer.homeTeamArea::before {
    left: 50px;
  }

  .teamContainer.awayTeamArea::before {
    right: 50px;
  }

  .teambg {
      position: relative;
      z-index: 2; 
  }

  .teambg img {
      z-index: 3; 
  }
  .star_collect>img {
    width: 80%;
  }

  .middle {
    width: 30%;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
  }

  .teamName {
      font-size: 18px;
      margin-top: 10px;
      font-weight: bold;
      z-index: 3;
      position: relative;
  }

  .verse {
    padding-top: 2rem;
    font-size: 20px;
  }

  .detail {
    display: block;
    margin-bottom: 2rem;
  }
  .detail p {
    display: flex;
    justify-content: flex-end;
  }
  .detail img {
    cursor: pointer;
  }

  @media screen and (max-width: 768px) {
    /* Add your mobile-specific styles here */
    .modal-content {
      margin: 30% auto;
      width: 90%;
    }
    .modalByBoardList .modal-content {
      margin: 30% auto;
      width: 90%;
    }
  }