/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Variables */

body, html {
    /* Colors */
    
    /* Background */
    --bg: #08031f;
    --bg-dim: rgba(255, 255, 255, 0.05);
    --hover: rgba(255, 255, 255, 0.25);

    /* Text */
    --print: rgb(255, 255, 255);
    --print-dim: rgba(255, 255, 255, 0.75);

    /* Border outlines */
    --print-border: rgba(255, 255, 255, 0.15);
    
    /* Primary Background */
    --primary: rgb(255,0,255);
    --primary-dim: rgb(137, 0, 137);

    /* Primary text */
    --print-primary: rgb(255, 255, 255);
    --print-primary-dim: rgba(255, 255, 255, 0.85);

    /* Primary border */
    --primary-border: rgba(255, 255, 255, 0.15);

    /* Extra colors I probably wont use */
    --white: rgb(255, 255, 255);
    --black: rgb(0, 0, 0);
    --white-border: rgba(255, 255, 255, 0.15);
    --print-white-dim: rgba(255, 255, 255, 0.85);
    --black-border: rgba(0, 0, 0, 0.15);
    --print-black-dim: rgba(0, 0, 0, 0.65);

    /* Typography */
    --font: "Poppins", sans-serif;
    /* --font: "Raleway", sans-serif; */
    --font-size: 18px;

    /* Values */
    --radius: 10px;
    --dim: 0.75;
    --gap: 25px;
    --gap-small: 15px;
    --space: 50px;
    --space-big: 100px;
    --container: 100%;
    --bar-width: 100px;

    color-scheme: dark !important;
    overscroll-behavior: none;
}

/* Reset */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size);
    scroll-padding-top: calc(var(--nav-height) + var(--gap));
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--print);
    font-family: var(--font);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

::selection {
    color: var(--print-primary);
    background-color: var(--primary);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: inherit;
    cursor: pointer;
}

button {
    all: unset;
    box-sizing: border-box !important;
}

/* Preload */

.preload * {
    transition: none !important;
    animation-duration: 0.001s !important;
}

/* Truncation */

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.truncate.truncate-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.truncate.truncate-1 {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

/* Focus */

:focus {
    outline: none;
}

/* Columns */

.cols {
    display: flex;
    gap: var(--gap);
    /* flex-wrap: wrap; */
    justify-content: flex-end;
    height: fit-content;
    position: relative;
    z-index: 2;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
}

.center {
    align-items: center;
}

.cols.flip {
    flex-direction: row-reverse;
}

.flex-shrink {
    flex-shrink: 0 !important;
}

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

/* Grid */

.grid-2, .grid-3, .grid-4 {
    display: grid; 
    gap: var(--gap);
    position: relative;
    z-index: 2;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Removes the 'X' from Chrome, Safari, and newer Edge browsers */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Removes the 'X' from older Internet Explorer and legacy Edge */
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

/* Aspect ratio */

.aspect {
    display: block;
    position: relative;
    padding-bottom: 56.25%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */ 
    overflow: hidden;
}

.square {
    display: block;
    position: relative;
    padding-bottom: 100%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */ 
    overflow: hidden;
}

.aspect iframe, .aspect img, .aspect .ratio, .square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aspect img, .video-iframe img {
    object-fit: cover;
}

/* Container */

.container, .container-wide {
    max-width: var(--container);
    width: 100%;
    margin: auto;
    padding-left: var(--gap) !important;
    padding-right: var(--gap) !important;
}

.container-wide {
    max-width: 100%;
}

/* Cover */

.cover {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-image: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('https://images.unsplash.com/photo-1614850523011-8f49ffc73908?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-color: var(--black);
    color: var(--print-primary);
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 5px;
    border-radius: var(--radius);
}
::-webkit-scrollbar-track {
    /* background: var(--bg-dim); */
    background-color: transparent;
    /* margin: var(--gap) 0; */
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dim);
}

/* Button */

.btn-wide {
    width: 100% !important;
}

.paginator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
}

.paginator.flex-wrap {
    gap: var(--gap);
}

.flex-wrap {
    flex-wrap: wrap;
}

.paginator .btn {
    flex-shrink: 0;
}

.btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap);
    margin-top: auto;
}

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

.btn {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    /* letter-spacing: 1px; */
    text-transform: uppercase;
    color: var(--print-primary);
    font-weight: bold;
    padding: 10px 20px;
    /* font-size: 0.9rem; */
    width: fit-content;
    user-select: none;
    transition: 0.25s ease color;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
    border: 0px;
    outline: none;
    font-family: var(--font);
    transition: 0.25s ease background-color, 0.25s ease color;
    text-align: center;
}

a.btn, button.btn, label.btn {
    cursor: pointer !important;
}

.btn.disabled, .btn:disabled {
    opacity: 0.5;
    cursor: default !important;
}

