@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inconsolata:wght@200..900&display=swap');

/* STYLE */
body {
    /* text-wrap-mode: nowrap; */
    font-family: "Barlow";
    color: white;
    background-color: darkslateblue;
    margin: 0;
    background: linear-gradient(to bottom, #000C 0%, #000D 100%), repeating-linear-gradient(-45deg, #0000 0px, #0000 24px, #0008 24px, #0008 48px); 
    background-size: cover, 5120px 5120px;
    background-color: slateblue;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #131125;
}

::-webkit-scrollbar-thumb {
    background: slateblue;
}

.margin-b0 {
    margin-bottom: 0;
}

.margin-t0 {
    margin-top: 0;
}

.margin-tb0 {
    margin-top: 0;
    margin-bottom: 0;
}

.background {
    background-color: rgb(33, 29, 63);
    border-radius: 5px;
    padding: .33em;
}

.background.active {
    background-color: #2c2555;
}

.tower-background {
    background-color: #211d3f;
    border-radius: 5px;
    padding: 1em;
}

.tower-background.active {
    background-color: #3e3579;
    border: 4px solid slateblue;
    animation: border-pulse 1s ease-in-out 0s infinite alternate;
}

.list {
    margin-top: 0.5em;
    border: 6px ridge darkslateblue;
    border-radius: 2px;
    background-color: #2c2555;
    overflow: auto;
}

.shadow {
    text-shadow: 2px 2px 0px black;
}

a {
    color: slateblue;
    text-decoration: none;
    font-weight: bold;
}

#site-logo {
    width: 64px;
    height: 64px;
}

#page-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    color: #a99eff;
    border-bottom: 2px solid slateblue;
    background: transparent;
    padding: 0px 20px
}

#page-footer {
    border-top: 1px solid slateblue;
    background: transparent;
    padding: 0px 20px;
}

/* LAYOUT */

#main-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.two-columns {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex: 1;
    padding: 20px;
    align-items: stretch;
    justify-content: space-between;
    overflow-y: auto;
}

.column {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: stretch;
}

.column-header {
    margin: 0;
    font-size: 1.75em;
    text-shadow: 2px 2px 0px black;
}

#main-content {
    background-color: #131125;
}

/* TOWER DETAILS */
#time-remaining {
    font-size: 2em;
    font-weight: bold;
    font-family: 'Inconsolata';
}

/* TODO */
/* #collapse-timer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ff00007f;
    z-index: -1;
} */

.towerinfo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 10px;
}

.ban-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* fle */
}

.banlist {
    text-wrap-mode: nowrap;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.25em;
    overflow-x: auto;
    border: 4px inset darkslateblue;
    background-color: #3e3579;
}

.ban-header {
    font-size: 1.5em;
    font-weight: bold;
}

.ban-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    /* gap: 0.2em; */
}

.ban-image {
    width: 96px;
    height: 96px;
    object-fit: contain;
    image-rendering: pixelated;
}

.ban-name {
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
}

.oldban-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
}

.oldban-name {
    font-size: 1em;
    text-align: center;
    font-weight: bold;
}

.oldban-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    /* gap: 0.2em; */
}

/* LEADERBOARD */
#live-leaderboard {
    display: flex;
    flex-direction: column;
    max-width: 40%; 
    max-height: 100vh;
}

.leaderboardlist {
    display: flex;
    flex: 1;
    flex-direction: column;
    /* align-items: center; */
    justify-content: flex-start;
    gap: .33em;
    padding: .33em;
    overflow-y: auto;
}

.leaderboard-header {
    align-items: center;
    gap: 1rem;
}

.leaderboard-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 1em; */
    /* border: 2px solid ; */
}

.leaderboard-item p {
    /* font-weight: bold; */
    margin: 0;
}

.lb-podium {
    font-weight: bold;
}

.lb-first {
    color: goldenrod;
    font-size: 1.6rem;
}

.lb-second {
    color: silver;
    font-size: 1.4rem;
}

.lb-third {
    color: saddlebrown;
    font-size: 1.2rem;
}

.player-rank {
    width: 5vw;
    /* max-width: 7rem; */
    min-width: 4rem;
    /* font-family: 'Inconsolata'; */
}

.player-nameholder {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

/* media rules and shit */
@media (min-width: 1600px) {
    .ban-container {
        flex-direction: row;
        gap: 2rem;
    }

    /* what was i even trying to do with this */
    /* .tower-background {
        display: flex;
        flex-direction: column;
        flex: 1;
    } */

    .ban-container>div {
        width: 50%;
    }
}

@media (max-width: 1000px) {
    .two-columns {
        display: block;
    }

    #main-container {
        min-height: 100vh;
    }

    #live-leaderboard {
        max-width: initial;
        max-height: 100%;
    }
}

@keyframes border-pulse {
    0% {
        border-color: slateblue;
    }
    100% {
        border-color: #493f8d;
    }
}