.page{
    display: flex;
    flex-direction: column;
    gap:24px;
}

#tournamentsHeader{
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top:25px;
    width: 100%;
}

.trnHeader{
    display:flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    box-sizing: border-box;
    width: clamp(20rem, 96%, 1800px);
    background: rgb(32,34,39);
    padding:14px 20px 20px 20px;
    background-size:cover;
    background-repeat: no-repeat;
    background-blend-mode:overlay;
    border-radius: 12px;
    filter:grayscale(.5);
}


.trnHeader h1{
    font-family:Montserrat;
    color:var(--cloudy-white);
    font-size:48px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: start;
    margin:0;
    line-height: 48px;
}

.trnHeader h5{
    font-family:Montserrat;
    color:rgb(202, 202, 202);
    font-size:14px;
    font-weight: 500;
    text-align: start;
    margin:0;
}

.mobile-filters{
    display:flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.mobile-filters button{
    background-color: transparent;
    border:none;
    cursor: var(--custom-pointer);
    display:flex;
    justify-content: center;
    align-items: center;
    gap:2px;
    flex-direction: column;
    color:white;
    font-family: Montserrat;
    font-weight: 600;
}

.mobile-filters button img{
    height: 24px;
}






.page-container{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}


.fandcon{
    display:flex;
    gap:24px;
    justify-content: space-between;
    align-items: flex-start;
    width: clamp(20rem, 90%, 1800px);
}

/* Filters styling */

.filters{
    color:var(--cloudy-white);
    font-family: Montserrat;
    display:flex;
    margin-top:61px;
    min-width:174px;
}


.filter-name{
    display:flex;
    align-items: center;
    font-weight: 500;
    font-size: 20px;
    color:var(--cloudy-white);
    gap:5px;
    margin-bottom:5px;
}

.filter-name img{
   height:19px;
   width: 19px;
}

.filters-box{
    border-radius: 4px;
    max-width:230px;
    margin:0 !important;
}

.filters-box hr, .filters-box-mobile hr{
    background-color: var(--slate-steel);
    border:none;
    height: 1px;
    width:100%;
    border-radius: 4px;
    margin:8px 0 4px 0;
}

#searchbox{
    display:flex;
    justify-content: start;
    flex-direction: column;
    gap:10px;
    align-items: center;
    margin-right:0;
}

#searchbox input{
    width:100%;
    height: 28px;
    border:1px solid var(--translucid-light);
    border-radius: 5px;
    text-indent: 8px;
    font-family: Montserrat;
    font-weight: 500;
    background-color: var(--translucid-dark);
    color:white;
    outline:none;
}

#searchbox{
    position: relative;
}

#gameResults, #mgameResults {
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 73px;
    max-height: 200px;
    width:100%;
    overflow: hidden;
    background-color: var(--deep-steel);
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    overflow-x: hidden;
}

#mgameResults{
    left: 5px;
    top: 74px;
}

#gameResults::-webkit-scrollbar, #mgameResults::-webkit-scrollbar {
    width: 4px;
    height: 5px;
}

/* Track */
#gameResults::-webkit-scrollbar-track, #mgameResults::-webkit-scrollbar-track {
    border-radius: 8px;
    background: #333338;
}

/* Handle */
#gameResults::-webkit-scrollbar-thumb, #mgameResults::-webkit-scrollbar-thumb {
    background: #515157;
    border-radius: 10px;
}

/* Handle on hover */
#gameResults::-webkit-scrollbar-thumb:hover, #mgameResults::-webkit-scrollbar-thumb:hover {
    background: #505057;
}

#gameResults table, #mgameResults table {
    border-collapse: collapse;
    width: 100%;
}

#gameResults table tr, #mgameResults table tr{
    background-color: transparent;
}

#gameResults table td, #mgameResults table td {
    padding: 3px;
    transition:background-color 75ms ease-in-out;
}

#gameResults table td:hover, #mgameResults table td:hover {
    background-color: var(--translucid-light);
}

#gameResults button, #mgameResults button {
    font-size: 14px;
    color: var(--cloudy-white);
    border: none;
    font-family: Montserrat;
    font-weight: 500;
    cursor: var(--custom-pointer);
    margin: 0;
    width:100%;
    text-align: start;
    display: block;
    padding: 5px 6px;
    background-color: transparent;
}

#gameResults td, #mgameResults td {
    width: 300px;
    border-bottom: 1px solid var(--slate-steel);
    background-color: transparent;
}


.checkboxes{
    display:flex;
    justify-content: flex-start;
    align-items: center;
    gap:8px;
    margin:0;
}

