@import url(https://fonts.googleapis.com/css2?family=Oswald:wght@200;400;600&family=Yantramanav:wght@500;700&display=swap);


@font-face {
    font-family: 'demonized';
    src: url('/static/fonts/Demonized.ttf');
}

/* :root {
    border: solid 8px hsl(241, 100%, 50%);
    animation: dev-cycle 2s linear infinite alternate;
}

@keyframes dev-cycle {
    0% {
        border-color: hsl(0, 100%, 50%);
    }
    50% {
        border-color: hsl(39, 100%, 50%);
    }
    100% {
        border-color: hsl(78, 100%, 50%);
    }
} */

/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--text_color)
}

/* HTML: <div class="loader"></div> */
.loader {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    clip-path: inset(0 3ch 0 0);
    animation: l4 1s steps(4) infinite;
  }
  .loader:before {
    content:"Loading..."
  }
  @keyframes l4 {to{clip-path: inset(0 -1ch 0 0)}}

[data-text-style="mono"] {
    font-family: monospace;
}

body::-webkit-scrollbar {
    width: 0em;
}
a{
    text-decoration: none;
}
body {
    height: fit-content;
    background-color: var(--background);
    color: var(--text_color);
}

textarea{
    background-color: var(--card_dark);
    width: 80%;
    resize: none;
    border-radius: 15px;
    padding: 1em;

}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 10px 20px;
    background: black;
    color: white;
    position: relative;
    height: 3em;

}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px; /* Adjust to match the navbar's height */
    right: 20px;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    z-index: 10;
}

.mobile-menu a {
    display: block;
    color: white;
    padding: 10px;
    text-decoration: none;
}

.mobile-menu a:hover {
    background-color: #444;
}

/* Hamburger menu styling */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;  /* Reduce the overall width */
    height: 30px; /* Reduce the height to fit within the navbar */
}

.hamburger-menu span {
    width: 20px;   /* Reduce the width of the lines */
    height: 3px;   /* Keep the thickness of the lines */
    background-color: white;
    margin: 3px 0; /* Adjust the spacing between lines */
    transition: 0.4s;
}

.mobile-menu.show {
    display: block;
}

.left-text {
    margin-right: 10px;
}
.left-text *{
    color: var(--dark_text);
}

.center-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

.right-links {
    margin-left: 10px;
}

.right-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 20px;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    z-index: 10;
}

.mobile-menu a {
    display: block;
    color: white;
    padding: 10px;
    text-decoration: none;
}

footer {
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    height: 3em;
}

footer a, #footer_extention a,#footer_extention h2, #footer_extention li {
    color: white;
    font-weight: 400;
    margin-left: 15px;
}

.content{
    margin-top: 3em;
    min-height: calc(100vh - 6em);
}


header {
    margin-top: 0;
    background: url(/static/images/background2.png) center center no-repeat;
    background-size: 100%;
    min-height: 50vh;
    background-size: cover;
}

.cycle-info {
    background-color: var(--card);
    display: block;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    border-bottom: 3px solid;
    border-color: rgb(168, 168, 168);
}

.league-info {
    margin-left: auto;
    margin-right: auto;
    padding: 30px 15px;
    padding-bottom: 0px;
    display: flex;
    align-items: center;
    max-width: fit-content;
    justify-content: center;
    margin-bottom: 0px;
}
.league-info img{
    width: 30%;
    height: auto;
}