.btn span, .btn svg {
    z-index: 2;
}

.btn::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 100%;
    bottom: 0;
    left: 0;
    background-color: var(--primary-dim);
    transition: transform 0.25s ease;
    transform-origin: bottom right;
}

.btn.btn-light {
    background-color: var(--white);
    color: var(--black);
}

.btn.btn-secondary {
    background-color: var(--bg);
    color: var(--print);
    border: 1px solid var(--print-border);
}

.btn.btn-light::after {
    background-color: var(--black);
}

.btn.btn-secondary::after {
    background-color: var(--print-border);
}

a.btn.btn-light:hover, button.btn.btn-light:hover {
    color: var(--white);
}

.btn:disabled:hover::after {
    transform: scaleX(0);
}

a.btn:hover::after, button.btn:hover::after, label.btn:hover::after, .btn:focus::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.btn svg, .btn-text svg {
    width: 1.3rem;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    padding-bottom: 3px;
    /* text-transform: uppercase; */
}

.btn-text svg {
    color: var(--primary);
}

.btn-text span {
    font-weight: bold;
    color: var(--print);
    text-decoration: underline;
    text-underline-position: under;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--primary);
    text-underline-offset: 3px;
    transition: 0.25s ease color;
}

.btn-text:hover span {
    color: var(--primary) !important;
}

.btn-text.btn-light span {
    color: var(--white);
}

/* Spacing */

.pt {
    padding-top: var(--space);
}

.pb {
    padding-bottom: var(--space);
}

.pts {
    padding-top: var(--gap);
}

.pbs {
    padding-bottom: var(--gap);
}

.mt {
    margin-top: var(--gap-small);
}

.mb {
    margin-bottom: var(--gap-small);
}

.layout {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.layout-small {
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
}

body {
    min-height: 100vh;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(0, 0, 0, 0) 50%, var(--bg) 100%), url("/assets/img/body-bg-wide.png"), var(--bg);
    background-color: var(--bg);
    background-position: center !important;
    background-repeat: repeat-y !important;
    /* background-size: cover !important; */
}

/* Navbar */

html {
    --nav-height: 75px;
    --full-nav-height: calc(var(--nav-height) + var(--gap) * 2)
}

.navbar-wrapper {
    position: relative;
    top: 0;
    z-index: 100;
    width: 100%;
    /* background-color: var(--bg); */
    /* border-bottom: 1px solid var(--print-border); */
    padding: var(--gap);
}

.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-dim);
    padding: var(--gap-small);
    border-radius: var(--radius);
}

.navbar-section {
    display: flex;
    align-items: center;
    gap: var(--gap-small);
}

.navbar-links {
    display: flex;
    align-items: center;
}

.navbar-link {
    text-transform: uppercase;
    font-weight: bold;
    padding: 0 10px;
}

.navbar-link span {
    background-color: var(--bg-dim);
    padding: 7px 15px;
    border-radius: var(--radius);
    transition: 0.25s ease background-color;
}

.navbar-link.active span {
    background-color: var(--primary);
}

.navbar-link:hover span, .navbar-link:focus span {
    background-color: var(--hover);
}

.navbar-link.active:hover span, .navbar-link.active:focus span {
    background-color: var(--primary-dim);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    border-radius: var(--radius);
}

.logo span {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2;
    transition: 0.25s ease color;
}

.logo:hover span, .logo:focus span {
    color: var(--primary);
}

/* Main */

.sidebar-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
}

.sidebar-wrapper-2 {
    grid-template-columns: 1fr 2fr 1fr;
}

.sidebar-wrapper .sidebar {
    height: calc(100vh - var(--full-nav-height) - var(--gap) * 1);
    margin: var(--gap);
    margin-top: 0;
    padding: 0 var(--gap-small);
    border-radius: var(--radius);
    background-color: var(--bg-dim);
    /* border: 1px solid var(--print-border); */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    /* top: calc(var(--full-nav-height)); */
    flex-shrink: 0;
}

/* Stats */

.stats {
    min-height: 0;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
    /* padding-right: 5px; */
}

.stat {
    background-color: var(--bg-dim);
    border-radius: var(--radius);
    padding: var(--gap-small);
    gap: var(--gap-small);
    display: flex;
    align-items: center;
    transition: 0.25s ease background-color;
}

.stat:last-child {
    margin-bottom: var(--gap-small);
}

.stat:hover, .stat:focus {
    background-color: var(--hover);
}

.stat.active {
    background-color: var(--primary);
}

.stat.active:hover, .stat.active:focus {
    background-color: var(--primary-dim);
}

.stat-name {
    font-weight: bold;
}

.stat-score {
    margin-left: auto;
    font-weight: bold;
    flex-shrink: 0;
}

.stat-score span {
    font-weight: normal;
    color: var(--print-dim);
}

/* Tabs */