.checkboxes-groups{
    display:flex;
    flex-direction: column;
    min-width: 32px;
    margin:0 !important;
}

.chkb-group{
    display:flex;
    justify-content: flex-start;
    align-items: center;
    gap:5px;
    margin:0;
}

.checkboxes input{
    width:16px;
    height: 16px;
}

#appet{
    margin:0;
}

#appet button{
    font-family: Montserrat;
    font-weight: 600;
    width:100%;
    height: 32px;
    margin-top:5px;
    cursor: var(--custom-pointer);
    transition: all 150ms ease-in-out;
    border-radius:4px;
}

#submitBtn, #msubmitBtn{
    border:none;
    background-color: var(--main-green);
    margin-bottom:4px;
    color:var(--cloudy-white);
}

#submitBtn:hover, #msubmitBtn:hover {
    background-color: var(--main-green-hover);
}

#resetBtn, #mresetBtn{
    background-color: var(--translucid-dark);
    border:1px solid var(--slate-steel);
    color:gray;
}

#resetBtn:hover, #mresetBtn:hover {
    border:1px solid #444652;
}

#submitBtn:active, #resetBtn:active, #msubmitBtn:active, #mresetBtn:active{
    transform:scale(.98);
}

/* Filters styling end */

.tourneyStatusBox{
    display:flex;
    width:100%;
}

#incoming, #active, #completed{
    width:33.3333%;
    text-align: center;
    height: 50px;
    font-size:24px;
    font-family: Montserrat;
    display:flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

#incoming{
    background-color: orange;
}

#active{
    background-color: rgb(0, 255, 0);
}

#completed{
    background-color: grey;
}

.participating-blob{
    width:18px;
    height: 18px;
    border-radius: 100%;
    left:8px;
    background-color: rgb(0, 255, 0);
    position: absolute;
}

.content-container{
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1500px;
    width: 100%;
    gap:26px;
}

.tournaments-container{
    display:flex;
    justify-content: flex-start;
    flex-wrap:wrap;
    gap:50px 30px;
    max-width: 1500px;
}

.tournament-box{
    background-color: var(--deep-steel);
    width:480px;
    padding:51px 20px 15px 15px;
    box-sizing: border-box;
    border-radius: 8px;
    position: relative;
    background-size:135%;
    background-position: center;
    background-repeat: no-repeat;
    outline:1px solid #20232e;
    transition:background-size 1200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tournament-box:hover{
    background-size:142%;
}

.tournament-box-content{
    display: flex;
    flex-direction: column;
    gap:16px;
    justify-content: space-between;
    height: 100%;
}

.gamename{
    position: absolute;
    background-color: var(--translucid-dark);
    font-family: Montserrat;
    font-weight: 600;
    backdrop-filter: blur(5px);
    height: 36px;
    color:white;
    border-radius: 8px 8px 0 0;
    display:flex;
    justify-content: center;
    align-items: center;
    left:0;
    right:0;
    top:0;
    font-size:18px;
    margin-left:auto;
    margin-right: auto;
    border-bottom:.5px solid var(--translucid-light);
}

.game-logo{
    display:flex;
    justify-content: center;
    align-items: center;
}

.game-logo img{
    height: 18px;
    pointer-events: all;
    cursor:help;
}

.teamcount{
    background-color: #16171b8c;
    border-radius: 0 8px 0 0px;
    border-left:1px solid #20232e;
    height: 36px;
    padding:0 8px 0 8px;
    font-weight: 500;
    position: absolute;
    right: 0;
    color:rgb(230, 230, 230);
    font-size:14px;
    display:block;
    text-align: center;
    line-height: 36px;
}

.outof{
    font-family:Arial, Helvetica, sans-serif;
    padding:0 1px 0 1px;
}

.game-logo{
    background-image: none !important;
    background-color:transparent !important;
}

@media only screen and (max-width: 1956px) {
    .tournaments-container{
        justify-content: center !important;
    }
}

@media only screen and (max-width: 1265px) {
    .tournament-box{
        width:75%;
        min-width: 480px;
    }
}

@media screen and (max-width: 720px) {
    .fandcon{
        width: unset !important;
    }
    .filters{
        display:none;
    }
    .tournament-box{
        min-width:96%;
    }
    #filters{
        display:flex !important;
    }
    .mobile-filters{
        display:flex !important;
    }
    .trnName{
        font-size:19px !important;
        width:290px !important;
    }
    .prizepool{
    max-width: 150px !important;
    }
    .prizepool-text{
        max-width: 160px !important;   
    }
    .tournaments-container{
        width: 100vw !important;
    }
    .trnHeader{
        background-position: right;
    }
    .teamcount{
        font-size:12px;
    }
    #statusForm{
        width: 96%;
    }
    #statusForm button{
        width: 100%;
    }
}

