:root {
    /*--text-color: #C9D1D9;*/
    --core-visuals-width:900px;
    --bold-weight: 600;
    --list-line-height: 1.5;
    --line-height: 1.5;
    --paragraph-bottom-margin: 1rem;
    --font-size: 1em;

    background-color: var(--background-color);
}

html {
    --text-color: #c0c0c0;
    --card-header-text-color: #7c7c7c;
    --less-emphasis-color: #5c5c5c;
    --forecast-less-emphasis-color: #686868;
    --background-color: #101010;
    --card-border-color: #1f1f1f;
    --skeleton-background-color: #111111;
    --card-background-color: #141414;
    --tooltip-background-color: #bdbdbd;
    --tooltip-text-color: #202020;
    --navbar-text-background-color: #1a1a1a;
    --bold-color: rgb(180, 145, 215);

    --blue: rgb(107, 142, 255);
    --light-blue: rgb(136, 164, 255);
    --code-background: #212121;

    --param-color: rgb(218, 126, 254);
    --field-color: rgb(194, 194, 116);
    --api-less-emphasis-color: #a1a1a1;
    --api-less-emphasis-color2: #7c7c7c;
    --api-example-border-color: #393939;
    --json-number-color: rgb(126, 156, 254);
    --json-null-color: #ed625e;
    --json-string-color: #34c192;

    --card-border-radius: 25px;
}

body {
    font-size: var(--font-size);
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    font-family: 'Open Sans', sans-serif !important;   
    margin: 0;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    src: url("/static/fonts/OpenSans.woff2") format('woff2');
}

@font-face {
    font-family: "Source Code Pro, monospace";
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url("/static/fonts/SourceCodePro.woff2") format('woff2');
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* navbar */

.navbar {
    display: grid;
    position: fixed;
    left: 0;
    top: 0;
    /* container has no padding, so subtract (navbar margin + navbar padding) */
    width: calc(50vw - 450px - 4rem); 
    grid-template-rows: repeat(4, max-content);
    height: max-content;
    margin: 2rem;
    margin-top: 5rem;
    justify-content: flex-end;
    padding-top: 3.6rem;
    row-gap: 1rem;
}

.title-div {
    visibility: hidden;
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: baseline;
}

.title-and-icon {
    display: grid;
    grid-template-columns: 0.01fr 1fr;
    align-items: baseline;
}

.title-container {
    max-width: var(--core-visuals-width);
    margin: 0 auto;
    padding: 1rem;
}

.navbar-icon {
    top: 6px;
    position: relative;
}

.navbar-website-text {
    font-size: 2.5rem;
    padding-left: 0.5rem;
    display: flex;
    justify-self: flex-start;
}

.navbar-descriptor {
    justify-content: flex-end;
    display:flex;
}

.navbar-text {
    visibility: hidden;
    /*background: var(--card-background-color);*/
    border-radius: var(--card-border-radius);
    padding: 0px 10px 0px 10px;
    transition: background 0.2s;
    display:grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: flex-end;
    column-gap: 1.5rem;
    width: fit-content
}

.navbar-text:hover {
    background: var(--blue);
    cursor: pointer;
}

.navbar-text-icon {
    max-width: 30px;
    max-height: 30px;
}

.navbar-mobile {
    display: none;
    grid-template-columns: repeat(5, max-content);
    display: grid;
    column-gap: 1rem;
    padding-bottom: 1.5rem;
    padding-top: 1rem;
    row-gap: 1rem;
}

.home-floating-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #282828a0;
    padding: 5px;
    border-radius: 10px;
}

.home-icon {
    max-width: 30px;
    max-height: 30px;
}

@keyframes blueGlow {
    0% {
        background-color: default;
    }
    100% {
        background-color: var(--blue);
    }
}

/* main content */

.container {
    max-width: var(--core-visuals-width);
    padding-left: 1rem;
    padding-right: 1rem;
    /*padding: 1rem;
    padding-bottom: 2rem;*/
    margin: 0 auto;
    margin-bottom: 3rem;
}


.visualization-container {
    /*max-width: var(--core-visuals-width);
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 auto;
    display: grid; /*breaks reflow for highcharts?????
    grid-template-rows: 0.2fr 1.6fr;*/
    padding-bottom: 1.5rem;
}

.playercount-header, .steam-review-header {
    visibility: hidden;
    font-size: 2rem;
    line-height: 2.2rem;
    background-clip: content-box;
    border-radius: var(--card-border-radius);
    margin-bottom: 1.5rem;
}

