/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 12px;
    border-radius: 5px;
}

/* Background of the scrollbar */
::-webkit-scrollbar-track {
    background-color: rgba(200, 200, 200, 0.2);
    border-radius: 5px;
}

/* Color of the scrollbar thumb */
::-webkit-scrollbar-thumb {
    background-color: rgba(200, 200, 200, 0.4);
    border-radius: 5px;
}

/* Hover color of the scrollbar thumb */
::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0);
}

@view-transition {
    navigation: auto;
}

body {
    overflow-y: scroll;
}

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

@font-face {
    font-family: Manrope;
    src: url("../fonts/Manrope.ttf");
}

@font-face {
    font-family: Minecraft;
    src: url("../fonts/MinecraftRegular.ttf");
}

@font-face {
    font-family: MinecraftWOFF;
    src: url("../fonts/MinecraftWOFF.woff") format('woff');
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/MaterialIcons.woff2") format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "Manrope", 'Segoe UI', Verdana, sans-serif;
    background-color: #121316;
    color: white;
    padding: 0;
    margin: 0;
}

.left {
    width: 22.5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    height: 100%;
}

.right {
    width: 22.5%;
    margin-left: 77.5%;
    position: fixed;
    top: 0;
}

.middle {
    width: 55%;
    margin-left: 22.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media only screen and (max-width: 900px) {

    .left,
    .middle,
    .right {
        width: 100%;
        position: static;
        margin: 0;
        height: auto;
    }

}

.main {
    background-color: rgb(26, 24, 24);
    width: 100%;
    margin: 10px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    border-radius: 5px;

}

@media only screen and (max-width: 900px) {
    .main {
        width: 95%;
    }
}

.title {
    margin: 30px;
    font-size: 16px;
    font-family: 'EdgecuttingLiteMedium', 'Courier New', Courier, monospace;
}

.titleLinkBox {
    width: 40px;
    height: 40px;
    margin: 20px;
    border-radius: 5px;
    font-size: 40px !important;
    /* Google icons overwrites this if not important */
}

.titleLinkBox:hover {
    background-color: #555;
}



h1 {
    text-align: center;
    font-weight: 100;
}

h3 {
    text-align: center;
}

h2 {
    text-align: center;
}

p {
    text-align: center;
    margin-left: 2%;
    margin-right: 2%;
}



.player-search {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


input {
    width: 360px;
    height: 50px;
    padding: 12px 12px;
    box-sizing: border-box;
    border: 3px solid #ccc;
    border-radius: 2px;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
    font-size: 22px;

}

@media only screen and (max-width: 900px) {
    input {
        width: 300px;
        height: 30px;
        font-size: 20px;

    }
}


#swapperContainer {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    font-size: 18px;
    justify-content: center;
    margin: 10px 0 10px 0;
    background-color: #ffffff00;

    >.swapper {
        padding: 10px 10px 6px 10px;
        background-color: #262424;
        border-radius: 5px;
        color: white;
        margin: 5px 0px 5px 0px;
        cursor: pointer;
        border-bottom: 4px inset transparent;
    }

    >.swapper:hover {
        transform: scale(0.99);
    }

    >.swapper#selected {
        border-bottom: 4px inset #04AA6D;
    }
}

@media only screen and (max-width: 900px) {
    #swapperContainer {
        font-size: 16px;
    }
}

.selectedTab {
    display: block;
}

.hiddenTab {
    display: none !important;
}

.table {
    margin: 20px;
}

#compare {
    overflow-x: auto;
}

@media only screen and (max-width: 900px) {


    .stats-table {
        font-size: 14px;
    }

    tr#header {
        font-weight: bold;
        font-size: 16px;
    }
}



.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.button {
    width: 200px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    background-color: #04AA6D;
    margin: 4px auto 4px auto;
    cursor: pointer;
    border-radius: 5px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: 0;
    transition: 0.1s ease-in-out;
}

.button:hover {
    background-color: #00d184;
}

.button:active {
    transform: scale(0.95);
}



#session {
    display: flex;
    align-items: center;
}

#sessionCanvas {
    width: 1000px;
    height: 640px;
    margin: 15px;
    background-image: url('/images/background_2.png');
    background-size: cover;
    border-radius: 5px;
}

@media only screen and (max-width: 900px) {

    #sessionCanvas {
        width: 100%;
        height: fit-content;

    }
}