@media screen and (max-width: 536px) {
    #statusForm button{
        width: 100%!important;
        min-width: 100px !important;
        font-size:11px !important;
    }

    .no-tourneys-available h1{
        line-height: 30px !important;
        font-size:32px !important;
    }

    .no-tourneys-available p{
        line-height: normal !important;
        font-size:12px !important;
    }

    .no-tourneys-available{
        margin-top:0 !important;
    }

    .nothing-here{
        gap:5px !important;
    }

}

.mobile-filters{
    display:none;
}


@media screen and (max-width: 468px) {
    .thumbnail{
        width: 90px !important;
        height: 90px !important;
        min-width:90px !important;
        min-height: 90px !important;
    }
    .tournament-box{
        padding:46px 8px 8px 8px;
        font-size:.8em;
        background-size:160%;
    }

    .tournament-box:hover{
        background-size:160%;
    }



    .tile-title{
        font-size:10px !important;
    }
    .tile-main{
        font-size:15px !important;
    }

    .stars-wrapper svg{
        height: 13px !important;
        width: 16px !important;
    }

    .prizepool-text{
        max-width:37vw !important;
    }
    #statusForm button{
        padding:8px 7px 8px 7px !important;
    }
    #statusForm button img{
        height: 13px !important;
    }

    .trnHeader h1{
        font-size: clamp(36px, 3vw, 48px) !important;
        height: 47px;
    }
    .trnHeader h5{
        font-size: clamp(10px, 3vw, 4px) !important;
    }
}



.thmbninf{
    display:flex;
    gap:10px;
    padding-bottom:3px;
}

.thumbnail{
    display: flex;
    align-items: center;
    position: relative;
    width:110px;
    height: 110px;
    min-width:110px;
    min-height: 110px;
    border-radius: 6px;
}

.iwfa{
    position: absolute;
    bottom:40px;
    left:10px;
    color:rgb(187, 187, 187);
    text-shadow: 4px 4px 6px rgb(49, 49, 49);
    font-family: Montserrat;
    font-weight: 600;
    font-size:12px;
    text-align: center;
    width: 90px;
    opacity:0;
    transition:opacity 150ms ease-in-out;
    cursor:default;
}

.thumbnail:hover .iwfa {
    opacity: 1;
}

.thumbnail img{
    width: 100%;
    height: auto;
    border:.5px solid var(--translucid-light);
    -webkit-user-drag: none;
    background:none;
    border-radius: 6px;
}

.thumbnail:hover .stars-wrapper{
    opacity:.3;
    transform: translateY(10px) scale(.75);
}

.trnInfo{
    font-family: Montserrat;
    color:white;
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    text-shadow: 0px 0px 13px rgb(0, 0, 0);
    font-size: .9em;
    width: 100%;
}

.trnInfo div:first-child{
    margin-top:0 !important;
}

.trnInfo a{
    font-weight: 600;
    color:var(--cloudy-white);
    text-decoration: none;
}

.trnName{
    font-weight: 700;
    font-size:22px;
    width: 100% !important;
    line-height: 24px;
    overflow-wrap: break-word;
}

