:root{
    --primary-color: white;
    --secondary-color:black;
    --primary-text-color:black;
    --secondary-text-color: gray;
    --primary-2-color:white;
    --billing-color: black;
    --fighters-primary-color: lightgray;
    --fighters-text-color: black;
    --whitesmoke-to-black: #f1f1f1;
    --whitesmoke-to-grayblack: #f1f1f1;
    --hyperlink-blue: blue;
    --autoComp: lightgray;
}
[data-theme="dark"] {
    --primary-color:black;
    --secondary-color: #1c1c1d;
    --primary-text-color: whitesmoke;
    --secondary-text-color: #1c1c1d;
    --primary-2-color:#1c1c1d;
    --billing-color: darkgray;
    --fighters-primary-color: #1c1c1d;
    --fighters-text-color: lightgray;
    --whitesmoke-to-black: black;
    --whitesmoke-to-grayblack: #1c1c1d;
    --hyperlink-blue: lightblue;
    --autoComp: black;
    /* --font-color: #c1bfbd;
    --link-color:#0a86da;
    --link-white-color:#c1bfbd;
    --bg-color: #333; */
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    margin: 1rem 0;
    margin-top: 0;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-y: scroll;
    background-color: var(--primary-color); /*dark mode opt*/
}
a{
    text-decoration: none;
    color: white;
}
a:hover{
    color: lightgray;
}
a,button{
    cursor: pointer;
}
.navdiv nav{
    position: absolute;
    top: 100px;
    left: 50px;
    width: 250px;
}
.title{
    color: var(--primary-text-color); /*dark mode opt*/
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -1px;
}

/* hamburger menu */
.hamburger, .bar{
    position: fixed;
}
.hamburger{
    display: block;
    top: 5%;
    right: 95%;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 0;
    background: 0 0;
}
.bar{
    top: 3px;
    background: var(--primary-text-color); /*dark mode opt*/
    width: 100%;
    height: 4px;
    transition: all .3s ease-in;
}
#bar2{
    top:11px;
}
#bar3{
    top: 19px;
}
.hamburger.open #bar1{
    background-color: whitesmoke;
    transform: rotate(45deg) translate(6px,5px);
}
.hamburger.open #bar2{
    background-color: transparent;
}
.hamburger.open #bar3{
    background-color: whitesmoke;
    transform: rotate(-45deg) translate(6px,-5px);
}
/*******************/

.navdiv{
    position: fixed;
    width: 350px;
    height: 100%;
    background-color: black;
    transition: .5s;
    left: -500px;
}
.navdiv ul li{
    color: #fff;
    text-align: right;
    text-transform: uppercase;
    list-style-type: none;
    font-size: 1.5em;
    padding: 20px 30px;
    border-bottom: 1pt solid gray;
}