.tabs {
    display: flex;
    align-items: center;
}

.tabs .tab {
    flex: 1;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: var(--gap-small);
    /* padding-top: 0; */
    /* padding-top: calc(var(--gap) - var(--gap-small)); */
    position: relative;
    color: var(--print-dim);
    font-size: 1.2rem;
    transition: 0.25s ease background-color;
}

.tabs .tab.active {
    color: var(--print);
}

.tabs .tab:hover, .tabs .tab:focus {
    background-color: var(--bg-dim);
}

.tabs .tab.active::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    border-radius: var(--radius);
    background-color: var(--primary);
}

/* Search */

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

.search input {
    flex: 1;
}

.search .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.search input {
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--print);
    padding: var(--gap-small);
    background-color: var(--bg);
    border: 0px;
    outline: none;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    /* border-radius: var(--radius); */
    flex: 1;
    min-width: 0;
    transition: 0.25s ease background-color;
}

.search input:hover, .search input:focus {
    background-color: var(--bg-dim);
}

/* Main content */

.main-content {
    background-color: var(--bg-dim);
    border-radius: var(--radius);
    height: calc(100vh - var(--full-nav-height) - var(--gap) * 1);
    margin-right: var(--gap);
    display: flex;
    flex-direction: column;
    padding: 0 var(--gap-small);
    padding-top: var(--gap-small);
    flex-shrink: 0;
    min-width: 0;
}

.main-content.main-content-transparent {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    height: calc(100vh - var(--full-nav-height));
}

.main-content-inner {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
}

.main-content-inner > *:last-child {
    margin-bottom: var(--gap-small);
}

.main-content.main-content-transparent .main-content-inner > *:last-child {
    margin-bottom: var(--gap);
}

/* heading */

.heading {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

.heading::after {
    width: 100%;
    display: block;
    content: "";
    height: 5px;
    background-color: var(--primary);
    border-radius: var(--radius);
    margin-top: var(--gap-small);
}

.subheading {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Profile */

.profile {
    display: flex;
    align-items: center;
    gap: var(--gap-small);
    overflow: hidden;
}

.profile .btn {
    margin-left: auto;
    flex-shrink: 0;
}

.profile img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* background-color: red; */
}

.profile-name {
    font-weight: bold;
    font-size: 1.4rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px var(--gap-small);
}

.profile-meta span {
    color: var(--print-dim);
}

/* Points */

.points {
    display: flex;
    justify-content: space-around;
}

.points .point {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: center;
}

.point-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

.point-label {
    color: var(--print-dim);
}

.point-divider {
    width: 1px;
    height: auto;
    background-color: var(--print-border);
}

/* Graph */

.graph {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x:visible;
}

.graph-row {
    display: grid;
    grid-template-columns: 40px 1fr 20px 1.2rem;
    gap: var(--gap-small);
}

.graph-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.graph-dropdown svg {
    width: 1.2rem;
    color: var(--print-dim);
    cursor: pointer;
    transition: 0.25s ease color;
}

.graph-dropdown:hover svg, .graph-dropdown:focus svg {
    width: 1.2rem;
    color: var(--print);
    cursor: pointer;
}

.graph-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-200px, -50%);
    width: 200px;
    height: fit-content;
    background-color: var(--bg);
    z-index: 3;
}

.graph-dropdown:hover .graph-menu {
    display: flex;
}

.graph-row:last-child {
    margin-bottom: var(--gap-small);
}

.graph-label, .graph-value {
    color: var(--print-dim);
}

.graph-bar {
    background-color: var(--bg);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.graph-bar div {
    height: 100%;
    width: 50%;
    background-color: var(--primary);
}

.graph-value {
    text-align: center;
}

/* Leaderboard table */

.table-leaderboard {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--print-border);
    margin-bottom: var(--gap-small);
}

.table-leaderboard table {
    border-collapse: collapse;
    width: 100%;
}

.table-leaderboard th {
    text-align: left;
    background-color: var(--primary);
}

/* .table-leaderboard td {
    color: var(--print-dim);
} */

.table-leaderboard td, .table-leaderboard th {
    border-bottom: 1px solid var(--print-border);
    padding: var(--gap-small);
}

.table-leaderboard tr {
    transition: 0.25s ease background-color;
}

.table-leaderboard tr:last-child td {
    border-bottom: 0px;
}

.table-leaderboard tr:nth-child(even) {
    background-color: var(--bg-dim);
}

.clickable-row:hover, .clickable-row:focus {
    background-color: var(--hover) !important;
    cursor: pointer;
}

/* Dialog */

/* CSS Styling */
dialog {
    padding: 24px;
    border: none;
    border-radius: 12px;
    background-color: var(--bg);
    margin: var(--gap);
    max-width: 500px;
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.dialog-inner {
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
}

/* Styles the background dimming effect */
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* Modern blur effect */
}