.adt-trn-info{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.datetime{
    font-weight: 500;
}

.formulateamsize{
    font-weight: 500;
    display:flex;
    justify-content: flex-start;
    align-items: center;
    gap:5px;
}

.ftzSpan{
    display:flex;
    justify-content: center;
    align-items: center;
    gap:3px;
}

.ftzSpan img{
    width: 13px;
}


.winners-div{
    display:flex;
    justify-content: flex-start;
    align-items: center;
    gap:3px;
}

.winners-div{
    margin-top:3px;
}

.winner-team{
    color: gold;
    line-height: 12px;
    font-weight: 600;
}

.region-div img, .winners-div img{
    width: 13px;
    height: 13px;
}


.feeprzpool {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tournament-xtra-tiles-wrapper{
    display:flex;
    gap:10px;
}

.tournament-xtra-info{
    position: relative;
    background-color: var(--more-translucid-dark);
    backdrop-filter:blur(5px);
    font-family: Montserrat;
    color:white;
    display:flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: 4px;
    transition: all 100ms ease-in-out;
    display: flex;
    flex-direction: column;
    padding:6px;
    border:.5px solid var(--translucid-light);
}

.tile-title{
    font-weight:500;
    text-align: center;
    font-size:12px;
    border-radius: 3px;
    color:rgb(160, 160, 160);
}

.tile-main{
    font-size:16px;
    font-weight: 700;
}

.view-tourney {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0px 15px;
    font-weight: 600;
    background-color: var(--more-translucid-dark);
    backdrop-filter:blur(5px);
    border-radius: 6px;
    color: white;
    border:.5px solid var(--translucid-light);
    position: relative;
    cursor: var(--custom-pointer);
    transition-duration: .2s;
    text-decoration: none;
    font-family: Montserrat;
  }
  
  .arrow {
    position: absolute;
    right: 0;
    width: 30px;
    height: 100%;
    font-size: 18px;
    text-align: center;
    line-height: 38px;
  }
  
  .view-tourney:hover {
    background-color: var(--deep-steel);
    transition-duration: .2s;
  }
  
  .view-tourney:hover .arrow {
    animation: slide-right 1000ms ease-out infinite;
  }
  /* arrow animation */
  @keyframes slide-right {
    0% {
      transform: translateX(-10px);
      opacity: 0;
    }
  
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  .view-tourney:active {
    transform: translate(1px , 1px);
    transition-duration: .2s;
  }
  


.prizepool{
    width:fit-content;
    padding:0 7.5px 0 7.5px;
    min-width: 75px;
    position: relative;
}

.prizepool span::after{
    margin-right: auto;
    margin-left: auto;
    left:0;
    right: 0;
    top:32px;
    text-overflow:unset;
    white-space:normal;
    overflow:unset;
    width:fit-content;
    max-width:350px;
    font-size:16px;
    font-weight: 600;
    padding:4px;
    border-radius: 4px;
    background-color: #2a2c30;
    color:white;
}

.prizepool-text{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 230px;
    
}

.view{
    width:100px;
    right:12px;
    align-items: center;
    border-radius: 8px;
}

.view a{
    text-decoration: none;
    color:white;
}

#statusForm{
    display: flex;
    justify-content: center;
}

#statusForm span{
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size:14px;
    padding:3px 8px;
    border:1px solid var(--slate-steel);
    background-color: var(--deep-steel);
}

#statusForm button{
    display:flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--translucid-dark);
    border:.5px solid var(--translucid-light);
    color:var(--cloudy-white);
    font-family: Montserrat;
    padding:8px 16px;
    cursor: var(--custom-pointer);
    font-size:16px;
    min-width: 164px;
    transition: all 150ms ease-in-out;
    flex-direction: column;
    gap:5px;
}

#statusForm button div{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:5px;
}

.progress-bar{
    display: flex;
    gap:5px;
}

.p-bar{
    height: 4px;
    width: 32px;
    border-radius: 1px;
    background-color: gray;
}

#statusForm button:first-child{
    border-radius: 6px 0 0 6px;
}

#statusForm button:last-child {
    border-radius: 0 6px 6px 0;
}

#statusForm button img{
    height: 16px;
    width: 16px;
}

#statusForm button:hover{
    background-color: #2b2e33a8;
}


.statusOn{
    background-color: #2a2e33 !important;  
}



/* Hide the default checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: var(--custom-pointer);
    height: 0;
    width: 0;
  }
  
  .container {
    position: relative;
    cursor: var(--custom-pointer);
    font-size: 15px;
    user-select: none;
    overflow: hidden;
    margin-bottom:6px;
  }

  .container label{
    cursor: var(--custom-pointer);
  }

  
  /* Create a custom checkbox */
  .checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: .8em;
    width: .8em;
    border: 1px solid var(--slate-steel);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  }
  
  
  /* When the checkbox is checked */
  .container input:checked ~ .checkmark {
    border-image: linear-gradient(-45deg, #29f84b 0%, #cbff0f 100% );
    border-image-slice: 1;
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
  }
  
  /* Style the checkmark/indicator */
  .container .checkmark:after {
    left: 0.22em;
    top: -2em;
    width: 0.25em;
    height: 0.5em;
    border: solid white;
    border-width: 0 0.15em 0.15em 0;
    transform: rotate(45deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  }
  
  .container .checkmark::before {
    left: 0.45em;
    top: 2em;
    width: 0.25em;
    height: 0.5em;
    border: solid white;
    border-width: 0 0.15em 0.15em 0;
    transform: rotate(45deg);
  }
  
  /* Show the checkmark when checked */
  .container input:checked ~ .checkmark:after {
    top: 0;
  }
  


.pagination-wrapper{
    display:flex;
    justify-content: center;
    align-items: center;
    gap:12px;
    margin-top:50px;
}

.pagination-wrapper a, #showCustomPage, #customPageContainer{
    font-family: Montserrat;
    background-color: var(--graphite);
    padding:16px;
    text-decoration: none;
    color:var(--cloudy-white);
    display:flex;
    gap:5px;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background-color 100ms ease-in-out;
}

.pagination-wrapper a:hover, #showCustomPage:hover, #customPageContainer:hover{
    background-color: #31353b;
}