.theme-switch-wrapper{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    position: absolute;
    padding-top: 20px;
    right: 0;
    left: 0;
}
.theme-switch-wrapper i{
    display: inline-block;
    position: relative;
    top: -9px;
}
label{
    font-size: 13px;
    color: #424242;
    font-weight: 500;
}
.btn-color-mode-switch{
    display: inline-block;
    margin: 0px;
    position: relative;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner{
    margin: 0px;
    width: 140px;
    height: 30px;
    background: #E0E0E0;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    /*box-shadow: 0px 0px 8px 0px rgba(17, 17, 17, 0.34) inset;*/
    display: block;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner:before{
    content: attr(data-on);
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    top: 7px;
    right: 20px;

}

.btn-color-mode-switch > label.btn-color-mode-switch-inner:after{
    content: attr(data-off);
    width: 70px;
    height: 16px;
    background: #fff;
    border-radius: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 6px -2px #111;
    padding: 5px 0px;
}

.btn-color-mode-switch > .alert{
    display: none;
    background: #FF9800;
    border: none;
    color: #fff;
}

.btn-color-mode-switch input[type="checkbox"]{
    cursor: pointer;
    width: 50px;
    height: 25px;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0px;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner{
    background: black;
    color: #fff;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:after{
    content: attr(data-on);
    left: 68px;
    background: #3c3c3c;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:before{
    content: attr(data-off);
    right: auto;
    left: 20px;
}

.btn-color-mode-switch input[type="checkbox"]:checked ~ .alert{
    display: block;
}
.fa-sun-o{
    color: whitesmoke;
}
.fa-moon-o{
    color: whitesmoke;
}

.navdiv.active{
    left:0;
    position: fixed;
    z-index: 2;
    background-color: var(--secondary-color);  /*dark mode opt*/
}
.titleLogo{
    position: fixed;
    display: flex;
    top: 2%;
    left: 87%;
    align-items: center;
}
.titleLogo img{
    width: 50px;
    margin-left: 5px;
}

/* formula to center anything... */
.container{
    max-width: 100%;
    padding: 0 15px;
    padding-top: 100px;
    display: grid;
    margin: 0 auto;
    justify-content: center;
}

/* week selector dropdown box */
select{
    appearance: none;
    outline: none;
    box-shadow: none;
    background: gray;
    border: 0 !important;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 0 0 .5em;
    color: #fff;
    font-size: 1em;
    letter-spacing: .8px;
    cursor: pointer;
}
.weekSelector{
    position: relative;
    display: block;
    width: 20em;
    height: 3em;
    overflow: hidden;
    line-height: 3;
    border-radius: .25em;
}
.weekSelector select{
    background-color: var(--secondary-text-color); /*dark mode opt*/
}
.weekSelector::after{
    content: '\25bc';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 0 1em;
    pointer-events: none;
    transition: .2s all ease;
}
.weekSelector:hover::after{
    color: white;
}

/*********************/

/* event cards*/
.articles-container, .container{
    margin-left: 300px;
    transition: .5s ease;
}
.articles-container.active, .container.active{
    margin-left: 0px;
}

.event-card{
    max-width: 500px;
    padding: 0 15px;
    margin: 0 auto;
    margin-top: 50px;
    position: relative;
    display: grid;
    grid-template-columns: 285px minmax(300px,445px);
    /* max-width: 550px; */
    border-radius: 10px;
    box-shadow: 6px 6px 5px hsla(0, 0%, 0%, 0.02),
                25px 25px 20px hsla(0, 0%, 0%, 0.03),
                100px 100px 80px hsla(0, 0%, 0%, 0.05);
    justify-content: center;
    align-items: center;
    transition: max-width .5s ease;
    background-color: var(--primary-2-color);  /*dark mode opt*/
    color: gray;
}
.event-card h3{
    color: var(--primary-text-color); /*dark mode opt*/
}
.event-card p{
    color: gray;
}
.poster-box{
    border-radius: 10px 0 0 10px;
    overflow: hidden;
}
.event-banner{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    transition: all 0.5s ease;
}
.event-card:hover .event-banner{
    transform: scale(1.1);
}
.event-content{
    background: var(--white);
    padding: 32px 40px;
    border-radius: 0 10px 10px 0;
    margin-left: 0%;
    transition: all 0.4s ease;
}
.event-title{
    font-size: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #000;
}
.event-date{
    font-size: 15px;
    color: gray;
    margin-bottom: 12px;
    line-height: 1.4;
}
/********************/

/*accordian menu*/
.accordian_text{
    width: 0px;
    position: absolute;
    height: 175px;
    color: black;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.event-card.active .accordian_text{
    width: 580px;
    height: 100%;
    display: block;
    position: absolute;
    left: 30%;
    opacity: 1;
    transition: 1s ease;
}
.event-card.active{
    max-width: 1000px;
    justify-content: space-between;
}
.event-card.active .event-content{
    margin-left: 45%;
    /* padding-left: 40%; */
}
.event-card.active .poster-box{
    margin-right: 10%;
}
/***************/

/*accordion menu text*/
.inner_at ul{
    position: absolute;
    width: 450px;
    margin: 20px auto 0;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    /* overflow: hidden; */
    height: 100%;
    padding-bottom: 40px;

    background-color: var(--primary-2-color); /*dark mode opt*/
    color: var(--primary-text-color); /*dark mode opt*/
}
.inner_at ul li{
    box-shadow: inset 0 0 15px rgba(0, 0, 0, .4);
    display: flex;
    padding: 10px 20px;
    margin: 5px 0;
    transition: .5s;
    /* background: rgba(0, 0, 0, .1); */
    border-bottom: 3px solid gray;
    border-radius: 5%;
    justify-content: space-between;
    max-width: 100%;
}
.weightBilling{
    display: table;
    margin: 0 auto;
}
#weight{
    border-color: gray;
    border-style: solid;
    border-width: 2px;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 10px;
    padding-top: 5px;
    display: grid;
    margin:0 auto;
    position: static;
    justify-content: center;
}
#billing{
    text-align: center;
    font-size: small;
    color: var(--billing-color); /*dark mode opt*/
}
#rightFighter{
    width: 100px;
    text-align: right;
}
#leftFighter{
    width: 100px;
    text-align: left;
}