.header-grid {
    display: grid; 
    grid-template-columns: auto auto;
    align-items: baseline;
}

.last-updated {
    justify-content: flex-end; 
    font-size: 0.75rem; 
    display: flex;
    color: var(--less-emphasis-color);
    fill: var(--less-emphasis-color);
    /*align-items: baseline; this misaligns my skeleton */
}

.clock-icon {
    width: 20px;
    height: 20px;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 0.5em;
}


@keyframes glow {
    0% {
        filter: drop-shadow(0px 0px 0px var(--text-color));
    }   
    100% {
        filter: drop-shadow(0px 0px 4px var(--text-color));
    }
}

.tooltip {
    position: relative;
    display: inline;
    padding-left: 8px;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: max-content;
    font-size: 0.8rem;
    background-color: var(--tooltip-background-color);
    color: var(--tooltip-text-color);
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s;
    inset-block-start: calc(-48px - 5px);
    max-width: calc(100vw - 20px);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.question-informative {
    max-width: 24px;
    max-height: 24px;
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    transition: transform 0.2s;
}


.question-informative:hover {
    animation: glow 0.2s forwards;
    cursor: pointer;
    transform: scale(1.1);
}



/* top statistics */

.playercount-all-stat-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 2rem;
}

.playercount-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 2rem;
    justify-items: center;
}

.forecast-line {
    visibility: hidden;
    font-size: 0.9rem;
    text-align: left;
}

.forecast-player-text {
    font-size: 0.65rem;
}

.forecast-hour-header {
    color: var(--forecast-less-emphasis-color);
    font-size: 0.65rem;
    display: inline-block;
    width: 25px;
}


.forecast-less-emphasis {
    color: var(--forecast-less-emphasis-color);
}

.one-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
    row-gap:2rem;
}

.card, .review-card  {
    min-height: 85px;
    border: none;
    border-radius: var(--card-border-radius);
    display: flex;
    padding: 15px 10px 10px 10px;
    /*background-color: var(--card-background-color);*/
    display: grid;
    grid-template-rows: 20% 80%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card {
    width: 80%;
}

.forecast-card {
    min-height: 85px;
    border: none;
    border-radius: var(--card-border-radius);
    display: flex;
    padding: 15px 10px 10px 10px;
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    /*background-color: var(--card-background-color);*/
    /*display: grid;
    grid-template-rows: 20% 80%;
    align-items: center;

    text-align: center;*/
    justify-content: center;
    text-align: left;
}

.review-card {
    min-height: 76px;
    padding: 20px 10px 10px 10px;
}


.card-header-text, .review-card-header-text {
    visibility: hidden;
    font-size: 0.75rem;
    color: var(--card-header-text-color);
}

.card-content {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

#server-status {
    max-width: 40px;
    max-height: 40px;
}

.server-up-emoji, .not-sure-yet {
    transform-origin: center; 
    max-width: inherit; 
    max-height: inherit;
    transition: transform 0.2s;
}

@keyframes growFromCenter {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.server-up-emoji:hover, .not-sure-yet:hover {
    transform: scale(1.15);
    cursor: pointer;
}

.server-up-emoji:active, .not-sure-yet:active {
    transform: scale(0.8);
}

#players-online {
    font-size: 1.7rem;
}

#players-weekly-change {
    font-size: 1.25rem;
}

.percent-change-icon {
    margin-left: 0.25rem;
}

.not-sure-yet {
    display: hidden;
    max-width: 40px;
    max-height: 40px;
    padding: 2.5px;
}

#players-last-updated, #reviews-last-updated {
 /**/
}

/* playercount chart */

.chart-skeleton {
    max-width: 900px; 
    aspect-ratio: 2 / 1; 
    border: none;
    border-radius: var(--card-border-radius);
    /* chart reflow fix if parent is grid: https://github.com/highcharts/highcharts/issues/9491#issuecomment-605965402 */
    display: grid; 
    width: 100%;
    height: 100%;
    
}

.forecast-disabled-warning {
    visibility: hidden;
    padding-bottom: 0.5rem; 
    color: var(--less-emphasis-color);
    font-size: 0.8rem;
    float: right;
}

@keyframes loading {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
    /*0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }*/
}

/* review chart */

#playercount-chart, #review-chart {
    /* try for mobile, maybe it will break desktop*/
    /*overflow: hidden;
    max-height: 400px;*/
    max-width: auto;
    border-radius: var(--card-border-radius);
    
}