#customPageContainer input{
    width:24px;
    color:white;
    height: 24px;
    text-align: center;
    font-weight: 600;
    font-family: Montserrat;
    border:none;
    outline:none;
    border-radius: 2px;
    font-size:18px;
    background-color: #68707a;
}

#customPageContainer input::placeholder{
    color:rgb(177, 177, 177);
    font-weight: 600;
    font-size:18px;
}

.pagination-wrapper a img{
    height: 10px;
}

.page-numbers{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2px 0 2px;
    gap:5px;
}

.active-page {
    background-color: var(--main-green) !important;
    color: var(--cloudy-white);
}


.sw{
    opacity: 1 !important;
    display: none;
    pointer-events: all !important;
    top:0 !important;
    height: 100svh !important;
    align-items: center;
    font-family: Montserrat;
}

.sw>div{
    color:var(--jet-black) !important;
    width: clamp(20rem, 90%, 625px) !important;
    text-align: start !important;
    display:flex;
    justify-content: center;
    align-items: center;
    background: var(--mellow-yellow) !important;
    outline: 1px solid #20232e;
    padding:16px 24px 24px 24px !important;
}

.sw-btn>button{
    padding:6px 24px 6px 24px;
    border:none;
    background-color: #f2764c;
    font-family: Montserrat;
    color:var(--cloudy-white);
    font-weight: 600;
    border-radius: 4px;
    cursor: var(--custom-pointer);
    transition:background-color 150ms ease-in-out;
}

.sw-p{
    display:flex;
    align-items: center;
}

.sw-btn{
    width: 100%;
    display:flex;
    justify-content: flex-end;
    margin-top:10px;
}

.sw-btn>button:hover{
    background-color: #f06a3e;
}

.sw-content h3{
    margin:0 0 10px 0 !important;
    line-height: 14px;
    font-size:16px;
}

.sw-content h2{
    font-size:24px !important;
    margin:0 0 16px 0 !important;
    text-align:center;
}

.sw-p{
    display:flex;
    gap:10px;
    flex-direction: column;
    align-items: flex-start;
}

.sw-p p{
    font-size:14px !important;
    margin:0;
}


#filters{
    display:none;
    justify-content: center;
    align-items: center;
    margin-top:100px;
}

#filters>div{
    margin-top:150px;
}

.filters-box-mobile{
    font-family: Montserrat;
    font-weight: 500;
    color:white;
    font-size:14px;
}

.filters-box-mobile form{
    display:flex;
    gap:10px;
    flex-direction: column;
}

.filters-box-mobile .filter-name{
    font-size:20px;
    margin-bottom:8px;
}

.no-tourneys-available{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:16px;
    font-family: Montserrat;
    margin-top:32px;
    padding:24px;
}

.nothing-here{
    display: flex;
    flex-direction: column;
    gap:12px;
    border-left:4px solid var(--cloudy-white);
    padding:3px 0 3px 20px;
    border-radius: 4px;
}

.no-tourneys-available img{
    height: 64px;
}

.no-tourneys-available h1{
    margin:0;
    color:var(--cloudy-white);
    font-size:40px;
    line-height:29px;
}

.no-tourneys-available p{
    margin:0;
    color:rgb(190, 190, 190);
    line-height: 12px;
}

.dateRange{
    display:flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap:5px;
}

.data_input-wrapper{
    display:flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.data_input-wrapper img{
    width: 18px;
    margin-left:1px;
}

.dateRange input[type="date"]{
    outline:none;
    color-scheme: dark;
    border:1px solid var(--slate-steel);
    height: 22px;
    background: #16171b;
    font-family: Montserrat;
    font-weight: 400;
    width: 125px;
    text-align: center;
}

.stars-wrapper{
    display: flex;
    height: 16px;
    position: absolute;
    width: 100%;
    justify-content: center;
    z-index: 9;
    bottom:-6px;
    transition: all 250ms ease-in-out;
}

.stars-wrapper svg{
    height: 16px;
    filter: drop-shadow(0px 0px 5px #000);
}