.small-only {
    display: block;
}

.large-only {
    display: none;
}

/* Main options */
html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
}

.body-margin-left, .body-margin-right, .body-center {
    margin: 0;
    padding: 0;
}

.body-margin-left {
    display: none;
}

.body-margin-right {
    display: none;
}

.body-center {
    background: black;
    min-height: 98vh;
    height: auto;
    padding: 1vh 5px;
}

/* Hamburger menu */
nav {
	background-color: #111;
	box-shadow: 0 2px 15px #6CDE5B;
    max-width: 100%;
    border-radius:2rem;
}

nav ul {
    max-height:250px;/* you can change as you need it */
    max-width:none;
    border: 1px solid #555;
    font-size: 1.1rem;
    padding-left: 30px;
 }

nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
    border-radius:2rem;
}

.navlist li:first-child {
	display: block;
}

.navlist li {
	display: none;
}

.responsive li {
	display: block;
}

.navlist a {
	display: block;
	color: #fff;
	text-align: center;
	padding: 0.75rem;
	text-decoration: none;
	font-size: 1.2rem; /* 20px */
}

.navlist a:hover {
	background-color: #222;
	color: white;
}

.navlist .active {
	color: #6CDE5B;
}

/* Header/Navigation grid START */
.header-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 50px;
}

.header-grid a {
    text-decoration: none;
}

.vertical-flex {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    gap: 10px;
}

.rankings-map {
    vertical-align: top;
    min-width: 250px;
    max-width: 100%;
    height: auto;
}

.selected-image {
    box-shadow: 0 0 12px 1px #6CDE5B;
}

.rank-master {
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("/images/ranks/master36.png");
}

.rank-diamond {
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("/images/ranks/diamond36.png");
}

.rank-platinum {
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("/images/ranks/platinum36.png");
}

.rank-gold {
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("/images/ranks/gold36.png");
}

.rank-silver {
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("/images/ranks/silver36.png");
}

.rank-bronze {
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("/images/ranks/bronze36.png");
}

.rank-unranked {
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("/images/ranks/unranked36.png");
}

.rankbackground {
    background-repeat: no-repeat;
    background-size: 40% 100%;
    background-position: center top;
}

.rankings-flex {
    display: grid;
    grid-template-columns: 340px 1fr;
}

.player-showcase-grid {
    display: none;
}

.player-rank-showcase-wrapper {
    /* box-sizing: border-box; */
    /* resize: horizontal; */
    /* border: 1px dashed; */
    /* overflow: auto; */
    display: none;
}

.player-rank-showcase {
    width: 0px;
    height: 0px;
    /* padding-bottom: 100%; */
}

.line-horizontal {
    width:50px;
    height:1px;
    background: #aaa;
}

.line-vertical {
    width:1px;
    height:50px;
    background: #aaa;
}

.line-forward-slash {
    width:35px;
    height:35px;
    background: linear-gradient(to bottom right, #000 calc(50% - 1px), #aaa , #000 calc(50% + 1px));
}

.line-back-slash {
    width:35px;
    height:35px;
    background: linear-gradient(to top right, #000 calc(50% - 1px), #aaa , #000 calc(50% + 1px));
}

.large-button {
    border: none;
    background: radial-gradient( #008f3b, #000000);
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    max-width: 300px;
    height: auto;
    box-shadow: 0 0 10px #3c3;
    text-decoration: none;
}

.large-button:link, .large-button:visited {
    color: #FFC72B;;
}

.large-button:hover {
    color: lightgoldenrodyellow;
}

.large-button:active  {
    color: white;
}

.bdrace-main-text {
    font-size: 1rem;
    margin: 30px 50px;
}

.singleplayer-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 10px;
    margin: auto;
}

.viewreplay-radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 30px;
}

.player-allraces {
    padding-inline-start: 20px;
}

.race-stats-table {
    border-collapse:collapse;
}


@media only screen and (max-width: 780px) {
    .rankings-flex {
        display: grid;
        grid-template-columns: 1fr;
    }
    .rankings-flex div {
        max-width: 340px;
    }
}

/* Header/Navigation grid END */

/* Large */
@media only screen and (min-width: 1000px) {

    .small-only {
        display: none;
    }
    
    .large-only {
        display: block;
    }

    html {
        padding: 0;
        background-image: url("/images/pexels-felix-mittermeier-1146134.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }
    
    body {
        /* display: grid; */
        /* grid-template-columns: 100px 960px 100px; */
        display: flex;
        justify-content: center;
        align-items: stretch;
        flex-direction: row;
        flex-wrap: nowrap;
        margin: auto;
        height: auto;
        max-width: 1400px;
        width: 100%;
    }

    .body-margin-left {
        background-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
        flex: 0 1 100px;
        /* max-width: 100px; */
        /* width: 100%; */
        display: block;
    }
    
    .body-margin-right {
        background-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
        flex: 0 1 100px;
        /* max-width: 100px; */
        /* width: 100%; */
        display: block;
    }

    .body-center {
        flex: 1 1 100px;
        justify-content: center;
        margin: auto;
        /* min-width: 900px; */
         max-width: 1200px; 
        /* width: 100%; */
     }

    .body-center {
        padding: 1vh 20px;
    }

    .header-grid {
        display: grid;
        grid-template-columns: 300px 660px 1fr;
        margin-bottom: 50px;
    }
    
    .header-grid nav {
        justify-self: center;
    }
    
    .header-grid nav a {
        color: black;
        font-size: 1.6rem;
        padding: 5px 20px;
        margin: 0;
        border: 1px solid;
        background-color: #AAA;
    }
    
    .header-grid nav a:hover {
        background-color: #ccc;
    }
    
    .header-grid nav a.selected {
        background-color: white;
    }
    
    .header-grid nav a:nth-child(1) {
        border-radius: 50px 0 0 50px;
    }
    
    .header-grid nav a:nth-child(4) {
        border-radius: 0 50px 50px 0;
    }

    nav {
        box-shadow: 0 2px 15px white;
    }

    .player-showcase-grid {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        width: 100%;
        margin: auto;
        background-color: transparent;
    }

    .player-showcase-title {
        text-align: center;
    }

    .player-rank-showcase-wrapper {
        /* box-sizing: border-box; */
        /* resize: horizontal; */
        /* border: 1px dashed; */
        /* overflow: auto; */
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 400px 1fr;
        height: 400px;
        margin: auto;
    }

    .rankings-map {
        vertical-align: top;
        min-width: 250px;
        max-width: 100%;
        display: inline-block;
    }

    .large-button {
        font-size: 1.5rem;
    }

    .bdrace-main-text {
        font-size: 1.4rem;
    }

    .singleplayer-grid {
        width: 900px;
    }

    .viewreplay-radio-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
  }
  .moving-border {
    position: relative;
    background: #111;
    padding: 4px;
    z-index: 1;
  }
  .moving-border::before {
    content: "";
    position: absolute;
    inset: -0.2rem;
    z-index: -1;
    background: linear-gradient(var(--angle), 
    green, black, green);
    animation: rotate 10s linear infinite;
  }

  .moving-border::after {
    content: "";
    position: absolute;
    inset: 0rem;
    z-index: -1;
    background: black;
    animation: rotate 10s linear infinite;
  }

  @keyframes rotate {
    0%     { --angle: 0deg; }
    100%   { --angle: 360deg;
    }
  }