#percent-positive-reviews {
    background: linear-gradient(to right, #39FF9C 10%, #E6A646 35%, #EE3C53 70%);
    background-size: 10000% 100%;
    background-clip: text;
    transition: background-position 0.5s ease;
    display: inline-block;
    color: transparent;
    background-position: calc(100% - 82.9%) 0;
    font-size: 1.2rem;
}

#avg-playtime-at-review {
    font-size: 1.2rem;
}

#avg-playtime-last-two-weeks {
    font-size: 1.2rem;
}

#avg-total-playtime {
    font-size: 1.2rem;
}


.title-div-wrapper {
    display:grid;
}

.player-forecast-info {
    visibility: hidden;
    padding-top: 0.5rem; 
    color: var(--less-emphasis-color);
    font-size: 0.8rem;
}

.review-callout-info {
    visibility: hidden;
    padding-bottom: 0.5rem; 
    color: var(--less-emphasis-color);
    font-size: 0.8rem;
    display:flex;
    align-items: self-end;
}

.review-image-annotation {
    width: 28px;
    height: 28px;
    max-width: 32px;
    max-height: 32px;
}

.small-review-image-annotation {
    width: 20px;
    height: 20px;
    max-width: 32px;
    max-height: 32px;
}

#toggle-annotations {
    background: #1e1e1e;
    border: 1px solid #383838;
    color: var(--text-color);
    padding: 8px;
    border-radius: 10px; 
    transition: transform 0.1s;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-left: 20px;
}