.map-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.map-card {
    background-color: var(--background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.map-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.map-info {
    padding: 15px;
    text-align: center;
}

.map-name {
    margin: 0;
    font-size: 1.5em;
    color: var(--text_color);
}

.game-mode {
    color: var(--text_color_sub);
    font-size: 1em;
}

.stat-container{
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(2, auto);
    column-gap: 1em;
    row-gap: 1em;
    padding: 3em;
}

.stat-container[data-type="team-stats"]{
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.stat-card{
    display: flex;
    background-color: var(--card);
    border-radius: 15px;
    padding: 1em;
    flex-direction: column;
    justify-content: center;
}

.stat-card-dark{
    display: flex;
    background-color: var(--card_dark);
    border-radius: 15px;
    padding: 1em;
    flex-direction: column;
    justify-content: center;
}

.filter-tabs{
    display: flex;
    justify-content: center;
    margin: 2em;
    align-content: center;
}

.filter-tabs .label {
    font-size: 35px;
    margin-right: 1em;
    FONT-WEIGHT: 600;
}

.filter-tabs .tab {
    padding: 0.5em;
    background-color: var(--tab_inactive);
    color: var(--text_color);
    transform: skew(344deg, 0deg);
    margin: 0.1em;
    font-size: 25px;
    border-radius: 0.2em;
}

.filter-tabs .Selected  {
    background-color: var(--tab_active);
}

.team-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.team-card img{
    height: 30vmin;
}
.team-card h1{
    font-size: 4vmin;
    color: var(--text_color);
}

.team-card-small{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2em;
    column-gap: 1em;
}

.team-card-small img{
    height: 15vmin;
}
.team-card-small h1{
    font-size: 4vmin;
    color: var(--text_color);
}

.team-Inactive{
    filter: grayscale(100%);
}



.teams{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teams-tier{
    display: flex;
    column-gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 2em;
    padding-bottom: 2em;
}

.tier-label{
    background-color: var(--dark);
    color: var(--dark_text);
    padding: 1em;
    text-align: center;
    width: 80%;
    transform: skew(-20deg);
}
.tier-label * {
    color: var(--dark_text);
}

.team-games{
    display: flex;
    width: 100%;
    padding: 3em;
    flex-direction: column;
    row-gap: 1em;
    margin-bottom: 3em;
    flex-wrap: wrap;
    
}
.team-game{
    border-radius: 15px;
    background-color: var(--card);
    display: grid;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    padding: 2em;
    grid-template-columns: repeat(7, 1fr);
}
.team-game h1{
        font-size: 8vmin;
        text-align: center;
    }

.team-game img{
        width: 100%;    
        height: auto;
        text-align: center;
    }

.team-game-links{
    display: flex;
    flex-direction: column;
    row-gap: 1em;
    margin-left: 1em;
    text-align: center;
}

.team-game-time{
    text-align: center;
    font-size: 2.5vmin;
    font-weight: 600;
    color: var(--text_color_sub);
}
.module_match_season_break{
    background-color: var(--card_dark);
    text-align: center;
    padding: 0.3em;
    border-radius: 15px;
}
.module_match_cycle_break{
    background-color: var(--card);
    color: var(--text_color);
    text-align: center;
    padding: 0.3em;
    border-radius: 15px;
}

.player-card img{
    width: 100%;
    margin-top: 1em;
    margin-right: 2em;
    max-width: 10em;
    height: auto;
}

.player-name {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    border-radius: 0px;
    width: 200px;
    height: 40px;
    font-weight: bold;
    transform: skew(-20deg);
    background-color: #000000;
}

.rank{
    background-color: #2fc8ff;
    border-radius: 50px;
    padding: 0.3em;
    color: #000000;
}
.MMR{
    background-color: #000000;
    padding: 0.2em;
    font-size: 23px;
    color: white;
}

.MMR-container{
    display: flex;
    align-items: flex-end;
    margin: 1em;
}
.MMR-label {
    background-color: gray;
    font-size: 20px;
    color: white;
    padding: 0.1em;
    }

.team-players-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-direction: column;
}

.team-players-leaders {
    display: flex;
    column-gap: 2em;
    margin-bottom: 2em;
    justify-content: center;
    height: 24em;
    width: 100%;
}

.full-roster-button {
    background-color: var(--card);
    color: var(--text_color_sub);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 20px;
}

.toggle-sidebar-btn{
    display: none;
}

/* Style the collapsible content. Note: hidden by default */
.full-roster {
    padding: 0 18px;
    display: none;
    overflow: hidden;
}

.team-players-normal {
    display: flex;
    column-gap: 2em;
    row-gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
}

.team-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 30%;
    max-width: 20em;
    width: 100%;
    box-sizing: border-box;
}
.team-player-card img {
        width: 15em;
        margin-top: 1em;
        margin-right: 2em;
    }


.team-player-card-bar {
    background-color: #3b0000;
    display: flex;
    height: 4em;
    width: 20em;
    color: white;
    align-items: center;
    justify-content: center;
}

.team-info-head{
    display: flex;
    height: 7em;
    align-items: baseline;
    padding-left: 5em;
    padding-right: 5em;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}
.team-info-head h1{
        font-size: 50px;
        font-weight: bolder;
        margin-left: 1em;
    }
.team-info-head img{
        height: 100%;
    }

.active{
    color:var(--HD_Green);
}

.inactive{
    color:var(--HD_Red);
}



  .player-season-stats{
    display: flex;
    padding-left: 10%;
    padding-right: 10%;
    flex-direction: column;
    margin-bottom: 2em;
}

.KD{
    background-color: #000000;
    padding: 0.2em;
    font-size: 23px;
    color: white;
}

.KD-container{
    display: flex;
    align-items: flex-end;
    margin: 1em;
}
.KD-label {
    background-color: gray;
    font-size: 20px;
    color: white;
    padding: 0.1em;
    }
.player-head{
    display: flex;
    padding-left: 10%;
    padding-right: 10%;
}
.player-head-info{
    display: flex;
    align-items: center;
    column-gap: 2em;
}
.player-head-team{
    display: flex;
    align-items: center;
    height: 10em;
    margin-right: 2em;
    column-gap: 2em;
    color: black;
}
.player-head-team img{
    height: 60%;
}
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 30%;
    max-width: 20em;
    width: 100%;
    box-sizing: border-box;
}
.player-card img{
        width: 15em;
        margin-top: 1em;
        margin-right: 2em;
}

.player-body-top-stats{
    display: flex;
    padding-left: 10%;
    padding-right: 10%;
}


hr{
    margin-top: 2em;
    margin-bottom: 2em;
    border: var(--card_dark) solid 2px;
}

hr.small{
    margin-top: 0.1em;
    margin-bottom: 0.1em;
    border: var(--card_dark) solid 1px;
}

.season-dropdown{
    background-color: var(--card_dark);
    color: var(--text_color);
}
.season-section{
    display: none;
    flex-direction: column;
    row-gap: 2em;
}

/* Custom styles for the select dropdown */
select {
    appearance: none; /* Remove default styling */
    padding: 10px;
    background-color: var(--card);
    border: 2px solid var(--card_dark);
    border-radius: 4px;
    font-size: 16px;
    color: var(--text_color);
    cursor: pointer;
}

.match-head{
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-evenly;
    
}
.match-head img {
    width: 30vmin;
}

.match-head h1{
        font-size: 17vmin;
        color: var(--text_color);
}

.match-head-team{
    margin-top: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.match-head-team h1{
        font-size: 10vmin;
}



.match-poster{
    padding: 0 18px;
    display: none;
    overflow: hidden;
    
    flex-direction: column;
    align-items: center;
}
.match-poster img{
        width: 80%;
        box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
        border: 20px ridge #ab6223;
    }
.poster-button {
    background-color: var(--card_dark);
    color: var(--text_color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 20px;
}
.match-maps{
    display: flex;
    flex-direction: column;
}
.match-map-stats{
    display: flex;
    width: 100%;
    padding-left: 4em;
    padding-right: 4em;
    column-gap: 4em;
}
.match-map-head{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    padding: 3em;
}
.match-map-head p{
        font-size: 3vmin;
    }
.match-map-stats-team{
    width: 100%;
}
.match-map-stats-head{
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    padding: 0.2em;
}

.match-map-stats-head *{
    color: #ffffff;
}

.match-vod{
    display: flex;
    justify-content: center;
    padding: 10%;
}

.match-vod iframe {
        aspect-ratio: 16 / 9;
        width: 100% !important;
    }

    .sponsors-card-foot{
        display: flex;
        column-gap: 1em;
    }
    .sponsors-head{
        margin-top: 3em;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 3em;
    }
    .sponsors-head h1{
        font-size: 4vmin;
    }
    .sponsors-cards{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 10%;
        padding-right: 10%;
        row-gap: 3em;
    }
    .sponsors-card{
        padding: 2em;
        border-radius: 3em;
        background-color: var(--card);
        width: 80vw;
    }
    .sponsors-card-head{
        display: flex;
    }
    .sponsors-card-head img{
        height: 13vmin;
    }
    .sponsors-card-body{
        display: flex;
        flex-direction: column;
        row-gap: 1em;
    }

    .sponsors-card-body pre {
        text-wrap: auto;
    }

.error-card {
    background-color: var(--card);
    color: var(--text_color);
    padding: 3em;
    border-radius: 15px;
    margin: 10% 20% 10% 20%;
    text-align: center;
}

.background_img{
    background: url('static/images/quarry.jpg') no-repeat center center fixed;
    background-size: cover;
}

.error{
    color: var(--error);
    padding: 5px 3px;
    background-color: var(--error_bg);
    border-radius: 15px;
}


/* Container for the login form */
.login-container {
    display: block;
    background: var(--background);
    color: var(--text_color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

/* Title styling */
.login-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text_color);
}

.login-container a{
    color: var(--text_color);
}

/* Input fields styling */
input{
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--card_dark);
    font-size: 16px;
    transition: background-color 0.3s ease;
    color: var(--text_color);
}

input:focus {
    background-color: var(--card_dark);
    outline: none;
}


/* Submit button styling */
input[type="submit"] {
    width: 100%;
    padding: 15px;
    color: var(--text_color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="file"] {
    display: none;
}


/* Subtle fade-in animation for the login box */
.login-container {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.text_center{
    text-align: center;
}

.dashboard-container {
    display: flex;
    width: 100%;
    height: 100%;
}


.main-content {
    flex: 1;
    padding: 20px;
    background: var(--background);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 8em auto;
    grid-column-gap: 15px;
    grid-row-gap: 15px;
    padding-top: 4em;
}

.main-content-grid {
    flex: 1;
    padding: 20px;
    background: var(--background);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    grid-column-gap: 15px;
    grid-row-gap: 15px;
    padding-top: 4em;
}

.sidebar, .doc_sidebar {
    background-color: var(--card_dark);
    width: 10em;
    color: var(--text_color);
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.5);
    min-height: calc(100vh - 6em);
}

.sidebar h2 , .doc_sidebar h2{
    margin: 20px;
    font-size: 24px;
    margin-bottom: 20px;
}

.sidebar ul , .doc_sidebar ul{
    list-style: none;
}

.sidebar ul li , .doc_sidebar ul li{
    margin: 4px 0px;
    padding: 8px;
}

.sidebar ul li a , .doc_sidebar ul li a{
    color: var(--text_color);
    text-decoration: none;
}

.selected{
    background-color: var(--card);
}

.zero_margin_top{
    margin-top: 0;
}



.upcoming-card {
    background-color: var(--background);
    color: var(--text_color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: block;
    justify-content: center;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 1em;
}

.upcoming-card .head{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    gap: 2em;
    
    
}

.upcoming-card .head img{
    width: 30%;
    display: block;
}

.upcoming-card .head .team{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.upcoming-card .card-body{
    text-align: center;
    display: flex;
    justify-content: center;
}

.div1 {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
}
.div2 {
    grid-area: 1 / 2 / 2 / 3;
    width: 100%;
}
.div3 {
    grid-area: 1 / 3 / 2 / 4;
    width: 100%;
}
.div4 {
    grid-area: 2 / 1 / 3 / 2;
    width: 100%;
}
.div5 {
    grid-area: 2 / 2 / 3 / 4;
    width: 100%;
}

.scroller{
    --gap: 1rem;
    gap: var(--gap);
    display: flex;
    position: relative;
    overflow: hidden;
}
.scroller-inner{
    display: flex;
    align-items: center;
    animation: scroll 35s linear infinite;
    min-width: 100%;
    flex-shrink: 0;
    gap: var(--gap);
    justify-content: space-around;   
}

.scroller-inner > * {
    flex-shrink: 0; /* Prevents items from overlapping */
}


@keyframes scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-100% - var(--gap)), 0, 0);
    }
}

.switch {
    display: flex;
    color: white;
    cursor: pointer;
    margin: 1em;
}

.switch-checkbox {
    display: none;
}

.switch-label {
    padding: 10px 20px;
    transition: background-color 0.1s, color 0.1s;
    user-select: none;
    font-size: 15px;
}

.switch-left {
    background-color: var(--HD_Grey);
    border-top-left-radius: 5px;

}

.switch-right {
    background-color: var(--HD_Grey);
    border-top-right-radius: 5px;
}

/* Yes selected (when checked) */
.switch-checkbox:checked + .switch-left {
    background-color: var(--HD_Green); /* Green for "Yes" */
    color: var(--text_color);
}

.switch-checkbox:checked + .switch-right {
    background-color: var(--HD_Grey); /* Dimmed for "No" */
    color: var(--text_color);
}

/* No selected (when unchecked) */
.switch-checkbox:not(:checked) + .switch-left {
    background-color: var(--HD_Grey); /* Dimmed for "Yes" */
    color: var(--text_color);
}

.switch-checkbox:not(:checked) ~ .switch-right {
    background-color: var(--HD_Red); /* Red for "No" */
    color: var(--text_color);
}



.user-perm{
    background-color: var(--user_perm);
    padding: 0.2em;
    border-radius: 15em;
    margin: 0.1em;
    text-align: center;
}


.outline-me{
    margin-top: 1em;
    padding: 2em;
    border-radius: 1em;
    border: solid rgba(59, 59, 59, 0.637) 2px;
}


.danger{
    background-color: #d32f2f70;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}


.perm{
    display: flex;
    align-items: baseline;
    column-gap: 1em;
    justify-content: space-between;
    width: 15em;
    margin-top: 1em;
}
.outline-me{
    margin-top: 1em;
    padding: 2em;
    border-radius: 1em;
    border: solid var(--card_dark) 2px;
}

.full{
    width: 100%;
}

.mobile-block{
    display: none;
}

*::-webkit-scrollbar {
    width: 0em;
}

.desktop-flex, .flex{
    display: flex;
        align-items: center;
        gap: 1em;
}


.team-grid{
    display: grid
;
    grid-template-columns: 1fr 1fr;
    row-gap: 1em;
}

.default_text{
    text-align: left;
    justify-content: normal;
}

blockquote {
    margin: 0;
    padding: 0 1em;
    color: var(--text_color);
    border-left: 4px solid var(--text_color_sub);
    margin-top: 0;
}

code {
    font-family: monospace;
    font-size: 11pt;
    background-color: var(--card);
    color: var(--text_color);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid var(--card_dark);
    word-wrap: break-word;
    white-space: pre-wrap;
    display: inline-block;
}

.donation-card{
    display: flex;
    align-items: center;
}

.stats-grid{
    gap: 4em;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-around;
    margin: 0em 3em;
}


/***
 *                                                                                         
 *    888888888888  88        88  88888888888  88b           d88  88888888888  ad88888ba   
 *         88       88        88  88           888b         d888  88          d8"     "8b  
 *         88       88        88  88           88`8b       d8'88  88          Y8,          
 *         88       88aaaaaaaa88  88aaaaa      88 `8b     d8' 88  88aaaaa     `Y8aaaaa,    
 *         88       88""""""""88  88"""""      88  `8b   d8'  88  88"""""       `"""""8b,  
 *         88       88        88  88           88   `8b d8'   88  88                  `8b  
 *         88       88        88  88           88    `888'    88  88          Y8a     a8P  
 *         88       88        88  88888888888  88     `8'     88  88888888888  "Y88888P"   
 *                                                                                         
 *                                                                                         
 */

/* Default or fallback */
:root{
    --HD_Black: #26262a;
    --HD_Grey: #737373;
    --HD_Cyan: #38d5f7;
    --HD_Blue: #0d86f4;
    --HD_Yellow: #ffce1c;
    --HD_Purple: #654dbb;
    --HD_Pink: #f396bb;
    --HD_Red: #f40d35;
    --HD_White: #c8c8bd;
    --HD_Orange: #ec7f35;
    --HD_Green: #51a232;

    --theme_catagory:"light";


    --background: #ffffff;
    --card: #e7e7e7;
    --card_dark: #d5d5d5;
    --btn_OK: #029202;
    --btn_OK_hover: #026402;
    --btn_OK_text: #ffffff;
    --btn_Danger: #b90000;
    --btn_Danger_hover: #8a0000;
    --btn_Danger_text: #ffffff;
    --btn_Warning: #ffd000;
    --btn_Warning_hover: #d1ab00;
    --btn_Warning_text: #000000;
    --btn_Action: #0063e4;
    --btn_Action_hover: #0050b8;
    --btn_Action_text: #ffffff;
    --btn_invalid: #808080;
    --btn_invalid_hover: #505050;
    --btn_invalid_text: #ffffff;
    --text_color: #000000;
    --text_color_sub: #777;
    --tab_inactive: #9b9b9b;
    --tab_active: #808080;
    --dark: #000000;
    --dark_transparent: #000000dd;
    --dark_text: #ffffff;
    --table_head: #757575;
    --table_head_text: #ffffff;
    --table_primary: #dfdfdf;
    --table_secondary: #cfcfcf;
    --table_text: #000000;
    --error: #985b63;
    --error_bg: #f8d7da;
    --user_perm: #00800080;
    --captian: rgba(0, 162, 255, 0.459);
    --player: rgba(255, 0, 0, 0.459);
    --event_group: rgba(58, 216, 18, 0.459);

    --up_arrow: url("/static/images/black/up_arrow.png");
    --down_arrow: url("/static/images/black/down_arrow.png");
    --left_arrow: url("/static/images/black/left_arrow.png");
    --right_arrow: url("/static/images/black/right_arrow.png");

    --view_day: url('/static//images/black/view_day.png');
    --view_month: url('/static/images/black/view_month.png');
    --view_week: url('/static/images/black/view_week.png');

    
    --forward: url('/static/images/black/forward.png');
    --backward: url('/static/images/black/backward.png');
}


/* Dark mode */
[data-theme="dark"] {
    --theme_catagory:"dark";

    --background: #1a1a1a;
    --card: #353535;
    --card_dark: #252525;
    --btn_invalid: #808080;
    --btn_invalid_hover: #505050;
    --btn_invalid_text: #ffffff;
    --text_color: #ffffff;
    --text_color_sub: #bbb;
    --tab_inactive: #474747;
    --tab_active: #808080;
    --dark: #101010;
    --dark_transparent: #101010dd;
    --dark_text: #ffffff;
    --dark_text: #ffffff;
    --table_head: #0c0c0c;
    --table_head_text: #ffffff;
    --table_primary: #252525;
    --table_secondary: #616161;
    --table_text: #ffffff;

    --up_arrow: url("/static/images/white/up_arrow.png");
    --down_arrow: url("/static/images/white/down_arrow.png");
    --left_arrow: url("/static/images/white/left_arrow.png");
    --right_arrow: url("/static/images/white/right_arrow.png");

    --view_day: url('/static//images/white/view_day.png');
    --view_month: url('/static/images/white/view_month.png');
    --view_week: url('/static/images/white/view_week.png');

    --forward: url('/static/images/black/forward.png');
    --backward: url('/static/images/black/backward.png');
}


/* Light Mode */
[data-theme="light"] {
    --theme_catagory:"light";

    --background: #ffffff;
    --card: #e7e7e7;
    --card_dark: #d5d5d5;
    --btn_invalid: #808080;
    --btn_invalid_hover: #505050;
    --btn_invalid_text: #ffffff;
    --text_color: #000000;
    --text_color_sub: #777;
    --tab_inactive: #9b9b9b;
    --tab_active: #808080;
    --dark: #000000;
    --dark_transparent: #000000dd;
    --dark_text: #ffffff;
    --table_head: #757575;
    --table_head_text: #ffffff;
    --table_primary: #dfdfdf;
    --table_secondary: #cfcfcf;
    --table_text: #000000;

    --up_arrow: url("/static/images/black/up_arrow.png");
    --down_arrow: url("/static/images/black/down_arrow.png");
    --left_arrow: url("/static/images/black/left_arrow.png");
    --right_arrow: url("/static/images/black/right_arrow.png");

    --view_day: url('/static//images/black/view_day.png');
    --view_month: url('/static/images/black/view_month.png');
    --view_week: url('/static/images/black/view_week.png');

    --forward: url('/static/images/black/forward.png');
    --backward: url('/static/images/black/backward.png');
}

[data-theme="midnight"] {
    --theme_catagory:"dark";

    --background: #1a1128; /* Deep purple background */
    --card: #2b1e3d; /* Slightly lighter purple for cards */
    --card_dark: #221834; /* Darker purple for contrast */
    --btn_invalid: #757575; /* Neutral grey for invalid */
    --btn_invalid_hover: #616161; /* Darker grey for hover */
    --btn_invalid_text: #ffffff; /* White text */
    --text_color: #e0d7ff; /* Soft purple/blue text */
    --text_color_sub: #a1a1e5; /* Muted lavender for subtitles */
    --tab_inactive: #483b59; /* Muted purple for inactive tabs */
    --tab_active: #6a4ca7; /* Brighter purple for active tabs */
    --dark: #12081a; /* Very dark purple */
    --dark_transparent: #12081add;
    --dark_text: #ffffff; /* White text */
    --table_head: #3b2c50; /* Muted dark purple for table headers */
    --table_head_text: #e0d7ff; /* Light purple/blue text */
    --table_primary: #2f2145; /* Dark purple for primary table rows */
    --table_secondary: #403055; /* Slightly lighter purple for alternate rows */
    --table_text: #e0d7ff; /* Soft purple/blue text */

    --up_arrow: url("/static/images/white/up_arrow.png");
    --down_arrow: url("/static/images/white/down_arrow.png");
    --left_arrow: url("/static/images/white/left_arrow.png");
    --right_arrow: url("/static/images/white/right_arrow.png");

    --view_day: url('/static//images/white/view_day.png');
    --view_month: url('/static/images/white/view_month.png');
    --view_week: url('/static/images/white/view_week.png');

    --forward: url('/static/images/black/forward.png');
    --backward: url('/static/images/black/backward.png');
}

[data-theme="development"] {
    --theme_catagory:"dark";

    --background: #282c34; /* Dark grey-blue, like a coding IDE background */
    --card: #3c4048; /* Slightly lighter grey for cards */
    --card_dark: #2f3238; /* Darker grey for contrast */
    --btn_invalid: #5c6370; /* Neutral grey for invalid */
    --btn_invalid_hover: #464b54; /* Darker grey for hover */
    --btn_invalid_text: #ffffff; /* White text */
    --text_color: #abb2bf; /* Light grey for standard text */
    --text_color_sub: #7f848e; /* Muted grey for subtitles */
    --tab_inactive: #4b5263; /* Muted grey-blue for inactive tabs */
    --tab_active: #005eab; /* Bright blue for active tabs */
    --dark: #21252b; /* Dark grey for deep backgrounds */
    --dark_transparent: #21252bdd;
    --dark_text: #dcdfe4; /* Very light grey text */
    --table_head: #383e4a; /* Dark grey-blue for table headers */
    --table_head_text: #e5e5e5; /* Light grey text */
    --table_primary: #31363f; /* Dark grey for primary rows */
    --table_secondary: #3c4048; /* Slightly lighter grey for alternate rows */
    --table_text: #abb2bf; /* Light grey text */

    --up_arrow: url("/static/images/white/up_arrow.png");
    --down_arrow: url("/static/images/white/down_arrow.png");
    --left_arrow: url("/static/images/white/left_arrow.png");
    --right_arrow: url("/static/images/white/right_arrow.png");

    --view_day: url('/static//images/white/view_day.png');
    --view_month: url('/static/images/white/view_month.png');
    --view_week: url('/static/images/white/view_week.png');

    --forward: url('/static/images/black/forward.png');
    --backward: url('/static/images/black/backward.png');
}

/* Fun Mode */
[data-theme="fun"] {
    --theme_catagory:"light";

    --background: #ffefd5; /* Soft peach for a cheerful base */
    --card: #fff4cc; /* Light yellow for card backgrounds */
    --card_dark: #ffd166; /* Bright yellow for contrast */
    
    --btn_invalid: #cccccc; /* Neutral grey for invalid */
    --btn_invalid_hover: #999999; /* Darker grey for hover */
    --btn_invalid_text: #ffffff; /* White text */
    --text_color: #333333; /* Dark grey for readable text */
    --text_color_sub: #555555; /* Slightly lighter grey for subtitles */
    --tab_inactive: #f78da7; /* Light pink for inactive tabs */
    --tab_active: #ff6384; /* Bright pink for active tabs */
    --dark: #f29e4c; /* Vibrant orange for deep backgrounds */
    --dark_transparent: #f29e4cdd;
    --dark_text: #ffffff; /* White text */
    --table_head: #ffcccb; /* Soft pink for table headers */
    --table_head_text: #333333; /* Dark grey text */
    --table_primary: #ffe4e1; /* Light pink for primary table rows */
    --table_secondary: #fff7e6; /* Light yellow for alternate rows */
    --table_text: #333333; /* Dark grey for text */

    --up_arrow: url("/static/images/black/up_arrow.png");
    --down_arrow: url("/static/images/black/down_arrow.png");
    --left_arrow: url("/static/images/black/left_arrow.png");
    --right_arrow: url("/static/images/black/right_arrow.png");

    --view_day: url('/static//images/black/view_day.png');
    --view_month: url('/static/images/black/view_month.png');
    --view_week: url('/static/images/black/view_week.png');

    --forward: url('/static/images/black/forward.png');
    --backward: url('/static/images/black/backward.png');
}

/*OLED optimized (aka superdark) Mode*/
[data-theme="OLED"] {
    --theme_catagory:"dark";

    --background: #000000; /* Dark grey-blue, like a coding IDE background */
    --card: #000000; /* Slightly lighter grey for cards */
    --card_dark: #282828; /* Darker grey for contrast */
    
    --btn_invalid: #5c6370; /* Neutral grey for invalid */
    --btn_invalid_hover: #464b54; /* Darker grey for hover */
    --btn_invalid_text: #ffffff; /* White text */
    --text_color: #f6f6f6; /* Light grey for standard text */
    --text_color_sub: #7f848e; /* Muted grey for subtitles */
    --tab_inactive: #4b5263; /* Muted grey-blue for inactive tabs */
    --tab_active: #61afef; /* Bright blue for active tabs */
    --dark: #282828; /* Dark grey for deep backgrounds */
    --dark_transparent: #282828dd;
    --dark_text: #F6F6F6; /* Very light grey text */
    --table_head: #383e4a; /* Dark grey-blue for table headers */
    --table_head_text: #e5e5e5; /* Light grey text */
    --table_primary: #1F1F1F; /* Dark grey for primary rows */
    --table_secondary: #3c4048; /* Slightly lighter grey for alternate rows */
    --table_text: #f6f6f6;

    --up_arrow: url("/static/images/white/up_arrow.png");
    --down_arrow: url("/static/images/white/down_arrow.png");
    --left_arrow: url("/static/images/white/left_arrow.png");
    --right_arrow: url("/static/images/white/right_arrow.png");

    --view_day: url('/static//images/white/view_day.png');
    --view_month: url('/static/images/white/view_month.png');
    --view_week: url('/static/images/white/view_week.png');

    --forward: url('/static/images/black/forward.png');
    --backward: url('/static/images/black/backward.png');
}

[data-theme="Pure Black"]{
    --theme_catagory:"dark";

    --background: #000000; /* Dark grey-blue, like a coding IDE background */
    --card: #000000; /* Slightly lighter grey for cards */
    --card_dark: #000000; /* Darker grey for contrast */
    
    --btn_invalid: #5c6370; /* Neutral grey for invalid */
    --btn_invalid_hover: #464b54; /* Darker grey for hover */
    --btn_invalid_text: #ffffff; /* White text */
    --text_color: #ffffff; /* Light grey for standard text */
    --text_color_sub: #7f848e; /* Muted grey for subtitles */
    --tab_inactive: #000000; /* Muted grey-blue for inactive tabs */
    --tab_active: #61afef; /* Bright blue for active tabs */
    --dark: #000000; /* Dark grey for deep backgrounds */
    --dark_transparent: #000000dd;
    --dark_text: #ffffff; /* Very light grey text */
    --table_head: #000000; /* Dark grey-blue for table headers */
    --table_head_text: #ffffff; /* Light grey text */
    --table_primary: #000000; /* Dark grey for primary rows */
    --table_secondary: #000000; /* Slightly lighter grey for alternate rows */
    --table_text: #ffffff;

    --up_arrow: url("/static/images/white/up_arrow.png");
    --down_arrow: url("/static/images/white/down_arrow.png");
    --left_arrow: url("/static/images/white/left_arrow.png");
    --right_arrow: url("/static/images/white/right_arrow.png");

    --view_day: url('/static//images/white/view_day.png');
    --view_month: url('/static/images/white/view_month.png');
    --view_week: url('/static/images/white/view_week.png');

    --forward: url('/static/images/black/forward.png');
    --backward: url('/static/images/black/backward.png');
}



/***
 *                                                                                       
 *    88888888ba   88        88  888888888888  888888888888  ,ad8888ba,    888b      88  
 *    88      "8b  88        88       88            88      d8"'    `"8b   8888b     88  
 *    88      ,8P  88        88       88            88     d8'        `8b  88 `8b    88  
 *    88aaaaaa8P'  88        88       88            88     88          88  88  `8b   88  
 *    88""""""8b,  88        88       88            88     88          88  88   `8b  88  
 *    88      `8b  88        88       88            88     Y8,        ,8P  88    `8b 88  
 *    88      a8P  Y8a.    .a8P       88            88      Y8a.    .a8P   88     `8888  
 *    88888888P"    `"Y8888Y"'        88            88       `"Y8888Y"'    88      `888  
 *                                                                                       
 *                                                                                       
 */
 .Button {
    border: none;
    padding: 0.5em 1em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    border-radius: 4px;
}

.Button_preview {
    border-radius: 50%;
    width: 3em;
    border: 0px solid;
    height: 3em;
}

.Button_preview_selected {
    border: 5px inset var(--dark);
}

.Button-no-style {
    border: none;
    padding: 0px;
    text-decoration: none;
    background-color: transparent;
    color: var(--text_color);
}

.Button-small {
    border: none;
    padding: 0.25em 0.5em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    border-radius: 4px;
}

.Button-calendar{
    padding: 1em;
    background-color: var(--card);
    color: var(--text_color);
    border: 0;
    border-radius: 15px;
    box-shadow: 0 0 6px 0px var(--dark);
}

.Button-calendar:hover{
    background-color: var(--card_dark);
}

.Button-calendar img{
    height: 2vmin;
    width: auto;
}


.btn_OK {
    background-color: var(--btn_OK);
    color: var(--btn_OK_text);
}

.btn_OK:hover {
    background-color: var(--btn_OK_hover);
}

.btn_Danger {
    background-color: var(--btn_Danger);
    color: var(--btn_Danger_text)
}

.btn_Danger:hover {
    background-color: var(--btn_Danger_hover);
}

.btn_Warning {
    background-color: var(--btn_Warning);
    color: var(--btn_Warning_text);
}

.btn_Warning:hover {
    background-color: var(--btn_Warning_hover);
}

.btn_Action {
    background-color: var(--btn_Action);
    color: var(--btn_Action_text);
}

.btn_Action:hover {
    background-color: var(--btn_Action_hover);

}

.btn_invalid {
    background-color: var(--btn_invalid);
    color: var(--btn_invalid_text);
}

.btn_invalid:hover {
    background-color: var(--btn_invalid_hover);

}

.btn_HD_Black {
    background-color: var(--HD_Black);
    color: #fff;
}

.btn_HD_Black:hover {
    background-color: var(--HD_Black);
}

.btn_HD_Grey {
    background-color: var(--HD_Grey);
    color: #fff;
}

.btn_HD_Grey:hover {
    background-color: var(--HD_Grey);
}

.btn_HD_Cyan {
    background-color: var(--HD_Cyan);
    color: #000;
}

.btn_HD_Cyan:hover {
    background-color: var(--HD_Cyan);
}

.btn_HD_Blue {
    background-color: var(--HD_Blue);
    color: #fff;
}

.btn_HD_Blue:hover {
    background-color: var(--HD_Blue);
}

.btn_HD_Yellow {
    background-color: var(--HD_Yellow);
    color: #000;
}

.btn_HD_Yellow:hover {
    background-color: var(--HD_Yellow);
}

.btn_HD_Purple {
    background-color: var(--HD_Purple);
    color: #fff;
}

.btn_HD_Purple:hover {
    background-color: var(--HD_Purple);
}

.btn_HD_Pink {
    background-color: var(--HD_Pink);
    color: #000;
}

.btn_HD_Pink:hover {
    background-color: var(--HD_Pink);
}

.btn_HD_Red {
    background-color: var(--HD_Red);
    color: #fff;
}

.btn_HD_Red:hover {
    background-color: var(--HD_Red);
}

.btn_HD_White {
    background-color: var(--HD_White);
    color: #000;
}

.btn_HD_White:hover {
    background-color: var(--HD_White);
}

.btn_HD_Orange {
    background-color: var(--HD_Orange);
    color: #000;
}

.btn_HD_Orange:hover {
    background-color: var(--HD_Orange);
}

.btn_HD_Green {
    background-color: var(--HD_Green);
    color: #fff;
}

.btn_HD_Green:hover {
    background-color: var(--HD_Green);
}

 .discord-btn{
    background-color: #5865F2;
    color: white;
 }

/***
 *                                                                
 *      ,ad8888ba,         db         88888888ba   88888888ba,    
 *     d8"'    `"8b       d88b        88      "8b  88      `"8b   
 *    d8'                d8'`8b       88      ,8P  88        `8b  
 *    88                d8'  `8b      88aaaaaa8P'  88         88  
 *    88               d8YaaaaY8b     88""""88'    88         88  
 *    Y8,             d8""""""""8b    88    `8b    88         8P  
 *     Y8a.    .a8P  d8'        `8b   88     `8b   88      .a8P   
 *      `"Y8888Y"'  d8'          `8b  88      `8b  88888888Y"'    
 *                                                                
 *                                                                
 */
#table600px {
    grid-area: 2/1/4/4;
}

/***
 *                                                                                   
 *    88b           d88    ,ad8888ba,    88888888ba,         db         88           
 *    888b         d888   d8"'    `"8b   88      `"8b       d88b        88           
 *    88`8b       d8'88  d8'        `8b  88        `8b     d8'`8b       88           
 *    88 `8b     d8' 88  88          88  88         88    d8'  `8b      88           
 *    88  `8b   d8'  88  88          88  88         88   d8YaaaaY8b     88           
 *    88   `8b d8'   88  Y8,        ,8P  88         8P  d8""""""""8b    88           
 *    88    `888'    88   Y8a.    .a8P   88      .a8P  d8'        `8b   88           
 *    88     `8'     88    `"Y8888Y"'    88888888Y"'  d8'          `8b  88888888888  
 *                                                                                   
 *                                                                                   
 */

.modal{
    display: none;
    flex-direction: column;
    
    z-index: 9999;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}
.modal-content{
overflow: scroll;
margin: 5em 20em 5em 20em;
background-color: var(--background);
padding: 2em;
border-radius: 15px;
}
.modal-section{
    padding: 1em 3em;
}

.close-modal-btn{
    width: 100%;
    text-align: right;
    background-color: transparent;
    color: var(--text_color);
    font-size: 15px;
    border: 0px;
}

.image-container {
    position: relative;
    width: 20vmin; /* Set to your image width */
    height: 20vmin; /* Set to your image height */
    overflow: hidden;
  }

  /* Main image style */
  .main-image {
    width: 20vmin;
    height: 20vmin;
    display: block;
    border: solid black 2px;
  }
  .still-image {
    width: 20vmin;
    height: 20vmin;
    display: block;
    border: solid black 2px;
  }
  .count-container {
    position: absolute;
    bottom: 1em;
    right: 1em;
    color: var(--text_color_sub);
}
.textarea-container {
    position: relative;
}
.count-container.warning {
    color: var(--btn_Danger);
}
  /* Overlay image style */
  .overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 20vmin;
    height: 20vmin;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  /* Show overlay on hover */
  .image-container:hover .overlay-image {
    opacity: 1;
  }

  .team-head, .team-head a{
    display: flex;
    align-items: flex-end;
    column-gap: 1em;
    color: var(--text_color);
  }
  .team-head h1{
    color: var(--text_color);
  }
  .team-head img{
    height: 12vmin;
  }

  .team-player, .team-player a {
    display: flex;
    column-gap: 1em;
    padding: 0.3em 1em;
    align-items: center;
    font-size: 3vmin;
    color: var(--text_color);
}
.team-player img{
    height: 8vmin;
}

.justify_normal{
    justify-content: normal;
}



.team-request{
    display: flex;
    width: 100%;
    height: fit-content;
    justify-content: space-around;
    align-items: center;
}

.team-request select{
    min-width: 6em;
}

.request-card{
    background-color: var(--card_dark);
    padding: 3em;
    border-radius: 15px;
    font-size: 3vmin;
}

.request-card img{
    height: 20vmin;
    width: 20vmin;
}



/***
 *                                                                                  
 *    888888888888    db         88888888ba   88           88888888888  ad88888ba   
 *         88        d88b        88      "8b  88           88          d8"     "8b  
 *         88       d8'`8b       88      ,8P  88           88          Y8,          
 *         88      d8'  `8b      88aaaaaa8P'  88           88aaaaa     `Y8aaaaa,    
 *         88     d8YaaaaY8b     88""""""8b,  88           88"""""       `"""""8b,  
 *         88    d8""""""""8b    88      `8b  88           88                  `8b  
 *         88   d8'        `8b   88      a8P  88           88          Y8a     a8P  
 *         88  d8'          `8b  88888888P"   88888888888  88888888888  "Y88888P"   
 *                                                                                  
 *                                                                                  
 */

 table.match-map-stats-table {
    width: 100%;
    background-color: var(--table_primary);
    border-collapse: collapse;
    border-width: 1px;
    border-color: #000;
    border-style: outset;
    color: var(--table_text);
    border-top: 0px;
  }
  
  table.match-map-stats-table td, table.match-map-stats-table th {
    border-width: 0px;
    border-color: #000;
    border-style: outset;
    padding: 8px;
    border-bottom: #000 solid 1px;
    text-align: center;
  
  }
  
  table.match-map-stats-table thead, table th {
    background-color: var(--dark);
    color: var(--dark_text);
  }

 table {
    width: 100%;
    background-color: var(--table_primary);
    border-collapse: collapse;
    border-width: 1px;
    border-color: var(--dark);
    border-style: outset;
    color: var(--table_text);
    border-top: 0px;
}

table a {
    color: var(--table_text);
}

table td, table th {
    border-width: 0px;
    border-color: var(--dark);
    border-style: outset;
    padding: 8px;
    border-bottom: var(--dark) solid 1px;
    text-align: center;
}

table thead {
    background-color: var(--table_head);
    color: var(--table_head_text);
}

 .team-column {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

table.stats {
    border: 1px solid;
    border-collapse: collapse;
    width: 100%;
}
table.stats th, table.stats td {
border-top: 1px solid;
padding: 3px;
text-align: justify;
}

.no-style-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    font-size: inherit;
    font-family: inherit;
    text-align: inherit;
    color: inherit;
    background: none;
}

.no-style-table th,
.no-style-table td {
    margin: 0;
    padding: 0;
    border: none;
    text-align: inherit;
    background: none;
}

.team-players-table{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 0px;
}

.table-team-captain{
    background-color: var(--captian);
    padding: 0.2em 0.4em;
    margin: 0.1em;
    border-radius: 15px;
}

.table-team-player{
    background-color: var(--player);
    padding: 0.2em 0.4em;
    margin: 0.1em;
    border-radius: 15px;
}

.tr-overlay{
    position: absolute;
    background: var(--dark_transparent);
    color: var(--dark_text);
    left: 0;
    right: 0;
    height: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4vmin;
}

tr {
    position: relative;
}

.tabulator .tabulator-header .tabulator-col{
    background: var(--table_head);
    border-right: 1px solid var(--table_secondary);
}

.tabulator-tableholder::-webkit-scrollbar {
    width: 4px;
}
.tabulator .tabulator-header .tabulator-col *{
    color: var(--table_head_text);
}

.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{
    border: inherit;
}

.tabulator-row.tabulator-row-even{
    background-color: var(--table_primary);
}
.tabulator-row{
    background-color: var(--table_secondary);
}
.tabulator-row .tabulator-cell{
    border-color: var(--table_secondary);
}
.tabulator .tabulator-footer{
    background: var(--table_head);
}

.tabulator .tabulator-footer .tabulator-page.active{
    background-color: var(--tab_active);
    color: unset;
}

.tabulator .tabulator-footer .tabulator-page-size{
    appearance: auto;
}

.tabulator-row.tabulator-selectable:hover{
    background-color: var(--dark);
}

.tabulator-row.tabulator-selectable:hover *{
    color: var(--dark_text);
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{
    background-color: var(--dark);
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover *{
    color: var(--dark_text);
}

.mobile-th{
    display: none;
}

.event-modal-content{
    background-color: var(--card);
}

.inline{
    display: flex;
}
/***
 *                                                                         
 *    88b           d88  88888888888  88888888ba,    88         db         
 *    888b         d888  88           88      `"8b   88        d88b        
 *    88`8b       d8'88  88           88        `8b  88       d8'`8b       
 *    88 `8b     d8' 88  88aaaaa      88         88  88      d8'  `8b      
 *    88  `8b   d8'  88  88"""""      88         88  88     d8YaaaaY8b     
 *    88   `8b d8'   88  88           88         8P  88    d8""""""""8b    
 *    88    `888'    88  88           88      .a8P   88   d8'        `8b   
 *    88     `8'     88  88888888888  88888888Y"'    88  d8'          `8b  
 *                                                                         
 *                                                                         
 *                                                                         
 *      ,ad8888ba,    88        88  88888888888  88888888ba  8b        d8  
 *     d8"'    `"8b   88        88  88           88      "8b  Y8,    ,8P   
 *    d8'        `8b  88        88  88           88      ,8P   Y8,  ,8P    
 *    88          88  88        88  88aaaaa      88aaaaaa8P'    "8aa8"     
 *    88          88  88        88  88"""""      88""""88'       `88'      
 *    Y8,    "88,,8P  88        88  88           88    `8b        88       
 *     Y8a.    Y88P   Y8a.    .a8P  88           88     `8b       88       
 *      `"Y8888Y"Y8a   `"Y8888Y"'   88888888888  88      `8b      88       
 *                                                                         
 *                                                                         
 */

/***
 *                                                                                
 *        88   ad888888b,  8888888888      ,a8888a,     88888888ba  8b        d8  
 *      ,d88  d8"     "88  88            ,8P"'  `"Y8,   88      "8b  Y8,    ,8P   
 *    888888          a8P  88  ____     ,8P        Y8,  88      ,8P   `8b  d8'    
 *        88       ,d8P"   88a8PPPP8b,  88          88  88aaaaaa8P'     Y88P      
 *        88     a8P"      PP"     `8b  88          88  88""""""'       d88b      
 *        88   a8P'                 d8  `8b        d8'  88            ,8P  Y8,    
 *        88  d8"          Y8a     a8P   `8ba,  ,ad8'   88           d8'    `8b   
 *        88  88888888888   "Y88888P"      "Y8888P"     88          8P        Y8  
 *                                                                                
 *                                                                                
 */
@media (max-width: 1250px) {
    .match-map-stats{
        flex-direction: column;
        row-gap: 1em;
        padding-left: 1em;
        padding-right: 1em;
    }

    .match-map-head{
        flex-direction: column;
    }
    .match-map-head p{
        font-size: 4vmin;
    }

    table.match-map-stats-table td, table.match-map-stats-table th{
        padding: 0.5em;
        font-size: 2.5vmin;
    }
}

/***
 *                                                                                      
 *        88     ,a8888a,        ,a8888a,        ,a8888a,     88888888ba  8b        d8  
 *      ,d88   ,8P"'  `"Y8,    ,8P"'  `"Y8,    ,8P"'  `"Y8,   88      "8b  Y8,    ,8P   
 *    888888  ,8P        Y8,  ,8P        Y8,  ,8P        Y8,  88      ,8P   `8b  d8'    
 *        88  88          88  88          88  88          88  88aaaaaa8P'     Y88P      
 *        88  88          88  88          88  88          88  88""""""'       d88b      
 *        88  `8b        d8'  `8b        d8'  `8b        d8'  88            ,8P  Y8,    
 *        88   `8ba,  ,ad8'    `8ba,  ,ad8'    `8ba,  ,ad8'   88           d8'    `8b   
 *        88     "Y8888P"        "Y8888P"        "Y8888P"     88          8P        Y8  
 *                                                                                      
 *                                                                                      
 */

@media (max-width: 1000px) {
    .right-links {
        display: none;
    }
    .hamburger-menu {
        display: flex;
        
    }

    .flex-column-1000{
        flex-direction: column;
    }

    .mobile-menu {
        display: none;
    }

    .navbar{
        background: black;
    }

    .league-info{
        flex-direction: column;
        text-align: center;
    }

    .stat-container, .stat-container[data-type="team-stats"]{
        grid-template-columns: 1fr 1fr;
    }
    .team-game-time{
        grid-area: 1/1/1/7;
        font-size: 5vmin;
    }
    .team-game{
        grid-template-columns: repeat(5, 1fr);
    }
    .team-game-links{
        grid-area: 3/1/3/7;
    }

    

    .modal-content{
        margin: 1em;
    }

    .team-request{
        flex-direction: column;
    }
    #turns_into{
        content: var(--down_arrow);
    }
}

/***
 *                                                                           
 *      ad8888ba,     ,a8888a,        ,a8888a,     88888888ba  8b        d8  
 *     8P'    "Y8   ,8P"'  `"Y8,    ,8P"'  `"Y8,   88      "8b  Y8,    ,8P   
 *    d8           ,8P        Y8,  ,8P        Y8,  88      ,8P   `8b  d8'    
 *    88,dd888bb,  88          88  88          88  88aaaaaa8P'     Y88P      
 *    88P'    `8b  88          88  88          88  88""""""'       d88b      
 *    88       d8  `8b        d8'  `8b        d8'  88            ,8P  Y8,    
 *    88a     a8P   `8ba,  ,ad8'    `8ba,  ,ad8'   88           d8'    `8b   
 *     "Y88888P"      "Y8888P"        "Y8888P"     88          8P        Y8  
 *                                                                           
 *                                                                           
 */
@media (max-width: 600px) {
    .main-content-grid{
        grid-template-columns: repeat(1, minmax(30%, 1fr));
    }
    .calendar-event{
        font-size: 10px;
    }
    .mobile-center{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .mobile-pad-center{
        padding: 1em 4em;
    }

    .team-player-card img{
        width: 9em;
    }
    .player-name {
        width: 9em;
        height: 2.5em;
    }
    .calendar-view{
        margin-top: 0;
    }

    .desktop-flex{
        display: inline;
        gap: 1em;
    }
    .main-content{
        grid-template-columns: repeat(2, 1fr);
    }
    .div1{
        grid-area: 1 / 1 / 1 / 3;
    }
    .div2{
        grid-area: 2 / 1 / 2 / 3;
    }
    .div3{
        grid-area: 4 / 1 / 4 / 3;
    }
    .div4{
        grid-area: 5 / 1 / 6 / 3;
    }
    .div5{
        grid-area: 7 / 1 / 7 / 3;
    }
    
    .sidebar{
        width: 6em;
        z-index: 99;
        transition: transform 0.1s ease, width 0.1s ease;
    }
    .doc_sidebar{
        width: 10em;
    }

    .sidebar h2{
        display: none;
    }
    .sidebar[data-state="collapsed"] {
        
        width: 0;
        transform: translateX(-100%);
        overflow: hidden;
    }

    .sidebar ul{
        transition: transform 0.2s ease, width 0.2s ease;
    }
    .sidebar[data-state="collapsed"] ul {
        transform: translateX(-5em);
    }

    .toggle-sidebar-btn {
        transition: transform 0.1s ease, width 0.1s ease;
        position: absolute;
        top: 2em;
        left: 3.6em;
        z-index: 101;
        background-color: var(--card_dark);
        color: var(--text_color);
        border: none;
        font-size: 1.5em;
        cursor: pointer;
        display: block;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
        padding: .2em;
    }

    .doc_sidebar_btn{
        left: 6.6em;
    }

    .toggle-sidebar-btn[data-state="collapsed"]  {
        transform: translateX(-3.6em);
    }
    .doc_sidebar_btn[data-state="collapsed"]{
        transform: translateX(-6.6em);
    }
    
    #table600px{
        grid-area: 3 / 1 / 4 / 3;
    }
}

@media (max-width:430px) {
    .mobile_column{
        flex-direction: column;
    }
    .calendar-event{
        font-size: 9px;
    }
    .main-content{
        grid-template-columns: repeat(1, 1fr);
    }
    #table600px{
        grid-area: 4 / 1 / 4 / 2;
    }
    footer{
        padding: 10px 10px;
    }
    .player-head{
        flex-direction: column;
        align-items: flex-start;
    }
    .player-body-top-stats{
    flex-direction: column;
}
}

@media (max-width:900px){
    .mobile-hide{
        display: none;
    }

    .mobile-block{
        display: block;
    }
    .mobile-th{
        display:  table-row;
    }

    .calendar-main{
        padding-top: 0em;
    }


    table .switch {
        display: flex;
        flex-direction: column;
        color: white;
        cursor: pointer;
    }
    
    table  .switch-label {
        padding: 0.3em 0.6em;
        transition: background-color 0.1s, color 0.1s;
        user-select: none;
        font-size: 3vmin;
    }
    
    table .switch-left {
        background-color: var(--HD_Grey);
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    
    }
    
    table .switch-right {
        background-color: var(--HD_Grey);
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    
    }
}