.dialog p {
    line-height: 1.5;
    color: var(--print-dim);
}

/* Events */

.events {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--gap-small);
}

.event {
    background-color: var(--bg-dim);
    padding: var(--gap-small);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
}

.event .btn {
    margin-top: auto;
}

.event .title {
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.25s ease color;
}

.event .title:hover, .event .title:focus {
    color: var(--primary);
}

.event .aspect, .main-content .aspect {
    border-radius: var(--radius);
    overflow: hidden;
}

.event .aspect:hover img, .event .aspect:focus img {
    transform: scale(1.2);
}

.event .aspect img {
    transition: 0.25s ease transform;
}

/* Card */

.card {
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
    background-color: var(--bg-dim);
    padding: var(--gap-small);
    border-radius: var(--radius);
    transition: 0.25s ease background-color;
}

.card.card-hover:hover, .card.card-hover:focus {
    background-color: var(--hover);
}

/* Article */

.article, .article ol, .article ul {
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
}

.article h1 {
    font-weight: bold;
    font-size: 1.5rem;
    /* text-transform: uppercase; */
}

.article h2 {
    font-weight: bold;
    font-size: 1.2rem;
}

.article p, .article li {
    color: var(--print-dim);
    line-height: 1.5;
}

.article ul, .article ol {
    margin-left: calc(var(--gap-small) * 2);
}

.article li::marker {
    font-weight: bold;
    color: var(--primary);
}

.article strong, .article b {
    font-weight: bold;
    color: var(--print);
}

.article p a, .article li a, .link {
    color: var(--print);
    font-weight: bold;
    text-decoration: underline;
    text-underline-position: under;
    text-decoration-color: var(--primary);
    transition: 0.25s ease color;
    text-decoration-thickness: 3px;
}

.article p a:hover, .article li a:hover, .article p a:focus, .article li a:focus, .link:hover, .link:focus {
    color: var(--primary);
}

/* Alert */

.alert {
    display: flex;
    padding: var(--gap-small);
    gap: var(--gap-small);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
}

.alert svg {
    color: var(--primary);
    flex-shrink: 0;
    height: 1.2rem;
    margin-top: 2px;
}

.alert-content {
    color: var(--print);
    line-height: 1.5;
    height: fit-content;
}

/* Info */

.info {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--gap-small);
}

.info-label {
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: 2px;
}

.tags {
    display: flex;
    align-items: center;
    gap: var(--gap-small);
    flex-wrap: wrap;
}

.tags .tag {
    background-color: var(--bg-dim);
    color: var(--print-dim);
    padding: 2px 10px;
    border-radius: var(--radius);
    transition: 0.25s ease color, 0.25s ease background-color;
}

.tags a.tag:hover, .tags a.tag:focus {
    background-color: var(--hover);
    color: var(--print);
}

/* Mobile */

.navbar-links-mobile {
    height: fit-content;
    margin-bottom: var(--gap);
    /* margin-left: var(--gap); */
    /* margin-right: var(--gap); */
    overflow-x: auto;
    display: none;
}

.navbar-links-mobile .navbar-link:first-child {
    padding-left: var(--gap);
}

.navbar-links-mobile .navbar-link:last-child {
    padding-right: var(--gap);
}

.navbar-links-mobile .navbar-link span {
    display: block;
}

@media only screen and (max-width: 1700px) {
    .events {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 1500px) {
    html, body {
        --font-size: 16px;
    }
    .sidebar-wrapper {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
    .events, .profiles {
        grid-template-columns: 1fr;
    }
    .profile-name {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 1000px) {
    html, body {
        --gap: 20px;
    }
    .sidebar-wrapper {
        grid-template-columns: 1fr !important;
    }
    .events, .profiles {
        grid-template-columns: 1fr 1fr;
    }
    .main-content {
        height: fit-content !important;
        margin-bottom: var(--gap);
        margin-left: var(--gap) !important;
    }
    .sidebar-wrapper .sidebar {
        height: 350px !important;
    }
    .navbar-section-main {
        display: none;
    }
    .navbar-links-mobile {
        display: flex;
    }
    .table-leaderboard th:nth-child(3), 
    .table-leaderboard td:nth-child(3) {
        display: none;
    }
    .main-content.main-content-transparent .main-content-inner > *:last-child {
        margin-bottom: 0;
    }
    html, body {
        overscroll-behavior: unset !important;
    }
    body {
        background: linear-gradient(90deg, var(--bg) 0%, rgba(0, 0, 0, 0) 50%, var(--bg) 100%), url("/assets/img/body-bg-tall.png"), var(--bg);
    }
}

@media only screen and (max-width: 600px) {
    html, body {
        --gap: 15px;
    }
    .events, .profiles {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 380px) {
    .table-leaderboard th, .table-leaderboard td {
        padding: 10px 5px;
    }
}