/* https://www.w3schools.com/css/tryit.asp?filename=trycss_tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    background-image: url('/images/icons/help.png');
    background-size: cover;
    width: 20px;
    height: 20px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px 10px;
    font-size: 18px;
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    left: -200px;
    /* Adjust this value as needed to position the tooltip on the left */
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.skeleton-loading {
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.226) 50%,
            rgba(255, 255, 255, 0) 70%) rgba(200, 200, 200, 0.1);
    background-size: 200% 100%;
    animation: 3s loading infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.filterDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    scale: 0.6;
    gap: 15px;

    input[type="checkbox"] {
        width: 40px;
        height: 40px;
        cursor: pointer;
        font-family: 'Manrope', sans-serif;
    }

    .button {
        margin: 0;
    }
}

#comparatorContainer {
    height: 490px;
    overflow-y: scroll;
    margin-left: 25px;
    margin-right: 25px;
}

.compareSnapshot {
    background-color: #375863;
    border: 2px solid #375863;
    border-radius: 4px;
    padding: 8px;
    margin: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

.compareSnapshot:hover {
    border: 2px solid white;
}

.compareSnapshot:active {
    transform: scale(0.98);
}

.compareSnapshot>.snapshotTitle {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
}

.snapshotTitle span:first-child {
    font-weight: bold;
}

.snapshotTitle span:last-child {
    font-size: 1rem;
    color: #ccc;
}

.headImage {
    width: 40px;
    height: 40px;

}

.headImage img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.selectedSnapshot {
    border: 2px solid white;
    background-color: #559aad;
}

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

.headerDiv>img {
    width: 30px;
    height: 30px;

}

@media only screen and (max-width: 900px) {
    .headerDiv>img {
        width: 20px;
        height: 20px;
    }
}


@media only screen and (max-width: 900px) {

    #comparatorContainer {
        margin: 0;
        height: 300px;
    }
    .compareSnapshot {
        padding: 4px;
    }
    .compareSnapshot>.snapshotTitle {
        font-size: 1rem;
    }

    .snapshotTitle span:last-child {
        font-size: 0.8rem;
        color: #ccc;
    }

    .headImage {
        width: 30px;
        height: 30px;
    }

    .headImage img {
        width: 30px;
        height: 30px;
        border-radius: 2px;
    }
}

/* Overrides some of the styles of the compare page - on history it needs to be smaller */
.selectorMenu {
    border-radius: 5px;
    width: 46%;
    height: 400px;
    margin: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.selectorMenu>div {
    font-size: 16px;
    margin: 5px;
}

.selectorMenu>div>div>span:nth-of-type(1) {
    font-size: 18px;
}

#statSelector {
    background-color: rgba(0, 0, 0, 0.233);
    border-radius: 5px;
    width: 46%;
    height: 400px;
    margin: 10px;
    overflow-y: auto;
}

.selectAll {
    background-color: rgb(184, 63, 63);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.selectAll>span {
    font-size: 20px;
    padding: 5px;
}

@media only screen and (max-width: 900px) {
    .selectorMenu {
        width: 95%;
        height: 250px;
    }

    #statSelector {
        width: 90%;
    }

    .selectorMenu>div {
        font-size: 16px;
    }

    .selectAll>span {
        font-size: 16px;
    }

    .selectorMenu>div>div>span:nth-of-type(1) {
        font-size: 14px;
    }
}

.errors {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.errors div {
    width: 50%;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.error {
    background-color: rgb(61, 0, 0);
    font-size: 24px;
}

.warning {
    background-color: rgb(97, 63, 0);
    font-size: 14px;
}

@media only screen and (max-width: 900px) {
    .errors div {
        width: 85%;
    }
}

.glow {
    animation: glow-effect 2s ease-in-out;
}

@keyframes glow-effect {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 20px rgb(255, 255, 255);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
}

.limbo {
    background-image: url('/images/limbo.png');
    background-position: 0;
    background-size: cover;
}

.quick-players {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;

}

.redirect-player {
    max-width: 27%;
    background-color: #262624;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 28px;
    margin: 10px 10px 10px 10px;
    transition: 0.1s;
    text-decoration: none;
    gap: 10px;

    img {
        height: 50px;
        aspect-ratio: 1 / 1;
        border-radius: 3px;
    }

}

.redirect-player span {
    max-width: 90%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.redirect-player:hover {
    transform: scale(0.99);

}

@media only screen and (max-width: 900px) {
    .redirect-player {
        width: 90%;
    }

    .quick-players {
        flex-direction: column;
    }
}

#charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

#charts>div:nth-child(1) {
    grid-column: span 2;
}

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

#headsBreakdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

@media only screen and (max-width: 900px) {
    #headsBreakdown p {
        font-size: 16px;
        overflow-x: scroll;
    }
}

#charts canvas {
    width: 500px;
    height: 500px;
}

