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;
}

.section-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  justify-content: space-between;
  & .section-title {
    font-size: 2.4rem;
  }
  & a {
    &:hover {
      color: var(--main-color);
    }
  }
}

.content-block {
  background-color: #222;
}
/* .betting-list-nav {
  display: flex;
  gap: 10px;
  & .item {
    padding: 5px 10px;
    background-color: #484848;
    color: #ccc;
    border-radius: 4px;
    &:hover{
      background-color: #222;
    }
  }
  & span.item {
    background-color: #393939;
    color: #fff;
    &:hover{
      background-color: #393939;
    }
  }
} */
.betting-list {
  & .item {
    background-color: var(--bg-card);
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    padding: 14px 20px;
    margin: 14px 0;
    border-radius: 5px;
    display: block;
    font-size: 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1;
    &:hover {
      background-color: var(--bg-accent);
    }
    & .label {
      border-radius: 5px;
      padding: 5px 10px;
      background-color: #282828;
      line-height: 1;
      font-weight: normal;
      &.positive {
        background-color: green;
        color: var(--text-on-primary)
      }
    }
  }
}
.betting-item  {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.betting-info {
  padding: 10px 20px;
  background-color: var(--bg-card);
  margin: 0 0 20px 0;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
  & .betting-header {
    display: flex;
    justify-content: space-between;
    align-items: first baseline;
  }
  & .betting-title {
    margin: 10px 0;
    font-size: 2.2rem;
  }
  & .betting-description {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
  }
  & .betting-stat {
    background-color: #337ab7;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 1.4rem;
    color: var(--text-on-primary);
    text-wrap: nowrap;
  }
}
.betting-description a {
  color: var(--main-text-color);
}
.betting-description a:hover {
  color: var(--main-color);
}
.betting-item .aside .content-block {
  padding: 20px;
  background-color: var(--bg-accent);
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.bets-list {
  & .item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    & label {
      font-size: 1.6rem;
      text-align: center;
      line-height: 2;
      width: 250px;
      max-width: 250px;
      background-color: var(--bg-card);
      padding: 10px 15px;
      border-radius: 4px;
      box-shadow: 0 0 2px rgba(0,0,0,0.5);
      &:has(input:checked) {
        background-color: green;
        color: var(--text-on-primary);
      }
      &:hover {
        background-color: var(--bg-accent);
      }
    }
    & .user-bets {
      font-size: 1.6rem;
      line-height: 1.2;
    }
    & input {
      position: static;
      margin: 0;
      display: none;
    }
    & .cf {
      font-family: Arial, Helvetica, sans-serif;
    }
  }
  & .win-bet {
    & label {
      background-color: green;
      color: var(--text-on-primary);
    }
  }
}

.bet-action {
  font-size: 1.4rem;
  & .header {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    & .title {
      font-size: 1.6rem;
      font-weight: bold;
    }
  }
  & button {
    font-weight: bold;
    font-size: 1.8rem;
    background-color: rgb(31, 153, 0);
    color: #fff;
    border-color: rgb(31, 153, 0);
    &:hover {
      background-color: rgb(37, 186, 0);
      color: #fff;
      border-color: rgb(31, 153, 0);
    }
    &:focus {
      background-color: rgb(27, 133, 0);
      color: #fff;
      border-color:  rgb(37, 186, 0);
    }
  }
  & .nobets-message {
    font-size: 1.8rem;
  }
  & a {
    color: #fff;
    text-decoration: underline;
  }
  & .bet-action-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1.6rem;
  }
  & .disclaimer {
    margin-top: 15px;
  }
  & input {
    font-size: 1.8rem;
  }
  & .disclaimer-title {
    display: none;
  }
}

@media (max-width: 960px) {
  .section-header {
    margin-bottom: 0;
  }
  .page-main-column {
    padding-top: 20px !important;
  }
  .betting-list {
    overflow: hidden;
    padding: 0 10px;
    .item {
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }
  }
  .betting-item {
    display: block;
  }
  .bets-list {
    overflow: hidden;
    & .item {
        display: block;
      & label{
        width: 100%;
        max-width: none;
      }
      & .user-bets {
        text-align: center;
        margin-top: 5px;
      }
    }
  }
  .bet-action {
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -5px 5px rgba(0,0,0,0.5);
    & .form-group {
      margin-bottom: 5px;
    }
    & .bet-action-stat sup {
      display: none;
    }
    & .disclaimer {
      display: none;
      margin-top: 5px;
    }
    & .disclaimer-title {
      display: block;
      color: #666666;
    }
    &:has(.disclaimer-title:active) .disclaimer {
      display: block;
    }
  }
  .betting-info {
    & .betting-stat {
      margin: 5px 0;
      text-align: center;
    }
    & .betting-header {
      flex-direction: column;
    }

  }
}
