:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-off-black: #333;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0d6efd;
    --bs-primary-color: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary: #c3c3c3;
    --bs-secondary-color: #c3c3c3;
    --bs-secondary-rgb: 195, 195, 195;
    --bs-success: #198754;
    --bs-success-rgb: 25, 135, 84;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 33, 37, 41;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-rgb: 33, 37, 41;
    --bs-font-sans-serif: Condensed, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #eee;
    --bs-body-bg: #333;
    --bs-link-color-rgb: 238, 238, 238;
    --bs-link-hover-color-rgb: 255, 255, 255;
    --bs-heading-color: #4BB89E; /* Body headers */

    --bs-nav-link-font-size: 18pt;
    --bg-color1: #1A2930;
    --bg-color2: #2C3E50;
    --bg-footer: #19282F;
    --footer-height: 140px;
}

/* "clearfix" */
header::after {
    content: "";
    clear: both;
    display: table;
}

.navbar {
    --bs-navbar-nav-link-padding-x: 50px;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@font-face {
    font-family: Regular;
    src: url('/fonts/Roboto-Regular.woff');
}
@font-face {
    font-family: CondensedBold;
    src: url('/fonts/RobotoCondensed-Medium.woff');
}
@font-face {
    font-family: Condensed;
    src: url('/fonts/RobotoCondensed-Regular.woff');
}

html {
  font-size: 14px;
  font-family: CondensedBold;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    /*margin-bottom: 60px;*/
    min-height: 100vh;
}

.main-box {
    background: linear-gradient(var(--bg-color1), var(--bg-color2));
    min-height: calc(100vh - var(--footer-height));
}

.nav-link {
    font-family: CondensedBold;
}

.app-intro
{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.app-intro > div {
    flex-basis: 50%;
}
.big-tiles {
    margin: 30px 0px 0 0;
}
.big-tiles img {
    width: 90%;
}

@media (max-width: 768px) {
    .big-tiles {
        display: none;
    }
    .app-intro > div {
        flex-basis: 100%;
    }
}
.app-intro h1, .app-intro h2 {
    font-family: Regular;
    font-weight: 900;
    /*font-size: 4rem;*/
    margin: 0 40px;
}

.app-intro h1 {
    text-transform: uppercase;
}
.app-intro h2 {
    color: #ddd;
}
.app-intro ul {
    margin-top: 20px;
}
.app-intro li {
    font-family: Condensed;
    font-size: 2rem;
    color: #BA9F41;
    margin: 0 60px;
}
@media (max-width: 768px) {
    .app-intro h1 {
        /*font-size: 2.5rem;*/
    }
    .app-intro li {
        font-family: Regular;
        /*font-size: 1.5rem;*/
        margin: 0 30px;
    }
}

footer a {
    margin: 0 20px;
    font-family: Condensed;
    text-decoration: none;
}
@media (max-width: 768px) {
    footer a {
        margin: 0 10px;
    }
}


footer {
    height: var(--footer-height);
    padding-top: 20px;
    white-space: nowrap;
    line-height: 60px;
    text-transform: uppercase;
    background-color: var(--bg-footer);
    font-family: Regular;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 768px) {
    footer {
        line-height: 30px;
    }
}

.app-store-badges {
    margin: 0 40px;
}
.app-store-badges img {
    height: 50pt;
    margin: 15pt;
}
@media (max-width: 768px) {
    .app-store-badges img {
        height: 40pt;
        margin: 10pt;
    }
}

.line-break {
    flex-basis: 100%;
    height: 0;
}

.footer-logo {
    height: 30px;
    vertical-align: sub;
}

.logo {
    margin: 20px !important;
    float: right;
    padding: 5pt;
    display: inline-flex;
}

.logo img {
    width: auto;
    height: 50pt;
}

@media (max-width: 768px) {
    .logo img {height: 30pt;}
}

/* Override some bootstrap stuff*/
@media (min-width: 576px) {
    .navbar-expand-sm .navbar-nav {
        flex-direction: row;
    }
}

/* AD-HOC AD-HOC AD-HOC*/
a.AppLoginLink {
    font-size: 20pt;
    display:block;
    padding: 20pt;
}
.sign-in-box, .my-account-box {
    max-width: 450px;
    margin: 50px auto;
}
.sign-in-box :is(h1, h2, h3, h4), .my-account-box :is(h1, h2, h3, h4) {
    text-align: center;
}
.sign-in-box .agree-to-tos {
    display: flex;
}
.sign-in-box .agree-to-tos input {
    display: inline-block;
    align-self: flex-start;
    margin: 5px 10px;
}
.sign-in-box div, .my-account-box div {
    max-width: 280px;
    margin: 20px auto;
}

.sign-in-button {
    display: block;
    background-color: white;
    border-radius: 22px 22px;
    box-shadow: 2px 4px 2px #00000088;
    color: black;
    width: auto;
    padding: 0 20px;
    font: 19px CondensedBold;
    text-decoration: none;
    line-height: 44px;
}
.sign-in-button img {
    height: 44px;
}
.sign-in-button span {
    position: relative;
    bottom: -0.08rem;
}

.icon-button {
    display: block;
    background-color: #047E6A;
    border-radius: 22px 22px;
    box-shadow: 2px 4px 2px #00000088;
    color: white;
    width: auto;
    padding: 0 25px;
    font: 21px CondensedBold;
    text-decoration: none;
    line-height: 44px;
    margin: 30px auto;
}

.icon-button img, .icon {
    height: 28px;
    /* To come up with an SVG fill filter for a given hex color, go to https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
    margin-right: 10px;
}

.nav-item {
    white-space: nowrap;
}

.navbar .btn-secondary {
    --bs-btn-bg: none;
    --bs-btn-active-bg: none;
    --bs-btn-font-size: var(--bs-nav-link-font-size);
    --bs-btn-font-weight: var(--bs-nav-link-font-weight);
}

.navbar .dropdown-item {
    --bs-dropdown-link-color: #fff;
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: none;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: #4BB89E;
}

@media (max-width: 991px) {
    .dropDownLang { display: none; }
}

.player-stats {
    align-content: center;
}
.player-stats table td:first-child {
    padding-right: 20px;
}
.player-stats table td:last-child {
    text-align: right;
}

.markdown {
    padding: 20pt 60pt;
}
.markdown table {
    border-collapse: separate;
    border-spacing: 8px 4px;
}
@media (max-width: 768px) {
    .markdown {
        padding: 10pt 10pt;
    }
    .markdown table {
        display: block;
        border-collapse: collapse;
        border-spacing: 0;
        max-width: 90vw;
    }

    .markdown table thead, .markdown table tr:first-child {
        display: none;
    }

    .markdown table tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #ccc;
    }

    .markdown table td {
        display: block;
        padding-left: 1rem;
        position: relative;
    }

    .licenses table td {
        overflow-wrap:anywhere;
    }
    .licenses table td:nth-child(1)::before {
        content: "Package Name: "
    }
    .licenses table td:nth-child(2)::before {
        content: "Version: "
    }
    .licenses table td:nth-child(3)::before {
        content: "License: "
    }
    .licenses table td:nth-child(4)::before {
        content: "License URL: "
    }
}

.legal-english-notice {
    display: block;
    padding: 10pt;
    background-color: #333;
    color: #ddd;
    border: 1px solid #ddd;
    margin: 10pt 60pt;
}
@media (max-width: 768px) {
    .legal-english-notice {
        margin: 10pt 15pt;
    }
}