@media only screen and (max-width: 1900px) {
    #charts {
        grid-template-columns: 1fr;
    }

    #charts>div:nth-child(1) {
        grid-column: span 1;
        overflow-x: scroll;
        width: 100%;

        .resultsTable {
            width: 100%;

            th {
                font-size: 12px;
            }

            tr>td {
                font-size: 14px;
                padding: 2px;
            }
        }
    }

    #charts canvas {
        width: 350px;
        height: 350px;
    }
}

select {
    /* Reset */
    appearance: none;
    border: 0;
    outline: 0;
    font: inherit;
    /* Personalize */
    width: 8rem;
    padding: 1rem 1rem 1rem 1rem;
    background-color: #262424;
    color: white;
    border-radius: 0.5em;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    cursor: pointer;

    /* <option> colors */
    option {
        color: inherit;
    }
}

select:hover {
    border-color: white;
}

/* Collapsibles can be used globally */
.tile-container {
    width: 95%;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    justify-content: space-evenly;
    gap: 10px;
}

.about-tile {
    width: 30%;
}

@media only screen and (max-width: 900px) {
    .tile-container {
        width: 100%;
    }

    .about-tile {
        width: 90%;
    }
}

a {
    text-decoration: underline;
    color: blue;
}

/* Style the button that is used to open and close the collapsible content */
.collapsible {
    font-family: 'Manrope', sans-serif;
    text-align: center;
    background-color: rgba(139, 139, 139, 0.336);
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    border-radius: 5px;
}

.tile-container#full-width .about-tile {
    width: 70%;
}

@media only screen and (max-width: 900px) {
    .tile-container#full-width .about-tile {
        width: 90%;
    }
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active,
.collapsible:hover {
    background-color: rgba(139, 139, 139, 0.2);
}

/* Style the collapsible content. Note: hidden by default */
.content {
    padding: 0 10px;
    background-color: rgba(139, 139, 139, 0.336);
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

/* For stats table - these are present in both stats as compare so thats why theyre here */
.stats-table {
    width: 95%;
    margin: 15px auto 15px auto;
    border-radius: 5px;
    text-align: left;
    border-spacing: 4px;
    overflow-x: scroll;
}


.stats-table tr>td,
.stats-table th {
    padding: 2px 5px 2px 5px;
    border-radius: 5px;
    border: 5px solid #ffffff00;
    background-color: #414141;
    white-space: nowrap;
    width: 15%;
    height: 26px;
}

.stats-table tr>td {
    font-size: 18px;
}

.icon {
    margin-right: 10px;
}

.tableClicker {
    cursor: pointer;
}

th {
    font-weight: bold;
    font-size: 22px;
}

.collapsibleTable.hidden {
    display: none;
}

/* Just a nice table style */
.resultsTable {
    width: 80%;
    margin: auto;

    th {
        font-size: 16px;
        font-weight: bold;
    }

    tr {
        text-align: center;
        font-size: 20px;
    }

    tr>td {
        border: solid 1px grey;
        border-radius: 4px;
        padding: 5px;
    }
}

.resultsTable td:nth-of-type(1) {
    text-align: left;
}

.steps {
    width: 100%;
}

.steps-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0 20px 0;

    >div {
        /* Individual step clickers */
        padding: 2px;
        width: 40px;
        font-size: 28px;
        text-align: center;
        aspect-ratio: 1/1;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
        background-color: #262424;
        border: 2px rgb(26, 24, 24) solid;
    }

    >div.selected {
        border: 2px white solid;
    }

    >div.completed {
        background-color: #04AA6D;
    }
}

.setting {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 10px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;

    .settings-text>span:nth-child(3) {
        color: #999183;
        font-size: 14px;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e04545;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #04AA6D;
}

input:focus+.slider {
    box-shadow: 0 0 1px #04AA6D;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media only screen and (max-width: 900px) {
    .switch {
        width: 50px;
        height: 28px;
    }

    .slider {
        height: 28px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
    }

    input:checked+.slider:before {
        transform: translateX(22px);
    }
}