/******************/



/*   FIGHTERS.HTML   */

/* search box */
.search-box{
    width: 600px;
    border-radius: 5px;
    display: grid;
    margin: 0 auto;
    justify-content: center;
    position: relative;
}
.row{
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin-top: 50px;
    background: var(--fighters-primary-color); /*dark mode opt*/
    color: var(--primary-text-color); /*dark mode opt*/
    border-radius: 15px;
    width: 500px;
}
input{
    flex: 1;
    height: 50px;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 18px;
    color: var(--primary-text-color); /*dark mode opt*/
}
button{
    background: transparent;
    border: 0;
    outline: 0;
}
button .material-symbols-outlined{
    width: 25px;
    color: #555;
    font-size: 22px;
    cursor: pointer;
}
.material-symbols-outlined { /*cp paste from google for search icon*/
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}
.row-items{
    position: absolute;
    border: 3px solid var(--autoComp);
    border-bottom: none;
    border-top: none;
    z-index: 1;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.row-items div {
    padding: 10px;
    cursor: pointer;
    background-color: var(--primary-2-color); 
    border-bottom: 2px solid var(--autoComp); 
}

/*when hovering an item:*/
.row-items div:hover {
    background-color: var(--autoComp); 
}

/*when navigating through the items using the arrow keys:*/
.row-active {
    background-color: #318CE7 !important; 
    color: #ffffff; 
}
/**************/

/* search table */
.wrapper{
    margin: 0 auto;
    justify-content: center;
    display: flex;
    /* width: 1100px; */
    max-width: 1000px;
    /* position:absolute;
    left: 400px; */
    justify-content: space-between;
}
.wrapper table{
    margin-top: 30px;
    width: 600px;
    position: relative;
    border-spacing: 1em;
    right: 50px;   
}
#searchTable tr{
    background-color: var(--fighters-primary-color); /*dark mode opt*/
    color: var(--primary-text-color); /*dark mode opt*/
    text-align: left;
    border-radius: 15px;
    cursor: pointer;
    transition: all .2s ease-in;
}
#searchTable tr:hover{
    background-color: var(--primary-color); /*dark mode opt*/
    transform: scale(1.02);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, .2), -1px -1px 8px rgba(0, 0, 0, .2);
}
#searchTable tr.active{
    background-color: var(--primary-color); /*dark mode opt*/
    transform: scale(1.02);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, .2), -1px -1px 8px rgba(0, 0, 0, .2);
}
#searchTable tr td{
    padding: 15px;
    border-radius: 5px;
    font-size: 25px;
}
.fighterWindow{
    margin-top: 5%;
    background-color: var(--fighters-primary-color); /*dark mode opt*/
    border-radius: 15px;
    box-shadow: -30px 30px 30px rgba(0, 0, 0, .3);
    width: 600px;
    height: 600px;
    position:fixed;
    left: 60%;
    /* animation: unblurer 0.5s ease 1; */
    filter: blur(0.3rem);
}