#toggle-annotations:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* title-div wrapper: show background but not text, visibility: hidden hides background 
don't put background wrapper children in here
*/
.chart-skeleton, .card, .review-card, .playercount-chart-header, .title-div-wrapper, .navbar-text-wrapper, .forecast-card {
    border-radius: var(--card-border-radius);
    background: linear-gradient(90deg, var(--skeleton-background-color) 25%, #23232355 50%, var(--skeleton-background-color) 51%);
    animation: loading 1.7s linear infinite normal;
    background-size: 200% 100%;
}

.navbar-text-wrapper {
    justify-content: flex-end;
    display: flex;
}

@font-face {
  font-family: 'icons';
  src: url('/static/fonts/icons.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="i-"], [class*=" i-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icons' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.i-youtube-play:before {
  content: "\e900";
}
.i-soundcloud:before {
  content: "\e901";
}
.i-spotify:before {
  content: "\e902";
}
.i-bandcamp:before {
  content: "\e903";
}
.i-github:before {
  content: "\e904";
}
.i-linkedin-square:before {
  content: "\e905";
}
.i-arrow-up-right2:before {
  content: "\ea3b";
}

.i-github {
    font-size: 30px; padding-left: 2.14165px; padding-right: 2.14165px;
}






/* about */

h1, h2, h3 {
    font-weight: 400;
    margin-top: 2.75rem;
}

h3 {
    margin: 0;
    font-size: 1rem;
}

ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
    padding-left: 2rem;
    line-height: 1.5;
}

p {
    line-height: 1.5;
}

code {
    font-family: "Source Code Pro, monospace";
    background: var(--code-background);
    padding: 0px 4px 0px 4px;
}

.ul-normal {
    font-size: revert;
}

.about-a {
    color: var(--blue);
}

.about-a:hover {
    color: var(--light-blue);
}

b {
    color: var(--bold-color);
    font-weight: 500;
}





/* api */

.api-ref, .api-ref-ex {
    font-family: "Source Code Pro, monospace";
    /*background: linear-gradient(to right, var(--code-background) 50%, var(--background-color) 100%);*/
    background-color: var(--code-background);
    padding: 10px;
}

.api-ref {
    display: flex;
}

.api-ref-grad {
    font-family: "Source Code Pro, monospace";
    background-color: var(--code-background);
    padding: 10px;
    margin-bottom: 1rem;
    max-width: 50%;
    white-space: nowrap;
}

.a-h1 {
    margin-bottom: 0;
}

.a-h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

h4 {
    font-weight: 400;
    font-size: 1.1rem;
}

.method {
    font-size: 0.8rem;
    padding: 0.25rem;
    border: 1px solid var(--api-less-emphasis-color2);
    border-radius: 4px;
    color: var(--api-less-emphasis-color2);
}

pre {
    white-space: initial;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.js-number {
    color: var(--json-number-color);
}

.js-null {
    color: var(--json-null-color);
}

.js-string {
    color: var(--json-string-color);
}

.param {
    color: var(--param-color);
}

.field {
    color: var(--json-string-color);
}

hr {
    margin-top: 0.1rem;
    margin-bottom: 1rem;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: .25;
}

.field-desc {
    font-size: 0.8rem;
    color: var(--api-less-emphasis-color);
}

.param-dtype {
    background: none;
    padding: 0;
    font-size: 0.7rem;
    color: var(--api-less-emphasis-color2);
}

.param-line, .field-line {
    margin-top: 0.5rem;
}

.field-line {
    margin-bottom: 0.5rem;
}

.param-ex, .response {
    color: var(--api-less-emphasis-color);
}

.example-box {
    margin-top: 2rem;
    border: 1px solid var(--api-example-border-color); 
    border-radius: 24px; 
    padding: 1rem;
}

li::marker {
    color: var(--api-less-emphasis-color2);
}

.api-update-time {
    color: var(--api-less-emphasis-color2);
    margin-left: auto;
    font-size: 0.7rem;
}

/* navbar overflows */
@media screen and (max-width: 1350px) {
    .navbar {
        display: none;
    }
    .navbar-mobile {
        display: grid;
    }
    .home-floating-footer {
        display: inherit;
    }
}

@media screen and (max-width: 770px) {
    .navbar-mobile {
        grid-template-columns: repeat(3, max-content);
    }
    .title-div {
        grid-template-columns: none;
        grid-template-rows: repeat(2, max-content);
        row-gap: 0.5rem;
        justify-content: flex-start;
    }
    .navbar-website-text {
        font-size: calc(1.2rem + 2.182vw);
    }
    .navbar-icon {
        top: 1vw;
        width: max(30px, 5vw);
    }
    .navbar-descriptor, .navbar-text {
        font-size: calc(0.5rem + 1.039vw);
    }
    .navbar-text-icon {
        font-size: calc(1.948vw + 0.8rem);
        width: calc(1.948vw + 0.9rem);
    }
    #players-online {
        font-size: calc(0.425rem + 2.649vw);
    }
    #players-weekly-change {
        font-size: calc(0.625rem + 1.2985vw);
    }
    .one-stat-grid, .playercount-stat-grid {
        column-gap: 1.5rem;
        row-gap: 1.5rem;
        grid-template-columns: repeat(2, 47%);
        justify-items: center;
    }
    .card, .review-card {
        width: 80%;
        /*min-width:fit-content;
        padding: 10px 20px 10px 20px;*/ 
    }
    .playercount-header, .steam-review-header {
        font-size: calc(1rem + 2.078vw);
    }
    .question-informative {
        width: calc(12px + 1.55844vw);
        height: calc(12px + 1.55844vw);
    }
    .last-updated {
        font-size: calc(0.375rem + 0.779vw);
    }
    .clock-icon {
        width: calc(10px + 1.2987vw);
        height: calc(10px + 1.2987vw);
    }
    .card-header-text, .review-card-header-text {
        font-size: calc(0.375rem + 0.779vw);
    }
    #percent-positive-reviews, #avg-playtime-at-review, #avg-playtime-last-two-weeks, #avg-total-playtime {
        font-size: calc(0.6rem + 1.247vw);
    }
    .chart-skeleton {
        min-height: 450px;
    }
    .player-forecast-info, .review-callout-info, .forecast-disabled-warning, #toggle-annotations {
        font-size: calc(0.4rem + 0.831vw);
    }
    .forecast-line {
        font-size: calc(0.45rem + 0.935vw);
    }
    .forecast-player-text, .forecast-hour-header {
        font-size: calc(0.325rem + 0.6755vw);
    }
    .forecast-hour-header { /* 2/3 width in px */
        width: calc(12.5px + 1.62335vw);
    }

    /* api */

    .api-ref-grad {
        max-width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .card {
        width: 100%;
    }
    .chart-skeleton {
        aspect-ratio: 0.9 / 1;
    }
    .navbar-text {
        column-gap: 0.5rem;
    }
    .server-up-emoji, .not-sure-yet {
        width: 35px;
    }
}

@media screen and (min-width: 1350px) {
    .navbar-mobile, .home-floating-footer {
        display: none;
    }
    .navbar { 
        display: grid;
    }
}



::selection {
    background-color: #352e7e;
    color: var(--text-color);
}

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

