/* test */

:root {
    --skin-theme: #ffc32b;
}
*{
    box-sizing: border-box;
}

#form-container {
    display: none;
    background-color: var(--background-color);
    padding: 2rem;
  }
  
  .form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  #username-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
  }

  
  .login-input {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .border-box {
    border: 1px solid;
    border-color: #272B22;
    border-radius: 6px;
  }

  
.category-container {
    display: flex;
    min-width: 40px;
    padding: 0.4rem;
    justify-items: center;
    align-items: center;
    margin: 2px;
    gap: 0.5rem
  }

html,
body{
    padding: 0;
    margin: 0;
}
body{
    font-family: Arial;
    font-size: 13px;
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFgxidOG24pR9B4Z-dGTXecCrkwzmcd3e6Pb2p7PWY3m_O1eckhTI_RitvWM3EesKthgH4HantDenN6UiSfI8nzbqI5mtt7HY6DPfCWSe15WDdrZfrgzrV04MzHNuITzxzlE-DEyHC7pd1JtHb7qVFUC4RZa27we6ewlm2RW9beoDrtEcxjqg7LIbONX4/s320/toto-background.jpeg);
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    background-color: #312f2b !important;
    background-repeat: no-repeat;
    font-family: Arial;
    font-size: 13px;
}
a{
    text-decoration: none;
}
.hidden{
    display: none !important;
}
.btn{
    border-radius: 5px;
    color: #fff;
    padding: 10px 30px;
    text-align: center;
}
.btn.primary{
    background-color: var(--skin-theme);
}
.btn.secondary{
    background-color: #fff;
    color: #333;
}
#totoTime{
    max-width: 1200px;
    width: 100%;
    margin: 10px auto;
    display: flex;
}
aside{
    width: 260px;
    padding: 0 10px;
    background-color: #293043;
    border-radius: 5px;
}
main{
    flex-grow: 1;
    margin: 0 10px;
    padding: 10px;
    background-color: #293043;
    border-radius: 5px;
}
#totoTimeLogo{
    background-color: #1c1c27;
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}
#totoTimeLogo img{
    height: 40px;
}
#eventList a{
    background-color: #1c1c27;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 12px 15px;
    color: #c2c2c4;
    display: flex;
    justify-content: center;
    transition: all .3s;
    border-bottom: 3px solid #616169;
}
#eventList a:hover{
    color: #fff;
    background-color: #1d1d25;
}
#eventList a.active{
    border-color: var(--skin-theme);
    font-weight: bold;
}
#eventList a.selected{
    color: #fff;
    background-color: var(--skin-theme);
    border-color: var(--skin-theme);
    pointer-events: none;
    width: calc(100% + 30px);
    transform: translateX(-15px);
}
#bannerList a{
    display: flex;
    margin: 10px 0;
    border-radius: 5px;
    overflow: hidden;
}
#bannerList a img{
    width: 100%;
}
#footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    color: #999;
    text-align: center;
    padding: 10px 0;
}
#footer img{
    height: 40px;
    margin-bottom: 10px;
}
#mainContentHeader{
    background-color: #1c1c27;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    color: #c2c2c4;
    display: flex;
    justify-content: space-between;
}
#infoArea{
    background-color: #1c1c27;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 5px;
    text-align: center;
}
#eventBtns{
    background-color: #1c1c27;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
.event-match{
    display: flex;
    align-content: center;
    align-items: center;
    background-color: #1c1c27;
    border-radius: 5px;
    margin-top: 5px;
    color:#fff;
    padding: 10px;
}
.event-match-index{
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: rgba(255,255,255,.1);
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}
.event-match-info{
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
.event-match-teams span{
    color: var(--skin-theme);
}
.event-match-time{
    color: #759ba5;
}
.event-match-info div br{
    display: none;
}
.event-match-btns{
    margin-left: auto;
}
.event-match-btns a,
.event-match-btns label{
    border-radius: 5px;
    background-color: rgba(255,255,255,.1);
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
}
.event-match-btns input{
    display: none;
}
.event-match-btns a.selected,
.event-match-btns input:checked + label{
    background-color: var(--skin-theme);
}
#matchList.is-finished .event-match-btns a,
#matchList.is-finished .event-match-btns label{
    pointer-events: none;
}
#tabMenu{
    display: flex;
    background-color: #1c1c27;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}