@keyframes unblurer {
    0%{
        filter: blur(0.3rem);
    }
    100%{
        filter: blur(0rem);
    }
    
}
/*************/

/* fighter window */
.fighterWindow.active{
    animation: unblurer 1s ease 1;
    filter: none;
    /* transition: all 0.5s ease; */
}

.fighterInfo-Img{
    display: flex;
    position: relative;
    top: 3%;
    justify-content: center;
}
.fighterInfo{
    display: grid;
    position: relative;
    top: 5%;
    padding: 1rem;
    width: 40%;
}
.fighterInfo img,span{
    padding: 0.2rem;
    text-align: center;
}
.fighterInfo span{
    color: var(--fighters-text-color); /*dark mode opt*/
}
.fighterInfo img{
    position: relative;
    left: 43%;
}
.fighterImage{
    width: 300px;
    height: 300px;
    padding: 1rem;
    object-fit:cover;
    border-radius: 15%;
    object-position: center top;
}
#fightHistoryTable{
    width: 100%;
    left: 0;
    display: grid;
    position: relative;
    top: -20px;
    border-top-left-radius: 5%;
    border-top-right-radius: 5%;
    overflow-y: auto;
    table-layout: fixed;
    justify-content: center;
}
#fightHistoryTable tbody tr{
    color: var(--fighters-text-color); /*dark mode opt*/
}
#fightHistoryTable tbody tr td:first-child{
    color: black;
}
#fightHistoryTable tbody tr th{
    color: var(--primary-text-color); /*dark mode opt*/
}
#fightHistoryTable th,td{
    padding: 0.1rem;
    text-align: center;
}
/* #fightHistoryTable tr{
    height: 10px;
    line-height: 13px;
} */
.tableContainer{
    overflow-y: scroll;
    display: grid;
    position: relative;
    max-height: 50%;
}

/*******************/

/*   RANKINGS.HTML            */
.card-container{
    max-width: 100%;
    padding: 0 15px;
    padding-top: 70px;
    display: grid;
    margin: 0 auto;
    justify-content: center;
    margin-left: 300px;
    transition: .5s ease;
    margin-bottom: 100px;
}
.card-container.active{
    margin-left: 0px;
}
.card{
    position: relative;
    width: 700px;
    height: 150px;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, .5);
    transition: .3s;
    padding: 20px 50px;
    background: var(--primary-2-color); /*dark mode opt*/
    color: var(--primary-text-color); /*dark mode opt*/
    cursor: pointer;
    margin-right: 30px;
    margin-top: 50px;
    overflow: hidden;
}
/* .card:hover{
    height: 500px;
} */
.card.active{
    height: 500px;
}
.card.active > .content{    /*when clicking to set card active, have content stay up also*/
    opacity: 1;
    transform: translateY(-90px);
}
.card-imgbox{
    display: flex;
}
.imgbox{
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateY(-80px);
    z-index: 0;
}
.imgbox img{
    width: 200px;
    height: 150px;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, .5);
    object-fit: cover;   /*usually set to cover*/
    object-position: center top;
}
.nr1{
    width: 500px;
    position: relative;
    justify-content: center;
    margin-top: 5%;
    display: flex;
}
.nr1 span{
    font-size: 3em;
    margin-left: 5px;

}
.nr1 span.active{
    rotate: 180deg;
    position: relative;
    top: 0;
    height: 60%;
    transition: rotate 0.3s ease;
}
.content{
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: .3s;
    overflow-y: scroll;
    display: grid;
    position: relative;
    /* height: 100%; */
    max-height: 85%;
    margin-top: 100px;
    width: 100%;
}
.content a{
    color: var(--hyperlink-blue);
}
/* .card:hover > .content{ the '>' means that it will only directly affect .content children from .card (parent) */
    /* opacity: 1;
    transform: translateY(-90px);
} */
#rankingsTable{
    width: 100%;
    left: 0;
    /* display: grid;
    position: relative; */
    border-top-left-radius: 5%;
    border-top-right-radius: 5%;
    overflow-y: auto;
    table-layout: auto;
    justify-content: center;
    border-collapse: collapse;
    cursor: pointer;
    margin-bottom: 50px;
}
.rankingPromotion{
    width: 0px;
    height: 0px;
    position: relative;
    /* border-style: inset;
    border-width: 0 15px 25px 15px; */
    /* border-color: transparent transparent #007bff transparent; */
    left: 35%;
    display: block;
    text-align: center;
}
.rankingPromotion span{
    position: relative;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    color: black;
}

#rankingsTable tr{
    border-bottom: 1pt solid var(--billing-color);
}

/*fade in animation*/
.weekSelector{
    opacity: 0;
}
.weekSelector.load{
    opacity: 1;
    transition: 1s ease;
}
.articles-container{
    opacity: 0;
    padding-bottom: 100px;
}
.articles-container.load{
    opacity: 1;
    transition: opacity 1s ease;
}
.search-box{
    opacity: 0;
}
.search-box.load{
    opacity: 1;
    transition: opacity 1s ease;
}
.wrapper{
    opacity: 0;
}
.wrapper.load{
    opacity: 1;
    transition: opacity 1s ease;
}
.card-container{
    opacity: 0;
}
.card-container.load{
    opacity: 1;
    transition: opacity 1s ease;
}

.moreCard-container{
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    justify-content: center;
    margin: 0 auto;
    transition: .3s ease;
    padding-top: 100px;
    margin-bottom: 10px;
    margin-left: 12%;
    opacity: 0;
}
.moreCard-container.active{
    margin-left: 0px;
}
.header:has([class='navdiv']) + .moreCard-container{
    margin-left: 0px;
}
.moreCard-container.load{
    opacity: 1;
    transition: opacity 1s ease;
}
.browserMoreCard{
    margin: 20px auto;
    width: 40%;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);    
    transition: .3s ease;
    background-color: var(--primary-2-color);
    color: var(--primary-text-color);
    padding: 20px;
}
.browserMoreCard > .browserCardContent{
    margin: 10px auto;
}
.browserCardContent p a{
    color: var(--hyperlink-blue);
    text-decoration: none;
}
.browserCardContent p a:hover{
    color: #004499;
    text-decoration: underline;
    cursor: pointer;
}

#ticketForm{
    width: 40%;
    margin: 20px auto;
    margin-bottom: 100px;
    padding: 20px;
    border-radius: 8px;
    transition: .3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);    
    color:var(--primary-text-color);
    background-color: var(--primary-2-color);
}

#ticketForm label{
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: gray;
}
#ticketForm input{
    border: 1px solid #000;
    background-color: var(--primary-2-color);
    /* border-radius: 8px; */
}

#ticketForm button{
    border: 1px solid gray;
    border-radius: 8px;
    margin-top: 10px;
    width: 20%;
    padding: 8px;
    box-sizing: border-box;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--fighters-primary-color);
    color: var(--primary-text-color);
    transition: all .2s ease-in;

}
#ticketForm button:hover{
    background-color: var(--primary-color); /*dark mode opt*/
    /* transform: scale(1.02); */
    box-shadow: 2px 2px 12px rgba(0, 0, 0, .2), -1px -1px 8px rgba(0, 0, 0, .2);
}

#ticketForm textarea{
    resize: vertical;
    max-height: 200px;
    min-height: 50px;
    background-color: var(--primary-2-color);
}

#ticketForm input, textarea, select{
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid gray;    
    color:var(--primary-text-color);
    /* background-color: var(--fighters-primary-color); */
}


/**/
@media(prefers-reduced-motion){ /* have to disable animations for ppl that dont gaf*/
.weekSelector,.articles-container,.search-box,.wrapper,.card-container,.moreCard-container{
    opacity: 1;
}
}

/*****************************/
@media screen and (min-width: 900px) {
    .mobile-nav {
    display: none;
    }
    .popupEvent{
        display: none;
    }
    .alertNoti{
        display: none;
    }
    .moreCard-container + .card-container{
        display: none;
    }
    
}