#tabMenu a{
    color: #fff;
    width: 50%;
    padding: 15px 0;
    text-align: center;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
#tabMenu a.active{
    background-color: var(--skin-theme);
}

#tbNotifications{
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.notification {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    margin-bottom: 10px;
    min-width: 300px;
    max-width: 400px;
    overflow: hidden;
    animation: slideIn .3s ease-out;
}
.notification.success {
    border-left: 4px solid #4CAF50;
}
.notification.error {
    border-left: 4px solid #f44336;
}
.notification-header {
    background: rgba(0,0,0,.05);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notification-header a {
    color: #666;
    font-size: 18px;
    text-decoration: none;
}
.notification-body {
    padding: 15px;
    color: #666;
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
#betSlipMatchList p{
    border-radius: 5px;
    background-color: rgba(0,0,0,.2);
    color: #ccc;
    margin: 10px 0;
    padding: 15px;
    text-align: center;
}
#betSlipBtns{
    display: flex;
    flex-direction: column;
}
#betSlipBtns a{
    margin-bottom: 5px;
}
#betSlipBtn small{
    background-color: #fff;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    color: #333;
    margin-left: 5px;
    text-align: center;
    font-weight: bold;
}
.betslip-match{
    border-radius: 5px;
    padding: 10px;
    background-color: rgba(36,36,45,1);
    color: #ddd;
    margin: 5px 0;
    overflow: hidden;
    position: relative;
}
.betslip-match-teams small{
    display: none;
}
.betslip-match-teams span{
    display: block;
    border-left: 5px solid #555;
    padding-left: 5px;
    line-height: 1;
    margin-bottom: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.betslip-match-estimate{
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.betslip-match-estimate strong{
    color: #ec5301;
}
.betslip-match a{
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-bottom-left-radius: 5px;
    color: #cc0e0e;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color: rgba(0,0,0,.2);
    display: none;
    font-size: 18px;
}
.betslip-match:hover a{
    display: flex;
}
.coupon-history-item {
    background: rgba(255,255,255,.1);
    border-radius: 5px;
    margin: 10px;
    overflow: hidden;
}

.coupon-history-header {
    padding: 15px;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,.2);
    cursor: pointer;
    color: #fff;
}

.coupon-history-body {
    padding: 15px;
}

.coupon-history-match {
    background: rgba(0,0,0,.2);
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.coupon-history-match.win {
    border-left: 3px solid #4CAF50;
}

.coupon-history-match.lost {
    border-left: 3px solid #f44336;
}

.coupon-history-match.waiting {
    border-left: 3px solid #FFC107;
}

.coupon-history-match-teams {
    margin-bottom: 5px;
    color: #fff;
}

.coupon-history-match-team-a,
.coupon-history-match-team-b {
    font-weight: bold;
}

.coupon-history-match-team-a:after {
    content: " - ";
    font-weight: normal;
}

.coupon-history-match-estimate {
    display: flex;
    justify-content: space-between;
    color: #ccc;
}

.coupon-history-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-history-footer small {
    background: rgba(0,0,0,.2);
    padding: 5px 10px;
    border-radius: 3px;
    color: #ccc;
}

.coupon-history-footer small strong {
    color: #fff;
}

.coupon-status.win strong {
    color: #4CAF50;
}

.coupon-status.lost strong {
    color: #f44336;
}

.coupon-status.pending strong {
    color: #FFC107;
}

.hidden {
    display: none !important;
}
#myBetsTab p{
    color: #fff;
    text-align: center;
}
#winners{
    background-color: rgba(21,21,35,.5);
    border-radius: 5px;
    color: #fff;
    margin-top: 5px;
    display: none;
}
#winners.visible{
    display: flex;
}
#winners table{
    width: 100%;
    margin: 10px;
}
#winners thead{
    font-weight: bold;
}
#winners tbody td{
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 5px;
}
#winners tr th:last-child,
#winners tr td:last-child{
    text-align: right;
}
#mobileSidebarOverlay,
#mobileBottomBar{
    display: none;
}
@media (max-width: 1250px) {
    body{
        font-size: 12px;
    }
    #totoTime{
        width: calc(100% - 20px);
    }
    aside{
        width: 230px;
    }
}
@media (max-width: 1100px) {
    #totoTime{
        width: calc(100% - 10px);
    }
    aside{
        width: 210px;
        padding: 0 5px;
    }
    #totoTimeLogo {
        margin: 5px 0;
        padding: 5px 0;
    }
    #totoTimeLogo img {
        height: 30px;
    }
    main{
        margin: 0 5px;
        padding: 5px;
    }
    #eventList a.selected {
        width: calc(100% + 0px);
        transform: translateX(0px);
    }
    #eventList a {
        font-size: 11px;
        padding: 10px;
    }
    #mainContentHeader {
        font-size: 18px;
        padding: 10px 15px;
    }
    #tabMenu {
        margin-top: 5px;
    }
    #tabMenu a {
        padding: 10px 0;
    }
    #betSlipMatchList p {
        margin: 5px 0;
        padding: 10px;
    }
    #bannerList a {
        margin: 5px 0;
    }
    .coupon-history-item {
        margin: 5px 0;
    }
    .coupon-history-match {
        padding: 5px;
    }
    #eventBtns {
        padding: 5px 0;
    }
    .event-match {
        padding: 5px;
    }
}
@media (max-width: 992px) {
    footer,
    #totoTime{
        z-index: 0;
    }
    aside{
        width: 250px;
        position: fixed;
        overflow-y: auto;
        top: 0;
        height: 100%;
        box-shadow: 0 0 10px 10px rgba(0,0,0,.5);
        background-color: #2b2b35;
        transition: all .3s;
        border-radius: 0;
        z-index: 120;
    }
    #leftSidebar{
        left: -300px;
        border-right: 1px solid rgba(255,255,255,.1);
    }
    #rightSidebar{
        right: -300px;
        border-left: 1px solid rgba(255,255,255,.1);
    }
    #leftSidebar.visible{
        left: 0px;
    }
    #rightSidebar.visible{
        right: 0px;
    }
    #totoTime {
        width: calc(100% - 0px);
        margin: 5px auto;
    }
    #mobileSidebarOverlay{
        z-index: 110;
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: rgba(0,0,0,.5);
        transition: opacity .3s;
        opacity: 0;
        display: none;
        cursor: pointer;
    }
    #mobileSidebarOverlay.visible{
        opacity: 1;
        display: block;
    }
    #mobileBottomBar{
        display: flex;
        position: fixed;
        z-index: 100;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 3px;
        border-top: 1px solid rgba(255,255,255,.1);
        box-shadow: 0 0 10px 10px rgba(0,0,0,.5);
        background-color: #1c1c27;
    }
    #mobileBottomBar a{
        background-color: var(--skin-theme);
        padding: 10px 0;
        margin: 3px;
        width: calc(50% - 6px);
        display: block;
        color: #fff;
        text-align: center;
        border-radius: 5px;
        font-weight: bold;
    }
    footer{
        margin-bottom: 50px;
    }
    #footer img {
        height: 30px;
    }
    main {
        margin-bottom: 60px; /* Add space for mobile bottom bar */
    }
}
@media (max-width: 768px) {
    body{
        font-size: 11px;
    }
    #totoTime{
        margin: 0;
    }
    main {
        margin: 0;
        border-radius: 0;
    }
    #mainContentHeader {
        font-size: 15px;
    }
    .event-match-teams{
        display: flex;
        flex-direction: column;
    }
    .event-match-teams small{
        display: none;
    }
    .event-match-teams span{
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        white-space: nowrap;
    }
    .event-match-btns{
        display: flex;
    }
    .event-match-btns a,
    .event-match-btns label {
        padding: 10px 15px;
        margin-left: 3px;
    }
    .event-match-index {
        width: 25px;
        height: 25px;
        margin-right: 5px;
    }
    #mainContentHeader {
        font-size: 14px;
    }
}
@media (max-width: 320px) {
    body{
        font-size: 10px;
    }
    .event-match-btns a,
    .event-match-btns label {
        padding: 8px 12px;
    }
    #mainContentHeader {
        font-size: 13px;
    }
}
.event-scores{
    display: flex;
    margin-left: auto;
}
.event-scores input[type="text"]{
    width: 40px;
    height: 25px;
    border: 1px solid var(--skin-theme);
    border-radius: 4px;
}
.event-warning {
    background-color: #f44336;
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.event-match-btns a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.is-started .event-match-btns a {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#eventList a.completed {
    opacity: 0.8;
    background-color: #f5f5f5;
}

#eventList a.completed:hover {
    opacity: 1;
}

#eventList a small {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}